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
c5bccd7f4bf957d11ea9081eeea4e5aebdb43f46
src/string_metric.h
src/string_metric.h
/* * Copyright (C) 2016 deipi.com LLC and contributors. All rights reserved. * * 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 * ri...
Add include file for string metric
Add include file for string metric
C
mit
Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand
2413283acfba846293a4476354cd2a88d79a8bb8
arc/arc/Model/FileSystem.h
arc/arc/Model/FileSystem.h
// // FileSystem.h // arc // // Created by Jerome Cheng on 19/3/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> #import "Folder.h" @interface FileSystem : NSObject { @private Folder *_rootFolder; // The root folder. } // Returns the root folder of the entir...
// // FileSystem.h // arc // // Created by Jerome Cheng on 19/3/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> #import "Folder.h" @interface FileSystem : NSObject { @private Folder *_rootFolder; // The root folder. } // Returns the root folder of the entir...
Add signatures for content retrieval methods.
Add signatures for content retrieval methods.
C
mit
BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc
12fb043e39695727114f7d24e5e3b2911a79c7a4
Cerberus.h
Cerberus.h
#ifndef CERBERUS_H #define CERBERUS_H #include <iostream> #include "ceres/ceres.h" using namespace std; using namespace ceres; class Cerberus { public: Cerberus(); Solver::Options options; LossFunction *loss; Problem problem; Solver::Summary summary; void solve(); }; #endif
#ifndef CERBERUS_H #define CERBERUS_H #include <iostream> #include "ceres/ceres.h" #include "ceres/rotation.h" using namespace std; using namespace ceres; class Cerberus { public: Cerberus(); Solver::Options options; LossFunction *loss; Problem problem; Solver::Summary summary; void solve(); }; // Rt ...
Add utility functions for converting to and from AngleAxis
Add utility functions for converting to and from AngleAxis
C
mit
danielsuo/Cerberus,danielsuo/Cerberus
38310122f3a4d99326320da14638ff9088a33b56
src/source/libpetsc4py.c
src/source/libpetsc4py.c
/* ---------------------------------------------------------------- */ #include <Python.h> /* ---------------------------------------------------------------- */ #define MPICH_SKIP_MPICXX 1 #define OMPI_SKIP_MPICXX 1 #include <petsc.h> /* ---------------------------------------------------------------- */ #includ...
/* ---------------------------------------------------------------- */ #define PY_SSIZE_T_CLEAN #include <Python.h> #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; #endif /* ---------------------------------------------------------------- */ #define MPICH_SKIP_MPICXX 1 #define OMPI_SKIP_MPICXX 1 #include <p...
Fix build failure with Python<=2.4 and PETSc<=3.1
Fix build failure with Python<=2.4 and PETSc<=3.1
C
bsd-2-clause
zonca/petsc4py,zonca/petsc4py,zonca/petsc4py,zonca/petsc4py
2b2f2991586e9aa843221f629df29596f8bfc6da
test/Frontend/dependency-generation-crash.c
test/Frontend/dependency-generation-crash.c
// RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o $t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s // CHECK: error: unable to open output file // rdar://9286457
// RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o %t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s // CHECK: error: unable to open output file // rdar://9286457
Fix typo in my last commit.
Fix typo in my last commit. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@231039 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
ffbfac16b089edc2ce0ff219bb6f8f8fc679f132
include/libport/detect-win32.h
include/libport/detect-win32.h
/* * Copyright (C) 2008-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #ifndef LIBPORT_DETECT_WIN3...
/* * Copyright (C) 2008-2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #ifndef LIBPORT_DETECT_WIN3...
Boost 1.47 on Windows: require _WIN32_WINNT 0x0403.
Boost 1.47 on Windows: require _WIN32_WINNT 0x0403. * include/libport/detect-win32.h: here.
C
bsd-3-clause
aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport
1eb469e28be333e475b9b8b7c05d23c707ef2cad
Libs/PublicHeaders.h
Libs/PublicHeaders.h
// // PublicHeaders.h // Insider // // Created by Alexandru Maimescu on 3/2/16. // Copyright © 2016 Alex Maimescu. All rights reserved. // #ifndef PublicHeaders_h #define PublicHeaders_h // GCDWebServer https://github.com/swisspol/GCDWebServer #import <Insider/GCDWebServer.h> #import <Insider/GCDWebServerURLEnco...
// // PublicHeaders.h // Insider // // Created by Alexandru Maimescu on 3/2/16. // Copyright © 2016 Alex Maimescu. All rights reserved. // #ifndef PublicHeaders_h #define PublicHeaders_h // GCDWebServer https://github.com/swisspol/GCDWebServer #import "GCDWebServer.h" #import "GCDWebServerURLEncodedFormRequest.h...
Update imports in umbrella header.
Update imports in umbrella header.
C
mit
alexmx/Insider,alexmx/Insider,alexmx/Insider,alexmx/Insider,alexmx/Insider,alexmx/Insider
ad42abb933a1801721a5f0abe6bdb70bc8d70334
components/libc/compilers/newlib/libc.c
components/libc/compilers/newlib/libc.c
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2017/10/15 bernard the first version */ #include <rtthread.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/time.h> #include...
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2017/10/15 bernard the first version */ #include <rtthread.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/time.h> #include...
Disable ENV when disable DFS.
[Libc] Disable ENV when disable DFS.
C
apache-2.0
AubrCool/rt-thread,zhaojuntao/rt-thread,armink/rt-thread,hezlog/rt-thread,zhaojuntao/rt-thread,AubrCool/rt-thread,hezlog/rt-thread,weiyuliang/rt-thread,igou/rt-thread,igou/rt-thread,ArdaFu/rt-thread,armink/rt-thread,weety/rt-thread,zhaojuntao/rt-thread,FlyLu/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,igou/rt-...
82fc0cb7883747942326d6d6ca1333b27bd647f0
test/Preprocessor/optimize.c
test/Preprocessor/optimize.c
// RUN: clang-cc -Eonly optimize.c -DOPT_O2 -O2 -verify && #ifdef OPT_O2 #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" #endif #ifdef __OPTIMIZE_SIZE #error "__OPTIMIZE_SIZE__ defined" #endif #endif // RUN: clang-cc -Eonly optimize.c -DOPT_O0 -O0 -verify && #ifdef OPT_O0 #ifdef __OPTIMIZE__ ...
// RUN: clang-cc -Eonly %s -DOPT_O2 -O2 -verify && #ifdef OPT_O2 #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" #endif #ifdef __OPTIMIZE_SIZE #error "__OPTIMIZE_SIZE__ defined" #endif #endif // RUN: clang-cc -Eonly %s -DOPT_O0 -O0 -verify && #ifdef OPT_O0 #ifdef __OPTIMIZE__ #error "__OPT...
Use %s in test, not hard coded name.
Use %s in test, not hard coded name. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@68521 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
de93b2b6ea080ae28451ab9448e3628e55361dc2
src/safe_memory.c
src/safe_memory.c
#include "safe-c/safe_memory.h" #include <stdio.h> #include <string.h> void* safe_malloc_function(size_t size, const char* calling_function) { if (size == 0) { fprintf(stderr, "Error allocating memory: The function %s called " "'safe_malloc' and requested zero memory. The pointer shoul...
#include "safe-c/safe_memory.h" #include <stdio.h> #include <string.h> void* safe_malloc_function(size_t size, const char* calling_function) { if (size == 0) { fprintf(stderr, "Error allocating memory: The function %s called " "'safe_malloc' and requested zero memory. The pointer shoul...
Add newline to error message in safe_malloc.
Add newline to error message in safe_malloc. The message that is printed when safe_malloc fails to allocate memory was missing a newline character.
C
mit
VanJanssen/safe-c,VanJanssen/elegan-c,ErwinJanssen/elegan-c
9385f793dca96e402c971989375cbe421e85a2c6
ports/atmel-samd/boards/cytron_maker_zero_samd21/board.c
ports/atmel-samd/boards/cytron_maker_zero_samd21/board.c
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 Scott Shawcroft for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
Add Cytron Maker Zero SAMD21
Add Cytron Maker Zero SAMD21
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
b9be70ddceebc4b6a9eff29a72bd680e10e091c7
src/file/file_default.h
src/file/file_default.h
/* * This file is part of libbdplus * Copyright (C) 2015 VideoLAN * * 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 la...
/* * This file is part of libbdplus * Copyright (C) 2015 VideoLAN * * 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 la...
Replace include with forward declaration
Replace include with forward declaration
C
lgpl-2.1
ShiftMediaProject/libbdplus,ShiftMediaProject/libbdplus,ShiftMediaProject/libbdplus
e05b052ebf4b8ed48b8dc5f0e358c2c01aabda78
Wangscape/noise/module/codecs/ModuleCodecs.h
Wangscape/noise/module/codecs/ModuleCodecs.h
#pragma once #include "AbsWrapperCodec.h" #include "AddWrapperCodec.h" #include "BillowWrapperCodec.h" #include "BlendWrapperCodec.h" #include "CacheWrapperCodec.h" #include "CheckerboardWrapperCodec.h" #include "ClampWrapperCodec.h" #include "ConstWrapperCodec.h" #include "CurveWrapperCodec.h" #include "CylindersWrap...
#pragma once #include "AbsWrapperCodec.h" #include "AddWrapperCodec.h" #include "BillowWrapperCodec.h" #include "BlendWrapperCodec.h" #include "CacheWrapperCodec.h" #include "CheckerboardWrapperCodec.h" #include "ClampWrapperCodec.h" #include "ConstWrapperCodec.h" #include "CornerCombinerBaseWrapperCodec.h" #include "...
Put new codecs in module codec header
Put new codecs in module codec header
C
mit
serin-delaunay/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape
8cb37afde89b4c89079f579f3532792d7dd5ff67
src/http/responsedata.h
src/http/responsedata.h
#ifndef APIMOCK_RESPONSEDATA_H #define APIMOCK_RESPONSEDATA_H #include <string> namespace ApiMock { struct ResponseData { std::string body; }; } #endif
#ifndef APIMOCK_RESPONSEDATA_H #define APIMOCK_RESPONSEDATA_H #include <string> #include <unordered_map> #include "statuscodes.h" namespace ApiMock { struct ResponseData { std::string body; std::unordered_map<std::string, std::string> headers; HTTP_RESPONSE_CODE statusCode; }; } #endif
Add headers and status code to response
Add headers and status code to response
C
mit
Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock
17ceee99c3b3170a49b5fca7f7650f94f40e1de9
Pod/Classes/Artsy+Authentication.h
Pod/Classes/Artsy+Authentication.h
#import "ArtsyToken.h" #import "ArtsyAuthentication.h" #import "ArtsyAuthentication+Facebook.h" #import "ArtsyAuthentication+Twitter.h"
#import "ArtsyToken.h" #import "ArtsyAuthentication.h" #if __has_include("ArtsyAuthentication+Facebook.h") #import "ArtsyAuthentication+Facebook.h" #endif #if __has_include("ArtsyAuthentication+Twitter.h") #import "ArtsyAuthentication+Twitter.h" #endif
Use if includes for fb/tiwtter
Use if includes for fb/tiwtter
C
mit
artsy/Artsy_Authentication,artsy/Artsy-Authentication,artsy/Artsy-Authentication,artsy/Artsy-Authentication
e913c8f42713491283d2bb1149a6b463f08b3579
inputline.c
inputline.c
#include <stdio.h> #define MAXLINE 81 #define MAXLENGTH 1000 int getline(char line[]); /* print line longer than 80 characters */ int main(void) { int len; char line[MAXLENGTH]; while ((len = getline(line)) > 0) if (len > MAXLINE) { printf("%s", line); } return 0; } int getlin...
Print longer than 80 chars
Print longer than 80 chars
C
bsd-2-clause
larbb/cexercises,larbb/cexercises
738eddb1c30571adf27544bda80709b15ace587e
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" namespace You { namespace DataStore { namespace UnitTests {} class Transaction; class DataStore { friend cl...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" namespace You { namespace DataStore { namespace UnitTests {} class Transaction; class DataStore { friend cl...
Rename get(TaskId) to getAllTask (QueryEngine does not need it)
Rename get(TaskId) to getAllTask (QueryEngine does not need it)
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
065a075e17671be38341202bff5852a04f086548
00-HelloWorld/bind.c
00-HelloWorld/bind.c
#include "libmypy.h" char hellofunc_docs[] = "Hello world description."; PyMethodDef helloworld_funcs[] = { { "hello", (PyCFunction)hello, METH_NOARGS, hellofunc_docs}, { NULL} }; struct PyModuleDef helloworld_mod = { PyModuleDef_HEAD_INIT, "helloworld", "This is hello world module.", -1, helloworld_fun...
#include "libmypy.h" char hellofunc_docs[] = "Hello world description."; PyMethodDef helloworld_funcs[] = { { "hello", (PyCFunction)hello, METH_NOARGS, hellofunc_docs}, { NULL} }; char helloworldmod_docs[] = "This is hello world module."; PyModuleDef helloworld_mod = { PyModuleDef_HEAD_INIT, "helloworld",...
Make the codes in the order.
Make the codes in the order.
C
bsd-3-clause
starnight/python-c-extension,starnight/python-c-extension,starnight/python-c-extension
6f36fc3e94f81897a5780cbe943deb6af002a3c5
texor.c
texor.c
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disableRawMode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enableRawMode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); struct termios r...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disableRawMode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enableRawMode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); struct termios r...
Add a timeout for read
Add a timeout for read
C
bsd-2-clause
kyletolle/texor
3d66f211250ccae47fdbc6259b22605cd14464c7
include/Genes/Mutation_Rate_Gene.h
include/Genes/Mutation_Rate_Gene.h
#ifndef MUTATION_RATE_GENE_H #define MUTATION_RATE_GENE_H #include "Gene.h" #include <string> #include <memory> #include <map> #include "Game/Color.h" //! The gene controls how much of the genome mutates per Genome::mutate() event. class Mutation_Rate_Gene : public Gene { public: std::string name() cons...
#ifndef MUTATION_RATE_GENE_H #define MUTATION_RATE_GENE_H #include "Gene.h" #include <string> #include <memory> #include <map> #include "Game/Color.h" //! The gene controls how much of the genome mutates per Genome::mutate() event. class Mutation_Rate_Gene : public Gene { public: std::string name() cons...
Reduce initial number of mutations
Reduce initial number of mutations
C
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
f825cd3d1f4dc05d7124ad00177c37d0f6b9a4d0
yamiHikariGame/Classes/Constants.h
yamiHikariGame/Classes/Constants.h
// // Constants.h // yamiHikariGame // // Created by slightair on 2013/07/28. // // #ifndef yamiHikariGame_Constants_h #define yamiHikariGame_Constants_h #define SpriteSheetImageFileName "spriteSheet.pvr.ccz" #define DefaultFontName "mosamosa" #define DefaultFontSize 24 #define StaminaMax 1000 #define SEItemGet ...
// // Constants.h // yamiHikariGame // // Created by slightair on 2013/07/28. // // #ifndef yamiHikariGame_Constants_h #define yamiHikariGame_Constants_h #define SpriteSheetImageFileName "spriteSheet.pvr.ccz" #define DefaultFontName "mosamosa.ttf" #define DefaultFontSize 24 #define StaminaMax 1000 #define SEItem...
Fix to Use specified Font mosamosa.
Fix to Use specified Font mosamosa.
C
mit
slightair/yamiHikariGame,slightair/yamiHikariGame,slightair/yamiHikariGame,slightair/yamiHikariGame,slightair/yamiHikariGame
7667f3bc0a968667d185887f527d5efecbb5bf52
include/graph.h
include/graph.h
#ifndef GRAPH_H #define GRAPH_H #include <unordered_map> #include <unordered_set> template<typename T> class Graph { public: void connect(const T &a, const T &b); const std::unordered_set<T>& get_vertex_ids() const; inline const std::unordered_set<T>& get_neighbors(const T &vertex_id) const { re...
#ifndef GRAPH_H #define GRAPH_H #include <unordered_map> #include <unordered_set> template<typename T> class Graph { public: void connect(const T &a, const T &b); const std::unordered_set<T>& get_vertex_ids() const; inline const std::unordered_set<T>& get_neighbors(const T &vertex_id) const { re...
Add initial data structures for mapping
Add initial data structures for mapping
C
mit
chivay/betweenness-centrality
2fb635a28d5165f0a6f5bddf2b6fe28ce09b9dfb
features/nfc/nfc/NFCControllerDriver.h
features/nfc/nfc/NFCControllerDriver.h
/* mbed Microcontroller Library * Copyright (c) 2018 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
/* mbed Microcontroller Library * Copyright (c) 2018 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Add get_supported_rf_protocols() method to driver
Add get_supported_rf_protocols() method to driver
C
apache-2.0
c1728p9/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,mbedmicro/mbed,betzw/mbed-os,mbedmicro/mbed,andcor02/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbe...
db7e7bd6d0b2695d6c1390e18a4843dbf36b54aa
lib/dec/quant.h
lib/dec/quant.h
/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENS...
Remove extern references for OC_*_QUANT_MIN.
Remove extern references for OC_*_QUANT_MIN. These were exported for the use of the theora-exp encoder and are not needed in trunk. Part of a patch from issue 1297. git-svn-id: 8dbf393e6e9ab8d4979d29f9a341a98016792aa6@15322 0101bb08-14d6-0310-b084-bc0e0c8e3800
C
bsd-3-clause
KTXSoftware/theora,KTXSoftware/theora,Distrotech/libtheora,Distrotech/libtheora,KTXSoftware/theora,KTXSoftware/theora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,KTXSoftware/theora
b1c73bbd6bcd5c4e403998fe8f7bc1e1ace1359b
chip/mchp/adc_chip.h
chip/mchp/adc_chip.h
/* Copyright 2017 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. */ /* MCHP MEC specific ADC module for Chrome EC */ #ifndef __CROS_EC_ADC_CHIP_H #define __CROS_EC_ADC_CHIP_H /* Data structure to define ADC channe...
/* Copyright 2017 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. */ /* MCHP MEC specific ADC module for Chrome EC */ #ifndef __CROS_EC_ADC_CHIP_H #define __CROS_EC_ADC_CHIP_H /* Data structure to define ADC channe...
Add ADC channel enumeration to chip
mchp: Add ADC channel enumeration to chip Add a chip level ADC channel enumerated type. BRANCH=none BUG=b:177463787 TEST=Booted skylake RVP to Chrome OS Signed-off-by: Scott Worley <186210b307f58d6c0a191337b635ed93ad075837@microchip.corp-partner.google.com> Change-Id: If30a71698b1d084380c6695e4c4b8921f5b8eec2 Review...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
ce1916c56d70edbe76ad36e4d2557e60f57b8645
tests/regression/34-congruence/04-casting.c
tests/regression/34-congruence/04-casting.c
// PARAM: --disable ana.int.def_exc --enable ana.int.interval // Ensures that the cast_to function handles casting for congruences correctly. // TODO: Implement appropriate cast_to function, enable for congruences only and adjust test if necessary. #include <assert.h> #include <stdio.h> int main(){ int c = 128; fo...
Add (deactivated) casting test for congruence domain
Add (deactivated) casting test for congruence domain
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
f1dcb34bfc420809b68884260247a14e75776372
cpp/foreach/concat.h
cpp/foreach/concat.h
#ifndef _CONCAT_H_ #define _CONCAT_H_ /// Utitilies to make a unique variable name. #define CONCAT_LINE(x) CONCAT(x, __LINE__) #define CONCAT(a, b) CONCAT_INDIRECT(a, b) #define CONCAT_INDIRECT(a, b) a ## b #endif
#ifndef _CONCAT_H_ #define _CONCAT_H_ /// Utitilies to make a unique variable name. #define CONCAT_LINE(x) CONCAT(x ## _foreach__, __LINE__) #define CONCAT(a, b) CONCAT_INDIRECT(a, b) #define CONCAT_INDIRECT(a, b) a ## b #endif
Fix a __i386 bug in gcc
Fix a __i386 bug in gcc In gcc, __i386 has special meaning for i386 CPU. So we should avoid use __i386 as variable name.
C
unlicense
airekans/Snippet,airekans/Snippet,airekans/Snippet,airekans/Snippet
142f635096a3c76946da848a6cc641152e118b40
3RVX/Skin/SystemColors.h
3RVX/Skin/SystemColors.h
#pragma once #include <Windows.h> #include "../Logger.h" #include <math.h> #include <algorithm> #include <dwmapi.h> #pragma comment(lib, "Dwmapi.lib") class SystemColors { struct DWMColorizationParams { UINT ColorizationColor; UINT ColorizationAfterglow; UINT ColorizationColorBalance; ...
Add class for retrieving system color scheme settings
Add class for retrieving system color scheme settings
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
c8651ac9661b393929177481c0726c9680d8e094
h/CStringsView.h
h/CStringsView.h
//This Source Code Form is subject to the terms of the Mozilla Public //License, v. 2.0. If a copy of the MPL was not distributed with this //file, You can obtain one at http://mozilla.org/MPL/2.0/. #pragma once #include <stddef.h> #include <string.h> #include "Common.h" namespace ej { //! Represents a view on a l...
Add a view for a packed array of C strings.
Add a view for a packed array of C strings.
C
mpl-2.0
enochjul/ej
7c6dcf070a18942956867419ec19f348f2e929cc
test/tsan/libdispatch/dispatch_once_deadlock.c
test/tsan/libdispatch/dispatch_once_deadlock.c
// Check that calling dispatch_once from a report callback works. // RUN: %clang_tsan %s -o %t // RUN: not %run %t 2>&1 | FileCheck %s #include <dispatch/dispatch.h> #include <pthread.h> #include <stdio.h> long g = 0; long h = 0; void f() { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ g++;...
// Check that calling dispatch_once from a report callback works. // RUN: %clang_tsan %s -o %t // RUN: not %env_tsan_opts=ignore_noninstrumented_modules=0 %run %t 2>&1 | FileCheck %s #include <dispatch/dispatch.h> #include <pthread.h> #include <stdio.h> long g = 0; long h = 0; void f() { static dispatch_once_t on...
Fix test failing on Linux
[TSan] Fix test failing on Linux git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@368641 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
4f66d2d8091e1faec2eaa138c6e95c928f7b669d
targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis.h
targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis.h
/* mbed Microcontroller Library * Copyright (c) 2015-2017 Nuvoton * * 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 requir...
/* mbed Microcontroller Library * Copyright (c) 2015-2017 Nuvoton * * 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 requir...
Fix the file name case problem for building code in Linux system
[NANO130] Fix the file name case problem for building code in Linux system
C
apache-2.0
betzw/mbed-os,nRFMesh/mbed-os,Archcady/mbed-os,catiedev/mbed-os,betzw/mbed-os,YarivCol/mbed-os,mazimkhan/mbed-os,ryankurte/mbed-os,karsev/mbed-os,nRFMesh/mbed-os,ryankurte/mbed-os,svogl/mbed-os,andcor02/mbed-os,catiedev/mbed-os,mbedmicro/mbed,YarivCol/mbed-os,andcor02/mbed-os,nRFMesh/mbed-os,mazimkhan/mbed-os,c1728p9/m...
f739a7605b738b85ba32436825b44f0059b83f45
test/test_cpuid.c
test/test_cpuid.c
#include "unity.h" #include "cpuid.h" void test_GetVendorName_should_ReturnGenuineIntel(void) { char expected[20] = "GenuineIntel"; char actual[20]; get_vendor_name(actual); TEST_ASSERT_EQUAL_STRING(expected, actual); } void test_GetVendorSignature_should_asdf(void) { uint32_t exp_ebx = 0x756e6547; // t...
#include "unity.h" #include "cpuid.h" void test_GetVendorName_should_ReturnGenuineIntel(void) { char expected[20] = "GenuineIntel"; char actual[20]; get_vendor_name(actual); TEST_ASSERT_EQUAL_STRING(expected, actual); } void test_GetVendorSignature_should_ReturnCorrectCpuIdValues(void) { uint32_t exp_eb...
Change method-name to something more appropriate
Change method-name to something more appropriate
C
bsd-2-clause
sosy-lab/power-gadget_benchexec,sosy-lab/power-gadget_benchexec
467b95c1f52ffcd22d928cbbe0bd102d24df3425
print_helpers.h
print_helpers.h
/* * print_helpers.h * * Created on: Nov 29, 2014 * Author: Konstantin Gredeskoul * Code: https://github.com/kigster * * (c) 2014 All rights reserved, MIT License. */ #ifndef printv #define printv(X,Y) (Serial.print(X) || Serial.println(Y)) #endif
/* * print_helpers.h * * Created on: Nov 29, 2014 * Author: Konstantin Gredeskoul * Code: https://github.com/kigster * * (c) 2014 All rights reserved, MIT License. */ #ifndef printv #define printv(X,Y) (Serial.print(X) || Serial.println(Y)) #endif #ifndef _printf #define _printf(X,Y) (Serial.pri...
Add probably useless _printf(x,y) macro
Add probably useless _printf(x,y) macro
C
mit
kigster/flix-capacitor,kigster/FilxCapacitor,kigster/flix-capacitor,kigster/FilxCapacitor
d382aa8fca9778c0251ff9c8e708731c2a1f07ab
cmd/lefty/parse.h
cmd/lefty/parse.h
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
Update with new lefty, fixing many bugs and supporting new features
Update with new lefty, fixing many bugs and supporting new features
C
epl-1.0
jho1965us/graphviz,tkelman/graphviz,tkelman/graphviz,kbrock/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,tkelman/graphviz,pixelglow/graphviz,pixelglow/graphviz,kbrock/graphviz,pixelglow/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,tkelman/graphviz,BMJHayward/graphviz,tkelman/graphviz,kbroc...
2ee20d77880e3b1afa0bd010e6a3cde5ec2109eb
fibonacci_number/FibonacciNumber.c
fibonacci_number/FibonacciNumber.c
#include<stdio.h> long long int fibonacci(long long int n) { //Because first fibonacci number is 0 and second fibonacci number is 1. if(n==1 || n==2) { return (n-1); } else { //store last fibonacci number long long int a=1; //store second last fibonacci number long long int b=0; //store current fibo...
Add Code For nth Fibonacci Number in c
Add Code For nth Fibonacci Number in c
C
mit
iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos
86a2b10151809c3605b2094d8505e19e541060b2
src/condor_includes/condor_fix_limits.h
src/condor_includes/condor_fix_limits.h
#ifndef FIX_LIMITS_H #define FIX_LIMITS_H #if defined(HPUX9) # define select _hide_select #endif #include <limits.h> #if defined(HPUX9) # undef select #endif #endif
Hide the system's version of the prototype for select(). We define it in "condor_fdset.h".
Hide the system's version of the prototype for select(). We define it in "condor_fdset.h".
C
apache-2.0
zhangzhehust/htcondor,mambelli/osg-bosco-marco,djw8605/condor,neurodebian/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,djw8605/htcondor,djw8605/condor,djw8605/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,htcondor/htc...
cefd1c2ebc604434a1330ec4f8dd393bb4ad1037
Source/HYPFormsManager.h
Source/HYPFormsManager.h
@import Foundation; #import "HYPFormField.h" @interface HYPFormsManager : NSObject @property (nonatomic, strong) NSMutableArray *forms; @property (nonatomic, strong) NSMutableDictionary *hiddenFields; @property (nonatomic, strong) NSMutableDictionary *hiddenSections; @property (nonatomic, strong) NSArray *disabledFi...
@import Foundation; #import "HYPFormField.h" @interface HYPFormsManager : NSObject @property (nonatomic, strong) NSMutableArray *forms; @property (nonatomic, strong) NSMutableDictionary *hiddenFields; @property (nonatomic, strong) NSMutableDictionary *hiddenSections; @property (nonatomic, strong) NSArray *disabledFi...
Remove fieldWithID:withIndexPath:inForms: from public header
Remove fieldWithID:withIndexPath:inForms: from public header
C
mit
KevinJacob/Form,0x73/Form,wangmb/Form,Jamonek/Form,Jamonek/Form,0x73/Form,wangmb/Form,KevinJacob/Form,Jamonek/Form,fhchina/Form,kalsariyac/Form,wangmb/Form,KevinJacob/Form,steve21124/Form,steve21124/Form,kalsariyac/Form,fhchina/Form,kalsariyac/Form,steve21124/Form,fhchina/Form
829b6a1e37d7edc599d146618905fb878dd547ee
cvrp/customer.h
cvrp/customer.h
#ifndef VRPSOLVER_CUSTOMER_H #define VRPSOLVER_CUSTOMER_H namespace VrpSolver { class Customer { public: Customer(unsigned int id, std::size_t demand) : id_(id), demand_(demand) {} unsigned int id() const { return id_; } std::size_t demand() const { ...
#ifndef VRPSOLVER_CUSTOMER_H #define VRPSOLVER_CUSTOMER_H namespace VrpSolver { class Customer { public: Customer(std::size_t id, std::size_t demand) : id_(id), demand_(demand) {} std::size_t id() const { return id_; } std::size_t demand() const { ...
Change the type of Customer::id to std::size_t
Change the type of Customer::id to std::size_t
C
mit
U-MA/cvrp,U-MA/cvrp
0decd1c40a34be040381594fd396baee29c14868
Pbind/Classes/Client/_PBRequest.h
Pbind/Classes/Client/_PBRequest.h
// // PBRequest.h // Pbind <https://github.com/wequick/Pbind> // // Created by galen on 15/2/12. // Copyright (c) 2015-present, Wequick.net. All rights reserved. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import <Foun...
// // PBRequest.h // Pbind <https://github.com/wequick/Pbind> // // Created by galen on 15/2/12. // Copyright (c) 2015-present, Wequick.net. All rights reserved. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import <Foun...
Add comments for header file
Add comments for header file
C
mit
wequick/Pbind,wequick/Pbind,wequick/Pbind
7e608001d3125713d007e00b1b08f71abe6d48d4
parameters.h
parameters.h
#ifndef __MY_PARAMETERS_H__ #define __MY_PARAMETERS_H__ #define USE_GCLOCK #define PER_CPU const int AIO_DEPTH_PER_FILE = 32; const int IO_QUEUE_SIZE = AIO_DEPTH_PER_FILE * 5; const int MAX_FETCH_REQS = AIO_DEPTH_PER_FILE; const int MSG_SEND_BUF_SIZE = 10; /** * The number of requests issued by user applications ...
#ifndef __MY_PARAMETERS_H__ #define __MY_PARAMETERS_H__ #define USE_GCLOCK #define PER_CPU const int AIO_DEPTH_PER_FILE = 32; const int IO_QUEUE_SIZE = AIO_DEPTH_PER_FILE * 5; const int MAX_FETCH_REQS = AIO_DEPTH_PER_FILE; const int MSG_SEND_BUF_SIZE = 10; /** * The number of requests issued by user applications ...
Increase the default pending IO queue size in global cache.
Increase the default pending IO queue size in global cache.
C
apache-2.0
icoming/FlashX,icoming/FlashGraph,zheng-da/FlashX,icoming/FlashX,silky/FlashGraph,flashxio/FlashX,flashxio/FlashX,icoming/FlashGraph,flashxio/FlashX,flashxio/FlashX,zheng-da/FlashX,icoming/FlashGraph,silky/FlashGraph,flashxio/FlashX,flashxio/FlashX,icoming/FlashGraph,icoming/FlashX,silky/FlashGraph,silky/FlashGraph,ico...
d704bbb47a97d087245552a1f28053bf167bd8f4
rbcoremidi.c
rbcoremidi.c
/* * rbcoremidi.c * rbcoremidi * * Created by cypher on 15.07.08. * Copyright 2008 Nuclear Squid. All rights reserved. * */ #include <ruby.h> VALUE crbCoreMidi; void Init_rbcoremidi (void) { // Add the initialization code of your module here. }
/* * Copyright 2008 Markus Prinz * Released unter an MIT licence * */ #include <ruby.h> VALUE crbCoreMidi; void Init_rbcoremidi (void) { // Add the initialization code of your module here. }
Update header + licence information
Update header + licence information
C
mit
cypher/rbcoremidi,cypher/rbcoremidi
8d4224fd16a6c8729e534919aac6d1a9eac3c6e9
mkchld.c
mkchld.c
#include <assert.h> #include <errno.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdlib.h> int main(int argc, char **argv) { pid_t pid; assert(argc > 0); if (argc < 2) { printf("usage: %s command [arguments...]\n", argv[0]); return 1; ...
#include <assert.h> #include <errno.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdlib.h> int main(int argc, char **argv) { pid_t pid; assert(argc > 0); if (argc < 2) { printf("usage: %s command [arguments...]\n", argv[0]); return 1; ...
Update execvp error message on file not found
Update execvp error message on file not found
C
mit
joeljk13/mkchild
6f16758e72150da6b2d98d8fab9fff35ab0777e7
src/dawn/Unittest/UnittestLogger.h
src/dawn/Unittest/UnittestLogger.h
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ // | | // __| | __ ___ ___ ___ // / _` |/ _` \ \ /\ / / '_ | // | (_| | (_| |\ V V /| | | | // ...
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ // | | // __| | __ ___ ___ ___ // / _` |/ _` \ \ /\ / / '_ | // | (_| | (_| |\ V V /| | | | // ...
Add unittest to unittest group in doxygen
Add unittest to unittest group in doxygen
C
mit
twicki/dawn,twicki/dawn,twicki/dawn,MeteoSwiss-APN/dawn,MeteoSwiss-APN/dawn,twicki/dawn,MeteoSwiss-APN/dawn
79337800123739d13f1e05d7e52458f6fac33f76
qtssh/sshfilesystemmodel.h
qtssh/sshfilesystemmodel.h
#pragma once #include <QObject> #include <QAbstractItemModel> #include <QHash> class SshSFtp; class SshFilesystemNode; class SshFilesystemModel : public QAbstractItemModel { SshSFtp *m_provider; SshFilesystemNode *m_rootItem; QModelIndex m_root; QHash<int, QByteArray> m_roles; public: enum Roles...
#pragma once #include <QObject> #include <QAbstractItemModel> #include <QHash> class SshSFtp; class SshFilesystemNode; class SshFilesystemModel : public QAbstractItemModel { SshSFtp *m_provider; SshFilesystemNode *m_rootItem; QModelIndex m_root; QHash<int, QByteArray> m_roles; public: enum Roles...
Use same Roles as QQuickFolderListModel
SshFilesystemModel: Use same Roles as QQuickFolderListModel
C
bsd-3-clause
condo4/QtSsh
c2d5ab6940fb1d93bcec22278f066f9429fa669a
templates/ComponentsEntities.h
templates/ComponentsEntities.h
// THIS FILE IS AUTO GENERATED, EDIT AT YOUR OWN RISK //% L #ifndef COMPONENTS_ENTITIES_H_ #define COMPONENTS_ENTITIES_H_ //% L #include "Components.h" //% L {% for component in components %} #include "{{component.get_type_name()}}.h" {% endfor %} //% L // Entity definitions //% L {% for entity in entities ...
// THIS FILE IS AUTO GENERATED, EDIT AT YOUR OWN RISK //% L #ifndef COMPONENTS_ENTITIES_H_ #define COMPONENTS_ENTITIES_H_ //% L #include "Components.h" #include "ComponentImplementationInclude.h" //% L // Entity definitions //% L {% for entity in entities %} //% L // Definition of {{entity.get_type_name(...
Include the component implementation include helper instead of the individual components in Components.h.
Include the component implementation include helper instead of the individual components in Components.h.
C
bsd-3-clause
DaemonDevelopers/CBSE-Toolchain,DaemonDevelopers/CBSE-Toolchain,DaemonDevelopers/CBSE-Toolchain
fea1a1cd1a8b4fd215f58f844f2b1e4702e694d7
runtime/test/misc_bugs/many-microtask-args.c
runtime/test/misc_bugs/many-microtask-args.c
// RUN: %libomp-compile-and-run #include <stdio.h> int main() { int i1 = 0; int i2 = 1; int i3 = 2; int i4 = 3; int i5 = 4; int i6 = 6; int i7 = 7; int i8 = 8; int i9 = 9; int i10 = 10; int i11 = 11; int i12 = 12; int i13 = 13; int i14 = 14; int i15 = 15; int i16 = 16; int r = 0; ...
Add a test case for microtask dispatch with many arguments
Add a test case for microtask dispatch with many arguments This is a cleaned-up version of the test case posted in the D19879 review. git-svn-id: f99161ee8ccfe2101cbe1bdda2220bce2ed25485@270867 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp
1a266ba95249e635f44b78edcede6444940ba17c
test/profile/instrprof-error.c
test/profile/instrprof-error.c
// RUN: %clang_profgen -o %t -O3 %s // RUN: touch %t.profraw // RUN: chmod -w %t.profraw // RUN: env LLVM_PROFILE_FILE=%t.profraw LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s // RUN: chmod +w %t.profraw int main(int argc, const char *argv[]) { if (argc < 2) return 1; return 0; } // CHECK: LLVM P...
// RUN: %clang_profgen -o %t -O3 %s // RUN: env LLVM_PROFILE_FILE="/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s int main(int argc, const char *argv[]) { if (argc < 2) return 1; return 0; } // CHECK: LLVM Profile: Failed to write file
Make a test work if run by the super-user
[profile] Make a test work if run by the super-user git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@264773 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
4bd83c842ab1cdc7245b2a6f78ca63047aa4062f
AFToolkit/ObjectProvider/AFObjectModel.h
AFToolkit/ObjectProvider/AFObjectModel.h
#pragma mark Forward Declarations @class AFObjectProvider; #pragma mark Type Definitions typedef void (^AFObjectUpdateBlock)(AFObjectProvider *provider, id object, NSDictionary *values); typedef id (^AFObjectCreateBlock)(AFObjectProvider *provider, NSDictionary *values); #pragma mark - Class Interface @interf...
#pragma mark Forward Declarations @class AFObjectProvider; #pragma mark Type Definitions typedef void (^AFObjectUpdateBlock)(id provider, id object, NSDictionary *values); typedef id (^AFObjectCreateBlock)(id provider, NSDictionary *values); #pragma mark - Class Interface @interface AFObjectModel : NSObject ...
Update update and create block signatures.
Update update and create block signatures.
C
mit
mlatham/AFToolkit
6bab2c613d7fa70bb8514f89ab7455ede717142b
include/linux/irqreturn.h
include/linux/irqreturn.h
#ifndef _LINUX_IRQRETURN_H #define _LINUX_IRQRETURN_H /** * enum irqreturn * @IRQ_NONE interrupt was not from this device * @IRQ_HANDLED interrupt was handled by this device * @IRQ_WAKE_THREAD handler requests to wake the handler thread */ enum irqreturn { IRQ_NONE = (0 << 0), IRQ_HANDLED = (1 << 0), IRQ_W...
#ifndef _LINUX_IRQRETURN_H #define _LINUX_IRQRETURN_H /** * enum irqreturn * @IRQ_NONE interrupt was not from this device * @IRQ_HANDLED interrupt was handled by this device * @IRQ_WAKE_THREAD handler requests to wake the handler thread */ enum irqreturn { IRQ_NONE = (0 << 0), IRQ_HANDLED = (1 << 0), IRQ_W...
Correct fuzzy and fragile IRQ_RETVAL() definition
genirq: Correct fuzzy and fragile IRQ_RETVAL() definition commit bedd30d986a0 ("genirq: make irqreturn_t an enum") blindly replaced "0" by "IRQ_NONE" in the "IRQ_RETVAL(x)" macro definition. However, as "x" is a condition, "0" meant "boolean false", not an irqreturn_t value. All of this worked, and kept working afte...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
925d17f3ee4b7f7881fa77a31524ecd9f1305242
include/internal/thread_once.h
include/internal/thread_once.h
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
Define a few internal macros for easy use of run_once functions
Define a few internal macros for easy use of run_once functions Because pthread_once() takes a function taking no argument and returning nothing, and we want to be able to check if they're successful, we define a few internal macros to get around the issue. Reviewed-by: Kurt Roeckx <bb87b47479d83cec3c76132206933257de...
C
apache-2.0
openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl
65cb3326e30ef8a67eb1d4411ec563e91be6e9ae
brotli/dec/types.h
brotli/dec/types.h
/* Copyright 2013 Google Inc. 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 ag...
/* Copyright 2013 Google Inc. 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 ag...
Allow use of inline keyword in c++/c99 mode
Allow use of inline keyword in c++/c99 mode
C
mit
google/woff2,khaledhosny/woff2,rsheeter/woff2,anthrotype/woff2,bxchusun/le-huong-van,bxchusun/le-huong-van,seanjensengrey/font-compression-reference,bxchusun/le-huong-van,bxchusun/le-huong-van,seanjensengrey/font-compression-reference,seanjensengrey/font-compression-reference
142b3a0aa1e6c5d0addb914a13c3dd8755f89010
kmail/filterimporterexporter.h
kmail/filterimporterexporter.h
#ifndef __FILTERIMPORTEREXPORTER_H__ #define __FILTERIMPORTEREXPORTER_H__ #include <qvalueList.h> class KMFilter; class KConfig; namespace KMail { /** @short Utility class that provides persisting of filters to/from KConfig. @author Till Adam <till@kdab.net> */ class FilterImporterExporter { public: ...
#ifndef __FILTERIMPORTEREXPORTER_H__ #define __FILTERIMPORTEREXPORTER_H__ #include <qvaluelist.h> class KMFilter; class KConfig; namespace KMail { /** @short Utility class that provides persisting of filters to/from KConfig. @author Till Adam <till@kdab.net> */ class FilterImporterExporter { public: ...
Fix compilation for case-sensitive file systems.
Fix compilation for case-sensitive file systems. svn path=/branches/kdepim/enterprise/kdepim/; revision=728559
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
d6e38bce49b4e71b2a670267d305f54b899ab4ea
test/echo.c
test/echo.c
#include <arpa/inet.h> #include <endian.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <unistd.h> int main() { struct sockaddr_in serv_addr; memset(&serv_addr, 0, sizeof(serv_addr)); serv_addr.sin_family = AF_INET; ser...
Add client test program to measure speed of message handling.
Add client test program to measure speed of message handling.
C
mit
gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet
d06957e790aef773f00332203d69cbb550bf44e7
src/cpp_wrapper/FlatFile.h
src/cpp_wrapper/FlatFile.h
/******************************************************************************/ /** @file @author Dana Klamut @brief The C++ implementation of a flat file dictionary. */ /******************************************************************************/ #if !defined(PROJECT_FLATFILE_H) #define PROJECT_FLATFILE_H #inc...
/******************************************************************************/ /** @file @author Dana Klamut @brief The C++ implementation of a flat file dictionary. */ /******************************************************************************/ #if !defined(PROJECT_FLATFILE_H) #define PROJECT_FLATFILE_H #inc...
Update doxygen comments to reflect changes to flat file constructor
Update doxygen comments to reflect changes to flat file constructor
C
bsd-3-clause
iondbproject/iondb,iondbproject/iondb
c51997e83f1b3f8f1ddd4f19ef045feb83ad05f7
lynx/base/compiler_specific.h
lynx/base/compiler_specific.h
#ifndef LYNX_BASE_COMPILER_SPECIFIC_H_ #define LYNX_BASE_COMPILER_SPECIFIC_H_ #if !defined(UNLIKELY) #if defined(COMPILER_GCC) #define UNLIKELY(x) __builtin_expect(!!(x), 0) #else #define UNLIKELY(x) (x) #endif #endif #endif
Add UNLIKELY for compiler optimization
Add UNLIKELY for compiler optimization UNLIKELY only used in GCC compiler
C
mit
hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native,hxxft/lynx-native
4f133b2d11568f9e495cfa76ed1a61bed8b4c81c
sys/pc98/include/clock.h
sys/pc98/include/clock.h
/*- * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
/*- * This file is in the public domain. */ /* $FreeBSD$ */ #include <i386/clock.h>
Remove my copyright. This file includes simply i386's one now.
Remove my copyright. This file includes simply i386's one now.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
8dd96657649aeaceeac1a139e8e0215a6a9c5fc2
okui/include/onair/okui/applications/SDLAndroidMain.h
okui/include/onair/okui/applications/SDLAndroidMain.h
#pragma once #include "onair/okui/config.h" #if SCRAPS_ANDROID #include <SDL2/SDL_main.h> #include <jni.h> extern "C" { /* Called before SDL_main() to initialize JNI bindings in SDL library */ extern void SDL_Android_Init(JNIEnv* env, jclass cls); /* Start up the SDL app */ JNIEXPORT int JNICALL Java_org_libsdl_...
Add android main for sdl
Add android main for sdl Summary: Needed for the viewer, putting a helper here to be included by the viewer Test Plan: Run viewer on android Reviewers: mike.naquin Reviewed By: mike.naquin Subscribers: #engineering Differential Revision: https://phabricator.btlive.tv/D1484 [This commit was only partially migrate...
C
apache-2.0
bittorrent/okui,bittorrent/okui,bittorrent/okui,bittorrent/okui,bittorrent/okui
859f0d817daea24874bda1f07d350be481cc1012
sixtracklib/_impl/namespace_begin.h
sixtracklib/_impl/namespace_begin.h
#pragma once #if !defined( NS_CONCAT_ ) #define NS_CONCAT_( A, B ) A##B #endif /* !defined( NS_CONCAT ) */ #if !defined( NS_CONCAT ) #define NS_CONCAT( A, B ) NS_CONCAT_( A, B ) #endif /* !defined( NS_CONCAT ) */ #if !defined( NAMESPACE ) #define NAMESPACE #endif /* !defined( NAMESPACE ) */ #if !define...
#pragma once #if !defined( NS_CONCAT_ ) #define NS_CONCAT_( A, B ) A##B #endif /* !defined( NS_CONCAT ) */ #if !defined( NS_CONCAT ) #define NS_CONCAT( A, B ) NS_CONCAT_( A, B ) #endif /* !defined( NS_CONCAT ) */ #if !defined( __NAMESPACE ) #define __NAMESPACE #endif /* !defined( __NAMESPACE ) */ #if !...
Fix not yet corrected NAMESPACE macro
Fix not yet corrected NAMESPACE macro
C
lgpl-2.1
SixTrack/SixTrackLib,SixTrack/SixTrackLib,SixTrack/SixTrackLib,SixTrack/SixTrackLib
17c0d74dde5122245a19bd358e2471b0e3fce037
runtime/include/stdchpl.h
runtime/include/stdchpl.h
#ifndef _stdchpl_H_ #define _stdchpl_H_ #include "chplrt.h" #include <errno.h> #include <math.h> #include <float.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <chpl_md.h> #include "arg.h" #include "config.h" #...
#ifndef _stdchpl_H_ #define _stdchpl_H_ #include "chplrt.h" #include <errno.h> #include <math.h> #include <float.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <chpl_md.h> #include "arg.h" #include "config.h" #...
Include "chplgmp.h" for the emitted code.
Include "chplgmp.h" for the emitted code. [Not reviewed, because seems obvious (now), small, and safe.] The r21083 change was a bit overenthusiastic in its removal of the inclusion of "chplgmp.h" into stdchpl.h and this the emitted code. Without that, tests that use GMP won't build. Put it back. git-svn-id: 88467c...
C
apache-2.0
CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chap...
6d6519a43a674622a617cef7171c6003ed85fc0b
src/include/index/index_util.h
src/include/index/index_util.h
//===----------------------------------------------------------------------===// // // Peloton // // index_util.h // // Identification: src/include/index/index_util.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===--------------------------------------------------...
//===----------------------------------------------------------------------===// // // Peloton // // index_util.h // // Identification: src/include/index/index_util.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===--------------------------------------------------...
Change interface of IsPointQuery() in header file
Change interface of IsPointQuery() in header file
C
apache-2.0
prashasthip/peloton,haojin2/peloton,malin1993ml/peloton,ShuxinLin/peloton,seojungmin/peloton,haojin2/peloton,AllisonWang/peloton,prashasthip/peloton,vittvolt/15721-peloton,AngLi-Leon/peloton,apavlo/peloton,jessesleeping/iso_peloton,seojungmin/peloton,malin1993ml/peloton,vittvolt/15721-peloton,phisiart/peloton-p3,AngLi-...
6e61eb443ffd8c2e9e5a7ebca80f3d2fda63fd12
Motif/Motif.h
Motif/Motif.h
// // Motif.h // Motif // // Created by Eric Horacek on 3/29/15. // Copyright (c) 2015 Eric Horacek. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Motif. FOUNDATION_EXPORT double MotifVersionNumber; //! Project version string for Motif. FOUNDATION_EXPORT const unsigned ...
// // Motif.h // Motif // // Created by Eric Horacek on 3/29/15. // Copyright (c) 2015 Eric Horacek. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Motif. FOUNDATION_EXPORT double MotifVersionNumber; //! Project version string for Motif. FOUNDATION_EXPORT const unsigned ...
Use <> import syntax for umbrella header
Use <> import syntax for umbrella header
C
mit
jsslai/Motif,jsslai/Motif,ekurutepe/Motif,erichoracek/Motif,erichoracek/Motif,jlawton/Motif
27ef086cdd1037b2deaf58feeced028b2b8df154
app/tx/main.c
app/tx/main.c
#include <stdio.h> #include <stdint.h> #include <string.h> #include "nrf51.h" #include "nrf_delay.h" #include "error.h" #include "radio.h" void radio_event_handler(radio_evt_t * evt) { } int main(void) { uint8_t i = 0; radio_packet_t packet; packet.len = 4; radio_init(radio_event_handler); ...
#include <stdio.h> #include <stdint.h> #include <string.h> #include "nrf51.h" #include "nrf_delay.h" #include "error.h" #include "radio.h" void radio_evt_handler(radio_evt_t * evt) { } int main(void) { uint8_t i = 0; radio_packet_t packet; packet.len = 4; packet.flags.ack = 0; radio_init(rad...
Rename the radio event handler.
Rename the radio event handler.
C
bsd-3-clause
hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio
145d1d2ef55ac62417539d7e7d8adebe90b37808
testsuite/testing-tools/algorithm.h
testsuite/testing-tools/algorithm.h
/* * Copyright (c) 2015-2018 Morwenn * SPDX-License-Identifier: MIT */ #ifndef CPPSORT_TESTSUITE_ALGORITHM_H_ #define CPPSORT_TESTSUITE_ALGORITHM_H_ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <functional> #include <it...
/* * Copyright (c) 2015-2021 Morwenn * SPDX-License-Identifier: MIT */ #ifndef CPPSORT_TESTSUITE_ALGORITHM_H_ #define CPPSORT_TESTSUITE_ALGORITHM_H_ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <functional> #include <cp...
Fix incorrect is_sorted implementation in the test suite
Fix incorrect is_sorted implementation in the test suite I'm not sure how this managed to slip under my radar since 2015, that's a bit embarrassing.
C
mit
Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort
c79713ed09ebd9ac54a52c573b47e86d33a39400
3RVX/Controllers/BrightnessController.h
3RVX/Controllers/BrightnessController.h
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #pragma comment(lib, "Dxva2.lib") #include <Windows.h> #include <HighLevelMonitorConfigurationAPI.h> class Monitor; class BrightnessController { public: BrightnessController(HMONIT...
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #pragma comment(lib, "Dxva2.lib") #include <Windows.h> #include <HighLevelMonitorConfigurationAPI.h> class Monitor; class BrightnessController { public: BrightnessController(HMONIT...
Add bool for brightness API usage
Add bool for brightness API usage
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
1654c426db17e35b211fa86cea327c6b38d44317
src/devices/ram.h
src/devices/ram.h
#ifndef RAM_H_ #define RAM_H_ #define RAM_BASE (1ULL << 12) #define RAM_END ((1ULL << 16) - 1) #endif
#ifndef RAM_H_ #define RAM_H_ #define RAM_BASE (1ULL << 12) #define RAM_END ((1ULL << 14) - 1) #endif
Make assembly prologue match new memory map
Make assembly prologue match new memory map
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
6bfa5c586b87a36f742e0525e6c337074b68978d
arch/powerpc/include/asm/abs_addr.h
arch/powerpc/include/asm/abs_addr.h
#ifndef _ASM_POWERPC_ABS_ADDR_H #define _ASM_POWERPC_ABS_ADDR_H #ifdef __KERNEL__ /* * c 2001 PPC 64 Team, IBM Corp * * 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 o...
#ifndef _ASM_POWERPC_ABS_ADDR_H #define _ASM_POWERPC_ABS_ADDR_H #ifdef __KERNEL__ /* * c 2001 PPC 64 Team, IBM Corp * * 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 o...
Remove phys_to_abs() now all users have been removed
powerpc: Remove phys_to_abs() now all users have been removed Signed-off-by: Michael Ellerman <17b9e1c64588c7fa6419b4d29dc1f4426279ba01@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k...
e5607744456ae98cd0379d076bd68dd4cbf1495e
chap1/ctof.c
chap1/ctof.c
#include <stdio.h> /* print Celsius to Fahrenheit table * for Fahrenheit 0, 20, ..., 300 */ int main() { float fahr; float cel; int lower; int upper; int step; lower = 0; /* lower bound for the table */ upper = 150; /* upper bound for the table */ step = 10; /* amount to step by */ ...
Add C to F program
Add C to F program
C
mit
jabocg/theclang
596ee1d8c4e7a34020579dfefcf86a8c5a0a1814
src/shlwapi_dll.c
src/shlwapi_dll.c
/** * Win32 UTF-8 wrapper * * ---- * * shlwapi.dll functions. */ #include <Shlwapi.h> #include "win32_utf8.h" BOOL STDAPICALLTYPE PathMatchSpecU( __in LPCSTR pszFile, __in LPCSTR pszSpec ) { BOOL ret; WCHAR_T_DEC(pszFile); WCHAR_T_DEC(pszSpec); WCHAR_T_CONV(pszFile); WCHAR_T_CONV(pszSpec); ret = P...
/** * Win32 UTF-8 wrapper * * ---- * * shlwapi.dll functions. */ #include <Shlwapi.h> #include "win32_utf8.h" BOOL STDAPICALLTYPE PathFileExistsU( __in LPCSTR pszPath ) { BOOL ret; WCHAR_T_DEC(pszPath); WCHAR_T_CONV_VLA(pszPath); ret = PathFileExistsW(pszPath_w); VLA_FREE(pszPath_w); return ret; } ...
Reorder function definitions to match their order in the header file.
Reorder function definitions to match their order in the header file. This is driving me ma~d.
C
unlicense
thpatch/win32_utf8
4c5a3b621d60cff4b112fe48e93d17284f5d23fd
net/netisr_dispatch.h
net/netisr_dispatch.h
/* $NetBSD: netisr_dispatch.h,v 1.2 2000/07/02 04:40:47 cgd Exp $ */ /* * netisr_dispatch: This file is included by the * machine dependant softnet function. The * DONETISR macro should be set before including * this file. i.e.: * * softintr() { * ...do setup stuff... * #define DONETISR(bit, fn) do { ... } ...
Add a centralized dispatcher for softnet interrupts. This is so that we won't need to change every arch on a softnet change.
Add a centralized dispatcher for softnet interrupts. This is so that we won't need to change every arch on a softnet change. From NetBSD.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
e4fe1d72e8014e510cb2b308df1e353926f7ceab
src/dict.h
src/dict.h
/* Copyright (c) 2012 Fritz Grimpen * * Permission is hereby granted, unalloc 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, copy, modify, merge, publi...
/* Copyright (c) 2012 Fritz Grimpen * * Permission is hereby granted, unalloc 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, copy, modify, merge, publi...
Replace modulo by AND gatter
Replace modulo by AND gatter
C
mit
fritz0705/libf
ddfac6ad96a03c3c6a5a638c4bf50ac00af8a58f
src/scenes/appConstants.h
src/scenes/appConstants.h
#pragma once // assume that visuals and code are the same here.... // and also assuming our screen is square :) #define VISUALS_WIDTH 504 #define VISUALS_HEIGHT 504 #define CODE_WIDTH VISUALS_WIDTH #define CODE_HEIGHT VISUALS_HEIGHT #define CODE_X_POS 520 // via the tech staff //if this is defined, we will w...
#pragma once // assume that visuals and code are the same here.... // and also assuming our screen is square :) #define VISUALS_WIDTH 504 #define VISUALS_HEIGHT 504 #define CODE_WIDTH VISUALS_WIDTH #define CODE_HEIGHT VISUALS_HEIGHT #define CODE_X_POS 520 // via the tech staff //if this is defined, we will w...
Revert accidental uncommenting of TYPE_ANIMATION
Revert accidental uncommenting of TYPE_ANIMATION
C
mit
sh0w/recoded,sh0w/recoded,sh0w/recoded,ofZach/dayForNightSFPC,sh0w/recoded,ofZach/dayForNightSFPC,ofZach/dayForNightSFPC,ofZach/dayForNightSFPC
6ec5fad7e7122413b6e15d07f2ead6a5be8220b9
locks.h
locks.h
// -*- c++ -*- #ifndef LOCKS_H #define LOCKS_H #include <pthread.h> namespace locks { template <typename L> void unlocker(void* lock_ptr) { L* lock = (L*) lock_ptr; lock->unlock(); } template <typename L> void unlocker_checked(void* lock_ptr) { L& lock = *((L*) lock_ptr); if (lock) lock.unlo...
// -*- c++ -*- #ifndef LOCKS_H #define LOCKS_H #include <cstdio> #include <pthread.h> namespace locks { template <typename L> void unlocker(void* lock_ptr) { L* lock = (L*) lock_ptr; fprintf(stderr, "Releasing lock (unchecked) during cancellation!\n"); lock->unlock(); } template <typename L> void unlock...
Add logging etc. to lock release code.
Add logging etc. to lock release code.
C
lgpl-2.1
csw/libraft,csw/libraft
a1b4cdcacd8392ee180de0951263b0d5372fa7ce
src/list.h
src/list.h
#ifndef LIST_H #define LIST_H #define NEXT_NODE(node) node->next #define FINDTAILNODE(x) if(x)while(x->next)x=x->next; #define ADDNODEAFTER(x,t) if(x){t=x->next; x->next=malloc(sizeof(*t)); x->next->next=t;} #endif
#ifndef LIST_H #define LIST_H #define NEXT_NODE(node) node->next #define FINDTAILNODE(x) if(x)while(x->next)x=x->next; #define ADDNODE(x,t) if(x){t=x; x=malloc(sizeof(*x)); x->next=t;} #define ADDNODEAFTER(x,t) if(x){t=x->next; x->next=malloc(sizeof(*t)); x->next->next=t;} #endif
Add missing macro from last commit.
Add missing macro from last commit.
C
isc
heckendorfc/libyaml-dom
b39de78113a9c224df0026ccb9cc629fe3b187e7
src/util.h
src/util.h
#ifndef UTIL_H #define UTIL_H #include <chrono> #include <numeric> #include <iterator> #include <array> #include <algorithm> namespace util { class Timer { public: Timer() = default; Timer(bool start_running); ~Timer() = default; void start(); void stop(); float stop_seconds(); float seconds(); pr...
#ifndef UTIL_H #define UTIL_H #include <chrono> #include <numeric> #include <iterator> #include <array> #include <algorithm> namespace util { class Timer { public: Timer() = default; Timer(bool start_running); ~Timer() = default; void start(); void stop(); float stop_seconds(); float seconds(); pr...
Fix possible divide by zero error
Fix possible divide by zero error
C
mit
jwkpeter/tincan
b9b636884725b783c3a33cf762148cbf19e0458d
test/lex.c
test/lex.c
// Copyright 2012 Rui Ueyama <rui314@gmail.com> // This program is free software licensed under the MIT license. #include "test.h" #define stringify(x) #x void digraph(void) { expect_string("[", stringify(<:)); expect_string("]", stringify(:>)); expect_string("{", stringify(<%)); expect_string("}", s...
// Copyright 2012 Rui Ueyama <rui314@gmail.com> // This program is free software licensed under the MIT license. #include "test.h" #define stringify(x) #x void digraph(void) { expect_string("[", stringify(<:)); expect_string("]", stringify(:>)); expect_string("{", stringify(<%)); expect_string("}", s...
Add a test for line separator characters.
Add a test for line separator characters.
C
mit
jtramm/8cc,vastin/8cc,vastin/8cc,8l/8cc,vastin/8cc,nobody1986/8cc,rui314/8cc,cpjreynolds/8cc,abc00/8cc,nobody1986/8cc,gergo-/8cc,rui314/8cc,jtramm/8cc,andrewchambers/8cc,andrewchambers/8cc,nobody1986/8cc,cpjreynolds/8cc,8l/8cc,andrewchambers/8cc,abc00/8cc,andrewchambers/8cc,jtramm/8cc,cpjreynolds/8cc,jtramm/8cc,gergo-/...
ebfe818d2eb3a5c4e27040f139ae3fb349f13865
common/math_defs.h
common/math_defs.h
#ifndef AL_MATH_DEFS_H #define AL_MATH_DEFS_H #include <math.h> #ifndef M_PI #define M_PI (3.14159265358979323846) #endif #define F_PI (3.14159265358979323846f) #define F_PI_2 (1.57079632679489661923f) #define F_TAU (6.28318530717958647692f) #define SQRTF_3 1.73205080756887719318f constexpr inline float Deg2...
#ifndef AL_MATH_DEFS_H #define AL_MATH_DEFS_H #include <math.h> #ifndef M_PI #define M_PI (3.14159265358979323846) #endif #define F_PI (3.14159265358979323846f) #define F_PI_2 (1.57079632679489661923f) #define F_TAU (6.28318530717958647692f) #define SQRTF_3 1.73205080756887719318f constexpr inline float Deg2...
Fix narrowing conversion from double to float
Fix narrowing conversion from double to float
C
lgpl-2.1
aaronmjacobs/openal-soft,aaronmjacobs/openal-soft
f7285e5f08b0b2aca0caf7fe03b897303c9981bd
Firmware/Inc/platform_hw.h
Firmware/Inc/platform_hw.h
#ifndef PLATFORM_HW_H__ #define PLATFORM_HW_H__ #include <stdbool.h> #include "color.h" #include "stm32f0xx_hal.h" #include "stm32f0xx_hal_gpio.h" #define LED_CHAIN_LENGTH 10 #define USER_BUTTON_PORT (GPIOA) #define USER_BUTTON_PIN (GPIO_PIN_0) #define LED_SPI_INSTANCE (SPI1) #pragma...
#ifndef PLATFORM_HW_H__ #define PLATFORM_HW_H__ #include <stdbool.h> #include "color.h" #include "stm32f0xx_hal.h" #include "stm32f0xx_hal_gpio.h" #define LED_CHAIN_LENGTH 10 #define USER_BUTTON_PORT (GPIOA) #define USER_BUTTON_PIN (GPIO_PIN_0) #define LED_SPI_INSTANCE (SPI1) #pragma...
Fix incorrect LED header bit order
Fix incorrect LED header bit order
C
mit
borgel/sympetrum-v2,borgel/sympetrum-v2
067133a2658b611718a8b111d6c7824dfbf19f56
jet_string.h
jet_string.h
#ifndef CJET_STRING_H #define CJET_STRING_H #include <stdlib.h> #include <string.h> static inline char *duplicate_string(const char *s) { size_t length = strlen(s); char *new_string = malloc(length + 1); if (unlikely(new_string == NULL)) { return NULL; } strncpy(new_string, s, length + 1); return new_string; ...
#ifndef CJET_STRING_H #define CJET_STRING_H #include <stdlib.h> #include <string.h> static inline char *duplicate_string(const char *s) { size_t length = strlen(s); char *new_string = malloc(length + 1); if (unlikely(new_string != NULL)) { strncpy(new_string, s, length + 1); } return new_string; } #endif
Simplify string duplication function a bit.
Simplify string duplication function a bit.
C
mit
gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet
18e68bd789834bc6a044fdfc0f1de437cd16360c
usart0s.h
usart0s.h
/* usart0s.h - C interface to routine written in assembler Compile the corresponding assembler file with #define C_COMPAT_ASM_CODE 1 Copyright (c) 2015 Igor Mikolic-Torreira. All right reserved. This program is free software: you can redistribute it and/or modify it under the terms of the...
/* usart0s.h - C interface to routine written in assembler The MIT License (MIT) Copyright (c) 2015 Igor Mikolic-Torreira 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 ...
Revise license and add missing prototype
Revise license and add missing prototype
C
mit
igormiktor/ASMUtils
be467abeac9c2b1fba3cd18303a2336e26da8104
src/ia64/Gset_caching_policy-ia64.c
src/ia64/Gset_caching_policy-ia64.c
/* libunwind - a platform-independent unwind library Copyright (C) 2002 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
Declare libunwind-entry-points as PROTECTED to ensure local uses get resolved within the library itself.
Declare libunwind-entry-points as PROTECTED to ensure local uses get resolved within the library itself. 2004/01/03 00:25:12-08:00 hp.com!davidm Rename: src/ia64/set_caching_policy-ia64.c -> src/ia64/Gset_caching_policy-ia64.c (Logical change 1.151)
C
mit
cms-externals/libunwind,SyndicateRogue/libunwind,lat/libunwind,SyndicateRogue/libunwind,igprof/libunwind,krytarowski/libunwind,project-zerus/libunwind,atanasyan/libunwind-android,lat/libunwind,fillexen/libunwind,atanasyan/libunwind,android-ia/platform_external_libunwind,zliu2014/libunwind-tilegx,rantala/libunwind,joyen...
7c74772ff14401da9fde234334add253c8c11010
DungeonsOfNoudar486/include/RasterizerCommon.h
DungeonsOfNoudar486/include/RasterizerCommon.h
// // Created by monty on 27/08/16. // #ifndef BLANKSLATE_COMMON_H #define BLANKSLATE_COMMON_H namespace odb { #ifdef LOWRES using FixP = fixed_point<int16_t, -4>; #else using FixP = fixed_point<int32_t, -16>; #endif class Vec3 { public: FixP mX; FixP mY; FixP mZ; }; ...
// // Created by monty on 27/08/16. // #ifndef BLANKSLATE_COMMON_H #define BLANKSLATE_COMMON_H namespace odb { #ifdef LOWRES using FixP = fixed_point<int16_t, -3>; #else using FixP = fixed_point<int32_t, -16>; #endif class Vec3 { public: FixP mX; FixP mY; FixP mZ; }; ...
Bring the lower resolution version back from the dead
Bring the lower resolution version back from the dead Some textures look warped, but it mostly works.
C
bsd-2-clause
TheFakeMontyOnTheRun/dungeons-of-noudar,TheFakeMontyOnTheRun/dungeons-of-noudar
92429ddd879d22bb4d18e142ef0ff82d455f9be8
test/Analysis/func.c
test/Analysis/func.c
// RUN: clang -checker-simple -verify %s void f(void) { void (*p)(void); p = f; p = &f; p(); (*p)(); }
// RUN: clang -checker-simple -verify %s void f(void) { void (*p)(void); p = f; p = &f; p(); (*p)(); } void g(void (*fp)(void)); void f2() { g(f); }
Add test for SCA region store.
Add test for SCA region store. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58235 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
4d0e6e5c7405ffa88b925a5b781cfb942da79882
sources/filechecker.h
sources/filechecker.h
#ifndef QTCSVFILECHECKER_H #define QTCSVFILECHECKER_H #include <QString> #include <QFileInfo> namespace QtCSV { // Check if path to csv file is valid // @input: // - filePath - string with absolute path to csv-file // @output: // - bool - True if file is OK, else False inline bool CheckFile(co...
#ifndef QTCSVFILECHECKER_H #define QTCSVFILECHECKER_H #include <QString> #include <QFileInfo> #include <QDebug> namespace QtCSV { // Check if path to csv file is valid // @input: // - filePath - string with absolute path to csv-file // @output: // - bool - True if file is OK, else False inline...
Remove requirement for a .csv suffix. Print warning if working with file that have suffix other than .csv
Remove requirement for a .csv suffix. Print warning if working with file that have suffix other than .csv
C
mit
apollo13/qtcsv,apollo13/qtcsv,iamantony/qtcsv,iamantony/qtcsv
fec3cd28f55fa0d220054c0034d5f55345006721
library/strings_format.h
library/strings_format.h
#pragma once #define TINYFORMAT_USE_VARIADIC_TEMPLATES #include "dependencies/tinyformat/tinyformat.h" #include "library/strings.h" namespace OpenApoc { template <typename... Args> static UString format(const UString &fmt, Args &&... args) { return tfm::format(fmt.cStr(), std::forward<Args>(args)...); } UString tr(...
#pragma once #define TINYFORMAT_USE_VARIADIC_TEMPLATES #ifdef __GNUC__ // Tinyformat has a number of non-annotated switch fallthrough cases #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #endif #include "dependencies/tinyformat/tinyformat.h" #ifdef __GNUC__ #pragma GCC diagnosti...
Disable -Wimplicit-fallthrough when including tinyformat
Disable -Wimplicit-fallthrough when including tinyformat We assume anything that defines __GNUC__ also copes with GCC #pragmas
C
mit
pmprog/OpenApoc,steveschnepp/OpenApoc,steveschnepp/OpenApoc,Istrebitel/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc
732d189a86d86f281a8b779dce4e28365624f918
tests/regression/02-base/98-refine-unsigned.c
tests/regression/02-base/98-refine-unsigned.c
// PARAM: --enable ana.int.interval #include <stdlib.h> #include <assert.h> int main() { unsigned long ul; if (ul <= 0UL) { __goblint_check(ul == 0UL); } else { __goblint_check(ul != 0UL); } if (ul > 0UL) { __goblint_check(ul != 0UL); } else { __goblint_check(ul == 0UL); } if (! (ul ...
// PARAM: --enable ana.int.interval #include <stdlib.h> #include <assert.h> int main() { unsigned long ul; if (ul <= 0UL) { __goblint_check(ul == 0UL); } else { __goblint_check(ul != 0UL); } if (ul > 0UL) { __goblint_check(ul != 0UL); } else { __goblint_check(ul == 0UL); } if (! (ul ...
Remove trailing spaces in test case.
Remove trailing spaces in test case.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
6ebd618ef522838e0478ebacfc60adc7ecc9d8fa
src/server/wsgi_version.h
src/server/wsgi_version.h
#ifndef WSGI_VERSION_H #define WSGI_VERSION_H /* ------------------------------------------------------------------------- */ /* * Copyright 2007-2021 GRAHAM DUMPLETON * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
#ifndef WSGI_VERSION_H #define WSGI_VERSION_H /* ------------------------------------------------------------------------- */ /* * Copyright 2007-2021 GRAHAM DUMPLETON * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
Increment version to 4.9.1 for new development work.
Increment version to 4.9.1 for new development work.
C
apache-2.0
GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi
48acc8c91b26cf424086151a6a625b663196b1c7
src/statistic_histogram.h
src/statistic_histogram.h
/* * statistic_histogram.h * */ #ifndef STATISTIC_HISTOGRAM_H_ #define STATISTIC_HISTOGRAM_H_ #include <stdio.h> #include <vector> class Statistic_histogram { public: Statistic_histogram(std::string h_name, const ssize_t domain_start, const ssize_t domain_end, const size_t range_size); vo...
/* Copyright (c) 2015, Edward Haas All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
Update license in header file
Update license in header file
C
bsd-3-clause
EdDev/st_histogram,EdDev/st_histogram
ac82354ab52fcb74909c57d408da60fad767a012
solutions/uri/1026/1026.c
solutions/uri/1026/1026.c
#include <stdio.h> int main() { unsigned int a, b; while (scanf("%u %u", &a, &b) != EOF) { printf("%u\n", a ^ b); } return 0; }
Solve To Carry or not to Carry in c
Solve To Carry or not to Carry 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...
3654f9926d4015a10d62ab6bb93087974d510daf
framegrab.h
framegrab.h
#ifndef FRAMEGRAB_H_ #define FRAMEGRAB_H_ #include <unistd.h> typedef void *fg_handle; /* fourcc constants */ #define FG_FORMAT_YUYV 0x56595559 #define FG_FORMAT_RGB24 0x33424752 struct fg_image { int width; int height; int format; }; fg_handle fg_init(char *, int); int fg_deinit(fg_handle); int fg_start(fg_han...
#ifndef FRAMEGRAB_H_ #define FRAMEGRAB_H_ #ifdef __cplusplus extern "C" { #endif #include <stdlib.h> #if defined(_WIN32) && !defined(__CYGWIN__) # ifdef BUILDING_DLL # define EXPORT __declspec(dllexport) # else # define EXPORT __declspec(dllimport) # endif #elif __GNUC__ >= 4 || defined(__HP_cc) # define EXPORT __...
Add C++ and shared library stuff to header file
Add C++ and shared library stuff to header file We're not using it yet, but it's a nice thing to have. Signed-off-by: Claudio Matsuoka <ef7f691d9947ca9adbfeb1538a53a661ec9f041b@gmail.com>
C
mit
cmatsuoka/framegrab,cmatsuoka/framegrab
f7faee03e671d7ac088951ed187e6f867e2255a5
test/Driver/sysroot.c
test/Driver/sysroot.c
// Check that --sysroot= also applies to header search paths. // RUN: %clang -ccc-host-triple unknown --sysroot=/FOO -### -E %s 2> %t1 // RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s // CHECK-SYSROOTEQ: "-cc1"{{.*}} "-isysroot" "/FOO" // Apple Darwin uses -isysroot as the syslib root, too. // RUN: touch %t2....
// Check that --sysroot= also applies to header search paths. // RUN: %clang -ccc-host-triple i386-unk-unk --sysroot=/FOO -### -E %s 2> %t1 // RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s // CHECK-SYSROOTEQ: "-cc1"{{.*}} "-isysroot" "/FOO" // Apple Darwin uses -isysroot as the syslib root, too. // RUN: touch...
Tweak test to at least use a standard arch, to ensure we try to invoke Clang.
tests: Tweak test to at least use a standard arch, to ensure we try to invoke Clang. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130861 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
41f2f1829f3227b2d405feb75751ac5debfcc1e8
components/libc/compilers/minilibc/sys/types.h
components/libc/compilers/minilibc/sys/types.h
#ifndef __TYPES_H__ #define __TYPES_H__ typedef long off_t; typedef unsigned long size_t; typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; type...
#ifndef __TYPES_H__ #define __TYPES_H__ typedef long off_t; typedef unsigned long size_t; typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; type...
Add more typedef in minilibc.
[libc] Add more typedef in minilibc.
C
apache-2.0
geniusgogo/rt-thread,weety/rt-thread,nongxiaoming/rt-thread,weiyuliang/rt-thread,ArdaFu/rt-thread,nongxiaoming/rt-thread,AubrCool/rt-thread,FlyLu/rt-thread,armink/rt-thread,weiyuliang/rt-thread,FlyLu/rt-thread,hezlog/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,armink/rt-thread,armink/rt-thread,yongli3/rt-thread,hezl...
839a6a1504ffd335c43a8ad27043c51aecacecd1
OLEContainerScrollView/OLEContainerScrollView+Swizzling.h
OLEContainerScrollView/OLEContainerScrollView+Swizzling.h
/* OLEContainerScrollView Copyright (c) 2014 Ole Begemann. https://github.com/ole/OLEContainerScrollView */ void swizzleUICollectionViewLayoutFinalizeCollectionViewUpdates(); void swizzleUITableView();
/* OLEContainerScrollView Copyright (c) 2014 Ole Begemann. https://github.com/ole/OLEContainerScrollView */ void swizzleUICollectionViewLayoutFinalizeCollectionViewUpdates(void); void swizzleUITableView(void);
Fix compiler warning in Xcode 9
Fix compiler warning in Xcode 9
C
mit
ole/OLEContainerScrollView
a0bbb6ec64c6a6a74231206368be6af0c3d4d5e9
DominantColor/Shared/INVector3.h
DominantColor/Shared/INVector3.h
// // INVector3.h // DominantColor // // Created by Indragie on 12/21/14. // Copyright (c) 2014 Indragie Karunaratne. All rights reserved. // #import <GLKit/GLKit.h> // Wrapping GLKVector3 values in a struct so that it can be used from Swift. typedef struct { float x; float y; float z; } INVector3; ...
// // INVector3.h // DominantColor // // Created by Indragie on 12/21/14. // Copyright (c) 2014 Indragie Karunaratne. All rights reserved. // #import <GLKit/GLKit.h> // Wrapping GLKVector3 values in a struct so that it can be used from Swift. typedef struct { float x; float y; float z; } INVector3; ...
Remove function declarations from header
Remove function declarations from header
C
mit
objcio/DominantColor,lydonchandra/DominantColor,indragiek/DominantColor,objcio/DominantColor,marinehero/DominantColor,objcio/DominantColor,marinehero/DominantColor,marinehero/DominantColor,lydonchandra/DominantColor,lydonchandra/DominantColor,objcio/DominantColor,indragiek/DominantColor,indragiek/DominantColor,marinehe...
baf1cdaeb105781fd457bfd9d2a161e17c272a2d
tests/utils/core-utils.h
tests/utils/core-utils.h
/* * This file is part of meego-im-framework * * * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation (directui@nokia.com) * * If you have questions regarding the use of this file, please contact * Nokia at directui@nokia.com. * * This library ...
/* * This file is part of meego-im-framework * * * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation (directui@nokia.com) * * If you have questions regarding the use of this file, please contact * Nokia at directui@nokia.com. * * This library ...
Add surface server side implementation for tests
Add surface server side implementation for tests Add a TestSurfaceGroup and TestSurfaceGroupFactory class for tests. RevBy: TrustMe. Full, original commit at 4dc9c4567301f2481b12965bdcf02a7281963b61 in maliit-framework
C
lgpl-2.1
maliit/inputcontext-gtk,maliit/inputcontext-gtk
e250aa36cd2bf836fabaa32905e76e800b0fc756
src/qt/qtipcserver.h
src/qt/qtipcserver.h
#ifndef QTIPCSERVER_H #define QTIPCSERVER_H // Define Bitcoin-Qt message queue name #define BITCOINURI_QUEUE_NAME "BitcoinURI" void ipcScanRelay(int argc, char *argv[]); void ipcInit(int argc, char *argv[]); #endif // QTIPCSERVER_H
#ifndef QTIPCSERVER_H #define QTIPCSERVER_H // Define Bitcoin-Qt message queue name #define BITCOINURI_QUEUE_NAME "NovaCoinURI" void ipcScanRelay(int argc, char *argv[]); void ipcInit(int argc, char *argv[]); #endif // QTIPCSERVER_H
Set correct name for boost IPC
Set correct name for boost IPC
C
mit
ALEXIUMCOIN/alexium,landcoin-ldc/landcoin,IOCoin/DIONS,IOCoin/DIONS,Rimbit/Wallets,gades/novacoin,ALEXIUMCOIN/alexium,valorbit/valorbit,nochowderforyou/clams,nochowderforyou/clams,nochowderforyou/clams,rat4/blackcoin,vectorcoindev/Vector,iadix/iadixcoin,thunderrabbit/clams,MOIN/moin,CoinBlack/bitcoin,iadix/iadixcoin,Ke...
183797ed24d24f6dad3755e37e6053d60916dd5f
projects/sample/tools/sample/main.c
projects/sample/tools/sample/main.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "sample.h" int main (int argc, char ** argv) { printf ("%d\n", compute_sample (5)); exit (0); }
#include "sample.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main (int argc, char ** argv) { printf ("%d\n", compute_sample (5)); exit (0); }
Clean up the sample include orderings, not that it really matters...
Clean up the sample include orderings, not that it really matters... git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@169253 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUO...
f0d960a2d303d1b7f8ee3bca2d52eee15f4c853e
test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
// RUN: clang -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis | grep "ret i32 1" | count 3 // <rdr://6115726> int f0() { int x; unsigned short n = 1; int *a = &x; int *b = &x; a = a - n; b -= n; return a == b; } int f1(int *a) { int b = a - (int*) 1; a -= (int*) 1; return b == (int) a; } ...
// RUN: clang -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis | grep "ret i32 1" | count 3 // <rdr://6115726> int f0() { int x; unsigned short n = 1; int *a = &x; int *b = &x; a = a - n; b -= n; return a == b; } int f1(int *a) { long b = a - (int*) 1; a -= (int*) 1; return b == (long) a; ...
Fix testcase for 64-bit systems.
Fix testcase for 64-bit systems. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59099 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
f4370ff2104c52e41aa4a01935f22aae342e07f7
src/icalc/icalc/icalc.h
src/icalc/icalc/icalc.h
typedef CI_Config void*; CI_Result CI_submit(char const* input);
/* * C Interface between calcterm and a calculator. * A shared library must implement this interface * to be loadable by calcterm. */ extern "C" { struct CI_Config { int flag; }; struct CI_Result { char* one_line; char** grid; int y; }; void CI_init( CI_Config* config ); CI_Result* ...
Add a basic interface for calcterm
Add a basic interface for calcterm
C
bsd-2-clause
dpacbach/calcterm,dpacbach/calcterm,dpacbach/calcterm,dpacbach/calcterm
3e278c99fdb82b839fafd8972402440e952c2cd4
zephyr/projects/volteer/include/i2c_map.h
zephyr/projects/volteer/include/i2c_map.h
/* Copyright 2020 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. */ #ifndef __ZEPHYR_CHROME_I2C_MAP_H #define __ZEPHYR_CHROME_I2C_MAP_H #include <devicetree.h> #include "config.h" /* We need registers.h to get th...
/* Copyright 2020 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. */ #ifndef __ZEPHYR_CHROME_I2C_MAP_H #define __ZEPHYR_CHROME_I2C_MAP_H #include <devicetree.h> #include "config.h" /* We need registers.h to get th...
Remove dependency on npcx specific registers
volteer: Remove dependency on npcx specific registers This change removes the dependency on the npcx specific headers which are normally included via registers.h. It instead transitions to relying on i2c/i2c.h which defines various enums and the NAMED_I2C macro. BUG=b:175249000 TEST=zmake testall Cq-Depend: chromium...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
19504cb1467d31cbb7e429e66222fad5a84050ef
os/arch/arm/src/rda5981/rda5981x_allocateheap.c
os/arch/arm/src/rda5981/rda5981x_allocateheap.c
#include <tinyara/config.h> #include <tinyara/kmalloc.h> /**************************************************************************** * Name: up_addregion * * Description: * Memory may be added in non-contiguous chunks. Additional chunks are * added by calling this function. * ****************************...
Add RDA5981x D_SRAM for heap usage, test program also attached
Add RDA5981x D_SRAM for heap usage, test program also attached Signed-off-by: Tianfu Huang <51883963465061bbce1ec7188dc31b693276da5b@samsung.com>
C
apache-2.0
tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt,tizenrt/tizen_rt