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
e584184199f1d8b572455c9d30e0c57223d7b4df
src/chip8.c
src/chip8.c
#include <stdlib.h> #include <string.h> #include "chip8.h" chip8_t * chip8_new(void) { int i; chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t)); // The first 512 bytes are used by the interpreter. self->program_counter = 0x200; self->index_register = 0; self->stack_pointer = 0; self->opcode ...
#include <stdlib.h> #include <string.h> #include "chip8.h" chip8_t * chip8_new(void) { chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t)); // The first 512 bytes are used by the interpreter. self->program_counter = 0x200; self->index_register = 0; self->stack_pointer = 0; self->opcode = 0; ...
Remove unused variable (int i)
Remove unused variable (int i)
C
mit
gsamokovarov/chip8.c,gsamokovarov/chip8.c
9a12c4bd62e7b23a69f8adc616f42a8f3c4c1685
src/gauge.c
src/gauge.c
#include <math.h> #include "gauge.h" /** * Initializes the gauge struct * @arg gauge The gauge struct to initialize * @return 0 on success. */ int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; gauge->value = 0; return 0; } /** * Adds a new sample to the struct * @arg gauge The g...
#include <math.h> #include "gauge.h" int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; gauge->value = 0; return 0; } int gauge_add_sample(gauge_t *gauge, double sample, bool delta) { if (delta) { gauge->value += sample; } else { gauge->value = sample; } ...
Remove duplicate comment from the c file
Remove duplicate comment from the c file
C
bsd-3-clause
drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite,drawks/statsite,drawks/statsite,theatrus/statsite,drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite
0a0b275bc691c879b95028023406e98063a1ce2b
sipXportLib/src/test/sipxunittests.h
sipXportLib/src/test/sipxunittests.h
// // // Copyright (C) 2010 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2010 SIPez LLC All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ // Author: Daniel Petrie // dpetrie AT SIPez DOT com //////////////////////////////////////////...
// // // Copyright (C) 2010-2016 SIPez LLC. All rights reserved. // // $$ // Author: Daniel Petrie // dpetrie AT SIPez DOT com ////////////////////////////////////////////////////////////////////////////// #ifndef _sipxunittests_h_ #define _sipxunittests_h_ //#if !defined(NO_CPPUNIT) && defined(ANDROID) #d...
Make portable unit tests default on all platforms. (vs CPPUNIT)
Make portable unit tests default on all platforms. (vs CPPUNIT) git-svn-id: 8a77b5e12cf30fc5f8c95b12d648985d6db39537@12346 a612230a-c5fa-0310-af8b-88eea846685b
C
lgpl-2.1
sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror
92dd7b914b878f2172b4d436e9643c4a0d24683b
sbr/getarguments.c
sbr/getarguments.c
/* * getarguments.c -- Get the argument vector ready to go. * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/utils.h> char ** getarguments (char *invo_name, ...
/* * getarguments.c -- Get the argument vector ready to go. * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/utils.h> char ** getarguments (char *invo_name, ...
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
C
bsd-3-clause
mcr/nmh,mcr/nmh
231ff54e4cc4a6f1ef78fb4e1f94957bbb961aae
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.04.00.08-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 4 #define QLA_DRIVER_PATCH_VER 0 #defi...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.04.00.13-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 4 #define QLA_DRIVER_PATCH_VER 0 #defi...
Update the driver version to 8.04.00.13-k.
[SCSI] qla2xxx: Update the driver version to 8.04.00.13-k. Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com> Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program...
0ce2d5345a145015bc35f8251cf9d82a8f193a86
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k6"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k7"
Update driver version to 5.03.00-k7
[SCSI] qla4xxx: Update driver version to 5.03.00-k7 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
7ac5e552ca1d344baa09174c8b9ff1e776399f39
Branch-SDK/Branch-SDK/BNCDeviceInfo.h
Branch-SDK/Branch-SDK/BNCDeviceInfo.h
// // BNCDeviceInfo.h // Branch-TestBed // // Created by Sojan P.R. on 3/22/16. // Copyright © 2016 Branch Metrics. All rights reserved. // #import <Foundation/Foundation.h> #ifndef BNCDeviceInfo_h #define BNCDeviceInfo_h #endif /* BNCDeviceInfo_h */ @interface BNCDeviceInfo : NSObject //---------Properties---...
// // BNCDeviceInfo.h // Branch-TestBed // // Created by Sojan P.R. on 3/22/16. // Copyright © 2016 Branch Metrics. All rights reserved. // #import <Foundation/Foundation.h> #ifndef BNCDeviceInfo_h #define BNCDeviceInfo_h #endif /* BNCDeviceInfo_h */ @interface BNCDeviceInfo : NSObject //---------Properties---...
Change property attribute to strong
Change property attribute to strong
C
mit
BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking
97b487e3f7d68a4ee579bdba1001984055463061
src/containers/hash_map.h
src/containers/hash_map.h
#ifndef JTL_HASH_MAP_H__ #define JTL_HASH_MAP_H__ #include <memory> namespace jtl { template <typename Key, typename Value> class HashMap { struct MapNode { MapNode(Key k, Value v) : key(k), value(v) {} ~MapNode() { delete key; delete value; } Key key; Value value; }; /...
#ifndef JTL_FLAT_HASH_MAP_H__ #define JTL_FLAT_HASH_MAP_H__ #include <memory> #include <cctype> namespace jtl { template <typename Key> struct Hash { using argument_type = Key; using result_type = std::size_t; result_type operator()(const Key& k); }; // struct Hash template <typename Key, typename V...
Switch hash map class to a flat hash map
Switch hash map class to a flat hash map
C
mit
j-haj/algorithms-datastructures
7d403dcfb33763e9eb29fd1f4a67e293b1d98f94
3RVX/HotkeyInfo.h
3RVX/HotkeyInfo.h
#pragma once #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, RunApp, Settings, Exit, }; static std::vector<std::wstring> ActionNames; public: int keyCombina...
#pragma once #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, RunApp, Settings, Exit, }; static std::vector<std::wstring> ActionNames; public: int keyCombina...
Add instance var for hotkey arguments
Add instance var for hotkey arguments
C
bsd-2-clause
Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX
9fa470e4021c096a808bfa9bb9406e9897f55b70
CRToast/CRToast.h
CRToast/CRToast.h
// // CRToast // Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CRToast. FOUNDATION_EXPORT double CRToastVersionNumber; //! Project version string for CRToast. FOUNDATION_EXPORT const unsigned char CRToastVersionString[]; // In this header,...
// // CRToast // Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CRToast. FOUNDATION_EXPORT double CRToastVersionNumber; //! Project version string for CRToast. FOUNDATION_EXPORT const unsigned char CRToastVersionString[]; // In this header,...
Fix build error with import
Fix build error with import
C
mit
Trueey/CRToast
abeb3e3e92bd30ccd7f0d6683a97fbb9f828f75b
src/genericpage.h
src/genericpage.h
/* * dialer - MeeGo Voice Call Manager * Copyright (c) 2009, 2010, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ #ifndef GENERICPAGE_H #define GENE...
/* * dialer - MeeGo Voice Call Manager * Copyright (c) 2009, 2010, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ #ifndef GENERICPAGE_H #define GENE...
Make the genericPage methods activate and deactivate widgets public instead of protected.
Make the genericPage methods activate and deactivate widgets public instead of protected. Signed-off-by: Michael Demeter <ed571e93df5b6cb8044d8ad4bd1aafe6e72f2a71@intel.com>
C
apache-2.0
lbt/meego-handset-dialer,lbt/meego-handset-dialer,lbt/meego-handset-dialer,lbt/meego-handset-dialer
24f16f44b3b2569b8858c453429c3fb42ea02392
objc/PromiseKit.h
objc/PromiseKit.h
#import "PromiseKit/Promise.h" #ifdef PMK_CORELOCATION #import "PromiseKit+CoreLocation.h" #endif #ifdef PMK_FOUNDATION #import "PromiseKit+Foundation.h" #endif #ifdef PMK_UIKIT #import "PromiseKit+UIKit.h" #endif #ifdef PMK_MAPKIT #import "PromiseKit+MapKit.h" #endif #ifdef PMK_SOCIAL #import "PromiseKit+Social.h" #en...
#import "PromiseKit/Promise.h" #ifdef PMK_CORELOCATION #import "PromiseKit+CoreLocation.h" #endif #ifdef PMK_FOUNDATION #import "PromiseKit+Foundation.h" #endif #ifdef PMK_UIKIT #import "PromiseKit+UIKit.h" #endif #ifdef PMK_MAPKIT #import "PromiseKit+MapKit.h" #endif #ifdef PMK_SOCIAL #import "PromiseKit+Social.h" #en...
Add missing import to umbrella header
Add missing import to umbrella header
C
mit
mxcl/PromiseKit,pgherveou/PromiseKit,mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit,pgherveou/PromiseKit,allen-zeng/PromiseKit,pgherveou/PromiseKit
a935263bc17f40ed671abc3157adbc04ade7b3fa
Source/SimpleITKMacro.h
Source/SimpleITKMacro.h
#ifndef __SimpleITKMacro_h #define __SimpleITKMacro_h #include <stdint.h> #include <itkImageBase.h> #include <itkImage.h> #include <itkLightObject.h> #include <itkSmartPointer.h> // Define macros to aid in the typeless layer typedef itk::ImageBase<3> SimpleImageBase; namespace itk { namespace simple { // To a...
#ifndef __SimpleITKMacro_h #define __SimpleITKMacro_h // Ideally, take the types from the C99 standard. However, // VS 8 does not have stdint.h, but they are defined anyway. #ifndef _MSC_VER #include <stdint.h> #endif #include <itkImageBase.h> #include <itkImage.h> #include <itkLightObject.h> #include <itkSmartPoi...
Support for MS Visual Studio 2008.
Support for MS Visual Studio 2008.
C
apache-2.0
SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging
6536132facc72b11a630fef777d446e06dfeeed8
test/FrontendC/2010-06-28-nowarn.c
test/FrontendC/2010-06-28-nowarn.c
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null // This should not warn about unreferenced label. 7729514. // XFAIL: * // XTARGET: i386-apple-darwin,x86_64-apple-darwin,i686-apple-darwin void quarterAsm(int array[], int len) { __asm { mov esi, array; mov ecx, len; shr ecx, 2; loop: movdqa xmm...
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null // This should not warn about unreferenced label. 7729514. // XFAIL: * // XTARGET: x86,i386,i686 void quarterAsm(int array[], int len) { __asm { mov esi, array; mov ecx, len; shr ecx, 2; loop: movdqa xmm0, [esi]; psrad xmm0, 2; movdqa [e...
Fix this XTARGET so that this does doesn't XPASS on non-darwin hosts.
Fix this XTARGET so that this does doesn't XPASS on non-darwin hosts. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108040 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mi...
e36c3d63728197449d4e555823d7d07db16e2c3a
OCMustache/MustacheToken.h
OCMustache/MustacheToken.h
// // MustacheToken.h // OCMustache // // Created by Wesley Moore on 31/10/10. // Copyright 2010 Wesley Moore. All rights reserved. // #import <Foundation/Foundation.h> enum mustache_token_type { mustache_token_type_etag = 1, // Escaped tag mustache_token_type_utag, // Unescaped tag mustache_token_type_section...
// // MustacheToken.h // OCMustache // // Created by Wesley Moore on 31/10/10. // Copyright 2010 Wesley Moore. All rights reserved. // #import <Foundation/Foundation.h> enum mustache_token_type { mustache_token_type_etag = 1, // Escaped tag mustache_token_type_utag, // Unescaped tag mustache_token_type_section...
Fix type mismatch between property and ivar
Fix type mismatch between property and ivar
C
bsd-3-clause
wezm/OCMustache,wezm/OCMustache
d4754ea5df0dc77ad9de3d05a36e89ed2a7ebd9b
src/libcsg/modules/io/gmxtopologyreader.h
src/libcsg/modules/io/gmxtopologyreader.h
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
Add unitconverter include to gmx top reader
Add unitconverter include to gmx top reader
C
apache-2.0
MrTheodor/csg,MrTheodor/csg,votca/csg,MrTheodor/csg,votca/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,votca/csg
c33b5c9ef5b597850f66c66e8b68451f15adcfe7
libyaul/scu/bus/a/cs0/dram-cartridge/dram-cartridge.h
libyaul/scu/bus/a/cs0/dram-cartridge/dram-cartridge.h
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <mrko@eecs.berkeley.edu> */ #ifndef _DRAM_CARTRIDGE_H__ #define _DRAM_CARTRIDGE_H__ extern void dram_init(void); #endif /* !_DRAM_CARTRIDGE_H_
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <mrko@eecs.berkeley.edu> */ #ifndef _DRAM_CARTRIDGE_H__ #define _DRAM_CARTRIDGE_H__ extern void dram_cartridge_init(void); #endif /* !_DRAM_CARTRIDGE_H_
Change incorrect prototype from 'dram_init(void)' to 'dram_cartridge_init(void)'
Change incorrect prototype from 'dram_init(void)' to 'dram_cartridge_init(void)'
C
mit
ChillyWillyGuru/libyaul,ChillyWillyGuru/libyaul
4a882fe26dab76ae7b0c89459a5808cfef99055a
libyaul/kernel/mm/slob.h
libyaul/kernel/mm/slob.h
/* * Copyright (c) 2012 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #ifndef _SLOB_H_ #define _SLOB_H_ #include <stddef.h> /*- * Restrictions * * 1. Allocation requests bigger than SLOB_PAGE_BREAK_2ND cannot be * serviced. This is due to the memory block manager...
/* * Copyright (c) 2012 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #ifndef _SLOB_H_ #define _SLOB_H_ #include <stddef.h> /*- * Restrictions * * 1. Heap size limit: Allocation requests bigger than * SLOB_PAGE_BREAK_2ND cannot be serviced. This is due to the * ...
Change hard limit on heap
Change hard limit on heap
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
8b3bd1defc7baa4537528fb45e7f8f365407992a
NUCLEO_L053R8/Button_HAL/src/main.c
NUCLEO_L053R8/Button_HAL/src/main.c
/** * Using the HAL library */ #include "stm32l0xx.h" #include "stm32l0xx_nucleo.h" int main(void) { HAL_Init(); BSP_LED_Init(LED2); while (1) { BSP_LED_Toggle(LED2); HAL_Delay(500); } }
/** * Using the HAL library */ #include "stm32l0xx.h" #include "stm32l0xx_nucleo.h" GPIO_InitTypeDef GPIO_InitStructure; int main(void) { HAL_Init(); BSP_LED_Init(LED2); // Initialise the button (PC13) __HAL_RCC_GPIOC_CLK_ENABLE(); GPIO_InitStructure.Pin = GPIO_PIN_13; GPIO_InitStructure.Mode = GPIO_MODE_IN...
Read the button with the HAL library
Read the button with the HAL library
C
mit
theapi/stm32,theapi/stm32
6e5eac20ada828fb2fbcd6fd262fe07e3d16fc54
TTKMobile/musicmobileglobaldefine.h
TTKMobile/musicmobileglobaldefine.h
#ifndef MUSICMOBILEGLOBALDEFINE_H #define MUSICMOBILEGLOBALDEFINE_H /* ================================================= * This file is part of the TTK Music Player project * Copyright (c) 2015 - 2017 Greedysky Studio * All rights reserved! * Redistribution and use of the source code or any derivative * works are...
#ifndef MUSICMOBILEGLOBALDEFINE_H #define MUSICMOBILEGLOBALDEFINE_H /* ================================================= * This file is part of the TTK Music Player project * Copyright (c) 2015 - 2017 Greedysky Studio * All rights reserved! * Redistribution and use of the source code or any derivative * works are...
Fix dll import name error[132001]
Fix dll import name error[132001]
C
lgpl-2.1
Greedysky/Musicplayer,Greedysky/Musicplayer,Greedysky/Musicplayer
4e0739eb319e4283da0616ac64bd2d65168861ef
src/backend/utils/resource_manager/resource_manager.c
src/backend/utils/resource_manager/resource_manager.c
/*------------------------------------------------------------------------- * * resource_manager.c * GPDB resource manager code. * * * Copyright (c) 2006-2017, Greenplum inc. * * ------------------------------------------------------------------------- */ #include "postgres.h" #include "utils/guc.h" #inclu...
/*------------------------------------------------------------------------- * * resource_manager.c * GPDB resource manager code. * * * Copyright (c) 2006-2017, Greenplum inc. * * ------------------------------------------------------------------------- */ #include "postgres.h" #include "utils/guc.h" #inclu...
Initialize global var to avoid macOS linker error
Initialize global var to avoid macOS linker error The macOS ld64 linker has an assertion on empty DATA segments within linker Atoms. This assertion trips on the resource_manager since it only contains uninitialized variables placed for the BSS segment. This fails linking the backend on the resource_manager SUBSYS obje...
C
apache-2.0
xinzweb/gpdb,xinzweb/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Quikling/gpdb,50wu/gpdb,cjcjameson/gpdb,janebeckman/gpdb,50wu/gpdb,janebeckman/gpdb,ashwinstar/gpdb,Chibin/gpdb,yuanzhao/gpdb,50wu/gpdb,cjcjameson/gpdb,50wu/gpdb,Quikling/gpdb,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,edespino/gpdb,jmcatamney/gpdb,edespino/gpdb...
4cc26f6ae19b096bae1ec8309671bb415997786c
c_solutions_1-10/Euler_1.c
c_solutions_1-10/Euler_1.c
#include <stdio.h> #include <time.h> int multiples_three_five(int limit) { long total = 0; int i; for (i=1; i < limit; i++) total += i % 3 == 0 || i % 5 == 0 ? i : 0; return total; } int main(void) { clock_t start, stop; start = clock(); long ans = multiples_three_five(1000); ...
#include <time.h> #include <stdio.h> #define NANO 10000000000 int multiples_three_five(int limit) { long total = 0; for (int i=1; i < limit; i++) total += i % 3 == 0 || i % 5 == 0 ? i : 0; return total; } int main(void) { struct timespec start; clock_gettime(CLOCK_REALTIME, &start); ...
Use WALL time for timer
Use WALL time for timer
C
mit
tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler
65931e9f800a97f9fa8af4aa8c26b2ed04ed8eb2
src/condor_includes/condor_collector.h
src/condor_includes/condor_collector.h
#ifndef __COLLECTOR_H__ #define __COLLECTOR_H__ #include "sched.h" enum AdTypes { STARTD_AD, SCHEDD_AD, MASTER_AD, GATEWAY_AD, CKPT_SRVR_AD, NUM_AD_TYPES }; // collector commands const int UPDATE_STARTD_AD = 0; const int UPDATE_SCHEDD_AD = 1; const int UPDATE_MASTER_AD = 2;...
#ifndef __COLLECTOR_H__ #define __COLLECTOR_H__ #include "sched.h" enum AdTypes { STARTD_AD, SCHEDD_AD, MASTER_AD, GATEWAY_AD, CKPT_SRVR_AD, NUM_AD_TYPES }; #include "condor_commands.h" // collector commands #endif // __COLLECTOR_H__
Use condor_commands.h instead of defining commands here.
Use condor_commands.h instead of defining commands here.
C
apache-2.0
clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,htcondor/htcondor,bbockelm/condor-network-accounting,djw8605/condor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,htcondor/htcondor...
d4b91732699737c33c64d949015e0f26bb5f22f2
doxygen/input/doc_hashing.h
doxygen/input/doc_hashing.h
/** * @file * Hashing module documentation file. */ /** * @addtogroup hashing_module Hashing module * * The Hashing module provides one-way hashing functions. Such functions can be * used for creating a hash message authentication code (HMAC) when sending a * message. Such a HMAC can be used in combination wit...
/** * @file * Hashing module documentation file. */ /** * @addtogroup hashing_module Hashing module * * The Hashing module provides one-way hashing functions. Such functions can be * used for creating a hash message authentication code (HMAC) when sending a * message. Such a HMAC can be used in combination wit...
Update doxygen documentation on HMAC
Update doxygen documentation on HMAC
C
apache-2.0
NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls
b0f91c40ff3f623c03b1ecbe5f929d3ef0b1a063
as/target/x86/proc.h
as/target/x86/proc.h
enum args { AIMM = 1, AIMM8, AIMM16, AIMM32, AIMM64, AREG_AX, AREG_AL, AREG_AH, AREG_EAX, AREG_BC, AREG_BL, AREG_BH, AREG_EBX, AREG_CX, AREG_CL, AREG_CH, AREG_ECX, AREG_DX, AREG_DL, AREG_DH, AREG_EDX, AREG_SI, AREG_DI, AREG_SP, AREG_ESP, AREG_EBP, ...
enum args { AIMM = 1, AIMM8, AIMM16, AIMM32, AIMM64, AREG_CS, AREG_DS, AREG_SS, AREG_ES AREG_FS, AREG_GS, AREG_EFLAGS, AREG_AX, AREG_AL, AREG_AH, AREG_EAX, AREG_RAX, AREG_BX, AREG_BL, AREG_BH, AREG_EBX, AREG_RBX, AREG_CX, AREG_CL, AREG_CH, AREG_ECX, A...
Extend list of intel registers
[as] Extend list of intel registers
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
32165dbeaa2f8bac59051b6dc370d478aadc2633
pixeltypes.h
pixeltypes.h
#ifndef __INC_PIXELS_H #define __INC_PIXELS_H #include <stdint.h> struct CRGB { union { struct { uint8_t r; uint8_t g; uint8_t b; }; uint8_t raw[3]; }; }; #ifdef SUPPORT_ARGB struct CARGB { union { struct { uint8_t a; uint8_t g; uint8_t r; uint8_t b; }; uint8_t raw[4]; uint32_t all32; }; }; #endif ...
#ifndef __INC_PIXELS_H #define __INC_PIXELS_H #include <stdint.h> struct CRGB { union { struct { uint8_t r; uint8_t g; uint8_t b; }; uint8_t raw[3]; }; inline uint8_t& operator[] (uint8_t x) __attribute__((always_inline)) { return raw[x]; } }; #ifdef SUPPORT_ARGB struct CARGB { union { struct { uint8_t a;...
Add raw array access to hsv structure, and operator[] operations to hsv and rgb classes
Add raw array access to hsv structure, and operator[] operations to hsv and rgb classes
C
mit
liyanage/FastLED,eshkrab/FastLED-esp32,MattDurr/FastLED,NicoHood/FastLED,PaulStoffregen/FastLED,corbinstreehouse/FastLED,remspoor/FastLED,NicoHood/FastLED,felixLam/FastLED,kcouck/FastLED,neographophobic/FastLED,liyanage/FastLED,remspoor/FastLED,tullo-x86/FastLED,corbinstreehouse/FastLED,MattDurr/FastLED,yaneexy/FastLED...
9dd93ba12825a3aa6af1bfebf40a60292992d971
creator/plugins/docks/componentsdock/componentsdock.h
creator/plugins/docks/componentsdock/componentsdock.h
/* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied ...
/* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied ...
Make creator compile without being on ahiemstra's machine ;)
Make creator compile without being on ahiemstra's machine ;)
C
lgpl-2.1
cgaebel/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,KDE/gluon,KDE/gluon,cgaebel/gluon,KDE/gluon,cgaebel/gluon,cgaebel/gluon
cd4c34d2a078b78ca31fd3bc5cbb210123dce89d
test/CodeGen/struct-passing.c
test/CodeGen/struct-passing.c
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s // RUN: grep 'declare i32 @f0() readnone$' %t // RUN: grep 'declare i32 @f1() readonly$' %t // RUN: grep 'declare void @f2(.* sret)$' %t // RUN: grep 'declare void @f3(.* sret)$' %t // RUN: grep 'declare void @f4(.* byval)$' %t // RUN: grep 'declare void ...
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s // RUN: grep 'declare i32 @f0() readnone ;' %t // RUN: grep 'declare i32 @f1() readonly ;' %t // RUN: grep 'declare void @f2(.* sret) ;' %t // RUN: grep 'declare void @f3(.* sret) ;' %t // RUN: grep 'declare void @f4(.* byval) ;' %t // RUN: grep 'declare ...
Correct this test for the fact that the number of uses is now printed in a comment.
Correct this test for the fact that the number of uses is now printed in a comment. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@112813 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
6c915905f626c257222181886b7420a9a32d3360
src/vast/aliases.h
src/vast/aliases.h
#ifndef VAST_ALIASES_H #define VAST_ALIASES_H #include <cstdint> #include <limits> namespace vast { /// Uniquely identifies a VAST event. using event_id = uint64_t; /// The smallest possible event ID. static constexpr event_id min_event_id = 1; /// The largest possible event ID. static constexpr event_id max_event...
#ifndef VAST_ALIASES_H #define VAST_ALIASES_H #include <cstdint> #include <limits> namespace vast { /// Uniquely identifies a VAST event. using event_id = uint64_t; /// The invalid event ID. static constexpr event_id invalid_event_id = 0; /// The smallest possible event ID. static constexpr event_id min_event_id =...
Add alias for invalid event ID.
Add alias for invalid event ID.
C
bsd-3-clause
mavam/vast,pmos69/vast,mavam/vast,mavam/vast,pmos69/vast,pmos69/vast,vast-io/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast
b90c3bb659a1e0e1f6d1f7715ba96614f25543d3
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // 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 1 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD ...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD ...
Change client version number to 1.2.0.0
Change client version number to 1.2.0.0
C
mit
TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin
ee8e471d1b658635f9873faa1b2b5de41770216f
ghighlighter/gh-datastore.h
ghighlighter/gh-datastore.h
#ifndef GH_DATASTORE_H #define GH_DATASTORE_H #include <sqlite3.h> struct reading { int id; char *title; int readmill_id; int total_pages; }; sqlite3 *gh_datastore_open_db (char *data_dir); int gh_datastore_get_db_version (sqlite3 *db); void gh_datastore_set_db_version (sqlite3 *db, int version); #en...
#ifndef GH_DATASTORE_H #define GH_DATASTORE_H #include <sqlite3.h> typedef struct { int id; char *title; int readmill_id; int total_pages; } Reading; sqlite3 *gh_datastore_open_db (char *data_dir); int gh_datastore_get_db_version (sqlite3 *db); void gh_datastore_set_db_version (sqlite3 *db, int versio...
Use typedef for reading struct
Use typedef for reading struct
C
mit
chdorner/ghighlighter-c
d8d27dc450b5862afa2fbf29579efd70442d0479
sandbox/linux/services/linux_syscalls.h
sandbox/linux/services/linux_syscalls.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. // This header will be kept up to date so that we can compile system-call // policies even when system headers are old. // System call numbers are acc...
// 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. // This header will be kept up to date so that we can compile system-call // policies even when system headers are old. // System call numbers are acc...
Add ABI check for syscall numbers definitions
[MIPS] Add ABI check for syscall numbers definitions In file mips_linux_syscalls.h are definitions of syscall numbers for O32 ABI, so this check is needed in order for Mips architectures with other ABIs to work properly. BUG=400684 TEST=compile sandbox_linux_unittest for MIPS32 and MIPS64 Review URL: https://coderev...
C
bsd-3-clause
ondra-novak/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,littlstar/chromium.src,br...
736dc11a46bbdf20c807bca3e7585367c1fbc117
lib/ortho/ortho.h
lib/ortho/ortho.h
/* $Id$Revision: */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c)...
/* $Id$Revision: */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c)...
Add to comments; remove use of sinfo from calling routines; adjust code to play well with other routing functions; add framework for handling loops
Add to comments; remove use of sinfo from calling routines; adjust code to play well with other routing functions; add framework for handling loops
C
epl-1.0
kbrock/graphviz,BMJHayward/graphviz,ellson/graphviz,MjAbuz/graphviz,pixelglow/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,tkelman/graphviz,jho1965us/graphviz,pixelglow/graphviz,MjAbuz/graphviz,tkelman/graphviz,ellson/graphviz,kbrock/graphviz,tkelman/graphviz,BMJHayward...
ab7b4a594efab038c9b40f52b0a525c445a25d8d
src/ArticleCellView.h
src/ArticleCellView.h
// // ArticleCellView.h // PXListView // // Adapted from PXListView by Alex Rozanski // Modified by Barijaona Ramaholimihaso // #import <Cocoa/Cocoa.h> #import "PXListViewCell.h" #import "ArticleView.h" @interface ArticleCellView : PXListViewCell { AppController * controller; ArticleView *articleView; NSProg...
// // ArticleCellView.h // PXListView // // Adapted from PXListView by Alex Rozanski // Modified by Barijaona Ramaholimihaso // #import <Cocoa/Cocoa.h> #import "PXListViewCell.h" #import "ArticleView.h" @interface ArticleCellView : PXListViewCell { AppController * controller; ArticleView *articleView; NSProg...
Fix a static analyzer error
Fix a static analyzer error
C
apache-2.0
Feitianyuan/vienna-rss,josh64x2/vienna-rss,lapcat/vienna-rss,Eitot/vienna-rss,aidanamavi/vienna-rss,iamjasonchoi/vienna-rss,tothgy/vienna-rss,barijaona/vienna-rss,ViennaRSS/vienna-rss,Feitianyuan/vienna-rss,barijaona/vienna-rss,iamjasonchoi/vienna-rss,barijaona/vienna-rss,Eitot/vienna-rss,barijaona/vienna-rss,lapcat/vi...
38d665c82ba3dedc51f597f519dac84546588638
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(Headers)
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(H_Unknown) #define HTTPH(a, b) SLTM(b) #include "http_headers.h...
Use http_headers.h to define HTTP header tags for logging
Use http_headers.h to define HTTP header tags for logging git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@90 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
varnish/Varnish-Cache,ajasty-cavium/Varnish-Cache,ssm/pkg-varnish,zhoualbeart/Varnish-Cache,franciscovg/Varnish-Cache,ajasty-cavium/Varnish-Cache,ambernetas/varnish-cache,zhoualbeart/Varnish-Cache,gauthier-delacroix/Varnish-Cache,drwilco/varnish-cache-drwilco,drwilco/varnish-cache-drwilco,ssm/pkg-varnish,feld/Varnish-C...
4ee20e213b952faeaf1beb08b8f78600f6c79f1c
master/mcoils.h
master/mcoils.h
#define _MASTERCOILS #include <inttypes.h> //Functions for building requests extern uint8_t MODBUSBuildRequest01( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest05( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest15( uint8_t, uint16_t, uint16_t, uint8_t * ); //Functions for parsing r...
#define _MASTERCOILS #include <inttypes.h> //Functions for building requests extern uint8_t MODBUSBuildRequest01( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest05( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest15( uint8_t, uint16_t, uint16_t, uint8_t * ); //Functions for parsing r...
Add prototypes for functions for parsing slave's responses
Add prototypes for functions for parsing slave's responses
C
mit
Jacajack/modlib
15c7a4f2089b5688f7ff3be22fd349d8e3530267
test/binaryTreeNode.h
test/binaryTreeNode.h
#include <unordered_set> #include "../src/include/gc_obj.h" #include "../src/include/collector.h" class BinaryTreeNode : public gc_obj { public: BinaryTreeNode(const int id); ~BinaryTreeNode() = delete; int size() const; void curtailToLevel(const int lvl); void extendToLevel(const int size,Collector* collector);...
#include <unordered_set> #include "../src/include/gc_obj.h" class BinaryTreeNode : public gc_obj { public: BinaryTreeNode(const int id); int size() const; void curtailToLevel(const int lvl); void extendToLevel(const int size); void addLeftChild(BinaryTreeNode* leftChild); void addRightChild(BinaryTreeNode* righ...
Remove manual addObject usage from the collector
Remove manual addObject usage from the collector
C
mit
henfredemars/simple-collector
5c443e8dd6db31588d8926af0ebb6dc60501c5f2
src/plugins/render/weather/BBCWeatherItem.h
src/plugins/render/weather/BBCWeatherItem.h
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <bastianholst@gmx.de> // #ifndef BBCWEATHERITEM_H #define BBCWE...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <bastianholst@gmx.de> // #ifndef BBCWEATHERITEM_H #define BBCWE...
Add Q_OBJECT macro (requested by lupdate).
Add Q_OBJECT macro (requested by lupdate). svn path=/trunk/KDE/kdeedu/marble/; revision=1205732
C
lgpl-2.1
David-Gil/marble-dev,oberluz/marble,quannt24/marble,adraghici/marble,tzapzoor/marble,rku/marble,tzapzoor/marble,David-Gil/marble-dev,utkuaydin/marble,probonopd/marble,quannt24/marble,adraghici/marble,oberluz/marble,adraghici/marble,utkuaydin/marble,Earthwings/marble,Earthwings/marble,oberluz/marble,tzapzoor/marble,utku...
b157c4c47402d1086d3324bca15aba09db54e03f
KTp/message-filters-private.h
KTp/message-filters-private.h
#include "message-processor.h" class UrlFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); };
#include "message-processor.h" class UrlFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); }; class ImageFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); }; class EmoticonFilter : public AbstractMessageFilter { virtual void filterMe...
Create headers for ImageFilter and EmoticonFilter
Create headers for ImageFilter and EmoticonFilter
C
lgpl-2.1
KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals
8b22cf8108255c4771386ad3101e0058684cd757
SSPSolution/SSPSolution/DebugHandler.h
SSPSolution/SSPSolution/DebugHandler.h
#ifndef SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #define SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #include <vector> #include <iostream> #include <Windows.h> class DebugHandler { private: std::vector<LARGE_INTEGER> m_timers; std::vector<std::string> m_labels; std::vector<unsigned short int> m_timerMins; std::vector<unsigned...
#ifndef SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #define SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #include <vector> #include <iostream> #include <Windows.h> class DebugHandler { private: std::vector<LARGE_INTEGER> m_timers; std::vector<std::string> m_labels; std::vector<unsigned short int> m_timerMins; std::vector<unsigned...
UPDATE some variable name changes
UPDATE some variable name changes
C
apache-2.0
Chringo/SSP,Chringo/SSP
9e08143850140aa3ebc764c25c8ca85ae7e30bdb
hab/proxr/cb-set-resource.c
hab/proxr/cb-set-resource.c
#include <string.h> #include "proxrcmds.h" #include "sim-hab.h" void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value) { uint8_t data; float content; int id; bionet_node_t *node; bionet_value_get_uint8(value, &data); if(data < 0 || data > 255) return; node = bionet_reso...
#include <string.h> #include "proxrcmds.h" #include "sim-hab.h" void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value) { float data; float content; int id; bionet_node_t *node; bionet_value_get_float(value, &data); if(data < 0 || data > 255) return; node = bionet_resour...
Modify set resource. Using floats now.
Modify set resource. Using floats now.
C
lgpl-2.1
ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead
d826393cdebe340b3716002bfb1298ab19b57e83
include/asm-ia64/resource.h
include/asm-ia64/resource.h
#ifndef _ASM_IA64_RESOURCE_H #define _ASM_IA64_RESOURCE_H #include <asm/ustack.h> #define _STK_LIM_MAX DEFAULT_USER_STACK_SIZE #include <asm-generic/resource.h> #endif /* _ASM_IA64_RESOURCE_H */
#ifndef _ASM_IA64_RESOURCE_H #define _ASM_IA64_RESOURCE_H #include <asm/ustack.h> #include <asm-generic/resource.h> #endif /* _ASM_IA64_RESOURCE_H */
Remove stack hard limit on ia64
[IA64] Remove stack hard limit on ia64 Un-Breaks pthreads, since Oct 2003. Signed-off-by: Olaf Hering <ded022db89399a060a39da31922f173c6556c2d9@aepfle.de> Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org> Signed-off-by: Tony Luck <e7984595ec0368ff920a7b3521dc7093683f6f26@int...
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
312dfd2307f1acc406d61135b91081b3d4115e8a
Settings/Controls/Control.h
Settings/Controls/Control.h
#pragma once #include <Windows.h> #include <functional> #include <string> class Control { public: Control(); Control(int id, HWND parent); ~Control(); virtual RECT Dimensions(); virtual void Enable(); virtual void Disable(); virtual bool Enabled(); virtual void Enabled(bool enabled);...
#pragma once #include <Windows.h> #include <functional> #include <string> class Control { public: Control(); Control(int id, HWND parent); ~Control(); virtual RECT Dimensions(); virtual void Enable(); virtual void Disable(); virtual bool Enabled(); virtual void Enabled(bool enabled);...
Decrease MAX_EDITSTR. Was way too big.
Decrease MAX_EDITSTR. Was way too big.
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX
9db141ce4a4033e3c1ac5b7b69d55ff85d62a27f
libtu/util.h
libtu/util.h
/* * libtu/util.h * * Copyright (c) Tuomo Valkonen 1999-2002. * * You may distribute and modify this library under the terms of either * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. */ #ifndef LIBTU_UTIL_H #define LIBTU_UTIL_H #include <stdarg.h> #include <stdio.h> #include <stdlib.h>...
/* * libtu/util.h * * Copyright (c) Tuomo Valkonen 1999-2002. * * You may distribute and modify this library under the terms of either * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. */ #ifndef LIBTU_UTIL_H #define LIBTU_UTIL_H #include <stdarg.h> #include <stdio.h> #include <stdlib.h>...
Document (lack of) character encoding rules in the API
Document (lack of) character encoding rules in the API
C
lgpl-2.1
p5n/notion,dkogan/notion.xfttest,anoduck/notion,anoduck/notion,raboof/notion,knixeur/notion,p5n/notion,dkogan/notion.xfttest,dkogan/notion,dkogan/notion,dkogan/notion.xfttest,neg-serg/notion,anoduck/notion,dkogan/notion,raboof/notion,anoduck/notion,knixeur/notion,dkogan/notion,anoduck/notion,knixeur/notion,neg-serg/not...
95d75ab83bf01bea87cc27af747e6da9c6c4b19d
ProcessLauncher/Util.h
ProcessLauncher/Util.h
#pragma once #include <type_traits> namespace ugly { template<typename T> constexpr const bool is_enum_flag = false; template<typename T = typename std::enable_if<is_enum_flag<T>, T>::type> class auto_bool { private: T val_; public: constexpr auto_bool(T val) : val_(val) {} ...
#pragma once #include <type_traits> namespace ugly { template<typename T> constexpr const bool is_enum_flag = false; template<typename T, typename = typename std::enable_if<is_enum_flag<T>>::type> class auto_bool { private: T val_; public: constexpr auto_bool(T val) : val_(val...
Fix bad template SFINAE declaration
Fix bad template SFINAE declaration
C
mit
Ilod/ugly,Ilod/ugly,Ilod/ugly
f3994034c767f5c181d09bdb08e395eb11dfe18e
tests/embedded/main.c
tests/embedded/main.c
/* * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 * Copyright © 2009 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <hwloc.h> #include <stdio.h> int main(int argc, char *argv[]) { mytest_hwloc_topology_t topology; unsigned depth; hwloc_cpuset_t cpu_s...
/* * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 * Copyright © 2009 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <hwloc.h> #include <stdio.h> int main(int argc, char *argv[]) { mytest_hwloc_topology_t topology; unsigned depth; hwloc_cpuset_t cpu_s...
Add some more print statements to this test, just to help differentiate the output when debugging is enabled
Add some more print statements to this test, just to help differentiate the output when debugging is enabled git-svn-id: 14be032f8f42541b1a281b51ae8ea69814daf20e@1752 4b44e086-7f34-40ce-a3bd-00e031736276
C
bsd-3-clause
BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc
d9ace0273fba4d7da6da20f36183c2b9bf1ad305
libevmjit/Common.h
libevmjit/Common.h
#pragma once #include <vector> #include <boost/multiprecision/cpp_int.hpp> namespace dev { namespace eth { namespace jit { using byte = uint8_t; using bytes = std::vector<byte>; using u256 = boost::multiprecision::uint256_t; using bigint = boost::multiprecision::cpp_int; struct NoteChannel {}; // FIXME: Use some lo...
#pragma once #include <vector> #include <boost/multiprecision/cpp_int.hpp> namespace dev { namespace eth { namespace jit { using byte = uint8_t; using bytes = std::vector<byte>; using u256 = boost::multiprecision::uint256_t; using bigint = boost::multiprecision::cpp_int; struct NoteChannel {}; // FIXME: Use some lo...
Fix some GCC initialization warnings
Fix some GCC initialization warnings
C
mit
ethereum/evmjit,ethereum/evmjit,ethereum/evmjit
af65de668c8b6ab55e46e07ca5235feee23e86dc
src/GameState.h
src/GameState.h
/****************************************************************************** GameState.h Game State Management Copyright (c) 2013 Jeffrey Carpenter Portions Copyright (c) 2013 Fielding Johnston ******************************************************************************/ #ifndef GAMEAPP_GAMESTATE_HEA...
/****************************************************************************** GameState.h Game State Management Copyright (c) 2013 Jeffrey Carpenter Portions Copyright (c) 2013 Fielding Johnston ******************************************************************************/ #ifndef GAMEAPP_GAMESTATE_HEA...
Rename of Input to HandleInput
Rename of Input to HandleInput
C
bsd-2-clause
i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib
6530ca82a95042e90d3cb6147472c8f9768dbfda
nbip4.c
nbip4.c
#define _BSD_SOURCE #include <stdio.h> #include <arpa/inet.h> #include <netinet/ip.h> #include "config.h" #include "common.h" void printpkt(void) { struct ip *iphdr = (struct ip *) pkt; printf("ip.version=%d " "ip.ihl=%d " "ip.tos=%02x " "ip.length=%d " "ip.id=%d " "ip.flags=%d%c%c " "ip.offset...
#define _BSD_SOURCE #include <stdio.h> #include <arpa/inet.h> #include <netinet/ip.h> #include "config.h" #include "common.h" void printpkt(void) { struct ip *iphdr = (struct ip *) pkt; printf("ip.version=%u " "ip.ihl=%u " "ip.tos=%02x " "ip.length=%u " "ip.id=%u " "ip.flags=%u%c%c " "ip.offset...
Change printf format %d -> %u
Change printf format %d -> %u
C
mit
grn/netbox,grn/netbox
8cb2fd424309fa6ff70cf00bfcedc4e66d3355c0
platforms/app_fuzz/fuzzer.c
platforms/app_fuzz/fuzzer.c
// // Wasm3 - high performance WebAssembly interpreter written in C. // // Copyright © 2019 Steven Massey, Volodymyr Shymanskyy. // All rights reserved. // #include <stdint.h> #include <stddef.h> #include "wasm3.h" #define FATAL(...) __builtin_trap() int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {...
// // Wasm3 - high performance WebAssembly interpreter written in C. // // Copyright © 2019 Steven Massey, Volodymyr Shymanskyy. // All rights reserved. // #include <stdint.h> #include <stddef.h> #include "wasm3.h" #define FATAL(...) __builtin_trap() int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {...
Disable function execution for now, to focus on parsing issues
Disable function execution for now, to focus on parsing issues
C
mit
wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3
649f41482e6114d7bdd67afc311a0eea06cbdeaa
samples/Qt/basic/mythread.h
samples/Qt/basic/mythread.h
#ifndef MYTHREAD_H #define MYTHREAD_H #include <QThread> #include "easylogging++.h" class MyThread : public QThread { Q_OBJECT public: MyThread(int id) : threadId(id) {} private: int threadId; protected: void run() { LINFO <<"Writing from a thread " << threadId; LVERBOSE(2) << "This ...
#ifndef MYTHREAD_H #define MYTHREAD_H #include <QThread> #include "easylogging++.h" class MyThread : public QThread { Q_OBJECT public: MyThread(int id) : threadId(id) {} private: int threadId; protected: void run() { LINFO <<"Writing from a thread " << threadId; LVERBOSE(2) << "This ...
Remove logger ids loop from sample
Remove logger ids loop from sample
C
mit
orchid-hybrid/easyloggingpp,orchid-hybrid/easyloggingpp,orchid-hybrid/easyloggingpp
b6c2b3c712ab2b879b727fdb02dba169695de698
src/host/os_isfile.c
src/host/os_isfile.c
/** * \file os_isfile.c * \brief Returns true if the given file exists on the file system. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <sys/stat.h> #include "premake.h" int os_isfile(lua_State* L) { const char* filename = luaL_checkstring(L, 1); lua_pushboolean(L, do_...
/** * \file os_isfile.c * \brief Returns true if the given file exists on the file system. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <sys/stat.h> #include "premake.h" int os_isfile(lua_State* L) { const char* filename = luaL_checkstring(L, 1); lua_pushboolean(L, do_...
Fix do_isfile to support symbolic links on Windows.
Fix do_isfile to support symbolic links on Windows.
C
bsd-3-clause
mendsley/premake-core,noresources/premake-core,CodeAnxiety/premake-core,bravnsgaard/premake-core,starkos/premake-core,bravnsgaard/premake-core,mendsley/premake-core,TurkeyMan/premake-core,premake/premake-core,noresources/premake-core,resetnow/premake-core,noresources/premake-core,noresources/premake-core,starkos/premak...
b7ce10aacc06b17d1e47c6da0d00a570e8517566
kmail/kmversion.h
kmail/kmversion.h
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.8.91" #endif /*kmversion_h*/
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.9.50" #endif /*kmversion_h*/
Use a fresh version number for the trunk version
Use a fresh version number for the trunk version svn path=/trunk/KDE/kdepim/; revision=466318
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
f7ee1dbbeb58a7d59fde269e7f11ffbf2e3e9e4a
src/lib/annis/join/nestedloop.h
src/lib/annis/join/nestedloop.h
#pragma once #include <annis/types.h> #include <annis/graphstorage/graphstorage.h> #include <annis/db.h> #include <annis/iterators.h> namespace annis { class Operator; /** * A join that checks all combinations of the left and right matches if their are connected. * * @param lhsIdx the column of the ...
#pragma once #include <annis/types.h> #include <annis/graphstorage/graphstorage.h> #include <annis/db.h> #include <annis/iterators.h> #include <deque> namespace annis { class Operator; /** * A join that checks all combinations of the left and right matches if their are connected. * * @param lhsIdx t...
Use a deque instead of a list as inner cache in nested loop.
Use a deque instead of a list as inner cache in nested loop.
C
apache-2.0
thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS
72ff7ba9c9ed6436625c27b2616d1efb0f782a0a
Pathfinder-Core/include/pathfinder.h
Pathfinder-Core/include/pathfinder.h
#ifndef PATHFINDER_H_DEF #define PATHFINDER_H_DEF #include "pathfinder/mathutil.h" #include "pathfinder/structs.h" #include "pathfinder/fit.h" #include "pathfinder/spline.h" #include "pathfinder/trajectory.h" #include "pathfinder/modifiers/tank.h" #include "pathfinder/modifiers/swerve.h" #include "pathfinder/follow...
#ifndef PATHFINDER_H_DEF #define PATHFINDER_H_DEF #ifdef __cplusplus extern "C" { #endif #include "pathfinder/mathutil.h" #include "pathfinder/structs.h" #include "pathfinder/fit.h" #include "pathfinder/spline.h" #include "pathfinder/trajectory.h" #include "pathfinder/modifiers/tank.h" #include "pathfinder/modifier...
Use extern C if C++
Use extern C if C++
C
mit
JacisNonsense/Pathfinder,JacisNonsense/Pathfinder,JacisNonsense/Pathfinder
c5bac4e6a4c55baedd93abb0b9e0ad0dcc93a2f3
macos/compat/sys/types.h
macos/compat/sys/types.h
#ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ 1 #include <MacTypes.h> #include <alloca.h> #include <string.h> typedef short int16_t; typedef long int32_t; typedef long long int64_t; #define vorbis_size32_t long #if defined(__cplusplus) extern "C" { #endif #pragma options ali...
#ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ 1 #include <MacTypes.h> #include <alloca.h> #include <string.h> typedef short int16_t; // typedef long int32_t; typedef long long int64_t; #define vorbis_size32_t long #if defined(__cplusplus) extern "C" { #endif #pragma options ...
Fix osx build (this is going to be removed soon anyways)
Fix osx build (this is going to be removed soon anyways)
C
bsd-3-clause
jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis
6944671e2648a0bf4b380865227c3486b0c83612
pzlib.h
pzlib.h
#ifndef PZLIB_H #define PZLIB_H typedef unsigned int psize_type; typedef int pssize_type; typedef pssize_type writerfunc(void *cookie, const void *buf, psize_type len); typedef void closefunc(void*); struct pz { writerfunc *wf; closefunc *cf; }; inline pssize_type do_write(void *cookie, const void *buf, psiz...
#ifndef PZLIB_H #define PZLIB_H typedef unsigned int psize_type; typedef int pssize_type; typedef pssize_type writerfunc(void *cookie, const void *buf, psize_type len); typedef void closefunc(void*); struct pz { writerfunc *wf; closefunc *cf; }; static inline pssize_type do_write(void *cookie, const void *bu...
Replace inline with static inline to enable DEBUG build (linking actually)
Replace inline with static inline to enable DEBUG build (linking actually) It's all about bloody C89 vs C99 semantic...
C
mit
yandex/sdch_module,yandex/sdch_module,yandex/sdch_module,yandex/sdch_module
65fe3d63f25760fa643c39d665bad6ead63a3e08
queue.c
queue.c
#include "queue.h" struct Queue { size_t head; size_t tail; size_t size; void** e; }; Queue* Queue_Create(size_t n) { Queue* q = (Queue *)malloc(sizeof(Queue)); q->size = n; q->head = q->tail = 1; q->e = (void **)malloc(sizeof(void*) * (n + 1)); return q; }
#include "queue.h" struct Queue { size_t head; size_t tail; size_t size; void** e; }; Queue* Queue_Create(size_t n) { Queue* q = (Queue *)malloc(sizeof(Queue)); q->size = n; q->head = q->tail = 1; q->e = (void **)malloc(sizeof(void*) * (n + 1)); return q; } int Queue_Empty(Queue* q) { return (q->head == q-...
Add helper function Queue empty implementation
Add helper function Queue empty implementation
C
mit
MaxLikelihood/CADT
ddd0a6ac92572a6e6016f5fbc9fda7eaedc7b114
numpy/core/src/multiarray/buffer.h
numpy/core/src/multiarray/buffer.h
#ifndef _NPY_PRIVATE_BUFFER_H_ #define _NPY_PRIVATE_BUFFER_H_ #ifdef NPY_ENABLE_MULTIPLE_COMPILATION extern NPY_NO_EXPORT PyBufferProcs array_as_buffer; #else NPY_NO_EXPORT PyBufferProcs array_as_buffer; #endif #endif
#ifndef _NPY_PRIVATE_BUFFER_H_ #define _NPY_PRIVATE_BUFFER_H_ #ifdef NPY_ENABLE_SEPARATE_COMPILATION extern NPY_NO_EXPORT PyBufferProcs array_as_buffer; #else NPY_NO_EXPORT PyBufferProcs array_as_buffer; #endif #endif
Fix mispelled separate compilation macro.
Fix mispelled separate compilation macro.
C
bsd-3-clause
numpy/numpy-refactor,ESSS/numpy,mhvk/numpy,ddasilva/numpy,gmcastil/numpy,sonnyhu/numpy,dwf/numpy,Srisai85/numpy,cjermain/numpy,mindw/numpy,GrimDerp/numpy,matthew-brett/numpy,anntzer/numpy,jorisvandenbossche/numpy,felipebetancur/numpy,mingwpy/numpy,SiccarPoint/numpy,rherault-insa/numpy,pbrod/numpy,pelson/numpy,has2k1/nu...
7a332a1a17f9026e27b7df22bb44d6532f4232b6
modlib.c
modlib.c
#include "modlib.h" uint16_t MODBUSSwapEndian( uint16_t Data ) { //Change big-endian to little-endian and vice versa uint8_t Swap; //Create 2 bytes long union union Conversion { uint16_t Data; uint8_t Bytes[2]; } Conversion; //Swap bytes Conversion.Data = Data; Swap = C...
#include "modlib.h" uint16_t MODBUSSwapEndian( uint16_t Data ) { //Change big-endian to little-endian and vice versa uint8_t Swap; //Create 2 bytes long union union Conversion { uint16_t Data; uint8_t Bytes[2]; } Conversion; //Swap bytes Conversion.Data = Data; Swap = C...
Add cast to uint16_t in CRC function
Add cast to uint16_t in CRC function
C
mit
Jacajack/modlib
2240257c7f7cb075b43e844bae0749bd59005c80
src/GNSMenuDelegate.h
src/GNSMenuDelegate.h
#import <Cocoa/Cocoa.h> #include <gtk/gtk.h> #if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6) @interface _GNSMenuDelegate : NSObject <NSMenuDelegate> {} #else @interface _GNSMenuDelegate : NSObject {} #endif @end
#import <Cocoa/Cocoa.h> #include <gtk/gtk.h> #if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5) @interface _GNSMenuDelegate : NSObject <NSMenuDelegate> {} #else @interface _GNSMenuDelegate : NSObject {} #endif @end
Fix minimum version to one that exists in 10.5
Fix minimum version to one that exists in 10.5
C
lgpl-2.1
sharoonthomas/gtk-mac-integration,GNOME/gtk-mac-integration,jralls/gtk-mac-integration,GNOME/gtk-mac-integration,jralls/gtk-mac-integration,sharoonthomas/gtk-mac-integration,GNOME/gtk-mac-integration,jralls/gtk-mac-integration,sharoonthomas/gtk-mac-integration,sharoonthomas/gtk-mac-integration,sharoonthomas/gtk-mac-int...
b94bcd4c0aa74f4f963aec368f8417add005fafe
lilthumb.h
lilthumb.h
#ifndef lilthumb #define lilthumb #include <ctime> namespace lilthumb{ std::string timeString() { time_t rawtime; struct tm * timeinfo; char buffer[80]; time (&rawtime); timeinfo = localtime(&rawtime); strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo); std::string str(buffer); return str; } } #defi...
#ifndef lilthumb #define lilthumb #include <ctime> #include <ostream> namespace lilthumb{ std::string timeString() { time_t rawtime; struct tm * timeinfo; char buffer[80]; time (&rawtime); timeinfo = localtime(&rawtime); strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo); std::string str(buffer); re...
Change logger define to namespace stone function
Change logger define to namespace stone function
C
apache-2.0
jeromevelut/lilthumb
3ea520fdbc396ba8d1b859b669d8c16ee34820ad
util/parser/conf.h
util/parser/conf.h
#ifndef __LWP_CONFIG_H #define __LWP_CONFIG_H #include <stdint.h> #include <stdbool.h> typedef enum{ CFLAG_NWKSKEY = (1<<0), CFLAG_APPSKEY = (1<<1), CFLAG_APPKEY = (1<<2), CFLAG_JOINR = (1<<3), CFLAG_JOINA = (1<<4), }config_flag_t; typedef struct message{ uint8_t *buf; ...
#ifndef __LWP_CONFIG_H #define __LWP_CONFIG_H #include <stdint.h> #include <stdbool.h> typedef enum{ CFLAG_NWKSKEY = (1<<0), CFLAG_APPSKEY = (1<<1), CFLAG_APPKEY = (1<<2), CFLAG_JOINR = (1<<3), CFLAG_JOINA = (1<<4), }config_flag_t; typedef struct message{ uint8_t *buf; ...
Add motes_abp and motes_otaa link list structure definition.
Add motes_abp and motes_otaa link list structure definition.
C
mit
JiapengLi/lorawan-parser,JiapengLi/lorawan-parser
053300cfd6d2800cd3f744b1ffe4deca6c04082c
interpreter/cling/include/cling/Interpreter/RuntimeExceptions.h
interpreter/cling/include/cling/Interpreter/RuntimeExceptions.h
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_RUNTIME_EXCEPTIONS_...
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_RUNTIME_EXCEPTIONS_...
Add missing header method declarations.
Add missing header method declarations.
C
lgpl-2.1
sirinath/root,esakellari/root,gganis/root,omazapa/root-old,cxx-hep/root-cern,CristinaCristescu/root,nilqed/root,CristinaCristescu/root,root-mirror/root,sbinet/cxx-root,gganis/root,sawenzel/root,mattkretz/root,thomaskeck/root,buuck/root,abhinavmoudgil95/root,veprbl/root,esakellari/root,agarciamontoro/root,pspe/root,omaz...
aa81908f7a649ade93036b5f30b91307e20cb464
include/clang/Rewrite/ASTConsumers.h
include/clang/Rewrite/ASTConsumers.h
//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix typo spotted by Nico Weber.
Fix typo spotted by Nico Weber. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@117870 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
3a5041e79cbd70903d43608296e5b74e6473bd13
config.h
config.h
/* Uncomment to compile with tcpd/libwrap support. */ //#define WITH_WRAP /* Compile with database upgrading support? If disabled, mosquitto won't * automatically upgrade old database versions. */ #define WITH_DB_UPGRADE /* Compile with memory tracking support? If disabled, mosquitto won't track * heap memory usage...
/* Uncomment to compile with tcpd/libwrap support. */ //#define WITH_WRAP /* Compile with database upgrading support? If disabled, mosquitto won't * automatically upgrade old database versions. */ //#define WITH_DB_UPGRADE /* Compile with memory tracking support? If disabled, mosquitto won't track * heap memory usa...
Disable db upgrade code for the moment.
Disable db upgrade code for the moment.
C
bsd-3-clause
tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto
d3e46ddf119944613580925c30d38a0dfa8f380e
test/CodeGen/pr5406.c
test/CodeGen/pr5406.c
// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | FileCheck %s // PR 5406 // XFAIL: * // XTARGET: arm typedef struct { char x[3]; } A0; void foo (int i, ...); // CHECK: call void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind int main (void) { A0 a3; a3.x[0] = 0; a3.x[0] = 0; a3.x[2] = 26; foo (1, a3 ); return...
// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s // PR 5406 typedef struct { char x[3]; } A0; void foo (int i, ...); // CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}}) int main (void) { A0 a3; a3.x[0] = 0; a3.x[0] = 0; a3.x[2] = 26; foo (1, a3 ); retu...
Add a triple to this test and make sure it passes on arm where it was supposed to.
Add a triple to this test and make sure it passes on arm where it was supposed to. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136305 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
56b0b9bc9059bb25a5d7ea2ab8723f63fe1fed9f
src/Pomade.c
src/Pomade.c
#include "pebble_os.h" #include "pebble_app.h" #include "pebble_fonts.h" #define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 } PBL_APP_INFO(MY_UUID, "Pomade", "Jon Speicher", 0, 1, /* App version */ DEFAULT_MENU_ICON, ...
#include "pebble_os.h" #include "pebble_app.h" #include "pebble_fonts.h" #define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 } PBL_APP_INFO(MY_UUID, "Pomade", "Jon Speicher", 0, 1, /* App version */ DEFAULT_MENU_ICON, ...
Add framework timer code from Pebble feature_timer demo app
Add framework timer code from Pebble feature_timer demo app
C
mit
jonspeicher/Pomade,jonspeicher/Pomade,elliots/simple-demo-pebble
c8801b3611431a17c12c8b0842230ff8cf31033f
compiler/native/src/class/function_header.h
compiler/native/src/class/function_header.h
namespace NJS::Class { class Function { public: int cnt = 0; string code = "[native code]"; void Delete(); Function(void *_f); void *__NJS_VALUE; vector<pair<const char *, NJS::VAR>> __OBJECT; template <class... Args> NJS::VAR operator()(Args... args); explicit NJS::Class::Function::operator std::s...
namespace NJS::Class { class Function { public: int cnt = 0; string code = "[native code]"; void Delete(); Function(void *_f); void *__NJS_VALUE; vector<pair<const char *, NJS::VAR>> __OBJECT; template <class... Args> NJS::VAR operator()(Args... args); explicit operator std::string() const { r...
Add function.toString() and source code if --debug
Add function.toString() and source code if --debug
C
mit
seraum/nectarjs,seraum/nectarjs,seraum/nectarjs,seraum/nectarjs,seraum/nectarjs
685cc22bc92f5b35c9ec6fcc7fe8e65bda3ecf1e
src/math/p_asin.c
src/math/p_asin.c
#include <pal.h> /** * * Caclulates the inverse sine (arc sine) of the argument 'a'. Arguments must be * in the range -1 to 1. The function does not check for illegal input values. * Results are in the range -pi/2 to pi/2. * * @param a Pointer to input vector * * @param c Pointer to output vector * *...
#include <math.h> #include <pal.h> static const float pi_2 = (float) M_PI / 2.f; /* * 0 <= x <= 1 * asin x = pi/2 - (1 - x)^(1/2) * (a0 + a1 * x + ... + a3 * x^3) + e(x) * |e(x)| <= 5 * 10^-5 */ static inline float __p_asin_pos(const float x) { const float a0 = 1.5707288f; const float a1 = -0.2121144f; ...
Implement the inverse sine function.
math:asin: Implement the inverse sine function. Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
C
apache-2.0
debug-de-su-ka/pal,8l/pal,eliteraspberries/pal,Adamszk/pal3,8l/pal,Adamszk/pal3,Adamszk/pal3,aolofsson/pal,debug-de-su-ka/pal,mateunho/pal,parallella/pal,parallella/pal,8l/pal,aolofsson/pal,debug-de-su-ka/pal,olajep/pal,mateunho/pal,8l/pal,eliteraspberries/pal,olajep/pal,parallella/pal,parallella/pal,debug-de-su-ka/pal...
70c33ced375baeccbb500446a861c7a61d04abc2
tools/regression/bpf/bpf_filter/tests/test0083.h
tools/regression/bpf/bpf_filter/tests/test0083.h
/*- * Test 0083: Check that the last instruction is BPF_RET. * * $FreeBSD$ */ /* BPF program */ struct bpf_insn pc[] = { BPF_JUMP(BPF_JMP+BPF_JA, 0, 0, 0), }; /* Packet */ u_char pkt[] = { 0x00, }; /* Packet length seen on wire */ u_int wirelen = sizeof(pkt); /* Packet length passed on buffer */ u_int buflen ...
/*- * Test 0083: Check that the last instruction is BPF_RET. * * $FreeBSD$ */ /* BPF program */ struct bpf_insn pc[] = { BPF_STMT(BPF_LD|BPF_IMM, 0), }; /* Packet */ u_char pkt[] = { 0x00, }; /* Packet length seen on wire */ u_int wirelen = sizeof(pkt); /* Packet length passed on buffer */ u_int buflen = size...
Adjust a test case and make it more jump optimization neutral for JIT case.
Adjust a test case and make it more jump optimization neutral for JIT case.
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
ce580a9f30cc5d4058cb650498efe21b63f39d65
src/toolbox/tbx/dns_cache.h
src/toolbox/tbx/dns_cache.h
/* Copyright 2016 Vanderbilt University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
/* Copyright 2016 Vanderbilt University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Add enough space in DNS cache for IPV6
Add enough space in DNS cache for IPV6 We have code supporting IPV6, but the structs only have enough space for IPV4.
C
apache-2.0
PerilousApricot/lstore,accre/lstore,accre/lstore,PerilousApricot/lstore,tacketar/lstore,tacketar/lstore,PerilousApricot/lstore,accre/lstore,tacketar/lstore,accre/lstore,tacketar/lstore,PerilousApricot/lstore
70beeb5a61cbf12a59000c8fd1e56c638e3a6aa4
src/hardware_dep/dpdk/data_plane/dpdkx_hash.c
src/hardware_dep/dpdk/data_plane/dpdkx_hash.c
// SPDX-License-Identifier: Apache-2.0 // Copyright 2021 Eotvos Lorand University, Budapest, Hungary #include "dpdk_model_v1model.h" #include "util_packet.h" #include "util_debug.h" #include "dpdk_lib.h" #include "stateful_memory.h" #include <rte_ip.h> void hash(uint16_t* result, enum_HashAlgorithm_t hash, uint16_t...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2021 Eotvos Lorand University, Budapest, Hungary #include "dpdk_model_v1model.h" #include "util_packet.h" #include "util_debug.h" #include "dpdk_lib.h" #include "stateful_memory.h" #include "rte_hash_crc.h" #include <rte_ip.h> void hash(uint16_t* result, enum_Has...
Add crc32 and identity hash functions
Add crc32 and identity hash functions
C
apache-2.0
P4ELTE/t4p4s,P4ELTE/t4p4s,P4ELTE/t4p4s
128380f9f4693249367c5b34ea67507fd2e822c5
src/ext/mruby_UI_control_hierarchy.c
src/ext/mruby_UI_control_hierarchy.c
{ struct RClass *Control_class = mrb_define_class_under(mrb, UI_module(mrb), "Control", mrb->object_class); #define CONTROL_SUBCLASS(name) { struct RClass* subclass = mrb_define_class_under(mrb, UI_module(mrb), #name, Control_class); } CONTROL_SUBCLASS(Area) CONTROL_SUBCLASS(Box) CONTROL_SUBCLASS(Button) CONT...
{ struct RClass *Control_class = mrb_define_class_under(mrb, UI_module(mrb), "Control", mrb->object_class); #define CONTROL_SUBCLASS(name) { mrb_define_class_under(mrb, UI_module(mrb), #name, Control_class); } CONTROL_SUBCLASS(Area) CONTROL_SUBCLASS(Box) CONTROL_SUBCLASS(Button) CONTROL_SUBCLASS(Checkbox) C...
Address compiler warning - unused variable
Address compiler warning - unused variable
C
mit
jbreeden/mruby-ui,jbreeden/mruby-ui,jbreeden/mruby-ui
7bc887f8c78d37decdb91612decd7dfd463c9727
UIColor-Expanded.h
UIColor-Expanded.h
#import <UIKit/UIKit.h> #define SUPPORTS_UNDOCUMENTED_API 1 @interface UIColor (expanded) - (CGColorSpaceModel) colorSpaceModel; - (NSString *) colorSpaceString; - (BOOL) canProvideRGBComponents; - (NSArray *) arrayFromRGBAComponents; - (CGFloat) red; - (CGFloat) blue; - (CGFloat) green; - (CGFloat) alpha; - (NSStr...
#import <UIKit/UIKit.h> #define SUPPORTS_UNDOCUMENTED_API 1 @interface UIColor (expanded) - (CGColorSpaceModel) colorSpaceModel; - (NSString *) colorSpaceString; - (BOOL) canProvideRGBComponents; - (NSArray *) arrayFromRGBAComponents; - (CGFloat) red; - (CGFloat) blue; - (CGFloat) green; - (CGFloat) alpha; - (NSStr...
Declare the properties as nonatomic
Declare the properties as nonatomic
C
bsd-3-clause
fcanas/uicolor-utilities
12dea43b35daf92a6087f3a980aff767ac0b7043
base/win/comptr.h
base/win/comptr.h
// LAF Base Library // Copyright (c) 2017 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef BASE_WIN_COMPTR_H_INCLUDED #define BASE_WIN_COMPTR_H_INCLUDED #pragma once #if !defined(_WIN32) #error This header file can be used only on Window...
// LAF Base Library // Copyright (c) 2021 Igara Studio S.A. // Copyright (c) 2017 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef BASE_WIN_COMPTR_H_INCLUDED #define BASE_WIN_COMPTR_H_INCLUDED #pragma once #if !defined(_WIN32) #error Thi...
Add some extra operators to base::ComPtr
[win] Add some extra operators to base::ComPtr
C
mit
aseprite/laf,aseprite/laf
8ef7b8f1894730da660155b00e2c3b4e394ed4d7
src/id.h
src/id.h
extern void change_id(const char *string);
/*============================================================================= Copyright 2008 Francois Laupretre (francois@tekwire.net) 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 ...
Add copyright banner to source file
Add copyright banner to source file
C
apache-2.0
flaupretre/managelogs,flaupretre/managelogs
412bbb8121b91e7447b05839df64b526edec2786
event/timeout_queue.h
event/timeout_queue.h
#ifndef TIMEOUT_QUEUE_H #define TIMEOUT_QUEUE_H #include <map> class TimeoutQueue { typedef std::map<NanoTime, CallbackQueue> timeout_map_t; LogHandle log_; timeout_map_t timeout_queue_; public: TimeoutQueue(void) : log_("/event/timeout/queue"), timeout_queue_() { } ~TimeoutQueue() { } bool empty(void)...
#ifndef TIMEOUT_QUEUE_H #define TIMEOUT_QUEUE_H #include <map> #include <common/time/time.h> class TimeoutQueue { typedef std::map<NanoTime, CallbackQueue> timeout_map_t; LogHandle log_; timeout_map_t timeout_queue_; public: TimeoutQueue(void) : log_("/event/timeout/queue"), timeout_queue_() { } ~Timeout...
Use new NanoTime location header, oops.
Use new NanoTime location header, oops. git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@799 4068ffdb-0463-0410-8185-8cc71e3bd399
C
bsd-2-clause
diegows/wanproxy,splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy
d38a75138ffc03fd7a1fff4e00a85229549c1492
lib/libc/alpha/gen/_set_tp.c
lib/libc/alpha/gen/_set_tp.c
/*- * Copyright (c) 2004 Doug Rabson * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
/*- * Copyright (c) 2004 Doug Rabson * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
Fix alpha build and add __FBSDID.
Fix alpha build and add __FBSDID. PR: 70518
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
307f1a7087c28f139693feb9f0a773c5e4f0ec33
SSPSolution/SSPSolution/GameState.h
SSPSolution/SSPSolution/GameState.h
#ifndef SSPAPPLICATION_GAMESTATES_GAMESTATE_H #define SSPAPPLICATION_GAMESTATES_GAMESTATE_H #include "InputHandler.h" #include "ComponentHandler.h" #include "../GraphicsDLL/Camera.h" #include "../NetworkDLL/NetworkModule.h" //class NetworkModule; class GameStateHandler; class GameState { private: //Variables protecte...
#ifndef SSPAPPLICATION_GAMESTATES_GAMESTATE_H #define SSPAPPLICATION_GAMESTATES_GAMESTATE_H #include "InputHandler.h" #include "ComponentHandler.h" #include "../GraphicsDLL/Camera.h" //#include "../NetworkDLL/NetworkModule.h" //class NetworkModule; class GameStateHandler; class GameState { private: //Variables protec...
UPDATE doubble checked for Fransisco
UPDATE doubble checked for Fransisco
C
apache-2.0
Chringo/SSP,Chringo/SSP
233f4d4e5bc298dbb9acf5bde745cd8504ce3f07
stratego-libraries/lib/native/stratego-lib/collection-list-common.c
stratego-libraries/lib/native/stratego-lib/collection-list-common.c
#include <srts/stratego.h> #include "stratego-lib-common.h" ATerm SSL_get_list_length(ATerm term) { ATermList list = NULL; ATerm result = NULL; if(!ATisList(term)) { _fail(term); } list = (ATermList) term; result = (ATerm) ATmakeInt(ATgetLength(term)); return result; }
#include <srts/stratego.h> #include "stratego-lib-common.h" ATerm SSL_get_list_length(ATerm term) { ATermList list = NULL; ATerm result = NULL; if(!ATisList(term)) { _fail(term); } list = (ATermList) term; result = (ATerm) ATmakeInt(ATgetLength(list)); return result; }
Fix in native implementation of length strategy: ATgetLength should be applied to an ATermList.
Fix in native implementation of length strategy: ATgetLength should be applied to an ATermList. svn path=/strategoxt/trunk/; revision=16203
C
apache-2.0
Apanatshka/strategoxt,lichtemo/strategoxt,lichtemo/strategoxt,lichtemo/strategoxt,Apanatshka/strategoxt,metaborg/strategoxt,lichtemo/strategoxt,metaborg/strategoxt,metaborg/strategoxt,metaborg/strategoxt,Apanatshka/strategoxt,Apanatshka/strategoxt,Apanatshka/strategoxt,metaborg/strategoxt,lichtemo/strategoxt
91b3d8878edeba4c7d1d1ba0c75e171bb38e46d4
arch/powerpc/powerpc/db_interface.c
arch/powerpc/powerpc/db_interface.c
/* $OpenBSD: db_interface.c,v 1.2 1996/12/28 06:21:50 rahnds Exp $ */ #include <sys/param.h> #include <sys/proc.h> #include <machine/db_machdep.h> void Debugger() { db_trap(T_BREAKPOINT); /* __asm volatile ("tw 4,2,2"); */ }
/* $OpenBSD: db_interface.c,v 1.3 1999/07/05 20:23:08 rahnds Exp $ */ #include <sys/param.h> #include <sys/proc.h> #include <machine/db_machdep.h> void Debugger() { /* db_trap(T_BREAKPOINT); */ __asm volatile ("tw 4,2,2"); }
Use a breakpoint to cause an exception to cause the registers to be saved for debugging purposes.
Use a breakpoint to cause an exception to cause the registers to be saved for debugging purposes.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
e5a8e3198f1990871e65d354b1cc53ed234f75d6
src/navigationwidget.h
src/navigationwidget.h
#ifndef NAVIGATIONWIDGET_H #define NAVIGATIONWIDGET_H #include <QWidget> #include <QLabel> #include "qnavigation_global.h" class QLabel; class QPushButton; namespace QNavigation { class SlidingStackedWidget; class NavigationWidgetPrivate; class NavigationWidget : public QWidget { Q_OBJECT Q_DECLARE_PRIVATE...
#ifndef QNAVIGATION_NAVIGATIONWIDGET_H #define QNAVIGATION_NAVIGATIONWIDGET_H #include <QWidget> #include <QLabel> #include "qnavigation_global.h" class QLabel; class QPushButton; namespace QNavigation { class SlidingStackedWidget; class NavigationWidgetPrivate; class NavigationWidget : public QWidget { Q_OBJE...
Fix inclusion guard for NavigationWidget
Fix inclusion guard for NavigationWidget
C
bsd-3-clause
bimetek/qnavigation,bimetek/qnavigation
2c3316530d25d46038526902079fde1c3c643516
Classes/Instapaper/InstapaperAPI.h
Classes/Instapaper/InstapaperAPI.h
// // InstapaperAPI.h // newsyc // // Created by Grant Paul on 3/10/11. // Copyright 2011 Xuzz Productions, LLC. All rights reserved. // #import <HNKit/NSString+URLEncoding.h> #define kInstapaperAPIRootURL [NSURL URLWithString:@"https://instapaper.com/api/"] #define kInstapaperAPIAuthenticationURL [NSURL URLWithS...
// // InstapaperAPI.h // newsyc // // Created by Grant Paul on 3/10/11. // Copyright 2011 Xuzz Productions, LLC. All rights reserved. // #import <HNKit/NSString+URLEncoding.h> #define kInstapaperAPIRootURL [NSURL URLWithString:@"https://www.instapaper.com/api/"] #define kInstapaperAPIAuthenticationURL [NSURL URLW...
Fix Instapaper Root API issue
Fix Instapaper Root API issue Fixed issue that was causing login request to return a 403.
C
bsd-3-clause
ukkari/newsyc,tangqiaoboy/newsyc,ukkari/newsyc
c2ed6a161b3242ff1f1222134fae6621e813362c
src/cons.h
src/cons.h
#ifndef MCLISP_CONS_H_ #define MCLISP_CONS_H_ namespace mclisp { class ConsCell { public: ConsCell(): car_(nullptr), cdr_(nullptr) {} ConsCell(ConsCell* car, ConsCell* cdr): car_(car), cdr_(cdr) {} private: ConsCell* car_; ConsCell* cdr_; }; } // namespace mclisp #endif // MCLISP_CONS_H_
#ifndef MCLISP_CONS_H_ #define MCLISP_CONS_H_ namespace mclisp { class ConsCell { public: ConsCell(): car_(nullptr), cdr_(nullptr) {} ConsCell(ConsCell* car, ConsCell* cdr): car_(car), cdr_(cdr) {} ConsCell* car_; ConsCell* cdr_; }; } // namespace mclisp #endif // MCLISP_CONS_H_
Make Cons::car_ and Cons::cdr_ public members.
Make Cons::car_ and Cons::cdr_ public members.
C
mit
appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp
be81aa72665eaa6f2e4c84bbb7eab165dd918ad8
src/os/emscripten/preamble.c
src/os/emscripten/preamble.c
#include "emscripten.h" #include <stdlib.h> #include <unistd.h> #include "param.h" int os_preamble() { if (access("/dev/zero", R_OK)) EM_ASM(({ FS.createDevice('/dev', 'zero', function () { return 0; }); }),/* dummy arg */0); EM_ASM_(({ if (ENVIRONMENT_IS_NODE) { var mnt = Pointer_...
#include "emscripten.h" #include <stdlib.h> #include <unistd.h> #include "param.h" int os_preamble() { if (access("/dev/zero", R_OK)) EM_ASM(({ FS.createDevice('/dev', 'zero', function () { return 0; }); }),/* dummy arg */0); EM_ASM_(({ if (ENVIRONMENT_IS_NODE) { var len = 1024; /*...
Replace removed Pointer_stringify with UTF8ToString
Replace removed Pointer_stringify with UTF8ToString
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
3d895b974d01f2c562a869921274f1198e29ff87
test/FrontendC/2010-06-24-DbgInlinedFnParameter.c
test/FrontendC/2010-06-24-DbgInlinedFnParameter.c
// RUN: %llvmgcc -S -O2 -g %s -o - | llc -O2 -o %t.s // RUN: grep "# DW_TAG_formal_parameter" %t.s | count 4 // Radar 8122864 // XFAIL: powerpc static int foo(int a, int j) { int k = 0; if (a) k = a + j; else k = j; return k; } int bar(int o, int p) { return foo(o, p); }
// RUN: %llvmgcc -S -O2 -g %s -o - | llc -O2 -o %t.s // RUN: grep "# DW_TAG_formal_parameter" %t.s | count 4 // Radar 8122864 // XTARGET: x86,darwin static int foo(int a, int j) { int k = 0; if (a) k = a + j; else k = j; return k; } int bar(int o, int p) { return foo(o, p); }
Make this test darwin specific.
Make this test darwin specific. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@107025 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,ll...
23b1acc06565d92692ce2e56ed7ede7b45c1e3a1
iobuf/obuf_copyfromfd.c
iobuf/obuf_copyfromfd.c
#include <unistd.h> #include "iobuf.h" /** Copy all the data from an \c ibuf to an \c obuf. */ int obuf_copyfromfd(int in, obuf* out) { long rd; if (obuf_error(out)) return 0; out->count = 0; for (;;) { if ((rd = read(in, out->io.buffer + out->bufpos, out->io.bufsize - out->bufpos)) == -1) ...
#include <unistd.h> #include "iobuf.h" /** Copy all the data from an \c ibuf to an \c obuf. */ int obuf_copyfromfd(int in, obuf* out) { long rd; if (obuf_error(out)) return 0; out->count = 0; for (;;) { if ((rd = read(in, out->io.buffer + out->bufpos, out->io.bufsize - out->bufpos)) == -1) ...
Mark the copied-in data as being present before flushing the buffer. Without this patch, no data is ever written.
Mark the copied-in data as being present before flushing the buffer. Without this patch, no data is ever written.
C
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
0cbe606c96c439637b2468663f1b74891c917ee3
test/test_parser_and.c
test/test_parser_and.c
#include "test_parser.h" void and_false(void **state) { grammar_t *grammar = grammar_init( non_terminal("And"), rule_init( "And", sequence( and(terminal("hello")), terminal("h") ) ), 1 ); parse_t *result = parse("help", grammar); assert_null(result); } void and_t...
#include "test_parser.h" void and_false(void **state) { grammar_t *grammar = grammar_init( non_terminal("And"), rule_init( "And", sequence( and(terminal("hello")), terminal("h") ) ), 1 ); parse_result_t *result = parse("help", grammar); assert_non_null(result); ...
Use new API for and parsing
Use new API for and parsing
C
mit
Baltoli/peggo,Baltoli/peggo
dd059c831429f6d3706ff8e824cb3afcde383d37
check/tests/check_check_main.c
check/tests/check_check_main.c
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, ma...
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, ma...
Use correct variable for number of tests
Use correct variable for number of tests
C
lgpl-2.1
tarruda/check,tarruda/check,tarruda/check,tarruda/check,tarruda/check
461bf4f7c74b56d5944aab9b886ff30a50019e0e
check/tests/check_check_main.c
check/tests/check_check_main.c
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, ma...
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, ma...
Use correct variable for number of tests
Use correct variable for number of tests git-svn-id: d023f1085a36f7a677188d00334e37d38ffecf51@230 64e312b2-a51f-0410-8e61-82d0ca0eb02a
C
lgpl-2.1
libcheck/check,9fcc/check,krichter722/check,brarcher/check,brarcher/check,9fcc/check,krichter722/check,9fcc/check,libcheck/check,libcheck/check,krichter722/check,brarcher/check,brarcher/check,9fcc/check,libcheck/check,9fcc/check,libcheck/check,brarcher/check,krichter722/check,krichter722/check
0200f506b06b8fce7ae6872910915f1e40ccf1b7
framework/include/base/ComputeInitialConditionThread.h
framework/include/base/ComputeInitialConditionThread.h
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
Include headers we need directly
Include headers we need directly
C
lgpl-2.1
backmari/moose,bwspenc/moose,permcody/moose,idaholab/moose,nuclear-wizard/moose,backmari/moose,idaholab/moose,liuwenf/moose,permcody/moose,jessecarterMOOSE/moose,liuwenf/moose,SudiptaBiswas/moose,sapitts/moose,laagesen/moose,andrsd/moose,dschwen/moose,bwspenc/moose,harterj/moose,sapitts/moose,andrsd/moose,liuwenf/moose...
f53d9f6cd370743d00f9d9a882941ff84d4bfb54
LogDefer.h
LogDefer.h
#ifndef LOGDEFER_H #define LOGDEFER_H #include "picojson/picojson.h" class LogDefer { public: LogDefer(std::function<void (const std::string&)> callback); ~LogDefer(); void add_log(int verbosity, std::string msg); void error(std::string msg); void warn(std::string msg); void info(std::string...
#pragma once #include "picojson/picojson.h" class LogDefer { public: LogDefer(std::function<void (const std::string&)> callback); ~LogDefer(); void add_log(int verbosity, std::string msg); void error(std::string msg); void warn(std::string msg); void info(std::string msg); void debug(std...
Use pragma once instead of define hack (thanks Natalia)
Use pragma once instead of define hack (thanks Natalia)
C
bsd-2-clause
hoytech/LogDefer-CXX
55130b9862bc2aab6a5498b3198fbdcf1c26acc2
include/vl6180_pi.h
include/vl6180_pi.h
#ifdef __cplusplus extern "C"{ #endif typedef int vl6180; #define VL1680_DEFALUT_ADDR 0x29 int vl6180_initialise(int device, int i2cAddr); int get_distance(vl6180 handle); void set_scaling(vl6180 handle, int scaling); ///After calling that, you should discrad the handle to talk to the device and re-initialize it v...
#ifdef __cplusplus extern "C"{ #endif typedef int vl6180; #define VL1680_DEFALUT_ADDR 0x29 ///Initialize a vl6180 sensor on the i2c port /// \param device The I2C bus to open. e.g. "1" for using /dev/i2c-1 /// \param i2c_addr addres of the device. If you don't know, pass VL1680_DEFALUT_ADDR to it /// \return handle...
Comment the file "doxygen style"
Comment the file "doxygen style"
C
mit
leachj/vl6180_pi
4a1ecb67f9ff1745422aecdd5cc70a9f630d7dc8
driver/battery/bq20z453.c
driver/battery/bq20z453.c
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Smart battery driver for BQ20Z453. */ #include "battery_smart.h" #include "host_command.h" #define PARAM_CUT_OFF 0x0010 int battery_comman...
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Smart battery driver for BQ20Z453. */ #include "battery_smart.h" #include "hooks.h" #include "host_command.h" #define PARAM_CUT_OFF 0x0010 ...
Fix battery cutoff command to use deferred function call
pit: Fix battery cutoff command to use deferred function call Rather than hackily sending a host response before sending the battery cutoff command, just put the cutoff command in a deferred function call and respond normally to the host command. BUG=chrome-os-partner:23568 BRANCH=none TEST=On battery power, 'ectool ...
C
bsd-3-clause
mtk09422/chromiumos-platform-ec,longsleep/ec,gelraen/cros-ec,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,coreboot/chrome-ec,fourier49/BIZ_EC,md5555/ec,md5555/ec,thehobn/ec,fourier49/BIZ_EC,thehobn/ec,fourier49/...
05a2b367b649928bee66e8acbe2d8ef3440d36a9
libc/include/sys/io.h
libc/include/sys/io.h
#ifndef _SYS_IO_H #define _SYS_IO_H #include <stdint.h> unsigned char inb(uint16_t port); void outb(uint16_t port, uint8_t value); #endif
#ifndef _SYS_IO_H #define _SYS_IO_H #include <stdint.h> uint8_t inb(uint16_t port); void outb(uint16_t port, uint8_t value); uint16_t inw(uint16_t port); void outw(uint16_t port, uint16_t value); uint32_t inl(uint16_t port); void outl(uint16_t port, uint32_t value); #endif
Add everything to header file
Add everything to header file
C
mit
simon-andrews/norby,simon-andrews/norby,simon-andrews/norby
12941ad2f700f9a2ca22057a099b1152fc86be74
critmem.h
critmem.h
#ifndef CRITMEM_H #define CRITMEM_H #include <sys/types.h> void *mycritmalloc(const char *f, long, size_t size, const char *message); void *mycritcalloc(const char *f, long, size_t size, const char *message); void *mycritrealloc(const char *f, long, void *a, size_t size, const char *message); char *mycritstrdup...
#ifndef CRITMEM_H #define CRITMEM_H #include <sys/types.h> /*@only@*//*@out@ */ void *mycritmalloc(const char *f, long, size_t size, const char *message); /*@only@*/ void *mycritcalloc(const char *f, long, size_t size, const char *message); /*@only@*//*@out@ *//*@notnull@ */ void *mycritrealloc(const ch...
Include Ralf Wildenhues' lclint annotations.
Include Ralf Wildenhues' lclint annotations.
C
lgpl-2.1
BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode
4d4fb33fce0803f9c923307bdf82b8fdd2ed140b
src/reverse_iterator.h
src/reverse_iterator.h
// Taken from https://gist.github.com/arvidsson/7231973 #ifndef BITCOIN_REVERSE_ITERATOR_HPP #define BITCOIN_REVERSE_ITERATOR_HPP /** * Template used for reverse iteration in C++11 range-based for loops. * * std::vector<int> v = {1, 2, 3, 4, 5}; * for (auto x : reverse_iterate(v)) * std::cout << x << ...
// Taken from https://gist.github.com/arvidsson/7231973 #ifndef BITCOIN_REVERSE_ITERATOR_H #define BITCOIN_REVERSE_ITERATOR_H /** * Template used for reverse iteration in C++11 range-based for loops. * * std::vector<int> v = {1, 2, 3, 4, 5}; * for (auto x : reverse_iterate(v)) * std::cout << x << " ";...
Rename member field according to the style guide.
Rename member field according to the style guide.
C
mit
guncoin/guncoin,ahmedbodi/vertcoin,anditto/bitcoin,deeponion/deeponion,shelvenzhou/BTCGPU,OmniLayer/omnicore,prusnak/bitcoin,jambolo/bitcoin,practicalswift/bitcoin,Kogser/bitcoin,jtimon/bitcoin,trippysalmon/bitcoin,myriadteam/myriadcoin,stamhe/bitcoin,namecoin/namecoin-core,Exgibichi/statusquo,AkioNak/bitcoin,BitzenyCo...
c970d8d8c6101a7e00fe91aef9a751d41c433569
mudlib/mud/home/Kotaka/sys/testd.c
mudlib/mud/home/Kotaka/sys/testd.c
#include <kotaka/paths.h> #include <kotaka/log.h> static void create() { } void test() { }
#include <kotaka/paths.h> #include <kotaka/log.h> #include <kotaka/assert.h> static void create() { } private void test_qsort() { int *arr, i; arr = allocate(1000); for (i = 0; i < 1000; i++) { arr[i] = random(1000000); } SUBD->qsort(arr, 0, 1000); for (i = 0; i < 999; i++) { ASSERT(arr[i] <= arr[i + 1]...
Add regression test for qsort
Add regression test for qsort
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
2321a73ac4bc7ae3fc543c36e690d9831040160a
Sub-Terra/include/Oscillator.h
Sub-Terra/include/Oscillator.h
#pragma once #include <math.h> #include "WaveShape.h" class Oscillator { public: WaveShape waveShape; double frequency = 1.0; double amplitude = 1.0; double speed = 1.0; uint32_t phaseAccumulator = 0; Oscillator() = default; Oscillator(const WaveShape &waveShape) : waveShape(waveShape), frequency(waveShape.pr...
#pragma once #include "WaveShape.h" class Oscillator { public: WaveShape waveShape; double frequency = 1.0; double amplitude = 1.0; double speed = 1.0; uint32_t phaseAccumulator = 0; Oscillator() = default; Oscillator(const WaveShape &waveShape) : waveShape(waveShape), frequency(waveShape.preferredFrequency) ...
Fix warnings and remove unused header
Fix warnings and remove unused header
C
mpl-2.0
polar-engine/polar,polar-engine/polar,shockkolate/polar4,shockkolate/polar4,shockkolate/polar4,shockkolate/polar4