commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
94212f6fdc2b9f135f69e42392485adce8b04cc7
util/metadata.h
util/metadata.h
#include <stdio.h> #include <stdlib.h> #ifndef METADATA_H #define METADATA_H typedef struct Metadata { /** * File's name. */ char md_name[255]; /** * File's extension. */ char md_extension[10]; /** * List of keywords to describe the file. */ char md_keywords[255]; /** * Hash of t...
#include <stdio.h> #include <stdlib.h> #ifndef METADATA_H #define METADATA_H typedef struct Metadata { /** * File's name. */ char md_name[255]; /** * File's extension. */ char md_extension[10]; /** * List of keywords to describe the file. */ char md_keywords[255]; ...
Indent better than Videl :)
Indent better than Videl :)
C
mit
Videl/FrogidelTorrent,Videl/FrogidelTorrent
e8a66aeb8e09270662bbd58cdd4cebc8537df31c
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
Move the import controls into a formal protocol
Move the import controls into a formal protocol
C
mit
naqi/MagicalRecord,naqi/MagicalRecord
1c27f926c130284b022501596399205b8c8e4b23
UefiCpuPkg/Include/AcpiCpuData.h
UefiCpuPkg/Include/AcpiCpuData.h
/** @file Definitions for CPU S3 data. Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be fou...
Add ACPI CPU Data include file
UefiCpuPkg: Add ACPI CPU Data include file Add AcpuCpuData.h that defines a data structure that is shared between modules and is required for ACPI S3 support. APState field removed between V1 and V2 patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.co...
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
669cbb41fab72b377fffd64f9ef0171fe13c5834
cleanup.h
cleanup.h
/// /// \file cleanup.h /// \brief Functions to clean up memory /// \defgroup cleanup Memory Cleanup /// \brief Frees memory before loading /// @{ /// #ifndef UVL_CLEANUP #define UVL_CLEANUP #include "types.h" int uvl_cleanup_memory (); int uvl_unload_all_modules (); #endif /// @}
/// /// \file cleanup.h /// \brief Functions to clean up memory /// \defgroup cleanup Memory Cleanup /// \brief Frees memory before loading /// @{ /// #ifndef UVL_CLEANUP #define UVL_CLEANUP #include "types.h" int uvl_cleanup_memory (); int uvl_unload_all_modules(); void uvl_pre_clean(); #endif /// @}
Fix a warning about implicit function declaration.
Fix a warning about implicit function declaration.
C
apache-2.0
MrNetrix/UVLoader,yifanlu/UVLoader,yifanlu/UVLoader,MrNetrix/UVLoader
0602fcde6e03bc08b0a333b291d8fe45cb4f56e3
libevmjit/Utils.h
libevmjit/Utils.h
#pragma once #include <iostream> // The same as assert, but expression is always evaluated and result returned #define CHECK(expr) (assert(expr), expr) #if !defined(NDEBUG) // Debug namespace dev { namespace evmjit { std::ostream& getLogStream(char const* _channel); } } #define DLOG(CHANNEL) ::dev::evmjit::getLo...
#pragma once #include <iostream> // The same as assert, but expression is always evaluated and result returned #define CHECK(expr) (assert(expr), expr) #if !defined(NDEBUG) // Debug namespace dev { namespace evmjit { std::ostream& getLogStream(char const* _channel); } } #define DLOG(CHANNEL) ::dev::evmjit::getLo...
Reimplement no-op version of DLOG to avoid C++ compiler warning
Reimplement no-op version of DLOG to avoid C++ compiler warning
C
mit
LefterisJP/webthree-umbrella,LefterisJP/webthree-umbrella,smartbitcoin/cpp-ethereum,vaporry/cpp-ethereum,johnpeter66/ethminer,expanse-project/cpp-expanse,karek314/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,gluk256/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,arkpar/webthree-u...
4f78441af442507e2496e40d7f150934bc984d8b
linkedLists/linked_lists_test.c
linkedLists/linked_lists_test.c
//tests for linked lists tasks from the "Cracking The Coding Interview". #include <assert.h> #include <stdbool.h> int main() { assert(false && "First unit test"); return 0; }
//tests for linked lists tasks from the "Cracking The Coding Interview". #include <assert.h> #include <stdbool.h> #include "../../c_double_linked_list/double_linked_list.h" int main() { struct Node* h = initHeadNode(0); printList(h); clear(h); return 0; }
Add simple test (proof of working) for double linked list api.
Add simple test (proof of working) for double linked list api.
C
bsd-3-clause
MikhSol/crackingTheCodingInterviewC
91f7575783f81b3f4816ff06f0755f77c7870309
src/functionals/pbec_eps.h
src/functionals/pbec_eps.h
#ifndef PBEC_EPS_H #define PBEC_EPS_H #include "functional.h" #include "constants.h" #include "pw92eps.h" #include "vwn.h" namespace pbec_eps { template<class num, class T> static num A(const num &eps, const T &u3) { using xc_constants::param_beta_gamma; using xc_constants::param_gamma; return param...
Add forgotten PBE epsilon header.
Add forgotten PBE epsilon header.
C
mpl-2.0
bast/xcfun,robertodr/xcfun,bast/xcfun,bast/xcfun,robertodr/xcfun,robertodr/xcfun,robertodr/xcfun,dftlibs/xcfun,bast/xcfun,dftlibs/xcfun,dftlibs/xcfun,dftlibs/xcfun
15f9ff29c88bec7fd0488013ed0168a091ed139a
src/win32/jet_endian_win.c
src/win32/jet_endian_win.c
/* *The MIT License (MIT) * * Copyright (c) <2017> <Stephan Gatzka> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, co...
Add endianess conversion functions for windows.
Add endianess conversion functions for windows.
C
mit
gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet
10ca149c4add37f104200e33271d826460f8964b
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.04.00-k3"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.04.00-k4"
Update driver version to 5.04.00-k4
[SCSI] qla4xxx: Update driver version to 5.04.00-k4 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
7d4c665aff3750a072ca2cf3e36b862f7668e3c8
Glitter/Sources/Engine/Base/Common/Common.h
Glitter/Sources/Engine/Base/Common/Common.h
#pragma once // Branch prediction hints #define LIKELY(condition) __builtin_expect(static_cast<bool>(condition), 1) #define UNLIKELY(condition) __builtin_expect(static_cast<bool>(condition), 0)
Add common header - just has branch prediction hint macros for now
Add common header - just has branch prediction hint macros for now
C
mit
minimumcut/UnnamedEngine,minimumcut/UnnamedEngine
1cb1819cbae564c8a3bda066c73987368e921ac9
src/api/add.h
src/api/add.h
#ifndef CTF_ADD_H #define CTF_ADD_H #include <sys/queue.h> #include <sys/stddef.h> #include "file/errors.h" #define _CTF_ADD_PROTO(FUNCTION_NAME, OBJECT_TYPE, VALUE_TYPE) \ int \ FUNCTION_NAME (OBJECT_TYPE object, VALUE_TYPE value); #define _CTF_ADD_IMPL(FUNCTION_NAME, OBJECT_TYPE, VALUE_TYPE, LIST_NAME, \ LIST_E...
#ifndef CTF_ADD_H #define CTF_ADD_H #include <sys/queue.h> #include <sys/stddef.h> #include "file/errors.h" #define _CTF_ADD_PROTO(FUNCTION_NAME, OBJECT_TYPE, VALUE_TYPE) \ int \ FUNCTION_NAME (OBJECT_TYPE object, VALUE_TYPE value); #define _CTF_ADD_IMPL(FUNCTION_NAME, OBJECT_TYPE, VALUE_TYPE, LIST_NAME, \ LIST_E...
Add API increments count variable
Add API increments count variable
C
bsd-2-clause
lovasko/libctf,lovasko/libctf
f37546c433f29d3f0b7d1dd0461729df18597cee
solutions/uri/1017/1017.c
solutions/uri/1017/1017.c
#include <math.h> #include <stdio.h> int main() { float h, s; scanf("%f", &h); scanf("%f", &s); printf("%.3f\n", h * s / 12.0); }
Solve Fuel Spent in c
Solve Fuel Spent in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
becd309739fcd9e9f6fecdeb0ccf5cac3523caee
adapters/Mintegral/MintegralAdapter/GADMediationAdapterMintegralConstants.h
adapters/Mintegral/MintegralAdapter/GADMediationAdapterMintegralConstants.h
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Modify the adapter version number.
Modify the adapter version number.
C
apache-2.0
googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation
bc65ee3b42944d7f36645334ca083a6d82eda6f9
src/lib/ldm.h
src/lib/ldm.h
/* * This file is part of linux-driver-management. * * Copyright © 2016-2017 Ikey Doherty * * linux-driver-management is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 * of the ...
/* * This file is part of linux-driver-management. * * Copyright © 2016-2017 Ikey Doherty * * linux-driver-management is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 * of the ...
Include device in the LDM headers
Include device in the LDM headers Signed-off-by: Ikey Doherty <d8d992cf0016e35c2a8339d5e7d44bebd12a2d77@solus-project.com>
C
lgpl-2.1
solus-project/linux-driver-management,solus-project/linux-driver-management
8d873ed8fa874802c30983001bb10366c7f13401
lib/node_modules/@stdlib/strided/common/include/stdlib/strided_macros.h
lib/node_modules/@stdlib/strided/common/include/stdlib/strided_macros.h
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Sort headers in alphabetical order
Sort headers in alphabetical order
C
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
2b1c7246a6be5f0b57ee0cfea70b6a2613163b7e
src/modules/sdl/consumer_sdl_osx.h
src/modules/sdl/consumer_sdl_osx.h
/* * consumer_sdl_osx.m -- An OS X compatibility shim for SDL * Copyright (C) 2010 Ushodaya Enterprises Limited * Author: Dan Dennedy * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundati...
/* * consumer_sdl_osx.m -- An OS X compatibility shim for SDL * Copyright (C) 2010 Ushodaya Enterprises Limited * Author: Dan Dennedy * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundati...
Fix build on non-OSX due to missing parameter name.
Fix build on non-OSX due to missing parameter name.
C
lgpl-2.1
ttill/MLT,ttill/MLT-roto,siddharudh/mlt,xzhavilla/mlt,anba8005/mlt,zzhhui/mlt,ttill/MLT-roto-tracking,mltframework/mlt,siddharudh/mlt,j-b-m/mlt,mltframework/mlt,wideioltd/mlt,zzhhui/mlt,xzhavilla/mlt,j-b-m/mlt,zzhhui/mlt,siddharudh/mlt,anba8005/mlt,j-b-m/mlt,ttill/MLT-roto,ttill/MLT-roto-tracking,mltframework/mlt,gmarc...
f32bb0311860f453a1b1f4d8c5755c26894e8b41
src/platform/governance.h
src/platform/governance.h
#ifndef CROWN_PLATFORM_GOVERNANCE_H #define CROWN_PLATFORM_GOVERNANCE_H #include "primitives/transaction.h" #include "uint256.h" #include <boost/function.hpp> #include <vector> namespace Platform { class Vote { public: enum Value { abstain = 0, yes, no }; CTxIn voterId; int64_t ...
#ifndef CROWN_PLATFORM_GOVERNANCE_H #define CROWN_PLATFORM_GOVERNANCE_H #include "primitives/transaction.h" #include "uint256.h" #include <boost/function.hpp> #include <vector> namespace Platform { class Vote { public: enum Value { abstain = 0, yes, no }; CTxIn voterId; int64_t ...
Fix issues pointed out in review
Fix issues pointed out in review
C
mit
Crowndev/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin
f95dd734687945f12b708f2659ac8198b640d959
test/CodeGen/2009-10-20-GlobalDebug.c
test/CodeGen/2009-10-20-GlobalDebug.c
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -S -g -dA %s -o - | FileCheck %s int global; // CHECK: asciz "global" ## DW_AT_name int main() { return 0;}
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -S -g -dA %s -o - | FileCheck %s int global; // CHECK: asciz "global" ## External Name int main() { return 0;}
Adjust testcase for recent DWARF printer changes.
Adjust testcase for recent DWARF printer changes. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@94306 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
2ca2eb5bd6ca7bf2c886384a30b82750b2927822
tests/regression/09-regions/28-list2alloc.c
tests/regression/09-regions/28-list2alloc.c
// PARAM: --set ana.activated[+] "'region'" #include<pthread.h> #include<stdlib.h> #include<stdio.h> struct s { int datum; struct s *next; } *A, *B; struct s *new(int x) { struct s *p = malloc(sizeof(struct s)); p->datum = x; p->next = NULL; return p; } pthread_mutex_t A_mutex = PTHREAD_MUTEX_INITIALIZER...
Add example for warning ranking.
Add example for warning ranking.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
cbeac1945a4d0da0745c80a1766dc6ddeb809930
gen_message_hashes/hash_func.h
gen_message_hashes/hash_func.h
static inline unsigned int hash_func_string(const char* key) { unsigned int hash = 0; int c; while ((c = *key++) != 0) hash = c + (hash << 6) + (hash << 16) - hash; return hash; }
static inline uint32_t hash_func_string(const char* key) { uint32_t hash = 0; int c; while ((c = *key++) != 0) hash = c + (hash << 6) + (hash << 16) - hash; return hash; }
Change unsigned int to uint32_t.
Change unsigned int to uint32_t. The fixed width data type is necessary to calculate the hash function correctly.
C
mit
mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet
59b6d5b7e4f337320ea12d381e9cad0aa9c9fa75
tests/slice.c
tests/slice.c
#include <stdio.h> #include "../slice.h" #include "../assert.h" #include "../nelem.h" int main( void ) { int const xs[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; printf( "Testing subset slice...\n" ); int const ws[] = { SLICE( xs, 3, 4 ) }; ASSERT( NELEM( ws ) == 4, ws[ 0 ] == xs[ 3 ], ...
#include <stdio.h> #include "../slice.h" #include "../assert.h" #include "../nelem.h" int main( void ) { int const xs[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; printf( "Testing subset slice...\n" ); int const ws[] = { SLICE( xs, 3, 4 ) }; ASSERT( NELEM( ws ) == 4, ws[ 0 ] == xs[ 3 ], ...
Fix 'unused variable' warning on fast build
Fix 'unused variable' warning on fast build
C
agpl-3.0
mcinglis/libmacro,mcinglis/libmacro,mcinglis/libmacro
d3c505c880592f481c7ee356bb6dc6650a95a14b
include/ofpi_config.h
include/ofpi_config.h
/* Copyright (c) 2015, ENEA Software AB * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _OFPI_CONFIG_H_ #define _OFPI_CONFIG_H_ #include "ofp_config.h" #define ARP_SANITY_CHECK 1 #endif
/* Copyright (c) 2015, ENEA Software AB * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _OFPI_CONFIG_H_ #define _OFPI_CONFIG_H_ #include "api/ofp_config.h" #define ARP_SANITY_CHECK 1 #endif
Fix include path for ofp_config.h
Fix include path for ofp_config.h Signed-off-by: Bogdan Pricope <385103c4eae27e55111df6ab7856eefb0647e14e@enea.com> Reviewed-by: Sorin Vultureanu <64c6f728decd077990042fe7e6ea94271dcc3ede@enea.com>
C
bsd-3-clause
OpenFastPath/ofp,OpenFastPath/ofp,OpenFastPath/ofp,TolikH/ofp,TolikH/ofp,TolikH/ofp,OpenFastPath/ofp
1a9f189af8076cf1f67b92567e47d7dd8e0514fa
applications/plugins/SofaPython/PythonCommon.h
applications/plugins/SofaPython/PythonCommon.h
#ifndef SOFAPYTHON_PYTHON_H #define SOFAPYTHON_PYTHON_H // This header simply includes Python.h, taking care of platform-specific stuff // It should be included before any standard headers: // "Since Python may define some pre-processor definitions which affect the // standard headers on some systems, you must inclu...
#ifndef SOFAPYTHON_PYTHON_H #define SOFAPYTHON_PYTHON_H // This header simply includes Python.h, taking care of platform-specific stuff // It should be included before any standard headers: // "Since Python may define some pre-processor definitions which affect the // standard headers on some systems, you must inclu...
Fix python link in release build.
Fix python link in release build. Former-commit-id: f2b0e4ff65df702ae4f98bed2a39dcfdc0f7e9c4
C
lgpl-2.1
FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,hdeling/sofa,hdeling/sofa,Anatoscope/sofa,hdeling/sofa,FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,hdeling/sofa,Anatoscope/sofa,hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPe...
4529eb33e50f0662b6711bcc984ad3b298c2b169
src/Atomic.h
src/Atomic.h
/* ******************************************************************************* * * Purpose: Utils. Atomic types helper. * ******************************************************************************* * Copyright Monstrenyatko 2014. * * Distributed under the MIT License. * (See accompanying file LICENSE o...
/* ******************************************************************************* * * Purpose: Utils. Atomic types helper. * ******************************************************************************* * Copyright Monstrenyatko 2014. * * Distributed under the MIT License. * (See accompanying file LICENSE o...
Use boost::atomic if C++ compiler older than 201103.
Use boost::atomic if C++ compiler older than 201103.
C
mit
monstrenyatko/butler-xbee-gateway,monstrenyatko/XBeeGateway,monstrenyatko/butler-xbee-gateway,monstrenyatko/XBeeGateway,monstrenyatko/butler-xbee-gateway
9275184cf22bcc045842bee7a26067e62381178a
lib/Remarks/RemarkParserImpl.h
lib/Remarks/RemarkParserImpl.h
//===-- RemarkParserImpl.h - Implementation details -------------*- C++/-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//===-- RemarkParserImpl.h - Implementation details -------------*- C++/-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
Fix mismatched delete due to missing virtual destructor
[Remarks] Fix mismatched delete due to missing virtual destructor This fixes an asan failure introduced in r356519. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@356583 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Dri...
83443f472fff11a74e983e42c56a245953890248
src/ref.h
src/ref.h
#pragma once #include <chrono> #include <string> enum class ref_src_t { FILE, AIRCRAFT, PLUGIN, USER_MSG, BLACKLIST, }; /// Superclass defining some common interface items for dataref and commandref. class RefRecord { protected: std::string name; ref_src_t source; std::chrono::system...
#pragma once #include <chrono> #include <string> enum class ref_src_t { FILE, AIRCRAFT, PLUGIN, USER_MSG, BLACKLIST, }; /// Superclass defining some common interface items for dataref and commandref. class RefRecord { protected: std::string name; ref_src_t source; std::chrono::system...
Handle initialization of change detection variables in a more sane way. No more false positives of changes on startup.
Handle initialization of change detection variables in a more sane way. No more false positives of changes on startup.
C
mit
leecbaker/datareftool,leecbaker/datareftool,leecbaker/datareftool
c8ac1d0b0a97f5fc926a48e64e0e116387453dcd
apps/drivers/drv_airspeed.h
apps/drivers/drv_airspeed.h
/**************************************************************************** * * Copyright (C) 2013 PX4 Development Team. 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. Redistri...
Add in the missing header.
Add in the missing header.
C
bsd-3-clause
krbeverx/Firmware,PX4/Firmware,mcgill-robotics/Firmware,dagar/Firmware,dagar/Firmware,krbeverx/Firmware,mcgill-robotics/Firmware,PX4/Firmware,Aerotenna/Firmware,acfloria/Firmware,Aerotenna/Firmware,mcgill-robotics/Firmware,dagar/Firmware,krbeverx/Firmware,dagar/Firmware,acfloria/Firmware,Aerotenna/Firmware,mje-nz/PX4-F...
3ca41de3333f47071289b6398a3f8c677dbdab89
src-qt5/desktop-utils/lumina-fm/gitCompat.h
src-qt5/desktop-utils/lumina-fm/gitCompat.h
//=========================================== // Lumina-DE source code // Copyright (c) 2016, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== // This is the backend classe for interacting with the "git" utility //=========...
Add the backend class/functions for using GIT within lumina-fm.
Add the backend class/functions for using GIT within lumina-fm.
C
bsd-3-clause
trueos/lumina,cpforbes/lumina,sasongko26/lumina,sasongko26/lumina,pcbsd/lumina,trueos/lumina,sasongko26/lumina,Nanolx/lumina,harcobbit/lumina,cpforbes/lumina,sasongko26/lumina,harcobbit/lumina,harcobbit/lumina,sasongko26/lumina,trueos/lumina,sasongko26/lumina,trueos/lumina,cpforbes/lumina,trueos/lumina,cpforbes/lumina,...
21bab842fb9e25fa8be50ae065090fef514fefed
test/Sema/incomplete-call.c
test/Sema/incomplete-call.c
// RUN: clang -fsyntax-only -verify %s struct foo; // expected-note 3 {{forward declaration of 'struct foo'}} struct foo a(); void b(struct foo); void c(); void func() { a(); // expected-error{{return type of called function ('struct foo') is incomplete}} b(*(struct foo*)0); // expected-error{{argument type 'str...
Add testcase for incomplete call/return types for calls.
Add testcase for incomplete call/return types for calls. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67486 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
9cabd0a776f968311e47295daab61050caaea5dc
third_party/vulkan/loader/vk_loader_layer.h
third_party/vulkan/loader/vk_loader_layer.h
/* * * Copyright (c) 2016 The Khronos Group Inc. * Copyright (c) 2016 Valve Corporation * Copyright (c) 2016 LunarG, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.ap...
Include every single file in the vulkan update.
Include every single file in the vulkan update.
C
bsd-3-clause
sabretooth/xenia,maxton/xenia,ObsidianGuardian/xenia,sephiroth99/xenia,sabretooth/xenia,sabretooth/xenia,sephiroth99/xenia,maxton/xenia,maxton/xenia,ObsidianGuardian/xenia,sephiroth99/xenia,ObsidianGuardian/xenia
acadbfb90a54673d6c8b05aa4e93218433890411
arch/alpha/include/asm/bug.h
arch/alpha/include/asm/bug.h
#ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __asm__ __volatile__( \ "call_pal %0 #...
#ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __asm__ __volatile__( \ "call_pal %0 #...
Convert BUG() to use unreachable()
alpha: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks.com> CC: Richard Henderson <aea4fd857e97ee7d33f60175ba9388a955b9d916@twiddle.net> CC: Ivan Kokshaysky <ec437ab60af367f0fec0f6a3cd47f9cbad7b4...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,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...
2536840398104b0270ba1156b1ff63cb4ae2a2ef
AsynchFilePlugin/AsynchFilePlugin.h
AsynchFilePlugin/AsynchFilePlugin.h
/* Header file for AsynchFile plugin */ /* module initialization/shutdown */ int asyncFileInit(void); int asyncFileShutdown(void); /*** Experimental Asynchronous File I/O ***/ typedef struct { int sessionID; void *state; } AsyncFile; int asyncFileClose(AsyncFile *f); int asyncFileOpen(AsyncFile *f, long fileName...
/* Header file for AsynchFile plugin */ /* module initialization/shutdown */ int asyncFileInit(void); int asyncFileShutdown(void); /*** Experimental Asynchronous File I/O ***/ typedef struct { int sessionID; void *state; } AsyncFile; int asyncFileClose(AsyncFile *f); int asyncFileOpen(AsyncFile *f, char *fileNam...
Update platforms/* with Eliot's fixes for 64-bit clean AsyncPlugin.
Update platforms/* with Eliot's fixes for 64-bit clean AsyncPlugin. The platforms/unix changes are tested. The win32 and Mac OS changes are not tested but I believe them to be correct. Not applicable to RiscOS. Updates not applied to iOS. @eliot - I changed the declarations in Cross to (void *) rather than long to re...
C
mit
bencoman/pharo-vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,bencoman/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm...
d7f2d994baaa83db932dbb1a0b8a31a717af1103
src/badgewars.c
src/badgewars.c
#include <badgewars.h> #include <stdio.h> /* Initialize the BadgeWars world */ void bw_init(struct bw_world *world) { puts("bw_init requested"); } /* Run the BadgeWars world for a single instruction */ int bw_run(struct bw_world *world) { puts("bw_run requested"); return 0; } /* Receive a BadgeWars comma...
#include <badgewars.h> #include <string.h> /* Initialize the BadgeWars world */ void bw_init(struct bw_world *world) { memset(&world->core, 0, sizeof(world->core)); world->queue_head = world->queue_tail = 0; } /* Run the BadgeWars world for a single instruction */ int bw_run(struct bw_world *world) { retu...
Initialize the world state to zero
Initialize the world state to zero
C
mit
tarcieri/BadgeWars,tarcieri/BadgeWars
822b9fd29f6ce8b69dc2705f04cae44fbb3e78f7
webkit/glue/plugins/ppb_private.h
webkit/glue/plugins/ppb_private.h
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_IN...
Add third_party/ prefix to ppapi include for checkdeps.
Add third_party/ prefix to ppapi include for checkdeps. The only users of this ppb should be inside chrome so this should work fine. TBR=jam@chromium.org Review URL: http://codereview.chromium.org/3019006 git-svn-id: http://src.chromium.org/svn/trunk/src@52766 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id:...
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
e2a6ce53ab445fd8976923171e78bd0e46db2407
src/mapraised.c
src/mapraised.c
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Maps and raises the specified window id (integer). */ #include <X11/Xlib.h> #include <stdlib.h> int main(int argc, char** argv) { if (a...
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Maps and raises the specified window id (integer). */ /* TODO: use XResizeWindow to do the +1 width ratpoison hack. * And at this point, we...
Add TODO to replace ratpoison.
Add TODO to replace ratpoison.
C
bsd-3-clause
nromsdahl/crouton,twmccart/crouton,VandeurenGlenn/crouton,Timvrakas/crouton,stephen-soltesz/crouton,fxcebx/crouton,arbuztw/crouton,StrawnPoint04/crouton,Timvrakas/crouton,ikaritw/crouton,tonyxue/cruise,rperce/chroagh,armgong/chroagh,JDGBOLT/chroagh,arbuztw/crouton,Timvrakas/crouton,jamgregory/crouton,taterbase/crouton,...
40373bf93e90ab4d372d149aad334dfe238c1eed
src/arch/zephyr/csp_zephyr_init.c
src/arch/zephyr/csp_zephyr_init.c
#include <zephyr.h> #include <init.h> #include <posix/time.h> #include <csp/csp_debug.h> #include <logging/log.h> LOG_MODULE_REGISTER(libcsp); static void hook_func(csp_debug_level_t level, const char * format, va_list args) { uint32_t args_num = log_count_args(format); switch (level) { case CSP_ERROR: Z_LO...
#include <zephyr.h> #include <init.h> #include <posix/time.h> #include <csp/csp_debug.h> #include <logging/log.h> LOG_MODULE_REGISTER(libcsp); } static int libcsp_zephyr_init(const struct device * unused) { struct timespec ts = { .tv_sec = 946652400, .tv_nsec = 0, }; clock_settime(CLOCK_REALTIME, &ts); r...
Remove debug print hook function
zephyr: Remove debug print hook function Debug print facility has been removed by the commit 39d6478; csp_debug_hook_set(), csp_debug_level_t, CSP_ERROR and its friends are gone. Remove it from Zephyr as well. Signed-off-by: Yasushi SHOJI <afa9ca3be149447780c2f7b524d61ed3d3db63f9@spacecubics.com>
C
mit
libcsp/libcsp,libcsp/libcsp
ea2b22d62983758013ca528ef1325d6c191420b2
CoreNetworking/AFNetworkSchedule.h
CoreNetworking/AFNetworkSchedule.h
// // AFNetworkEnvironment.h // CoreNetworking // // Created by Keith Duncan on 05/01/2013. // Copyright (c) 2013 Keith Duncan. All rights reserved. // #import <Foundation/Foundation.h> #import "CoreNetworking/AFNetwork-Macros.h" /*! \brief Schedule environment for run loop and dispatch */ @interface AFNetwor...
// // AFNetworkEnvironment.h // CoreNetworking // // Created by Keith Duncan on 05/01/2013. // Copyright (c) 2013 Keith Duncan. All rights reserved. // #import <Foundation/Foundation.h> #import "CoreNetworking/AFNetwork-Macros.h" /*! \brief Schedule environment for run loop and dispatch */ @interface AFNetwor...
Make the run loop and queue @public until we enhance the scheduler API
Make the run loop and queue @public until we enhance the scheduler API
C
bsd-3-clause
ddeville/CoreNetworking
1009adc8cf7154d19c7ffebc2e35d70722076ea8
native-unpacker/definitions.h
native-unpacker/definitions.h
/* * Header file for the definitions of packers/protectors * * Tim "diff" Strazzere <strazz@gmail.com> */ typedef struct { char* name; char* description; char* filter; char* marker; } packer; static packer packers[] = { // APKProtect { "APKProtect v1->5", "APKProtect generialized detection", ...
/* * Header file for the definitions of packers/protectors * * Tim "diff" Strazzere <strazz@gmail.com> */ typedef struct { char* name; char* description; char* filter; char* marker; } packer; static packer packers[] = { // APKProtect { "APKProtect v1->5", "APKProtect generialized detection", ...
Add detection for whatever silly protector new malware was using.
Add detection for whatever silly protector new malware was using. Closes issue #22
C
apache-2.0
strazzere/android-unpacker,strazzere/android-unpacker
b672df825ad9d6b4b16ddadb73c9b012c04ded05
include/llvm/DebugInfo/CodeView/GUID.h
include/llvm/DebugInfo/CodeView/GUID.h
//===- GUID.h ---------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- GUID.h ---------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Merge in types and items from type servers (/Zi)
[PDB] Merge in types and items from type servers (/Zi) Summary: Object files compiled with /Zi emit type information into a type server PDB. The .debug$S section will contain a single TypeServer2Record with the absolute path and GUID of the type server. LLD needs to load the type server PDB and merge all types and ite...
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm...
4cb0950cfe4055ca54d08b9639ee4e462cb009a3
src/include/storage/relfilenode.h
src/include/storage/relfilenode.h
#ifndef RELFILENODE_H #define RELFILENODE_H /* * This is all what we need to know to find relation file. * tblNode is identificator of tablespace and because of * currently our tablespaces are equal to databases this is * database OID. relNode is currently relation OID on creation * but may be changed later if re...
#ifndef RELFILENODE_H #define RELFILENODE_H /* * This is all what we need to know to find relation file. * tblNode is identificator of tablespace and because of * currently our tablespaces are equal to databases this is * database OID. relNode is currently relation OID on creation * but may be changed later if re...
Fix small but critical typo ...
Fix small but critical typo ...
C
apache-2.0
xuegang/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,chrishajas/gpdb,adam8157/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,atris/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,50wu/gpdb,0x0FFF/gpdb,ahachete/gpdb,rvs/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,rubikloud/gpdb,atris/gpdb,ashwinstar/gpdb,janebe...
9b86f2f27bdc1116be1b388e0e66c34b10006ba6
Plugins/org.mitk.gui.qt.multilabelsegmentation/src/internal/QmitkCreateMultiLabelSegmentationAction.h
Plugins/org.mitk.gui.qt.multilabelsegmentation/src/internal/QmitkCreateMultiLabelSegmentationAction.h
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
Add override keyword to overridden methods.
Add override keyword to overridden methods.
C
bsd-3-clause
iwegner/MITK,iwegner/MITK,fmilano/mitk,RabadanLab/MITKats,RabadanLab/MITKats,MITK/MITK,MITK/MITK,MITK/MITK,RabadanLab/MITKats,RabadanLab/MITKats,RabadanLab/MITKats,iwegner/MITK,fmilano/mitk,RabadanLab/MITKats,fmilano/mitk,fmilano/mitk,MITK/MITK,MITK/MITK,iwegner/MITK,iwegner/MITK,fmilano/mitk,fmilano/mitk,MITK/MITK,fmi...
0c55d02164a8fcc6682791603e53d7c099f59699
include/matrix_access_impl.h
include/matrix_access_impl.h
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } ...
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } ...
Add square bracket opertator access.
Add square bracket opertator access.
C
mit
actinium/cppMatrix,actinium/cppMatrix
c2b721b570a6919d4e20d86dd380677714d37a61
SSPSolution/SSPSolution/StaticEntity.h
SSPSolution/SSPSolution/StaticEntity.h
#ifndef SSPAPPLICATION_ENTITIES_STATICENTITY_H #define SSPAPPLICATION_ENTITIES_STATICENTITY_H #include "Entity.h" class StaticEntity : public Entity { private: //Variables public: StaticEntity(); ~StaticEntity(); int Initialize(int entityID, PhysicsComponent* pComp, GraphicsComponent* gComp, AIComponent* aiComp);...
#ifndef SSPAPPLICATION_ENTITIES_STATICENTITY_H #define SSPAPPLICATION_ENTITIES_STATICENTITY_H #include "Entity.h" class StaticEntity : public Entity { private: //Variables public: StaticEntity(); ~StaticEntity(); int Initialize(int entityID, PhysicsComponent* pComp, GraphicsComponent* gComp, AIComponent* aiComp =...
FIX Interface parameter for Entities
FIX Interface parameter for Entities
C
apache-2.0
Chringo/SSP,Chringo/SSP
c1edd1358355fd02d8687f679cb4486ad43a6cce
src/util.h
src/util.h
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ((type*) xmalloc(sizeof(type))) void *xmalloc(size_t); #define STARTS_WITH(x, y) (strncmp((x), (y), sizeof(y) - 1) == 0) #endif /* UTIL_H */
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ((type*) xmalloc(sizeof(type))) void *xmalloc(size_t); #define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0) #endif /* UTIL_H */
Fix STARTS_WITH macro comparing 1 less character than needed
Fix STARTS_WITH macro comparing 1 less character than needed
C
apache-2.0
mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify
bc33362a093bc50a2b0c6edad3242b5abf688482
ObjectiveRocks/RocksDBComparator.h
ObjectiveRocks/RocksDBComparator.h
// // RocksDBComparator.h // ObjectiveRocks // // Created by Iska on 22/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, RocksDBComparatorType) { RocksDBComparatorBytewiseAscending, RocksDBComparatorBytewiseDescending, RocksDBCompar...
// // RocksDBComparator.h // ObjectiveRocks // // Created by Iska on 22/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> /** An enum defining the built-in Comparators. */ typedef NS_ENUM(NSUInteger, RocksDBComparatorType) { /** @brief Orders the keys lexicogra...
Add source code documentation for the Comparator class
Add source code documentation for the Comparator class
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
13d6f51d99675d5c31d4fb6c6fc18dcb1acb9ba0
spellutil.h
spellutil.h
#ifndef SPELLUTIL_H #define SPELLUTIL_H typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_free(spell_list_node **, void (*) (void *)); #endif
#ifndef SPELLUTIL_H #define SPELLUTIL_H typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; typedef struct spell_hashtable { char *key; spell_list_node *val; } spell_hashtable; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, v...
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
C
bsd-2-clause
abhinav-upadhyay/spell,abhinav-upadhyay/spell
fdd0878001f328e622c1f3997ce803a2ef14a311
src/flags.c
src/flags.c
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** argume...
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** arguments) {...
Remove `-?` to display help
Remove `-?` to display help It seems like `--help` and `-h` is good enough alternatives for getting the help display.
C
bsd-2-clause
sourrust/laco
e4d969299a627124fde388be9b057781a3a57fe4
src/libreset/ht.c
src/libreset/ht.c
#include <stdlib.h> #include "ht.h" #include "util/macros.h" struct ht* ht_init( struct ht* ht, size_t n ) { if (ht) { ht->buckets = calloc(n, sizeof(*ht->buckets)); ht->nbuckets = n; } return ht; } void ht_destroy( struct ht* ht ) { if (ht) { for (; ht->nbuckets ...
#include <stdlib.h> #include "ht.h" #include "util/macros.h" struct ht* ht_init( struct ht* ht, size_t n ) { if (ht) { ht->buckets = calloc(n, sizeof(*ht->buckets)); ht->nbuckets = n; } return ht; } void ht_destroy( struct ht* ht ) { if (ht) { for (; ht->nbuckets ...
Use division here, not modulo
Fixup: Use division here, not modulo
C
lgpl-2.1
waysome/libreset,waysome/libreset
f350f1048b136bcf5adf21769af3379abc094d68
zuzeelik.c
zuzeelik.c
#include <stdio.h> #include <stdlib.h> #include <editline/readline.h> #include <editline/history.h> int main(int argc, char** argv) { puts("zuzeelik [version: v0.0.0-0.0.2]"); puts("Press Ctrl+C to Exit \n"); /* Starting REPL */ while(1){ /* output from the prompt*/ char* input = readline("zuzeelik> "); ...
#include <stdio.h> #include <stdlib.h> /* if compiling in windows, compiling with this functions */ #ifdef _WIN32 #include <string.h> static char buffer[2048]; /* fake readline functions */ char* readline(char* prompt) { fputs(prompt, stdout); fputs(buffer, 2048, stdin); fgets(buffer, 2048, stdin); char* ...
Add portability for windows OS
Add portability for windows OS Added protibility for windows OS,using preprocessor directives and made fake functions for windows.
C
bsd-3-clause
Mr-Kumar-Abhishek/zuzeelik,shadow-stranger/zuzeelik
aeb2aad80dfff4276c3e64347dd506bc2d73bc41
pkg/fizhi/fizhi_ocean_coms.h
pkg/fizhi/fizhi_ocean_coms.h
C $Header$ C $Name$ c Ocean Exports c ------------------- common /ocean_exports/ sst, sice, ksst, kice _RL sst(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) _RL sice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) integer ksst, kice
C $Header$ C $Name$ c Ocean Parameters c ------------------- common /ocean_params/sstclim,sstfreq,siceclim,sicefreq,ksst,kice logical sstclim,sstfreq,siceclim,sicefreq integer ksst, kice c Ocean Exports c ------------------- common /ocean_exports/ sst, sice _RL sst(1-OLx:sNx+OLx,1-OLy:sN...
Add options for yearly sst data, move some other stuff around a bit
Add options for yearly sst data, move some other stuff around a bit
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
446fbd56fc8ab90ea108f30376fb3f8706eabe75
src/sigen.h
src/sigen.h
// // sigen.h: global header file for user includes // ----------------------------------- #pragma once #include <sigen/types.h> #include <sigen/dvb_defs.h> #include <sigen/version.h> #include <sigen/tstream.h> #include <sigen/packetizer.h> #include <sigen/utc.h> #include <sigen/util.h> #include <sigen/dump.h> #inc...
// // sigen.h: global header file for user includes // ----------------------------------- #pragma once #include "types.h" #include "dvb_defs.h" #include "version.h" #include "tstream.h" #include "packetizer.h" #include "utc.h" #include "util.h" #include "dump.h" #include "table.h" #include "nit.h" #include "bat.h"...
Fix header includes to use local paths.
Fix header includes to use local paths.
C
mit
edporras/sigen,edporras/sigen,edporras/sigen,edporras/sigen
9e6bff980dd07d5cd9fcda8f882541fb2124366f
test/expression_command/timeout/wait-a-while.c
test/expression_command/timeout/wait-a-while.c
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <stdint.h> int wait_a_while (useconds_t interval) { int num_times = 0; int return_value = 1; struct timeval start_time; gettimeofday(&start_time, NULL); uint64_t target = start_time.tv_sec * 1000000 + start_time.tv_usec + interval; wh...
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <stdint.h> int wait_a_while (useconds_t interval) { int num_times = 0; int return_value = 1; struct timeval start_time; gettimeofday(&start_time, NULL); uint64_t target = start_time.tv_sec * 1000000 + start_time.tv_usec + interval; wh...
Fix interval recalculation in the event that usleep is interrupted
Fix interval recalculation in the event that usleep is interrupted git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@207566 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb
f518438117dce6549cc1e5f8eec27c42621458dc
shellcode/shellcode_1.c
shellcode/shellcode_1.c
// gcc -mpreferred-stack-boundary=2 -ggdb shellcode_1.c -o shellcode_1 // run the syscalls from syscall_native.c from a static buffer #include <stdio.h> // WORKING // * exit is called, and the process exits with the right code // TODO // * write doesn't write anything - check %ebp-4 is the right address // Get hex r...
Make exit syscall from shellcode in static memory
Make exit syscall from shellcode in static memory * write syscall not working yet
C
mit
jwhitfieldseed/sandbox,jwhitfieldseed/sandbox,jwhitfieldseed/sandbox,jwhitfieldseed/sandbox
4a84755d57214ef5b73fae956c525f70f4da7b66
collatz/count.c
collatz/count.c
#include <stdio.h> #include <stdlib.h> struct step_count { long start; long max; size_t steps; }; static long r(long n, struct step_count* cnt) { printf("%ld\n", n); //do not count last step, we're counting the initial call //causing 63,728,127 to count 950 steps instead of expected 949 if...
Add collatz C snippet that keeps track of highest value + total steps taken
Add collatz C snippet that keeps track of highest value + total steps taken
C
mit
EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts
42352805016e94ea2d1b1f13bc8d6cde63c57022
src/commands/debugger.c
src/commands/debugger.c
#include "debugger.h" #include <stdio.h> #include <lua.h> #include "laco.h" void laco_print_debug_info(struct LacoState* laco, const char* function_name) { lua_State* L = laco_get_laco_lua_state(laco); lua_Debug debug_info = {0}; lua_getfield(L, LUA_GLOBALSINDEX, function_name); ...
#include "debugger.h" #include <lua.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "laco.h" #include "util.h" void laco_print_debug_info(struct LacoState* laco, const char* function_name) { int i; char* namespace; lua_State* L = laco_get_laco_lua_stat...
Add ablity to look through named tables
Add ablity to look through named tables
C
bsd-2-clause
sourrust/laco
eeef499339106928c39e22d9b5e0edfcaf3bc85c
src/fuzzing/mutator.h
src/fuzzing/mutator.h
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Add library for github workflow
Add library for github workflow
C
apache-2.0
google/CTAP2-test-tool,google/CTAP2-test-tool,google/CTAP2-test-tool
7d47b8f080e71139662b682d8f395f4a3f4789f2
firmware/greatfet_usb/usb_api_dac.c
firmware/greatfet_usb/usb_api_dac.c
/* * This file is part of GreatFET */ #include "usb_api_dac.h" #include "usb.h" #include "usb_queue.h" #include "usb_endpoint.h" #include <stddef.h> #include <greatfet_core.h> #include <dac.h> #include <pins.h> usb_request_status_t usb_vendor_request_dac_set( usb_endpoint_t* const endpoint, const usb_transfer_st...
/* * This file is part of GreatFET */ #include "usb_api_dac.h" #include "usb.h" #include "usb_queue.h" #include "usb_endpoint.h" #include <stddef.h> #include <greatfet_core.h> #include <dac.h> #include <pins.h> usb_request_status_t usb_vendor_request_dac_set( usb_endpoint_t* const endpoint, const usb_transfer_st...
Fix typo which used a mask for a logical-and
Fix typo which used a mask for a logical-and The DAC conversion register value mask was logical-and'ed instead of bitwise-and'ed when setting the DAC value via USB vendor request.
C
bsd-3-clause
greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,greatscottgadgets/greatfet,greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,dominicgs/GreatFET-experimental,greatscottgadgets/greatfet
452d4b6c823d793770676dc5e2f3fc32c6c15e6d
src/condor_includes/condor_constants.h
src/condor_includes/condor_constants.h
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef i...
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef i...
Define CPP macro BOOLAN_TYPE_DEFINED when we define types BOOLEAN and BOOL_T, to avoid doing it twice.
Define CPP macro BOOLAN_TYPE_DEFINED when we define types BOOLEAN and BOOL_T, to avoid doing it twice.
C
apache-2.0
htcondor/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/htcondor,htcondor/htcondor,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,djw8605/condor,clalancette/condor-dcloud,djw8605/condor,bboc...
c033df3aeef588c2faf3cce3066b091980be0083
src/include/xmmsc/xmmsc_sockets.h
src/include/xmmsc/xmmsc_sockets.h
#ifndef XMMSC_SOCKETS_H #define XMMSC_SOCKETS_H #include <xmmsc/xmmsc_stdbool.h> /* Windows */ #ifdef _MSC_VER #include <Winsock2.h> #include <Ws2tcpip.h> typedef SOCKET xmms_socket_t; typedef int socklen_t; #define XMMS_EINTR WSAEINTR #define XMMS_EAGAIN WSAEWOULDBLOCK /* UNIX */ #else #define SOCKET_ERROR (-1) #d...
#ifndef XMMSC_SOCKETS_H #define XMMSC_SOCKETS_H #include <xmmsc/xmmsc_stdbool.h> /* Windows */ #ifdef _MSC_VER #include <Winsock2.h> #include <Ws2tcpip.h> typedef SOCKET xmms_socket_t; typedef int socklen_t; #define XMMS_EINTR WSAEINTR #define XMMS_EAGAIN WSAEWOULDBLOCK /* UNIX */ #else #define SOCKET_ERROR (-1) #d...
Fix compilation on OpenBSD (from Bernhard Leiner)
BUG(501): Fix compilation on OpenBSD (from Bernhard Leiner)
C
lgpl-2.1
theefer/xmms2,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,oneman/xmms2-oneman-old,mantaraya36/xmms2-mantaraya36,krad-radio/xmms2-krad,theefer/xmms2,krad-radio/xmms2-krad,dreamerc/xmms2,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,theefer/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,six600110/xmms2,onema...
2c90cd47e03a5ae5f725d3a7d638dfaf05f7896d
tests/Native/Passes.h
tests/Native/Passes.h
enum FlagEnum { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 3, }; enum FlagEnum2 { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 4, }; class C { }; void DoSomethingC(C*, int); struct TestRename { int lowerCaseMethod(); int lowerCaseField; }; #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM...
enum FlagEnum { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 3, }; enum FlagEnum2 { A1 = 1 << 0, B1 = 3, C1 = 1 << 2, D1 = 1 << 4, }; class Foo { }; void FooStart(Foo*, int); struct TestRename { int lowerCaseMethod(); int lowerCaseField; }; #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM_...
Update the passes test source file.
Update the passes test source file.
C
mit
ktopouzi/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,mono/CppSharp,inordertotest/CppSharp,xistoso/CppSharp,txdv/CppSharp,u255436/CppSharp,ktopouzi/CppSharp,nalkaro/CppSharp,xistoso/CppSharp,mohtamohit/CppSharp,imazen/CppSharp,KonajuGames/CppSharp,SonyaSa/CppSharp,Samana/CppSharp,ddobrev/...
c0a4377575c734ce8872d804229f852240d5b661
include/probes_mysql.h
include/probes_mysql.h
/* Copyright (c) 2008 Sun Microsystems, Inc. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in ...
/* Copyright (c) 2008 Sun Microsystems, Inc. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in ...
Fix build error on Ubuntu 11.10, if systemtap is installed.
Fix build error on Ubuntu 11.10, if systemtap is installed. The error is due to conflict between min/max macros in my_global.h and system header < limits>, indirectly included via generated probes_mysql_dtrace.h Temporarily undefined min/max for the inclusion of the probes_mysq_dtrace.h
C
lgpl-2.1
ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,ollie314/server,davidl-zend/zenddbi,davidl-zend/zenddbi,ollie314/server,natsys/mariadb_10.2,ollie314/server,natsys/mariadb_10.2,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,flynn1973/mariadb-aix,ollie314/server,natsys/mariadb_10.2,flynn1973/mariadb-...
6bdd0fda6908cd99fb4186d45faa80b34ccfdc83
include/xaptum-ecdaa.h
include/xaptum-ecdaa.h
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
Add verify.h to top-level include-all header.
FIX: Add verify.h to top-level include-all header.
C
apache-2.0
xaptum/ecdaa,xaptum/ecdaa,xaptum/ecdaa
60323734541afb648b0805abf04a3cb043494bfa
libgnome/gnome-popt.h
libgnome/gnome-popt.h
#ifndef __GNOME_POPT_H__ #define __GNOME_POPT_H__ 1 #include "gnome-defs.h" BEGIN_GNOME_DECLS /* This is here because it does not have its own #ifdef __cplusplus */ #include <popt-gnome.h> void gnomelib_register_popt_table(const struct poptOption *options, const char *description); poptContext gnomelib_pars...
#ifndef __GNOME_POPT_H__ #define __GNOME_POPT_H__ 1 #include "gnome-defs.h" BEGIN_GNOME_DECLS /* This is here because it does not have its own #ifdef __cplusplus */ #include <popt.h> void gnomelib_register_popt_table(const struct poptOption *options, const char *description); poptContext gnomelib_parse_args...
Check for newer popt, and include it in the needed libs. Give correct
Check for newer popt, and include it in the needed libs. Give correct * configure.in: Check for newer popt, and include it in the needed libs. * gnome-compat-1.0.h: Give correct paths to compat headers. * gnome-config.in: Fixes to make help output correct. * gnome.m4: Reorg so it doesn't do any path searching itself...
C
lgpl-2.1
Distrotech/libgnome,Distrotech/libgnome,Distrotech/libgnome
aea6ee736f73e503c0fcc2513ffd51bd74d17071
net/proxy/proxy_resolver_mac.h
net/proxy/proxy_resolver_mac.h
// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #incl...
// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #incl...
Fix a typo, that could cause a crash on mac.
Fix a typo, that could cause a crash on mac. BUG=50717 TBR=rvargas TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash. Review URL: http://codereview.chromium.org/3023030 git-svn-id: http://src.chromium.org/svn/trunk/src@54279 4ff67af0-8c30-449e-8e8b-ad334ec8d88c ...
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
505e4531b7e52daf6caa9eac9904d9a014e0d14f
tests/online/badssl.c
tests/online/badssl.c
#include "clar_libgit2.h" #include "git2/clone.h" static git_repository *g_repo; #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) void test_online_badssl__expired(void) { cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://expired.badssl.com/fake.git", "./fake", NULL...
#include "clar_libgit2.h" #include "git2/clone.h" static git_repository *g_repo; #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) static bool g_has_ssl = true; #else static bool g_has_ssl = false; #endif void test_online_badssl__expired(void) { if (!g_has_ssl) cl_skip(); cl_git...
Fix build for unit test
Fix build for unit test If none of GIT_OPENSSL, GIT_WINHTTP or GIT_SECURE_TRANSPORT is defined we should also be able to build the unit test.
C
lgpl-2.1
stewid/libgit2,magnus98/TEST,leoyanggit/libgit2,Tousiph/Demo1,yongthecoder/libgit2,jeffhostetler/public_libgit2,KTXSoftware/libgit2,KTXSoftware/libgit2,saurabhsuniljain/libgit2,magnus98/TEST,yongthecoder/libgit2,KTXSoftware/libgit2,magnus98/TEST,yongthecoder/libgit2,Tousiph/Demo1,Tousiph/Demo1,Corillian/libgit2,saurabh...
a014bcdc929147cd6c5c2b0dea1d32b1339625b4
ogles_gpgpu/common/macros.h
ogles_gpgpu/common/macros.h
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #ifndef OGLES_GPGPU_COMMON_MACROS #define OGLES_GPGPU_COMMON_MAC...
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #ifndef OGLES_GPGPU_COMMON_MACROS #define OGLES_GPGPU_COMMON_MAC...
Use !NDEBUG to detect Debug variant of build
Use !NDEBUG to detect Debug variant of build
C
apache-2.0
headupinclouds/ogles_gpgpu,headupinclouds/ogles_gpgpu,hunter-packages/ogles_gpgpu,hunter-packages/ogles_gpgpu,hunter-packages/ogles_gpgpu,headupinclouds/ogles_gpgpu,hunter-packages/ogles_gpgpu,headupinclouds/ogles_gpgpu
ed69dd7849b8921917191d6a037d52043e44579f
algorithms/include/algorithms/quick_union_with_path_compression.h
algorithms/include/algorithms/quick_union_with_path_compression.h
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #include "DLLDefines.h" #include <vector> #include <stddef.h> /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data struct...
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #include "DLLDefines.h" #include <vector> #include <stddef.h> /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data struct...
Remove unnecessary checking of size_t >= 0
Remove unnecessary checking of size_t >= 0
C
mit
TusharJadhav/algorithms,TusharJadhav/algorithms
e5171648164a72ea9ae83e5f2bb47dcb5b498fa6
eg/inc/Hepevt.h
eg/inc/Hepevt.h
/* @(#)root/eg:$Name$:$Id$ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
/* @(#)root/eg:$Name: $:$Id: Hepevt.h,v 1.1.1.1 2000/05/16 17:00:47 rdm Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Change maximum dimension of hepevt from 2000 to 4000 to be consistent between Pythia5 and 6. Note that this change implies a recompilation of jetset.f
Change maximum dimension of hepevt from 2000 to 4000 to be consistent between Pythia5 and 6. Note that this change implies a recompilation of jetset.f git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@5072 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
sbinet/cxx-root,krafczyk/root,beniz/root,karies/root,agarciamontoro/root,sbinet/cxx-root,simonpf/root,nilqed/root,Dr15Jones/root,vukasinmilosevic/root,gbitzes/root,omazapa/root,zzxuanyuan/root,buuck/root,lgiommi/root,satyarth934/root,0x0all/ROOT,jrtomps/root,agarciamontoro/root,krafczyk/root,perovic/root,sbinet/cxx-roo...
6cbb0e446c5e939612b8e3dfa3771165ca255074
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void *); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f)...
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void *); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f)...
Add List Insert function declaration
Add List Insert function declaration
C
mit
MaxLikelihood/CADT
e849a32bb0b490d77b7c42ccbd9d7508e16a0f00
include/fmrcxx/fmrcxx.h
include/fmrcxx/fmrcxx.h
#ifndef FMRCXX_FMRCXX_H_ #define FMRCXX_FMRCXX_H_ #include <fmrcxx/Iterator.h> #include <fmrcxx/Range.h> #include <fmrcxx/internal/StdMapIterator.h> #include <fmrcxx/internal/StdContainerIterator.h> namespace fmrcxx { template <typename T, template <typename...> class Container, typename... TTs> StdContainerIterator...
#ifndef FMRCXX_FMRCXX_H_ #define FMRCXX_FMRCXX_H_ #include <fmrcxx/Iterator.h> #include <fmrcxx/Range.h> #include <fmrcxx/Random.h> #include <fmrcxx/internal/StdMapIterator.h> #include <fmrcxx/internal/StdContainerIterator.h> namespace fmrcxx { template <typename T, template <typename...> class Container, typename.....
Add Random to general header
Add Random to general header
C
apache-2.0
cyr62110/fmrcxx
dbb3b7606ccb070aedf6771e8efa54a15c2e5426
src/condor_includes/condor_common.h
src/condor_includes/condor_common.h
#include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include <string.h> #include <ctype.h> #include <fcntl.h> #include <errno.h>
#include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include "condor_fix_string.h" #include <ctype.h> #include <fcntl.h> #include <errno.h>
Include condor_fix_string.h rather than just string.h
Include condor_fix_string.h rather than just string.h
C
apache-2.0
bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/condor,bbockelm/condo...
c805263f16973c011d9d8bf89da77024fc549d42
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 106 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 107 #endif
Update Skia milestone to 107
Update Skia milestone to 107 Change-Id: I2e2b4917adaea52c9cabd92bce092d279210cb82 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/571236 Auto-Submit: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com> Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-...
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia
02e0e8e72ad4f1e71483a8b6ab374ef8f47818a5
ExtendTypedef/ExtendFunctor.h
ExtendTypedef/ExtendFunctor.h
#ifndef __extendFunctor_ #define __extendFunctor_ template<class Functor, typename CSig, typename ESig> struct ExtendedFunctor : public Functor { public: typedef typename CSig::type ControlSignature; typedef typename ESig::type ExecutionSignature; }; #endif
Add new functor that inherits from base and has custom sigs.
Add new functor that inherits from base and has custom sigs.
C
bsd-2-clause
robertmaynard/Sandbox,robertmaynard/Sandbox,robertmaynard/Sandbox,robertmaynard/Sandbox
5f55407acaccc0e20efaa71ee3cbd247707397b0
src/robobo.h
src/robobo.h
#ifndef ROBOBO_H #define ROBOBO_H #include "main.h" #include <string.h> // C strings to handle args #include <sstream> #endif
#ifndef ROBOBO_H #define ROBOBO_H #include "main.h" #include "base.h" #include <string.h> // C strings to handle args #include <sstream> #endif
Include unincluded necessary header file.
Include unincluded necessary header file.
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
7326541875f1df288b485711dda342fe09297e4e
PHPHub/Constants/APIConstant.h
PHPHub/Constants/APIConstant.h
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL ...
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL ...
Change about the author url
Change about the author url
C
mit
Aufree/phphub-ios
53849e2086a253bca800b5f25153c3892a4f4db1
test/suite/bugs/ifpp.c
test/suite/bugs/ifpp.c
int f(int d) { int i = 0, j, k, l; if (d%2==0) if (d%3==0) i+=2; else i+=3; if (d%2==0) { if (d%3==0) i+=7; } else i+=11; l = d; if (d%2==0) while (l--) if (1) i+=13; else ...
Add another test for pretty printing if-then-else
Add another test for pretty printing if-then-else Ignore-this: c0cab673ec9d716deb4154ae5599ed74 darcs-hash:512056f55df6186193f854d96821b4a589d19d04
C
bsd-3-clause
micknelso/language-c,micknelso/language-c,micknelso/language-c
a5f90d80a27a575b3fc428e38d2d179dad1c877b
Pod/Classes/Core/CLPUIObject.h
Pod/Classes/Core/CLPUIObject.h
#import "CLPBaseObject.h" @interface CLPUIObject : CLPBaseObject @property (nonatomic, readwrite) IBOutlet UIView *view; - (instancetype)remove; @end
#import "CLPBaseObject.h" @interface CLPUIObject : CLPBaseObject @property (nonatomic, strong, readwrite) IBOutlet UIView *view; - (instancetype)remove; @end
Set view property to strong for UIObjects.
Set view property to strong for UIObjects.
C
bsd-3-clause
barbosa/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,barbosa/clappr-ios
62f828c9bd51124a9a24362fbf6d2bc4a7971e75
src/domain/noterepository.h
src/domain/noterepository.h
/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or (at your option) version...
/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or (at your option) version...
Add the default source concept to NoteRepository
Add the default source concept to NoteRepository
C
lgpl-2.1
sandsmark/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,sandsmark/zanshin,kolab-groupware/zanshin,kolab-groupware/zanshin
b202cb277a68a78e431bdf0cdbf1dd5215a7055e
experiments.h
experiments.h
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Remove no longer used SkipEncodingUnusedStreams.
Remove no longer used SkipEncodingUnusedStreams. R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18829004 git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@6753 4adac7df-926f-26a2-2b94-8c16560cd09d
C
bsd-3-clause
jgcaaprom/android_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,geekboxzone/lollipop_external_chro...
452dbb09e2fd05a8f9fcfa300dd12ceefe9bf8ab
src/Update.h
src/Update.h
// Copyright (c) 2016-2020 The Karbowanec developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UPDATE_H #define UPDATE_H #include <QObject> #include <QNetworkAccessManager> #include <QNetworkRequest> #include ...
// Copyright (c) 2016-2020 The Karbowanec developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UPDATE_H #define UPDATE_H #include <QObject> #include <QNetworkAccessManager> #include <QNetworkRequest> #include ...
Change repository urls to proper for this version
Change repository urls to proper for this version
C
mit
seredat/karbowanecwallet,seredat/karbowanecwallet,seredat/karbowanecwallet
465934742bafb175501c12cc2b8ebfe9bd732e3b
src/common.c
src/common.c
#define BASE_SPEED_FULL 127 void base_set(int fr, int br, int bl, int fl); void base_set(int power); void dump_set(int x); void lift_set(int x); #define LCD_BUTTON_LEFT 1 #define LCD_BUTTON_CENTER 2 #define LCD_BUTTON_RIGHT 4 #define LCD_BUTTON_NONE 0 #define LCD_LINE_TOP 0 #define LCD_LINE_BOTTOM 1 ...
#define BASE_SPEED_FULL 127 void base_set(int fr, int br, int bl, int fl); void base_set(int power); void dump_set(int x); void lift_set(int x); #define LCD_BUTTON_LEFT 1 #define LCD_BUTTON_CENTER 2 #define LCD_BUTTON_RIGHT 4 #define LCD_BUTTON_NONE 0 #define LCD_LINE_TOP 0 #define LCD_LINE_BOTTOM 1 ...
Remove annoying "unreferenced function" warnings
Remove annoying "unreferenced function" warnings
C
mit
qsctr/vex-4194b-2016
8c79cb12cffdb76543fa79455083ad1daef89194
shaderDefines.h
shaderDefines.h
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #define TEXUNIT_TEMP 0 #define TEXUNIT_COLOR 1 #define TEXUNIT_AREATEX 2 #define TEXUNIT_SEARCHTEX 3 #define TEXUNIT_EDGES 4 #define TEXUNIT_BLEND 5 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals ...
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #define TEXUNIT_TEMP 0 #define TEXUNIT_COLOR 1 #define TEXUNIT_AREATEX 2 #define TEXUNIT_SEARCHTEX 3 #define TEXUNIT_EDGES 4 #define TEXUNIT_BLEND 5 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals ...
Change "unsigned int" -> "uint" for better GLSL compatibility
Change "unsigned int" -> "uint" for better GLSL compatibility
C
mit
turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo
655f3d4c389dbcb1e23c2ba425ccfd85234f6fce
include/rng.h
include/rng.h
/************************************************* * RandomNumberGenerator Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RANDOM_NUMBER_GENERATOR__ #define BOTAN_RANDOM_NUMBER_GENERATOR__ #include <botan/exceptn.h> namesp...
/************************************************* * RandomNumberGenerator Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RANDOM_NUMBER_GENERATOR__ #define BOTAN_RANDOM_NUMBER_GENERATOR__ #include <botan/exceptn.h> namesp...
Remove exception specifier from RandomNumberGenerator::randomize
Remove exception specifier from RandomNumberGenerator::randomize
C
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecuri...
743a89c5c27c3c17b87af5df8c381d95b00f2f42
pg_query.c
pg_query.c
#include "pg_query.h" #include "pg_query_internal.h" const char* progname = "pg_query"; void pg_query_init(void) { MemoryContextInit(); }
#include "pg_query.h" #include "pg_query_internal.h" #include <mb/pg_wchar.h> const char* progname = "pg_query"; void pg_query_init(void) { MemoryContextInit(); SetDatabaseEncoding(PG_UTF8); }
Set database encoding to UTF8.
Set database encoding to UTF8. Fixes error when parsing this statement: SELECT U&'\0441\043B\043E\043D' The error is: Unicode escape values cannot be used for code point values above 007F when the server encoding is not UTF8. Perhapes there could be an API to set the encoding used by the parser. But I think it mak...
C
bsd-3-clause
lfittl/libpg_query,ranxian/peloton-frontend,lfittl/libpg_query,lfittl/libpg_query,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend
b3cc864f59fe9edd44a3407e9ab814323cfb424a
cc1/tests/test032.c
cc1/tests/test032.c
/* name: TEST032 description: test special characters @ and $ in macro definitions output: F3 I G4 F3 main { \ A6 P p A6 "54686973206973206120737472696E672024206F722023206F72202323616E64206974206973206F6B2021 'P :P r A6 #P0 !I } */ #define M1(x) "This is a string $ or # or ##" ## #x int main(void) { char *p = M1(...
Add test for special characters in macro definition
Add test for special characters in macro definition @ and $ only can appear in strings or in characters, and cc1 use them for special purposes in macro definitions. Test that it is ok is they are in a macro (character test should be done to).
C
isc
k0gaMSX/scc,8l/scc,k0gaMSX/scc,k0gaMSX/kcc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc
a83e22d75dfffd2003fa7ebdeb35a9ca3a6731ec
src/lib/llist.h
src/lib/llist.h
#ifndef LLIST_H #define LLIST_H /* Doubly linked list */ #define DLLIST_PREPEND(list, item) STMT_START { \ (item)->prev = NULL; \ (item)->next = *(list); \ if (*(list) != NULL) (*(list))->prev = (item); \ *(list) = (item); \ } STMT_END #define DLLIST_REMOVE(list, item) STMT_START { \ if ((item)->prev == NULL) \...
#ifndef LLIST_H #define LLIST_H /* Doubly linked list */ #define DLLIST_PREPEND(list, item) STMT_START { \ (item)->prev = NULL; \ (item)->next = *(list); \ if (*(list) != NULL) (*(list))->prev = (item); \ *(list) = (item); \ } STMT_END #define DLLIST_REMOVE(list, item) STMT_START { \ if ((item)->prev == NULL) \...
Set removed item's prev/next pointers to NULL.
DLLIST_REMOVE(): Set removed item's prev/next pointers to NULL.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
33de317e5a27d5dfc368cc0488c12b42236183e8
tensorflow/core/lib/core/threadpool_interface.h
tensorflow/core/lib/core/threadpool_interface.h
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Define EIGEN_USE_THREADS only if it is not defined yet
Define EIGEN_USE_THREADS only if it is not defined yet PiperOrigin-RevId: 253269616
C
apache-2.0
renyi533/tensorflow,xzturn/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,aldian/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,gautam1858/t...
0a2f80571ac2077fdfe3eebbfe1b0f624a9cae2a
SudokuStart01/Sudoku9by9SolverAnalyzer.h
SudokuStart01/Sudoku9by9SolverAnalyzer.h
// // Sudoku 9by9 Solver and Analyzer // #include "Sudoku9by9Board.h" class Sudoku9by9SolverAnalyzer { private: Sudoku9by9Board *board_ptr; int number_of_solutions; public: Sudoku9by9SolverAnalyzer(); Sudoku9by9SolverAnalyzer(Sudoku9by9Board *board_ptr); bool NextTryOrBackTrack(int i, int j, bool backtrack); vo...
Create separate Solver Analyzer class
Create separate Solver Analyzer class
C
mit
gitguy101/SudokuStartxx
73d73eeaa0fdd21bfb1592e2f7066590ef7ee920
uranus_dp/include/uranus_dp/control_mode_enum.h
uranus_dp/include/uranus_dp/control_mode_enum.h
#ifndef CONTROL_MODE_ENUM_H #define CONTROL_MODE_ENUM_H namespace ControlModes { enum ControlMode { OPEN_LOOP = 0, SIXDOF = 1, RPY_DEPTH = 2 }; } typedef ControlModes::ControlMode ControlMode; #endif
#ifndef CONTROL_MODE_ENUM_H #define CONTROL_MODE_ENUM_H namespace ControlModes { enum ControlMode { OPEN_LOOP = 0, SIXDOF = 1, RPY_DEPTH = 2, DEPTH_HOLD = 3 }; } typedef ControlModes::ControlMode ControlMode; #endif
Add depth hold mode to enum
Add depth hold mode to enum
C
mit
vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control
7ad25fb1b0ea83c40a3c2a0c8bfa9e378626ec4f
STM/FindArg.h
STM/FindArg.h
#include <type_traits> namespace WSTM { //!{ /** * Finds the given type in the given pack of arguments. This is useful for having variadic * argument lists for functions. To have variadic arguments in a function just make the function * a template and take a parameter pack of arguments. Then use fin...
Create fidnArgs to replace CombinatorArgs
Create fidnArgs to replace CombinatorArgs
C
bsd-3-clause
bretthall/Wyatt-STM
eff9494ed346005f825ccdd6fcdd3fa425041023
include/bignum-conf.h
include/bignum-conf.h
/* Configuration for the mruby-bignum gem */ #ifndef MRB_BIGNUM_CONF_H #define MRB_BIGNUM_CONF_H /* Size of a Bignum digit: 16, 32 or 64 */ /* If not defined, this is the same size as a Fixnum */ /* To use MRB_BIGNUM_BIT == 64, the compiler must support unsigned __int128 */ #define MRB_BIGNUM_BIT 64 /* Define to en...
/* Configuration for the mruby-bignum gem */ #ifndef MRB_BIGNUM_CONF_H #define MRB_BIGNUM_CONF_H /* Size of a Bignum digit: 16, 32 or 64 */ /* If not defined, this is the same size as a Fixnum */ /* To use MRB_BIGNUM_BIT == 64, the compiler must support unsigned __int128 */ #define MRB_BIGNUM_BIT 32 /* Define to en...
Set the default bit width to 32.
Set the default bit width to 32. 32 bit Bignums don't need any non-C99 features.
C
mit
chasonr/mruby-bignum,chasonr/mruby-bignum
42150430ce7cbcee73173c7b8302c24f2efbae76
testsuite/abi.c
testsuite/abi.c
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orc.h> #include <stdio.h> int main (int argc, char *argv[]) { int offset; int expected_offset; int error = 0; offset = ((int) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; } else...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orc.h> #include <stdio.h> int main (int argc, char *argv[]) { long offset; int expected_offset; int error = 0; offset = ((long) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; } el...
Fix compilation of the ABI test on 64 bit architectures
tests: Fix compilation of the ABI test on 64 bit architectures Casting a pointer to a plain int will cause a compiler error, use long instead.
C
bsd-3-clause
MOXfiles/orc,Distrotech/orc,ahmedammar/platform_external_gst_liborc,jpakkane/orc,jpakkane/orc,ahmedammar/platform_external_gst_liborc,MOXfiles/orc,ijsf/OpenWebRTC-orc,okuoku/nmosh-orc,MOXfiles/orc,Distrotech/orc,okuoku/nmosh-orc,mojaves/orc,Distrotech/orc,ijsf/OpenWebRTC-orc,mojaves/orc,ijsf/OpenWebRTC-orc,jpakkane/orc...
27575f2a32ef4fd1f6bd6987b86473791ff394f7
test/arduino_compat.h
test/arduino_compat.h
#ifndef _ARDUINO_COMPAT_H #define _ARDUINO_COMPAT_H #include <stdio.h> #include <stdlib.h> //#include <sys/types.h> //#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; typedef bool boolean; ...
#ifndef _ARDUINO_COMPAT_H #define _ARDUINO_COMPAT_H #include <stdio.h> #include <stdlib.h> #include <stdint.h> //#include <sys/types.h> //#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> typedef bool boolean; //#define uint8_t unsigned char #define FILE_READ O_RDONLY #define FILE_WRI...
Use stdint.h for unsigned integer typedefs
Use stdint.h for unsigned integer typedefs Fixes problem compiling regression tests on 64 bit OS.
C
lgpl-2.1
stevemarple/IniFile,stevemarple/IniFile
a7deb40634762debd15fe2e3f13c869aef9608d8
source/SoAd.h
source/SoAd.h
/* Copyright (C) 2015 Joakim Plate * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is...
/* Copyright (C) 2015 Joakim Plate * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is...
Add moduleid and instance id
Add moduleid and instance id
C
lgpl-2.1
elupus/autosar-soad,elupus/autosar-soad
614310c7aedf3273523352b1ee16660e7bbf9601
test/Analysis/security-syntax-checks.c
test/Analysis/security-syntax-checks.c
// RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=security.insecureAPI void builtin_function_call_crash_fixes(char *c) { __builtin_strncpy(c, "", 6); // expected-warning{{Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard.}} __builtin_mems...
// RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=security.insecureAPI // RUN: %clang_analyze_cc1 %s -verify -std=gnu11 \ // RUN: -analyzer-checker=security.insecureAPI // RUN: %clang_analyze_cc1 %s -verify -std=gnu99 \ // RUN: -analyzer-checker=security.insecureAPI void builtin_function_call_cra...
Fix test on PS4 which defaults to gnu99 which does not emit the expected warnings.
Fix test on PS4 which defaults to gnu99 which does not emit the expected warnings. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@358626 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
21ebc95f83d4a857ffbbd13d1332d919f4752614
check_tests/eas_main_tests.c
check_tests/eas_main_tests.c
#include <stdlib.h> #include <check.h> Suite* eas_daemon_suite (void); Suite* eas_autodiscover_suite (void); Suite* eas_libeasmail_suite (void); Suite* eas_libeascal_suite (void); Suite* eas_libeassync_suite (void); Suite* eas_libeascon_suite (void); Suite* eas_folderhierarchy_suite (void); int main (void) { int ...
#include <stdlib.h> #include <check.h> Suite* eas_daemon_suite (void); Suite* eas_autodiscover_suite (void); Suite* eas_libeasmail_suite (void); Suite* eas_libeascal_suite (void); Suite* eas_libeassync_suite (void); Suite* eas_libeascon_suite (void); Suite* eas_folderhierarchy_suite (void); int main (void) { int ...
Enable all test suites except the manual folder hierarchy one
Enable all test suites except the manual folder hierarchy one
C
lgpl-2.1
simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync
8bc6d9116a731dd70366b9fcc3fba4f182df91f2
c/selective.h
c/selective.h
#ifndef _SELECTIVE_H #define _SELECTIVE_H #include "psyco.h" #include "codemanager.h" #define FUN_BOUND -1 #define MAX_RECURSION 1 EXTERNVAR PyObject* funcs; EXTERNVAR int ticks; EXTERNFN int do_selective(void *, PyFrameObject *, int, PyObject *); #endif
#ifndef _SELECTIVE_H #define _SELECTIVE_H #include "psyco.h" #include "codemanager.h" #define FUN_BOUND -1 #define MAX_RECURSION 99 EXTERNVAR PyObject* funcs; EXTERNVAR int ticks; EXTERNFN int do_selective(void *, PyFrameObject *, int, PyObject *); #endif
Set the MAX_RECURSION macro to 99 instead of 1
Set the MAX_RECURSION macro to 99 instead of 1
C
mit
tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni
76fea900b9aedf4f8063f36b4f45a0616cdee5bb
odroid/energymon-odroid-ioctl.h
odroid/energymon-odroid-ioctl.h
/** * Energy reading for an ODROID with INA231 power sensors, using ioctl on * device files instead of sysfs. * * @author Connor Imes * @date 2015-10-14 */ #ifndef _ENERGYMON_ODROID_IOCTL_H_ #define _ENERGYMON_ODROID_IOCTL_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include "energymon.h" int...
/** * Energy reading for an ODROID with INA231 power sensors, using ioctl on * device files instead of sysfs. * * @author Connor Imes * @date 2015-10-14 */ #ifndef _ENERGYMON_ODROID_IOCTL_H_ #define _ENERGYMON_ODROID_IOCTL_H_ #ifdef __cplusplus extern "C" { #endif #include <inttypes.h> #include <stddef.h> #incl...
Add missing include (mostly for good practice as it's currently included transitively anyway)
Add missing include (mostly for good practice as it's currently included transitively anyway)
C
apache-2.0
energymon/energymon
966a2dd4410d9aa4a15f7560a52b97626e787a91
ghighlighter/gh-about-dialog.c
ghighlighter/gh-about-dialog.c
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); return dialog; }
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); static gchar const *title = "About ghighlighter"; gtk_window_set_title (GTK_WINDOW (dialog), title); return dialog; }
Set about dialog title through static const variable
Set about dialog title through static const variable
C
mit
chdorner/ghighlighter-c
f9edd7237e870e4fb0c573f005b9cecf51eb91bd
src/arch/xen/kernel_init.c
src/arch/xen/kernel_init.c
/** * @file * @brief 2nd level boot on Xen * * @date 04.11.2016 * @author Andrey Golikov * @author Anton Kozlov */ #include <hal/arch.h> #include <hal/ipl.h> #include <drivers/diag.h> #include <embox/runlevel.h> #include <kernel/printk.h> #include <xen/features.h> #include <stdint.h> #include <xen/xen.h> ...
Move xen kernel init from global files
Move xen kernel init from global files
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox