commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
70f269b59dbd1f483940d401e6e82fe5f2408a92
utils/log.h
utils/log.h
/* * Copyright 2003 James Bursa <bursa@users.sourceforge.net> * Copyright 2004 John Tytgat <John.Tytgat@aaug.net> * * This file is part of NetSurf, http://www.netsurf-browser.org/ * Licenced under the MIT License, * http://www.opensource.org/licenses/mit-license.php */ #include <stdio.h> #ifndef...
/* * Copyright 2003 James Bursa <bursa@users.sourceforge.net> * Copyright 2004 John Tytgat <John.Tytgat@aaug.net> * * This file is part of NetSurf, http://www.netsurf-browser.org/ * Licenced under the MIT License, * http://www.opensource.org/licenses/mit-license.php */ #include <stdio.h> #ifndef...
Fix misleading dbl header include protection test.
Fix misleading dbl header include protection test. svn path=/trunk/libnsbmp/; revision=5312
C
mit
dkua/libnsbmp,dkua/libnsbmp
4ef5651e85589e3aaca704c6d2d7ae7e794e5d25
arch/mips/include/asm/bug.h
arch/mips/include/asm/bug.h
#ifndef __ASM_BUG_H #define __ASM_BUG_H #include <linux/compiler.h> #include <asm/sgidefs.h> #ifdef CONFIG_BUG #include <asm/break.h> static inline void __noreturn BUG(void) { __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); /* Fool GCC into thinking the function doesn't return. */ while (1) ; } #define HA...
#ifndef __ASM_BUG_H #define __ASM_BUG_H #include <linux/compiler.h> #include <asm/sgidefs.h> #ifdef CONFIG_BUG #include <asm/break.h> static inline void __noreturn BUG(void) { __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); unreachable(); } #define HAVE_ARCH_BUG #if (_MIPS_ISA > _MIPS_ISA_MIPS1) static inl...
Convert BUG() to use unreachable()
MIPS: Convert BUG() to use unreachable() Use the new unreachable() macro instead of while(1); Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks.com> Acked-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org> CC: 562397917b9a8bf316569a848858b12fb417723f@linux-mip...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
d3f6edf4589da29a8694b00e797910e2e3f886f5
tools/checkscp.c
tools/checkscp.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "scp.h" unsigned char scp_processheader(FILE *scpfile) { return 0; } void scp_processtrack(FILE *scpfile, const unsigned char track) { } int main(int argc, char **argv) { unsigned char numtracks; unsigned char track; FILE *fp; if (argc!=...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include "scp.h" struct scp_header header; unsigned char scp_processheader(FILE *scpfile) { fread(&header, 1, sizeof(header), scpfile); if (strncmp((char *)&header.magic, SCP_MAGIC, strlen(SCP_MAGIC))!=0) { printf("Not an SCP f...
Check magic and output header fields
Check magic and output header fields
C
mit
picosonic/bbc-fdc,picosonic/bbc-fdc
a1199a9863cc34c78bc0e63e3ea0c9420abeacb1
MFSideMenu/MFSideMenuShadow.h
MFSideMenu/MFSideMenuShadow.h
// // MFSideMenuShadow.h // MFSideMenuDemoSearchBar // // Created by Michael Frederick on 5/13/13. // Copyright (c) 2013 Frederick Development. All rights reserved. // #import <Foundation/Foundation.h> @interface MFSideMenuShadow : NSObject @property (nonatomic, assign) BOOL enabled; @property (nonatomic, assign...
// // MFSideMenuShadow.h // MFSideMenuDemoSearchBar // // Created by Michael Frederick on 5/13/13. // Copyright (c) 2013 Frederick Development. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface MFSideMenuShadow : NSObject @property (nonatomic, assign) BOOL enabled; @pro...
Include UIKit to h file, because change pch to h for two files in main project and refactor all needed includes.
Include UIKit to h file, because change pch to h for two files in main project and refactor all needed includes.
C
bsd-3-clause
AxialExchange/MFSideMenu
842e55bd409151abc805b2e0595346821c3f6c83
as6502/common.h
as6502/common.h
// // common.h // v6502 // // Created by Daniel Loffgren on H.25/05/05. // Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved. // #ifndef v6502_common_h #define v6502_common_h void die(const char *reason); #endif
// // common.h // v6502 // // Created by Daniel Loffgren on H.25/05/05. // Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved. // #ifndef v6502_common_h #define v6502_common_h __attribute((noreturn)) void die(const char *reason); #endif
Make sure static analyzer can see die's noreturn attribute
Make sure static analyzer can see die's noreturn attribute git-svn-id: dd14d189f2554b0b3f4c2209a95c13d2029e3fe8@183 96dfbd92-d197-e211-9ca9-00110a534b34
C
mit
RyuKojiro/v6502
a1893ca13b9fc87ebde6472240436a15645704c0
include/nekit/utils/error.h
include/nekit/utils/error.h
// MIT License // Copyright (c) 2017 Zhuhao Wang // 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, copy, modify, mer...
// MIT License // Copyright (c) 2017 Zhuhao Wang // 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, copy, modify, mer...
Use `using` instead of `typedef`
STYLE: Use `using` instead of `typedef`
C
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
1a8eebb5f92e2b2545612ab8d2c5132719c55c96
simulator/kernel/kernel.h
simulator/kernel/kernel.h
/* * kernel.h - base kernel class * @author Vyacheslav Kompan kompan.vo@phystech.edu * Copyright 2018 MIPT-MIPS */ #ifndef KERNEL_H #define KERNEL_H /* Simulator modules */ #include <memory/memory.h> #include <simulator.h> /* Generic C++ */ #include <memory> class Kernel { std::weak_ptr<Simulator> sim; s...
/* * kernel.h - base kernel class * @author Vyacheslav Kompan kompan.vo@phystech.edu * Copyright 2018 MIPT-MIPS */ #ifndef KERNEL_H #define KERNEL_H /* Simulator modules */ #include <memory/memory.h> #include <simulator.h> /* Generic C++ */ #include <memory> class Kernel { std::weak_ptr<Simulator> sim; s...
Rename Kernel setter methods arguments
Rename Kernel setter methods arguments
C
mit
MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015
688499b9a6d027ad71dbc4718f9c3b8a48dba776
src/salut.c
src/salut.c
#include "config.h" #include <glib.h> #include <telepathy-glib/run.h> #include <telepathy-glib/debug.h> #include "salut-connection-manager.h" #include "salut-avahi-discovery-client.h" #include "debug.h" static TpBaseConnectionManager * salut_create_connection_manager (void) { return TP_BASE_CONNECTION_MANAGER ( ...
#include "config.h" #include <glib.h> #include <telepathy-glib/run.h> #include <telepathy-glib/debug.h> #include "salut-connection-manager.h" #include "salut-avahi-discovery-client.h" #include "debug.h" static TpBaseConnectionManager * salut_create_connection_manager (void) { return TP_BASE_CONNECTION_MANAGER ( ...
Remove use of g_set_prgname in main().
Remove use of g_set_prgname in main(). tp_run_connection_manager calls g_set_prgname internally. It's supposed to only be called once. Calling it in addition to tp_run_connection_manager causes an assertion. This patch removes use of it in main().
C
lgpl-2.1
freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut
fd1f5bb3bf922fcfd5afdb5d6a0faced6eb995b3
include/Genes/Pawn_Structure_Gene.h
include/Genes/Pawn_Structure_Gene.h
#ifndef PAWN_STRUCTURE_GENE_H #define PAWN_STRUCTURE_GENE_H #include <string> #include <map> #include "Genes/Gene.h" #include "Game/Piece.h" #include "Game/Color.h" class Board; class Pawn_Structure_Gene : public Clonable_Gene<Pawn_Structure_Gene> { public: Pawn_Structure_Gene() noexcept; std::s...
#ifndef PAWN_STRUCTURE_GENE_H #define PAWN_STRUCTURE_GENE_H #include <string> #include <map> #include "Genes/Gene.h" #include "Game/Piece.h" #include "Game/Color.h" class Board; //! \brief A gene to evaluate how well pawns are protected. class Pawn_Structure_Gene : public Clonable_Gene<Pawn_Structure_Gene> { pu...
Fix public/private members and doxygen comments
Fix public/private members and doxygen comments
C
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
a919d4dcbd4286c675d4ef6d720dd80b71be3614
sort_algorithms.c
sort_algorithms.c
/* Author: Dan Wilder * * School: University of Missouri - St. Louis * Semester: Fall 2015 * Class: CS 3130 - Design and Analysis of Algorithms * Instructor: Galina N. Piatnitskaia */ #include "sort_algorithms.h" void swap(int *x, int *y) { int temp = *x; *x = *y *y = temp; } void bubbleS...
/* Author: Dan Wilder * * School: University of Missouri - St. Louis * Semester: Fall 2015 * Class: CS 3130 - Design and Analysis of Algorithms * Instructor: Galina N. Piatnitskaia */ #include "sort_algorithms.h" void swap(int *x, int *y) { int temp = *x; *x = *y *y = temp; } void bubbleS...
Change name of parameter in bubbleSort
Change name of parameter in bubbleSort
C
mit
sentientWilder/Search-and-Sort,sentientWilder/Search-and-Sort
f88f56d7356cd46fcc861a06aa4312e57486dfc5
src/popsift/common/sync_queue.h
src/popsift/common/sync_queue.h
#pragma once #include <condition_variable> #include <mutex> #include <queue> namespace popsift { /************************************************************* * SyncQueue * This is a basic alternative to the Boost sync_queue class. * It lets threads push and pull items off a queue in a thread * safe manner. **...
#pragma once #include <condition_variable> #include <mutex> #include <queue> namespace popsift { /** * @brief A thread safe wrapper around std::queue (replaces boost::sync_queue). * @tparam T the value type that's stored in the queue. */ template<typename T> class SyncQueue { public: SyncQueue() = default; /...
Add doxygen comments to SyncQueue.
Add doxygen comments to SyncQueue.
C
mpl-2.0
alicevision/popsift,alicevision/popsift,alicevision/popsift
deaddeb464bb6922424a399be2cf62a57e90d7b5
MoblicoSDK/Services/MLCSettingsService.h
MoblicoSDK/Services/MLCSettingsService.h
/* Copyright 2012 Moblico Solutions LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
/* Copyright 2012 Moblico Solutions LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
Update type in SettingsService callback.
Update type in SettingsService callback.
C
apache-2.0
Moblico/MoblicoSDK-iOS
a7792a50ca0d22f595d01d191252ab20f5cb206c
integration/cocos2d-x-v2/include/bee/Cocos2dxBeehive.h
integration/cocos2d-x-v2/include/bee/Cocos2dxBeehive.h
// // Created by Dawid Drozd aka Gelldur on 08.10.17. // #pragma once #include <map> #include <string> #include <vector> #include <bee/Beehive.h> namespace cocos2d { class CCNode; } namespace Bee { class Graph; class Node; class Cocos2dxBeehive { public: Cocos2dxBeehive(const std::vector<std::string>& searchPath...
// // Created by Dawid Drozd aka Gelldur on 08.10.17. // #pragma once #include <map> #include <string> #include <vector> #include <bee/Beehive.h> namespace cocos2d { class CCNode; } namespace Bee { class Graph; class Node; class Cocos2dxBeehive { public: Cocos2dxBeehive(const std::vector<std::string>& searchPath...
Add getter for lua state
Add getter for lua state
C
apache-2.0
gelldur/Bee
62313cd8de5b7809f748801fccd8010334cb4851
src/include/cdb/cdbsrlz.h
src/include/cdb/cdbsrlz.h
/*------------------------------------------------------------------------- * * cdbsrlz.h * definitions for paln serialization utilities * * Copyright (c) 2004-2008, Greenplum inc * * NOTES * *------------------------------------------------------------------------- */ #ifndef CDBSRLZ_H #define CDBSRLZ_H ...
/*------------------------------------------------------------------------- * * cdbsrlz.h * definitions for plan serialization utilities * * Copyright (c) 2004-2008, Greenplum inc * * NOTES * *------------------------------------------------------------------------- */ #ifndef CDBSRLZ_H #define CDBSRLZ_H ...
Fix typo in header file comment
Fix typo in header file comment
C
apache-2.0
janebeckman/gpdb,atris/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,50wu/gpdb,kaknikhil/gpdb,foyzur/gpdb,tangp3/gpdb,chrishajas/gpdb,atris/gpdb,Quikling/gpdb,rvs/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,Quikling/gpdb,atris/gpdb,janebeckman/gpdb,zaksoup/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,Quikling/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,lintzc/...
a911ff6cc87fa430dac4cbe0017633796907b839
src/test/resources/testmodule.c
src/test/resources/testmodule.c
#include "redismodule.h" #include <stdlib.h> int HelloworldRand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_ReplyWithLongLong(ctx,rand()); return REDISMODULE_OK; } int RedisModule_OnLoad(RedisModuleCtx *ctx) { if (RedisModule_Init(ctx,"testmodule",1,REDISMODULE_APIVER_...
#include "redismodule.h" #include <stdlib.h> int HelloworldRand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_ReplyWithLongLong(ctx,rand()); return REDISMODULE_OK; } int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (RedisModule_Init(ct...
Fix OnLoad signature and configure command parameters properly
Fix OnLoad signature and configure command parameters properly
C
mit
RedisLabs/jedis,HeartSaVioR/jedis,yapei123/jedis,sazzad16/jedis,mosoft521/jedis,mosoft521/jedis,HeartSaVioR/jedis,smagellan/jedis,sazzad16/jedis,zts1993/jedis,yapei123/jedis,smagellan/jedis,xetorthio/jedis,xetorthio/jedis,zts1993/jedis,RedisLabs/jedis
71db9767599b54ee8f8622bee2420daf78603dcf
arch/x86_64/rsp/vmov.c
arch/x86_64/rsp/vmov.c
// // arch/x86_64/rsp/vmov.c // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "rsp/cpu.h" #include "rsp/rsp.h" __m128i rsp_vmov(struct rsp *rsp, unsigned src, unsigned e, unsigned dest, unsigned de) { uint16_...
// // arch/x86_64/rsp/vmov.c // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "rsp/cpu.h" #include "rsp/rsp.h" __m128i rsp_vmov(struct rsp *rsp, unsigned src, unsigned e, unsigned dest, unsigned de) { uint16_...
Fix a typo in the VMOV implementation.
Fix a typo in the VMOV implementation.
C
bsd-3-clause
tj90241/cen64,LuigiBlood/cen64,tj90241/cen64,LuigiBlood/cen64
a2301921e37925bcc77fd2326249d13ff6a2792d
src/trm/ft_trmsignalhook.c
src/trm/ft_trmsignalhook.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_trmsignalhook.c :+: :+: :+: ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_trmsignalhook.c :+: :+: :+: ...
Change the ilst content (2)
Change the ilst content (2)
C
apache-2.0
ncoden/libft
c10dc660e2f20fa099f7186bf4867f685a398758
qt/database.h
qt/database.h
/* * Copyright (C) 2014 Matthias Klumpp <matthias@tenstral.net> * * Licensed under the GNU Lesser General Public License Version 2.1 * * 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 Foundatio...
/* * Copyright (C) 2014 Matthias Klumpp <matthias@tenstral.net> * * Licensed under the GNU Lesser General Public License Version 2.1 * * 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 Foundatio...
Use QString() as default paramater for an empty string
trivial: Use QString() as default paramater for an empty string
C
lgpl-2.1
ximion/appstream,ximion/appstream,ximion/appstream,ximion/appstream
31f9fa46901ed41ea21f43b1a05481112370e8f1
PaymentKit/PKCardNumber.h
PaymentKit/PKCardNumber.h
// // CardNumber.h // PKPayment Example // // Created by Alex MacCaw on 1/22/13. // Copyright (c) 2013 Stripe. All rights reserved. // #import <Foundation/Foundation.h> #import "PKCardType.h" @interface PKCardNumber : NSObject @property (nonatomic, readonly) PKCardType cardType; @property (nonatomic, readonly) N...
// // CardNumber.h // PKPayment Example // // Created by Alex MacCaw on 1/22/13. // Copyright (c) 2013 Stripe. All rights reserved. // #import <Foundation/Foundation.h> #import "PKCardType.h" @interface PKCardNumber : NSObject @property (nonatomic, readonly) PKCardType cardType; @property (nonatomic, readonly) N...
Make validity booleans properties as well
Make validity booleans properties as well
C
mit
onevcat/PaymentKit,loudnate/PaymentKit,tictail/TICPaymentKit,spinlister/PaymentKit,RidePal/PaymentKit,loudnate/PaymentKit,mobitar/PaymentKit,oanaBan/PaymentKit,jonathanrauch/PaymentKit,vikas100/Vikas,tictail/TICPaymentKit,jonathanrauch/PaymentKit,zsw12abc/PaymentKit,bobbyski/PaymentKit,stripe/PaymentKit,prolificinterac...
3c2fc5241d63758ffd4e4c072df9742c8dda3595
chrome/gpu/gpu_config.h
chrome/gpu/gpu_config.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 CHROME_GPU_GPU_CONFIG_H_ #define CHROME_GPU_GPU_CONFIG_H_ // This file declares common preprocessor configuration for the GPU process. #incl...
// 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 CHROME_GPU_GPU_CONFIG_H_ #define CHROME_GPU_GPU_CONFIG_H_ // This file declares common preprocessor configuration for the GPU process. #incl...
Fix stupid error for Linux build.
Fix stupid error for Linux build. TEST=none BUG=none Review URL: http://codereview.chromium.org/555096 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@37093 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
4f81bce800c91bf0676cdff4267ce474d88ebf5a
OpenAL32/Include/alThunk.h
OpenAL32/Include/alThunk.h
#ifndef _AL_THUNK_H_ #define _AL_THUNK_H_ #include "config.h" #include "AL/al.h" #include "AL/alc.h" #ifdef __cplusplus extern "C" { #endif void alThunkInit(void); void alThunkExit(void); ALuint alThunkAddEntry(ALvoid * ptr); void alThunkRemoveEntry(ALuint index); ALvoid *alThunkLookupEntry(ALuint index); #if (SIZ...
#ifndef _AL_THUNK_H_ #define _AL_THUNK_H_ #include "config.h" #include "AL/al.h" #include "AL/alc.h" #ifdef __cplusplus extern "C" { #endif void alThunkInit(void); void alThunkExit(void); ALuint alThunkAddEntry(ALvoid *ptr); void alThunkRemoveEntry(ALuint index); ALvoid *alThunkLookupEntry(ALuint index); #if (SIZE...
Improve a macro to reference its parameter
Improve a macro to reference its parameter
C
lgpl-2.1
alexxvk/openal-soft,Wemersive/openal-soft,soundsrc/openal-soft,aaronmjacobs/openal-soft,EddieRingle/openal-soft,aaronmjacobs/openal-soft,mmozeiko/OpenAL-Soft,mmozeiko/OpenAL-Soft,AerialX/openal-soft-android,irungentoo/openal-soft-tox,arkana-fts/openal-soft,soundsrc/openal-soft,EddieRingle/openal-soft,BeamNG/openal-soft...
e8323b47a5feb3aad3dc68e1cce892808391ca57
roofit/histfactory/inc/RooStats/HistFactory/HistFactoryException.h
roofit/histfactory/inc/RooStats/HistFactory/HistFactoryException.h
// @(#)root/roostats:$Id$ // Author: George Lewis, Kyle Cranmer /************************************************************************* * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/roostats:$Id$ // Author: George Lewis, Kyle Cranmer /************************************************************************* * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Allow for messages in HistFactory exceptions.
[HF] Allow for messages in HistFactory exceptions.
C
lgpl-2.1
olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root
e5666f371e863ac73d8fa7c15bef9c9ba0359b82
draft/zmq42draft.h
draft/zmq42draft.h
#if ZMQ_VERSION_MINOR == 2 #ifdef ZMQ_BUILD_DRAFT_API #define ZMQ42HASDRAFT #endif #endif #ifndef ZMQ42HASDRAFT #define ZMQ_SERVER -12 #define ZMQ_CLIENT -13 #define ZMQ_RADIO -14 #define ZMQ_DISH -15 #define ZMQ_GATHER -16 #define ZMQ_SCATTER -17 #define ZMQ_DGRAM -18 #endif
#if ZMQ_VERSION_MINOR >= 2 #ifdef ZMQ_BUILD_DRAFT_API #define ZMQ42HASDRAFT #endif #endif #ifndef ZMQ42HASDRAFT #define ZMQ_SERVER -12 #define ZMQ_CLIENT -13 #define ZMQ_RADIO -14 #define ZMQ_DISH -15 #define ZMQ_GATHER -16 #define ZMQ_SCATTER -17 #define ZMQ_DGRAM -18 #endif
Make draft compile with ZeroMQ 4.3.0
Make draft compile with ZeroMQ 4.3.0
C
bsd-2-clause
pebbe/zmq4,pebbe/zmq4
a804609334035658ed74f5e0664dd4c380e68955
bin/src/hr.c
bin/src/hr.c
/**************************************************\ * A port of LuRsT's hr to C * * Sam Stuewe (C) 2014 Licensed under the terms of * * the GNU Public License version 2 * \**************************************************/ // Libraries // #include <stdio.h> #include <string.h>...
/**************************************************\ * A port of LuRsT's hr to C * * Sam Stuewe (C) 2014 Licensed under the terms of * * the GNU Public License version 2 * \**************************************************/ // Libraries // #include <stdio.h> #include <string.h>...
Update for style and simplicity
Update for style and simplicity
C
unlicense
HalosGhost/.dotfiles,HalosGhost/.dotfiles
1f561bba70d0746f0b474f39fad689ae7d678517
arch/sgi/include/vmparam.h
arch/sgi/include/vmparam.h
/* $OpenBSD: vmparam.h,v 1.3 2009/05/08 18:42:04 miod Exp $ */ #ifndef _SGI_VMPARAM_H_ #define _SGI_VMPARAM_H_ #define VM_PHYSSEG_MAX 32 /* Max number of physical memory segments */ #define VM_NFREELIST 2 #define VM_FREELIST_DMA32 1 /* memory under 2GB suitable for DMA */ #include <mips64/vmparam.h> #endif /* _SG...
/* $OpenBSD: vmparam.h,v 1.4 2009/10/14 20:18:26 miod Exp $ */ /* public domain */ #ifndef _SGI_VMPARAM_H_ #define _SGI_VMPARAM_H_ #define VM_PHYSSEG_MAX 32 /* Max number of physical memory segments */ /* * On Origin and Octane families, DMA to 32-bit PCI devices is restricted. * * Systems with physical memory aft...
Add some comments to explain why the DMA32 physseg is really 2**31 bytes long. Prompted by deraadt@ long ago.
Add some comments to explain why the DMA32 physseg is really 2**31 bytes long. Prompted by deraadt@ long ago.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
64cdc50fbcc47cbcb957111ff6637e65c5b5f525
config.def.h
config.def.h
/* See LICENSE file for copyright and license details. */ /* Notification, remove DNOTIFY in config.mk if you don't want it */ static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */ static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */ /* * This is the array which...
/* See LICENSE file for copyright and license details. */ /* Notification, remove DNOTIFY in config.mk if you don't want it */ static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */ static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */ /* * This is the array which...
Reduce nap time to 15 minutes as mentioned in docs
Reduce nap time to 15 minutes as mentioned in docs
C
isc
pickfire/spt,pickfire/spt
a71d3c65375114146bb515b31820c5bf5d670128
test/CodeGen/builtins-arm.c
test/CodeGen/builtins-arm.c
// RUN: %clang_cc1 -triple thumbv7-eabi -target-cpu cortex-a8 -O3 -emit-llvm -o %t %s void *f0() { return __builtin_thread_pointer(); }
// RUN: %clang_cc1 -Wall -Werror -triple thumbv7-eabi -target-cpu cortex-a8 -O3 -emit-llvm -o - %s | FileCheck %s void *f0() { return __builtin_thread_pointer(); } void f1(char *a, char *b) { __clear_cache(a,b); } // CHECK: call void @__clear_cache
Add a test to the previous commit.
Add a test to the previous commit. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105596 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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/cl...
28bfcfabf1185f197c49f21abc4b71629cfebcec
test/test_parser_terminal.c
test/test_parser_terminal.c
#include "test_parser_p.h" void terminal_success(void **state) { grammar_t *grammar = grammar_init( non_terminal("HelloWorld"), rule_init("HelloWorld", terminal("hello world") ), 1 ); parse_t *result = parse("hello world", grammar); assert_int_equal(result->length, 11); assert_int_equal(re...
#include "test_parser_p.h" void terminal_success(void **state) { grammar_t *grammar = grammar_init( non_terminal("HelloWorld"), rule_init("HelloWorld", terminal("hello world") ), 1 ); parse_result_t *result = parse("hello world", grammar); assert_non_null(result); assert_true(is_success(re...
Use new api for terminal tests
Use new api for terminal tests
C
mit
Baltoli/peggo,Baltoli/peggo
771cb01c0311688f00593cc2a309e32afdbd4b40
benchmark/timer.h
benchmark/timer.h
#include <time.h> clock_t calc_time0,calc_time1; double calc_time; #define TIME_ON calc_time0=clock(); #define TIME_OFF(msg) calc_time1=clock(); \ calc_time=(double)(calc_time1-calc_time0)/CLOCKS_PER_SEC; \ std::cout<<msg<<": iterations="<<i \ <<" CPU Time="<<std...
#include <time.h> #include <sstream> #include <iostream> clock_t calc_time0,calc_time1; double calc_time; void printTime(const std::string& msg, long long iterations, double iterPerSec) { std::stringstream ss; ss << msg; while (ss.tellp() < 30) { ss << ' '; } ss << " iterations=" << iterat...
Print times in fixed columns.
Print times in fixed columns. Makes it easier to compare.
C
lgpl-2.1
worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp
6c39b5e3015535d249699cf4c7dd9e3bfa9ed550
check/tests/check_check_main.c
check/tests/check_check_main.c
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, ma...
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, ma...
Use correct variable for number of tests
Use correct variable for number of tests git-svn-id: caee63afe878fe2ec7dbba394a86c9654d9110ca@230 64e312b2-a51f-0410-8e61-82d0ca0eb02a
C
lgpl-2.1
dashaomai/check-code,dashaomai/check-code,svn2github/check,svn2github/check,svn2github/check,dashaomai/check-code,svn2github/check,dashaomai/check-code,svn2github/check
a0b563f277f4fe56bc8af372777301d20c5a419b
src/main.h
src/main.h
#ifndef _MAIN_H_ #define _MAIN_H_ #define PROGRAM_MAJOR_VERSION 0 #define PROGRAM_MINOR_VERSION 1 #define PROGRAM_PATCH_VERSION 1 extern int quit; #endif /* _MAIN_H_ */
#ifndef _MAIN_H_ #define _MAIN_H_ #define PROGRAM_MAJOR_VERSION 0 #define PROGRAM_MINOR_VERSION 2 #define PROGRAM_PATCH_VERSION 0 extern int quit; #endif /* _MAIN_H_ */
Upgrade version number to 0.2.0
Upgrade version number to 0.2.0
C
mit
zear/shisen-seki,zear/shisen-seki
e6bba5feec294deb762bba5b53f6b0440ff81cd7
strsplit.h
strsplit.h
#ifndef __STR_SPLIT_H__ #define __STR_SPLIT_H__ 1 #include <stdlib.h> #include <string.h> int strsplit (char *str, char *parts[], char *delimiter) { char *pch; int i = 0; pch = strtok(str, delimiter); parts[i++] = strdup(pch); while (pch) { pch = strtok(NULL, delimiter); if (NULL == pch) break; ...
#ifndef __STR_SPLIT_H__ #define __STR_SPLIT_H__ 1 #include <stdlib.h> #include <string.h> int strsplit (char *str, char *parts[], char *delimiter) { char *pch; int i = 0; char *tmp = strdup(str); pch = strtok(tmp, delimiter); parts[i++] = strdup(pch); while (pch) { pch = strtok(NULL, delimiter); ...
Fix bad results when compiling with Apple’s LLVM 5
Fix bad results when compiling with Apple’s LLVM 5
C
mit
jwerle/strsplit.c
ae49b56c52847aadda7be62071dcb33b5c22e6eb
Test/src/minunit.h
Test/src/minunit.h
/* * minunit.h * * Source: http://www.jera.com/techinfo/jtns/jtn002.html */ #include <stdio.h> extern int tests_run; #define mu_assert(message, test) do { \ if (!(test)) { \ return message; \ } \ } while (0) #define mu_run_test(test, name) do { \ test_head(name); \ char const * message = test(); \ tests_...
/* * minunit.h * * Source: http://www.jera.com/techinfo/jtns/jtn002.html */ #include <stdio.h> extern int tests_run; #define mu_assert(message, test) do { \ if (!(test)) { \ return message; \ } \ } while (0) #define mu_run_test(test, name) do { \ printf("Test %s... ", name); \ char const * message = test(...
Remove useless unit testing definitions.
Remove useless unit testing definitions.
C
mit
AymericGenet/SPHINCS-arduinodue,AymericGenet/SPHINCS-arduinodue,AymericGenet/SPHINCS-arduinodue
bd339f71c7a5a3e2b883f4306689c8bc39077895
test/CodeGen/ext-vector-shuffle.c
test/CodeGen/ext-vector-shuffle.c
// RUN: clang-cc %s -emit-llvm -o - | not grep 'extractelement' && // RUN: clang-cc %s -emit-llvm -o - | not grep 'insertelement' && // RUN: clang-cc %s -emit-llvm -o - | grep 'shufflevector' typedef __attribute__(( ext_vector_type(2) )) float float2; typedef __attribute__(( ext_vector_type(4) )) float float4; float2...
// RUN: clang-cc %s -x cl -emit-llvm -o - | not grep 'extractelement' && // RUN: clang-cc %s -x cl -emit-llvm -o - | not grep 'insertelement' && // RUN: clang-cc %s -x cl -emit-llvm -o - | grep 'shufflevector' typedef __attribute__(( ext_vector_type(2) )) float float2; typedef __attribute__(( ext_vector_type(4) )) flo...
Add test for OpenCL vector initializer codegen
Add test for OpenCL vector initializer codegen git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@84445 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
93121c92ab02651020f862d5ccc94d63bc3dda00
src/zopfli/hash.c
src/zopfli/hash.c
/* Copyright 2011 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 agreed to in ...
/* Copyright 2011 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 agreed to in ...
Remove a temporary fn that never got used
Remove a temporary fn that never got used
C
apache-2.0
carols10cents/zopfli,carols10cents/zopfli
e1399dfc55b246db94616bb0052c565a45300710
tests/escape/proper-escapes/local-phi-to-global-field.c
tests/escape/proper-escapes/local-phi-to-global-field.c
struct S { int *x; int *y; }; struct S s; void addrOfEscape2(int * i1, int * i2, int x) { int * p = i2; if(x > 10) p = i1; s.y = p; }
struct S { int *x; int *y; }; struct S *s; void addrOfEscape2(int * i1, int * i2, int x) { int * p = i2; if(x > 10) p = i1; s->y = p; }
Modify a test to avoid constant GEPs
Modify a test to avoid constant GEPs
C
bsd-3-clause
travitch/foreign-inference,travitch/foreign-inference
eb66fff7d94199f80378bc0b51a06e62ce379b53
drivers/scsi/lpfc/lpfc_version.h
drivers/scsi/lpfc/lpfc_version.h
/******************************************************************* * This file is part of the Emulex Linux Device Driver for * * Fibre Channel Host Bus Adapters. * * Copyright (C) 2004-2005 Emulex. All rights reserved. * * EMULEX and SLI are trademarks of Emulex. ...
/******************************************************************* * This file is part of the Emulex Linux Device Driver for * * Fibre Channel Host Bus Adapters. * * Copyright (C) 2004-2005 Emulex. All rights reserved. * * EMULEX and SLI are trademarks of Emulex. ...
Change version number to 8.1.0
[SCSI] lpfc: Change version number to 8.1.0 Signed-off-by: James Smart <662b34f26b29c45c7ee4f84b6fca46f06a668477@emulex.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@SteelEye.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program...
54f611f3c5f8c89b8556fe347525a1dfea222095
src/modules/conf_randr/e_smart_monitor.h
src/modules/conf_randr/e_smart_monitor.h
#ifdef E_TYPEDEFS #else # ifndef E_SMART_MONITOR_H # define E_SMART_MONITOR_H Evas_Object *e_smart_monitor_add(Evas *evas); void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch); void e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Ra...
#ifdef E_TYPEDEFS #else # ifndef E_SMART_MONITOR_H # define E_SMART_MONITOR_H Evas_Object *e_smart_monitor_add(Evas *evas); void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch); Ecore_X_Randr_Crtc e_smart_monitor_crtc_get(Evas_Object *obj...
Add function prototype for monitor clone set.
Add function prototype for monitor clone set. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84208
C
bsd-2-clause
tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,rvandegrift/e,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment
eb0fa7bf4c9d8d24ee597e8777fee446ac55c35b
numba/npyufunc/gufunc_scheduler.h
numba/npyufunc/gufunc_scheduler.h
#ifndef GUFUNC_SCHEDULER #define GUFUNC_SCHEDULER #include <stdint.h> #ifndef __SIZEOF_POINTER__ /* MSVC doesn't define __SIZEOF_POINTER__ */ #if defined(_WIN64) #define intp int64_t #define uintp uint64_t #elif defined(_WIN32) #define intp int #define uintp unsigned ...
#ifndef GUFUNC_SCHEDULER #define GUFUNC_SCHEDULER /* define int64_t and uint64_t for VC9 */ #ifdef _MSC_VER #define int64_t signed __int64 #define uint64_t unsigned __int64 #else #include <stdint.h> #endif #ifndef __SIZEOF_POINTER__ /* MSVC doesn't define __SIZEOF_POINTER__ */ #if defined(_WIN64) ...
Fix missing stdint.h on py2.7 vc9
Fix missing stdint.h on py2.7 vc9
C
bsd-2-clause
stonebig/numba,numba/numba,cpcloud/numba,cpcloud/numba,stuartarchibald/numba,gmarkall/numba,seibert/numba,sklam/numba,seibert/numba,sklam/numba,stuartarchibald/numba,jriehl/numba,seibert/numba,jriehl/numba,gmarkall/numba,sklam/numba,IntelLabs/numba,stuartarchibald/numba,stonebig/numba,numba/numba,numba/numba,gmarkall/n...
9f07c8bcc8f4596d39b31f3515b54c5405f663da
JavaScriptCore/wtf/unicode/Unicode.h
JavaScriptCore/wtf/unicode/Unicode.h
// -*- c-basic-offset: 2 -*- /* * This file is part of the KDE libraries * Copyright (C) 2006 George Staikos <staikos@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation...
// -*- c-basic-offset: 2 -*- /* * This file is part of the KDE libraries * Copyright (C) 2006 George Staikos <staikos@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation...
Fix mac bustage (more still).
Fix mac bustage (more still). git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@18103 bbb929c8-8fbe-4397-9dbb-9b2b20218538
C
bsd-3-clause
Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,nwjs/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/...
b9ecedf51225867a3060d4de155186855c7de6b7
kernel/x86/apic_timer.c
kernel/x86/apic_timer.c
#include <kernel/x86/apic.h> #include <kernel/port/mmio.h> void apic_timer_init(uint8_t int_no, uint8_t divisor, uint8_t mode) { /** set the divisor: **/ uint32_t reg = get32(DIVIDE_CONF); reg &= ~0xf; /* The representation of the divisor in the divide configuration * register is... weird. We're normalizing it...
#include <kernel/x86/apic.h> #include <kernel/port/mmio.h> void apic_timer_init(uint8_t int_no, uint8_t divisor, uint8_t mode) { /** set the divisor: **/ uint32_t reg = get32(DIVIDE_CONF); reg &= ~0xf; /* The representation of the divisor in the divide configuration * register is... weird. We're normalizing it...
Clear existing divisor before setting it.
timer: Clear existing divisor before setting it. This is just a case of being slightly more diligent; there is not currently observed behavior change.
C
isc
zenhack/zero,zenhack/zero,zenhack/zero
df7f12046222ae1b263d9148d493182617edc611
numeric.h
numeric.h
#ifndef H_NUMERIC #define H_NUMERIC #include <cmath> #include <limits> template<class T> typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type almost_equal(T x, T y, int ulp=2) { // the machine epsilon has to be scaled to the magnitude of the values used // and multiplied by the desired...
#ifndef H_NUMERIC #define H_NUMERIC #include <cmath> #include <limits> /** * @brief use of machine epsilon to compare floating-point values for equality * http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon */ template<class T> typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type ...
Add reference for almost_equal function
Add reference for almost_equal function
C
mit
Bl4ckb0ne/delaunay-triangulation
c6eadf70db6113900a61674fd7195a9977f428a5
RealmSwift/Tests/TestUtils.h
RealmSwift/Tests/TestUtils.h
//////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
Annotate RLMAssertThrows' block argument with noescape
[Tests] Annotate RLMAssertThrows' block argument with noescape
C
apache-2.0
duk42111/realm-cocoa,ul7290/realm-cocoa,codyDu/realm-cocoa,kylebshr/realm-cocoa,AlexanderMazaletskiy/realm-cocoa,bugix/realm-cocoa,bestwpw/realm-cocoa,yuuki1224/realm-cocoa,nathankot/realm-cocoa,xmartlabs/realm-cocoa,lumoslabs/realm-cocoa,codyDu/realm-cocoa,lumoslabs/realm-cocoa,imjerrybao/realm-cocoa,lumoslabs/realm-c...
c0ae1b727985d3e94549776666a9f0929cbac090
include/erpiko/bigint.h
include/erpiko/bigint.h
#ifndef _BIGINT_H_ #define _BIGINT_H_ #include <memory> namespace Erpiko { /** * BigInt is the class of big integer representation. */ class BigInt { public: /** * Constructor */ BigInt(); /** * Constructor from long integer * @param value to be initialized */ BigI...
#ifndef _BIGINT_H_ #define _BIGINT_H_ #include <string> #include <memory> namespace Erpiko { /** * BigInt is the class of big integer representation. */ class BigInt { public: /** * Constructor */ BigInt(); /** * Constructor from long integer * @param value to be initialize...
Add <string> explicitly for Windows complaining without it
Add <string> explicitly for Windows complaining without it
C
bsd-3-clause
mdamt/erpiko,mdamt/erpiko,mdamt/erpiko
469d2ae14fdeeb192a0f152978f433cd2bed840e
core/alsp_src/win32/win32_locate.c
core/alsp_src/win32/win32_locate.c
#include "defs.h" void locate_library_executable(int argc, char *argv[]) { DWORD l; char *endpath; #ifdef DLL HANDLE dll; #endif l = GetModuleFileName(NULL, executable_path, IMAGEDIR_MAX); if (l == 0 || l >= IMAGEDIR_MAX) fatal_error(FE_INFND, 0); #ifdef DLL dll = GetModuleHandle(DLL_NAME); ...
#include "defs.h" void locate_library_executable(int argc, char *argv[]) { DWORD l; char *endpath; #ifdef DLL HANDLE dll; #endif l = GetModuleFileName(NULL, executable_path, PATH_MAX); if (l == 0 || l >= PATH_MAX) fatal_error(FE_INFND, 0); #ifdef DLL dll = GetModuleHandle(DLL_NAME); if (...
Replace custom IMAGEDIR_MAX with PATH_MAX, ala 13616d1
Replace custom IMAGEDIR_MAX with PATH_MAX, ala 13616d1
C
mit
AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog
c6f56c9c3b29fd74859f237e7357322f4ac9574e
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 (); static gchar const *title = "About ghighlighter"; gtk_window_set_title (GTK_WINDOW (dialog), title); return dialog; }
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); static gchar const *title = "About ghighlighter"; static gchar const *program_name = "ghighlighter"; gtk_window_set_title (GTK_WINDOW (dialog), title); gtk_about_dialog_set_program_name (GTK...
Set about dialog program name
Set about dialog program name
C
mit
chdorner/ghighlighter-c
bb4c88c29ab312e2be118ac857daa7c93399d6e1
src/include/postmaster/fork_process.h
src/include/postmaster/fork_process.h
#ifndef FORK_PROCESS_H #define FORK_PROCESS_H #include "postgres.h" extern pid_t fork_process(void); #endif /* ! FORK_PROCESS_H */
/*------------------------------------------------------------------------- * * fork_process.h * Exports from postmaster/fork_process.c. * * Copyright (c) 1996-2005, PostgreSQL Global Development Group * * $PostgreSQL: pgsql/src/include/postmaster/fork_process.h,v 1.2 2005/03/13 23:32:26 tgl Exp $ * *-------...
Add missing identification comment, remove entirely inappropriate include of postgres.h.
Add missing identification comment, remove entirely inappropriate include of postgres.h.
C
apache-2.0
50wu/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,adam8157/gpdb,rubikloud/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,xinzweb/gpdb,edespino/gpdb,oberstet/postgres-xl,ahachete/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,rubikloud/gpdb,jmcatamney/gpdb,ahachete/gpdb,oberstet/postgres-xl,ovr/postgr...
2a3828f1e477561e574fb9ee4525641832e3dcd9
make/src/config.c
make/src/config.c
#include <stdlib.h> #include <string.h> #include "config.h" struct Config load_config(char *arquivo) { } struct Idioma load_idioma(char *idioma){ char *local_idioma; int loaded; strcpy(local_idioma, "local aqui"); strcat(local_idioma, idioma); strcat(local_idioma, ".conf"); loaded = 1; while(loaded) ...
#include <stdlib.h> #include <string.h> #include "config.h" struct Config load_config(char *arquivo) { } void load_idioma(struct Idioma *idioma, char *key, char *content){ } void clean_idioma(struct Idioma *idioma) { free(idioma); }
Change functions to handle idioma
Change functions to handle idioma
C
apache-2.0
ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game
a4dca78e05e29151fb8d20573f4387d750c10bc3
Paystack/PublicHeaders/PSTCKTransactionParams.h
Paystack/PublicHeaders/PSTCKTransactionParams.h
// // PSTCKTransactionParams.h // Paystack // #import <Foundation/Foundation.h> #import "PSTCKFormEncodable.h" /** * Representation of a user's credit card details. You can assemble these with information that your user enters and * then create Paystack tokens with them using an PSTCKAPIClient. @see https://pays...
// // PSTCKTransactionParams.h // Paystack // #import <Foundation/Foundation.h> #import "PSTCKFormEncodable.h" /** * Representation of a user's credit card details. You can assemble these with information that your user enters and * then create Paystack tokens with them using an PSTCKAPIClient. @see https://pays...
Make UInt safe on Transaction Params by not using pointer
Make UInt safe on Transaction Params by not using pointer
C
mit
PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios
28621d2412f8a353d7a01d007a7811542d60ac0a
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged.
C
mit
Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot
219d412d13700e86571971075128cd65c2ccd24f
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 87 #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 88 #endif
Update Skia milestone to 88
Update Skia milestone to 88 Change-Id: I8d01f643e1cb7327713959ea744de3ae8c82bb6e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321520 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/pla...
f1c31c00a26f31c337ab37c37ea529567986bfa2
include/gum/GlyphStyleID.h
include/gum/GlyphStyleID.h
#ifndef _GUM_GLYPH_STYLE_ID_H_ #define _GUM_GLYPH_STYLE_ID_H_ #include "gum/GlyphStyle.h" #include <cu/cu_macro.h> #include <cu/cu_stl.h> namespace gum { class GlyphStyle; class GlyphStyleID { public: int Gen(const GlyphStyle& style); private: static int Hash(const GlyphStyle& style); private: static const in...
#ifndef _GUM_GLYPH_STYLE_ID_H_ #define _GUM_GLYPH_STYLE_ID_H_ #include "gum/GlyphStyle.h" #include <cu/cu_macro.h> #include <cu/cu_stl.h> namespace gum { class GlyphStyle; class GlyphStyleID { public: int Gen(const GlyphStyle& style); private: static int Hash(const GlyphStyle& style); private: static const in...
Revert "[FIXED] not use allocator, for async draw"
Revert "[FIXED] not use allocator, for async draw" This reverts commit 3cce0321da141d1fb8689d826fd5f5235066c977.
C
mit
xzrunner/gum,xzrunner/gum
89a8e62c03aa2cfe044c9023ec3bbaefb835a7df
test/profile/Posix/instrprof-get-filename-merge-mode.c
test/profile/Posix/instrprof-get-filename-merge-mode.c
// Test __llvm_profile_get_filename when the on-line merging mode is enabled. // // RUN: %clang_pgogen -dynamiclib -o %t.dso %p/Inputs/instrprof-get-filename-dso.c // RUN: %clang_pgogen -o %t %s %t.dso // RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t #include <string.h> const char *__llvm_profile_get_filename(vo...
// Test __llvm_profile_get_filename when the on-line merging mode is enabled. // // RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c // RUN: %clang_pgogen -o %t %s %t.dso // RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t #include <string.h> const char *__llvm_profile_get_filena...
Use -fPIC -shared in a test instead of -dynamiclib
[profile] Use -fPIC -shared in a test instead of -dynamiclib This is more portable than -dynamiclib. Also, fix the path to an input file that broke when the test was moved in r375315. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@375317 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
e539d64784ae5837ca6b7f424e1c6ce3540feceb
runtime/test/tasking/bug_36720.c
runtime/test/tasking/bug_36720.c
// RUN: %libomp-compile-and-run /* Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36720 Assertion failure at kmp_runtime.cpp(1715): nthreads > 0. OMP: Error #13: Assertion failure at kmp_runtime.cpp(1715). The assertion fails even with OMP_NUM_THREADS=1. If the second task is removed, everything runs to completion....
// RUN: %libomp-compile-and-run /* Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36720 Assertion failure at kmp_runtime.cpp(1715): nthreads > 0. OMP: Error #13: Assertion failure at kmp_runtime.cpp(1715). The assertion fails even with OMP_NUM_THREADS=1. If the second task is removed, everything runs to completion....
Convert test for PR36720 to c89
[test] Convert test for PR36720 to c89 GCC 4.8.5 defaults to this old C standard. I think we should make the tests pass a newer -std=c99|c11 but that's too intrusive for now... Differential Revision: https://reviews.llvm.org/D50084 git-svn-id: f99161ee8ccfe2101cbe1bdda2220bce2ed25485@338490 91177308-0d34-0410-b5e6-9...
C
apache-2.0
llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp
3b879e32d7063b4b83867fac9a8c38f042a0fc2b
arch/x86_64/rsp/vmov.c
arch/x86_64/rsp/vmov.c
// // arch/x86_64/rsp/vmov.c // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "rsp/cpu.h" #include "rsp/rsp.h" __m128i rsp_vmov(struct rsp *rsp, unsigned src, unsigned e, unsigned dest, rsp_vect_t vt_shuffle) {...
// // arch/x86_64/rsp/vmov.c // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "common.h" #include "rsp/cpu.h" #include "rsp/rsp.h" __m128i rsp_vmov(struct rsp *rsp, unsigned src, unsigned e, unsigned dest, rsp_vect_t vt_shuffle) {...
Remove debug information from VMOV code
Remove debug information from VMOV code
C
bsd-3-clause
tj90241/cen64,tj90241/cen64
8fa7230f1fee1f68f7ae6ed03cdc72c63a8c97b2
modules/acpi/acpi_module.c
modules/acpi/acpi_module.c
/* SPDX-License-Identifier: BSD-2-Clause */ #include <tilck/common/basic_defs.h> #include <tilck/common/printk.h> #include <tilck/kernel/sched.h> #include "osl.h" #include <3rd_party/acpi/acpi.h> #include <3rd_party/acpi/acexcep.h> static ACPI_TABLE_DESC acpi_tables[16]; void early_init_acpi_module(void) { ACPI...
/* SPDX-License-Identifier: BSD-2-Clause */ #include <tilck/common/basic_defs.h> #include <tilck/common/printk.h> #include <tilck/kernel/sched.h> #include "osl.h" #include <3rd_party/acpi/acpi.h> #include <3rd_party/acpi/acexcep.h> void early_init_acpi_module(void) { ACPI_STATUS rc; rc = AcpiInitializeSubsys...
Make AcpiInitializeTables to dynamically alloc tables
[acpi] Make AcpiInitializeTables to dynamically alloc tables
C
bsd-2-clause
vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs
32df46c68c5f8756b4383b1228d17df6538ae671
quic/common/test/TestClientUtils.h
quic/common/test/TestClientUtils.h
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <fizz/protocol/CertificateVerifier.h> namespace quic::test { class TestCertificateVerifier : public fizz...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <fizz/protocol/CertificateVerifier.h> namespace quic::test { class TestCertificateVerifier : public fizz...
Replace fizz server cert with leaf cert returned from verification
Replace fizz server cert with leaf cert returned from verification Summary: Added code to return the leaf cert after successfully verification of the server cert. The returned cert is then used for replacing the server cert. Reviewed By: AjanthanAsogamoorthy Differential Revision: D35898220 fbshipit-source-id: 8f54...
C
mit
facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst
b4c1779d143c3555a61ab588589c68549117fea6
subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/util/src/util/headers/util.h
subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/util/src/util/headers/util.h
#ifdef _WIN32 #define LIB_FUNC __declspec(dllimport) #else #define LIB_FUNC #endif void LIB_FUNC printBuildType();
#ifdef _WIN32 #define LIB_FUNC __declspec(dllexport) #else #define LIB_FUNC #endif void LIB_FUNC printBuildType();
Use correct syntax for windows DLL export
Use correct syntax for windows DLL export
C
apache-2.0
blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle...
191574d42fc281cde241ae33013c9801336e8758
net/spdy/spdy_http_utils.h
net/spdy/spdy_http_utils.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 NET_SPDY_SPDY_HTTP_UTILS_H_ #define NET_SPDY_SPDY_HTTP_UTILS_H_ #pragma once #include "net/spdy/spdy_framer.h" namespace net { class HttpRe...
// 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 NET_SPDY_SPDY_HTTP_UTILS_H_ #define NET_SPDY_SPDY_HTTP_UTILS_H_ #pragma once #include "net/spdy/spdy_framer.h" namespace net { class HttpRe...
Change forward declaration of HttpRequestInfo from class to struct to fix build breakage.
Change forward declaration of HttpRequestInfo from class to struct to fix build breakage. BUG=none TEST=none git-svn-id: http://src.chromium.org/svn/trunk/src@59584 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: cb97ca6c3e6d589f6d40ad33fdc8afb7a19c6999
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...
c2cf47ebbd82bf050d338c73f2d9bcd2de3976d2
main.c
main.c
#include <stdio.h> #include <string.h> // Declare functions void get_input(); // Global variables char text_input[32]; int running = 1; // Main Section int main() { while (running == 1) { if (strcmp(text_input, "q") == 0) { running = 0; printf("Goodbye!\n"); } else { get_input(); ...
#include <stdio.h> #include <string.h> // Declare functions void get_input(); int is_valid_number(); // Global variables char text_input[32]; int running = 1; // Main Section int main() { while (running == 1) { if (strcmp(text_input, "q") == 0) { running = 0; printf("Goodbye!\n"); } else {...
Create function to check if text_input is a valid number
Create function to check if text_input is a valid number
C
mit
julian-labuschagne/number_game
c2e36b8f4bcbd3a8bec4d5d4bfc6d5a5a669b5c6
src/utils.h
src/utils.h
/** * @file utils.h * @brief Storj utilities. * * Helper utilities */ #ifndef STORJ_UTILS_H #define STORJ_UTILS_H #include <assert.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <math.h> #include <stdbool.h> #ifdef _WIN32 #include <windows.h> #inclu...
/** * @file utils.h * @brief Storj utilities. * * Helper utilities */ #ifndef STORJ_UTILS_H #define STORJ_UTILS_H #include <assert.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <math.h> #include <stdbool.h> #ifdef _WIN32 #include <windows.h> #inclu...
Include io.h for mingw builds
Include io.h for mingw builds
C
lgpl-2.1
braydonf/libstorj,braydonf/libstorj-c,Storj/libstorj-c,braydonf/libstorj-c,Storj/libstorj-c,aleitner/libstorj-c,aleitner/libstorj-c,braydonf/libstorj
8c47da315e5e6f11bb43c8fa66a2a66fbdaf7b9d
percolation/main.c
percolation/main.c
/* headers */ #include <stdlib.h> #include <time.h> #include "lattice.h" #include "clusters.h" #include "io_helpers.h" /* main body function */ int main(int argc, char ** argv) { int L; /* square lattice size */ double p; /* occupation probability of each lattice site */ int *lattice; /* lattice array */ ...
/* headers */ #include <stdlib.h> #include <time.h> #include "lattice.h" #include "clusters.h" #include "io_helpers.h" /* main body function */ int main(int argc, char ** argv) { int L; /* square lattice size */ double p; /* occupation probability of each lattice site */ int *lattice; /* lattice array */ ...
Allow passing RNG seed as program argument
[percolation] Allow passing RNG seed as program argument
C
mit
cerisola/fiscomp,cerisola/fiscomp,cerisola/fiscomp
ffe8c67712cb6a7286de055ecf7ecf90c0984831
ch1/e01-01_hello.c
ch1/e01-01_hello.c
/* * Hello World Program * 2013-05-27 */ #include <stdio.h> int main() { printf("Hello, World!\g"); return 0; }
/* * Hello World Program * 2013-05-27 */ #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
Add the BSD make build machinery
Add the BSD make build machinery
C
isc
chettrick/tcpl
f83df7374019f922bd30cb751b1206c5f934f7d1
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Add flag to stage api change
Add flag to stage api change Test: make Bug: 178700363 Change-Id: I8b22d1436260eafca1819e3210b4bea559be7142
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-...
259c5e15797f2de45550a037ecc64975a86c4fd9
sys/sun4v/include/clock.h
sys/sun4v/include/clock.h
/*- * Copyright (c) 2001 Jake Burkholder. * 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 co...
/*- * Copyright (c) 2001 Jake Burkholder. * 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 co...
Remove two variables which are handled MI now.
Remove two variables which are handled MI 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
ad8eee60c7ece602d54a98a904d04455a63e979b
cli/main.c
cli/main.c
#include <stdio.h> #include "ot.h" #include "otdecode.h" int main(int argc, const char * argv[]) { char buf[1024]; fputs("Operation 1: ", stdout); fgets(buf, 1024, stdin); char p[64]; ot_op* op = ot_new_op(0, p); ot_decode_err err = ot_decode(op, buf); if (err != OT_ERR_NONE) { ...
#include <stdio.h> #include "ot.h" #include "compose.h" #include "otdecode.h" int main(int argc, const char * argv[]) { char buf[1024]; fputs("Operation 1: ", stdout); fgets(buf, 1024, stdin); char p[64]; ot_op* op = ot_new_op(0, p); ot_decode_err err = ot_decode(op, buf); if (err != O...
Add compose header to CLI
Add compose header to CLI
C
apache-2.0
polyphony-ot/libot
d31bc5e3c46005c363c656c31436a29ddd975c7f
test/srcs/11-omp-for.c
test/srcs/11-omp-for.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { double sinTable[256]; #pragma omp parallel for for(int n=0; n<256; ++n) sinTable[n] = sin(2 * M_PI * n / 256); // the table is now initialized } // RUN: clang -fopenmp -c -g -emit-llvm %s -o %t.1.bc // RUN: o...
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { double sinTable[256]; #pragma omp parallel for for(int n=0; n<256; ++n) sinTable[n] = sin(2 * M_PI * n / 256); // the table is now initialized } // RUN: clang -fopenmp -c -g -emit-llvm %s -o %t.1.bc // RUN: o...
Fix test case 11 to set the number of omp threads and make it portable
Fix test case 11 to set the number of omp threads and make it portable
C
mit
sfu-arch/llvm-epp,sfu-arch/llvm-epp,sfu-arch/llvm-epp
99f7c07130859fd5ee7b0343e9dedcde48ca9f02
extension/kill.c
extension/kill.c
/* A simple Lua module to suspend this process. */ #include <sys/types.h> #include <signal.h> #include <unistd.h> #include <lua.h> #include <lauxlib.h> int l_kill(lua_State *L) { /* Send ourselves the terminal stop signal, equivalent to normally * pressing ^Z. */ kill(0, SIGTSTP); return 0; } /* The...
/* A simple Lua module to suspend this process. */ #include <sys/types.h> #include <signal.h> #include <unistd.h> #include <lua.h> #include <lauxlib.h> int l_kill(lua_State *L) { /* Send ourselves the terminal stop signal, equivalent to normally * pressing ^Z. */ kill(0, SIGTSTP); /* We may have ...
Handle the terminal resizing while suspended, by sending ourselves a SIGWINCH after restoring.
Handle the terminal resizing while suspended, by sending ourselves a SIGWINCH after restoring.
C
mit
erig0/textadept-vi,jugglerchris/textadept-vi,jugglerchris/textadept-vi
e2ee2dab59a8367c3a94f0d7ed74d29e5236b16c
include/stdlib.h
include/stdlib.h
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_STDLIB_H #define MINLIBC_STDLIB_H #define NULL 0 #define EXIT_SUCCESS ...
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_STDLIB_H #define MINLIBC_STDLIB_H #define NULL 0 #define EXIT_SUCCESS ...
Add a prototype for abs().
Add a prototype for abs().
C
bsd-3-clause
GaloisInc/minlibc,GaloisInc/minlibc
ff603e2fa35e8e1ee2744e5ed5817845fdcca666
server/types/JoinableImpl.h
server/types/JoinableImpl.h
#ifndef JOINABLE_IMPL #define JOINABLE_IMPL #include "joinable_types.h" #include "types/MediaObjectImpl.h" using ::com::kurento::kms::api::Joinable; using ::com::kurento::kms::api::Direction; namespace com { namespace kurento { namespace kms { class JoinableImpl : public virtual Joinable, public virtual MediaObject...
#ifndef JOINABLE_IMPL #define JOINABLE_IMPL #include "joinable_types.h" #include "types/MediaObjectImpl.h" using ::com::kurento::kms::api::Joinable; using ::com::kurento::kms::api::Direction; using ::com::kurento::kms::api::StreamType; namespace com { namespace kurento { namespace kms { class JoinableImpl : public ...
Add methods to joinable to handle streams
Add methods to joinable to handle streams
C
lgpl-2.1
shelsonjava/kurento-media-server,mparis/kurento-media-server,Kurento/kurento-media-server,Kurento/kurento-media-server,lulufei/kurento-media-server,lulufei/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-media-server,todotobe1/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-m...
82941052dcbfa55dc20a02e0bb329e693d546477
proctor/include/pcl/proctor/proposer.h
proctor/include/pcl/proctor/proposer.h
#ifndef PROPOSER_H #define PROPOSER_H #include <boost/shared_ptr.hpp> #include <vector> #include <map> #include "proctor/detector.h" #include "proctor/database_entry.h" namespace pcl { namespace proctor { struct Candidate { std::string id; float votes; }; class Proposer { public: ...
#ifndef PROPOSER_H #define PROPOSER_H #include <boost/shared_ptr.hpp> #include <vector> #include <map> #include "proctor/detector.h" #include "proctor/database_entry.h" namespace pcl { namespace proctor { struct Candidate { std::string id; double votes; }; class Proposer { public:...
Change votes to use double.
Change votes to use double. git-svn-id: 5398946ba177a3e438c2dae55e2cdfc2fb96c905@4320 a9d63959-f2ad-4865-b262-bf0e56cfafb6
C
bsd-3-clause
fanxiaochen/mypcltest,nikste/pcl,nh2/pcl,3dtof/pcl,stfuchs/pcl,ipa-rmb/pcl,chenxingzhe/pcl,cascheberg/pcl,msalvato/pcl_kinfu_highres,KevenRing/vlp,v4hn/pcl,stefanbuettner/pcl,shivmalhotra/pcl,stefanbuettner/pcl,msalvato/pcl_kinfu_highres,RufaelDev/pcc-mp3dg,jakobwilm/pcl,lydhr/pcl,stfuchs/pcl,LZRS/pcl,LZRS/pcl,srbhpraj...
7ff3d12d44a03d407f53233d1247370bd85c455b
kalarmd/compat.h
kalarmd/compat.h
/* KDE2 compatibility for KDE Alarm Daemon and KDE Alarm Daemon GUI. This file is part of the KDE alarm daemon. Copyright (c) 2001 David Jarvie <software@astrojar.org.uk> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
/* KDE2 compatibility for KDE Alarm Daemon and KDE Alarm Daemon GUI. This file is part of the KDE alarm daemon. Copyright (c) 2001 David Jarvie <software@astrojar.org.uk> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
Adjust for changes in libkcal
Adjust for changes in libkcal svn path=/trunk/kdepim/; revision=133733
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
0db041be3be9c84c2949a4f7eb9c3b6cd80ae97c
arch/openrisc/kernel/vmlinux.h
arch/openrisc/kernel/vmlinux.h
#ifndef __OPENRISC_VMLINUX_H_ #define __OPENRISC_VMLINUX_H_ #ifdef CONFIG_BLK_DEV_INITRD extern char __initrd_start, __initrd_end; extern char __initramfs_start; #endif extern u32 __dtb_start[]; #endif
#ifndef __OPENRISC_VMLINUX_H_ #define __OPENRISC_VMLINUX_H_ #ifdef CONFIG_BLK_DEV_INITRD extern char __initrd_start, __initrd_end; #endif extern u32 __dtb_start[]; #endif
Remove unused declaration of __initramfs_start
openrisc: Remove unused declaration of __initramfs_start Signed-off-by: Geert Uytterhoeven <0da414d9d963da4039c2a0525b1844228075aa58@linux-m68k.org> Signed-off-by: Jonas Bonn <35a2c6fae61f8077aab61faa4019722abf05093c@southpole.se>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
3b9b66171c55dfa3e1907c6ea7f9e200652936a0
GCMCocoaExtensions/GCMCocoaExtensions/GCMDeviceInfo.h
GCMCocoaExtensions/GCMCocoaExtensions/GCMDeviceInfo.h
// // GCMDeviceInfo.h // GCMCocoaExtensions // // Created by Jerry Hsu on 11/26/13. // Copyright (c) 2013 GameChanger. All rights reserved. // #import <Foundation/Foundation.h> #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOr...
// // GCMDeviceInfo.h // GCMCocoaExtensions // // Created by Jerry Hsu on 11/26/13. // Copyright (c) 2013 GameChanger. All rights reserved. // #import <Foundation/Foundation.h> #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOr...
Add macros to check for iOS 8
Add macros to check for iOS 8
C
mit
gamechanger/GCMCocoaExtensions,gamechanger/GCMCocoaExtensions,gamechanger/GCMCocoaExtensions
b1382587216ff7fc6a3c0a664d5546c3ec9b594f
components/Echo/src/echo.c
components/Echo/src/echo.c
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #include <Echo.h> #include <string.h> void b__init(void) { } char * b_echo_string(...
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #include <Echo.h> #include <string.h> void b__init(void) { } char * b_echo_string(...
Adjust RPC parameter qualification for CAmkES changes.
Adjust RPC parameter qualification for CAmkES changes.
C
bsd-2-clause
seL4/camkes-apps-simple--devel
03763a26c09855a4ebf565ea7550c9f255e26e4d
include/libtrading/proto/fast_feed.h
include/libtrading/proto/fast_feed.h
#ifndef LIBTRADING_FAST_FEED_H #define LIBTRADING_FAST_FEED_H #include "libtrading/proto/fast_session.h" #include <sys/socket.h> #include <sys/types.h> struct fast_feed { struct fast_session *session; struct fast_session_cfg cfg; u64 recv_num; char xml[128]; char lip[32]; char sip[32]; char ip[32];...
#ifndef LIBTRADING_FAST_FEED_H #define LIBTRADING_FAST_FEED_H #include "libtrading/proto/fast_session.h" #include <sys/socket.h> #include <sys/types.h> struct fast_feed { struct fast_session *session; struct fast_session_cfg cfg; u64 recv_num; char xml[128]; char lip[32]; char sip[32]; char ip[32];...
Reset a session if implicit reset option is set
FAST: Reset a session if implicit reset option is set Signed-off-by: Marat Stanichenko <146c4a279a7427b2cc19a19b6130cbb7ee404ab1@gmail.com> Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
C
bsd-2-clause
jvirtanen/libtrading,divaykin/libtrading,libtrading/libtrading,mstanichenko/libtrading,divaykin/libtrading,libtrading/libtrading,svdev/libtrading,penberg/libtrading,fengzhyuan/libtrading,femtotrader/libtrading,penberg/libtrading,NunoEdgarGub1/libtrading,etoestja/libtrading,mstanichenko/libtrading,Bitcoinsulting/libtrad...
85dec0bf899ac18477920095ad381a7443f800b6
cpp/log/cert_submission_handler.h
cpp/log/cert_submission_handler.h
#ifndef CERT_SUBMISSION_HANDLER_H #define CERT_SUBMISSION_HANDLER_H #include <string> #include "base/macros.h" #include "log/cert_checker.h" #include "proto/ct.pb.h" #include "proto/serializer.h" #include "util/status.h" // Parse incoming submissions, do preliminary sanity checks and pass them // through cert check...
#ifndef CERT_SUBMISSION_HANDLER_H #define CERT_SUBMISSION_HANDLER_H #include <string> #include "base/macros.h" #include "log/cert_checker.h" #include "proto/ct.pb.h" #include "proto/serializer.h" #include "util/status.h" // Parse incoming submissions, do preliminary sanity checks and pass them // through cert check...
Remove the unused CertSubmissionHandler::GetRoots method.
Remove the unused CertSubmissionHandler::GetRoots method.
C
apache-2.0
taknira/certificate-transparency,taknira/certificate-transparency,kyprizel/certificate-transparency,phad/certificate-transparency,AlCutter/certificate-transparency,lexibrent/certificate-transparency,pphaneuf/certificate-transparency,grandamp/certificate-transparency,AlCutter/certificate-transparency,lexibrent/certifica...
b47d70c9531f082cad01e3dd0aa5f1b9827a04b7
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k1"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k2"
Update driver version to 5.03.00-k2
[SCSI] qla4xxx: Update driver version to 5.03.00-k2 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k...
1ceb72f88deed9c7e12ea0a2fe29fb30e4385adb
Socialize/SZSmartAlertUtils.h
Socialize/SZSmartAlertUtils.h
// // SZSmartAlertUtils.h // SocializeSDK // // Created by Nathaniel Griswold on 6/4/12. // Copyright (c) 2012 Socialize, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface SZSmartAlertUtils : NSObject + (BOOL)isAvailable; + (BOOL)handleNotification:(NSDictionary*)userInfo __attribute__((d...
// // SZSmartAlertUtils.h // SocializeSDK // // Created by Nathaniel Griswold on 6/4/12. // Copyright (c) 2012 Socialize, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface SZSmartAlertUtils : NSObject + (BOOL)isAvailable; + (BOOL)handleNotification:(NSDictionary*)userInfo; // __attribute_...
Remove a deprecation for minor-minor release
Remove a deprecation for minor-minor release
C
mit
socialize/socialize-sdk-ios,socialize/socialize-sdk-ios,socialize/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,socialize/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,socialize/socialize-sdk-ios,dontfallisleep/...
2a68fda5672af426733fb9bb9c82bf7318cdc9ca
src/gfx/support/json.h
src/gfx/support/json.h
/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #pragma once #include "rapidjson/document.h" #include "glm/glm.hpp" namespace redc { inline glm::vec3 vec3_from_js(rapidjson::Value const& v) noexcept { return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()}; } }
/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #pragma once #include "rapidjson/document.h" #include "glm/glm.hpp" namespace redc { inline glm::vec3 vec3_from_js_object(rapidjson::Value const& v) noexcept { return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()}; } ...
Update / add vec3 => JSON functions
Update / add vec3 => JSON functions Add support for array vectors like this [0.2, 12.5, 4.1]
C
bsd-3-clause
RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine
05b970c5ed2b69076f340aa96724237883cff995
sim/log2.h
sim/log2.h
#ifndef LOG2_H #define LOG2_H template <typename T> #ifdef __GNUC__ __attribute__((const)) #endif static bool IsPowerOfTwo(const T& x) { return (x & (x - 1)) == 0; } template<typename T> #ifdef __GNUC__ __attribute__((const)) #endif static inline unsigned ilog2(T n) { // returns the first power of two equal t...
#ifndef LOG2_H #define LOG2_H template <typename T> #ifdef __GNUC__ __attribute__((const)) #endif static inline bool IsPowerOfTwo(T x) { return (x & (x - 1)) == 0; } template<typename T> #ifdef __GNUC__ __attribute__((const)) #endif static inline unsigned ilog2(T n) { // returns the first power of two equal t...
Work around an optimization bug in IsPowerOfTwo.
Work around an optimization bug in IsPowerOfTwo.
C
mit
Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim
5d70a9c23b0d34ea511b8e1705e2c9a8d6d0a435
src/definitions.h
src/definitions.h
#pragma once #include <cstdint> using uint = unsigned int; using u8 = uint8_t; using u16 = uint16_t; using s8 = int8_t; const int GAMEBOY_WIDTH = 160; const int GAMEBOY_HEIGHT = 144; const int CLOCK_RATE = 4194304; enum class Color { Color0, /* White */ Color1, /* Light gray */ Color2, /* Dark gray */...
#pragma once #include <cstdint> using uint = unsigned int; using u8 = uint8_t; using u16 = uint16_t; using s8 = int8_t; const int GAMEBOY_WIDTH = 160; const int GAMEBOY_HEIGHT = 144; const int CLOCK_RATE = 4194304; enum class Color { Color0, /* White */ Color1, /* Light gray */ Color2, /* Dark gray */...
Align & and * to the left always
Align & and * to the left always
C
bsd-3-clause
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
84f52e954b4baee7ad0ad243648bf61e12f2a84c
test/asan/TestCases/printf-3.c
test/asan/TestCases/printf-3.c
// RUN: %clang_asan -O2 %s -o %t // RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: %env_asan_opts=check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // FIXME: printf is not intercepted o...
// RUN: %clang_asan -O2 %s -o %t // RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: %env_asan_opts=check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // FIXME: printf is not intercepted o...
Disable test incompatible with new Android
[asan] Disable test incompatible with new Android git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@349705 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
1d25a02b388dbd4c22e6a9338aa96580efbc712a
crypto/openssl_bio_string.h
crypto/openssl_bio_string.h
// Copyright 2014 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 CRYPTO_OPENSSL_BIO_STRING_H_ #define CRYPTO_OPENSSL_BIO_STRING_H_ #include <string> #include "crypto/crypto_export.h" // From <openssl/bio.h> t...
// Copyright 2014 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 CRYPTO_OPENSSL_BIO_STRING_H_ #define CRYPTO_OPENSSL_BIO_STRING_H_ #include <string> #include "crypto/crypto_export.h" // From <openssl/bio.h> t...
Fix component build with gcc 4.6 on Android.
Fix component build with gcc 4.6 on Android. CRYPTO_EXPORT macro has to be before the non-void return type. BUG=None TBR=rsleevi@chromium.org Review URL: https://codereview.chromium.org/296223002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@272363 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,PeterWangInt...
f505abb7da052e109a55b418dfbf3ebb0a6fd71f
PathKit/PathKit.h
PathKit/PathKit.h
// // PathKit.h // PathKit // // Created by Kyle Fuller on 20/11/2014. // Copyright (c) 2014 Cocode. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for PathKit. FOUNDATION_EXPORT double PathKitVersionNumber; //! Project version string for PathKit. FOUNDATION_EXPORT const uns...
// // PathKit.h // PathKit // // Created by Kyle Fuller on 20/11/2014. // Copyright (c) 2014 Cocode. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for PathKit. FOUNDATION_EXPORT double PathKitVersionNumber; //! Project version string for PathKit. FOUNDATION_EXPORT const uns...
Remove useless comment from umbrella header
Remove useless comment from umbrella header
C
bsd-2-clause
weby/PathKit,weby/PathKit,kylef/PathKit,RahulKatariya/PathKit,kylef/PathKit,RahulKatariya/PathKit
bd1bb2f7a80f5518a7afbce3f19a547dc2fdc23a
testing/test_irf.c
testing/test_irf.c
#include <stdlib.h> #include <glib.h> #include "bmi/bmi_cem.h" static void test_bmi_initialize(void) { BMI_Model *model = (BMI_Model *)malloc(sizeof(BMI_Model)); int status; register_bmi_cem(model); status = model->initialize(NULL, &(model->self)); g_assert_cmpint(status, ==, BMI_SUCCESS); } static vo...
#include <stdlib.h> #include <glib.h> #include "bmi/bmi_cem.h" static void test_bmi_initialize(void) { BMI_Model *model = (BMI_Model *)malloc(sizeof(BMI_Model)); int status; register_bmi_cem(model); status = model->initialize(NULL, &(model->self)); g_assert_cmpint(status, ==, BMI_SUCCESS); } static vo...
Add test for update function.
Add test for update function.
C
mit
csdms-contrib/cem
f2ec24fd42d52a52829070b5e31d9a17d145df30
arch/microblaze/include/asm/entry.h
arch/microblaze/include/asm/entry.h
/* * Definitions used by low-level trap handlers * * Copyright (C) 2008 Michal Simek * Copyright (C) 2007 - 2008 PetaLogix * Copyright (C) 2007 John Williams <john.williams@petalogix.com> * * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main d...
/* * Definitions used by low-level trap handlers * * Copyright (C) 2008 Michal Simek * Copyright (C) 2007 - 2008 PetaLogix * Copyright (C) 2007 John Williams <john.williams@petalogix.com> * * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main d...
Remove unneded per cpu SYSCALL_SAVE variable
microblaze: Remove unneded per cpu SYSCALL_SAVE variable Signed-off-by: Michal Simek <3a191dd2be46e826fee926d532b136ed65cb5318@monstr.eu>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program...
05e7220cccf9e335700e91b14c2de91d84c6fe3d
src/keyboard-layout-observer.h
src/keyboard-layout-observer.h
#ifndef SRC_KEYBORD_LAYOUT_OBSERVER_H_ #define SRC_KEYBORD_LAYOUT_OBSERVER_H_ #include "nan.h" using namespace v8; // NOLINT class KeyboardLayoutObserver : public node::ObjectWrap { public: static void Init(Handle<Object> target); void HandleKeyboardLayoutChanged(); private: KeyboardLayoutObserver(NanCallb...
#ifndef SRC_KEYBORD_LAYOUT_OBSERVER_H_ #define SRC_KEYBORD_LAYOUT_OBSERVER_H_ #include "nan.h" using namespace v8; // NOLINT class KeyboardLayoutObserver : public node::ObjectWrap { public: static void Init(Handle<Object> target); void HandleKeyboardLayoutChanged(); private: KeyboardLayoutObserver(NanCallb...
Add our new method to get the list of installed layouts
Add our new method to get the list of installed layouts
C
mit
atom/keyboard-layout,atom/keyboard-layout,atom/keyboard-layout
cefc69e635bdcabbf8191627913af238b9f974f2
UIKit/UIPanGestureRecognizer+Private.h
UIKit/UIPanGestureRecognizer+Private.h
@interface UIPanGestureRecognizer (Private) @property (setter=_setHysteresis:) BOOL _hysteresis; @end
@interface UIPanGestureRecognizer (Private) @property (setter=_setHysteresis:) CGFloat _hysteresis; @property (assign, nonatomic) BOOL failsPastMaxTouches; @end
Fix UIPanGestureRecognizer property type; add property
[UIKit] Fix UIPanGestureRecognizer property type; add property
C
unlicense
hbang/headers,hbang/headers
11ecac55348eb103e2cbcd25cb01178584faa57f
chrome/app/scoped_ole_initializer.h
chrome/app/scoped_ole_initializer.h
// Copyright (c) 2009 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 CHROME_APP_SCOPED_OLE_INITIALIZER_H_ #define CHROME_APP_SCOPED_OLE_INITIALIZER_H_ // Wraps OLE initialization in a cross-platform class meant...
// Copyright (c) 2009 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 CHROME_APP_SCOPED_OLE_INITIALIZER_H_ #define CHROME_APP_SCOPED_OLE_INITIALIZER_H_ #include "base/logging.h" #include "build/build_config.h" ...
Make ScopedOleInitializer work on windows if you aren't including build_config already.
Make ScopedOleInitializer work on windows if you aren't including build_config already. BUG=none TEST=none Review URL: http://codereview.chromium.org/19640 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@8835 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
9cdd7db18bcf038c1b92e45ae0ba9c846e8d3977
test2/float/call/many_floats.c
test2/float/call/many_floats.c
// RUN: %ucc -o %t %s // RUN: %ocheck 0 %t // RUN: %t | %output_check 'Hello 5 2.3' 'Hello 5 2.3' // should run without segfaulting main() { printf("Hello %d %.1f\n", 5, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3); // this causes an infinite loop in glibc's printf() pr...
// RUN: %ucc -o %t %s // RUN: %ocheck 0 %t // RUN: %t | %output_check 'Hello 5 5.9' '7.3 8.7 10.1 11.5 12.9 14.3 15.7 17.1 18.5 19.9' 'Hello 5 15.7' '14.3 12.9 11.5 10.1 8.7 7.3 5.9 4.5 3.1 1.7 0.3' // should run without segfaulting main() { printf("Hello %d %.1f\n" "%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %...
Format strings and more through test for stack floats
Format strings and more through test for stack floats
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
b004fd538d4d56202a8f226f0145ba03aeb27a69
tensorflow_lite_support/cc/text/tokenizers/tokenizer_jni_lib.h
tensorflow_lite_support/cc/text/tokenizers/tokenizer_jni_lib.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...
Remove unused STL string include
Remove unused STL string include PiperOrigin-RevId: 433365283
C
apache-2.0
tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support
ae78b7da75216dc8b6ed457a7f6ca878faaeec06
rbcoremidi.c
rbcoremidi.c
/* * 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. }
/* * Copyright 2008 Markus Prinz * Released unter an MIT licence * */ #include <ruby.h> #include <CoreMIDI/CoreMIDI.h> VALUE callback_proc = Qnil; MIDIPortRef inPort = NULL; MIDIClientRef client = NULL; static void RbMIDIReadProc(const MIDIPacketList* packetList, void* readProcRefCon, void* srcConnRefCon) { ...
Add skeleton for callback and a few global vars
Add skeleton for callback and a few global vars
C
mit
cypher/rbcoremidi,cypher/rbcoremidi
aca77f3e86ce9c380f19a4d02875023100af8c82
StravaKit/StravaKit/StravaKit.h
StravaKit/StravaKit/StravaKit.h
// // StravaKitOSX.h // StravaKitOSX // // Created by Elmar Tampe on 04/12/14. // // #import <UIKit/UIKit.h> //! Project version number for StravaKitOSX. FOUNDATION_EXPORT double StravaKitOSXVersionNumber; //! Project version string for StravaKitOSX. FOUNDATION_EXPORT const unsigned char StravaKitOSXVersionString...
// // StravaKit.h // StravaKit // // Created by Elmar Tampe on 04/12/14. // // #import <UIKit/UIKit.h> //! Project version number for StravaKit. FOUNDATION_EXPORT double StravaKitVersionNumber; //! Project version string for StravaKit. FOUNDATION_EXPORT const unsigned char StravaKitVersionString[]; // In this he...
Fix the naming of the var's to match the actual naming.
Fix the naming of the var's to match the actual naming.
C
mit
elmoswelt/StravaKit,elmoswelt/StravaKit
7c0c1625ca01a505f047c7332073014a96021696
src/Pomade.c
src/Pomade.c
#include "pebble_os.h" #include "pebble_app.h" #include "pebble_fonts.h" #define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 } PBL_APP_INFO(MY_UUID, "Template App", "Your Company", 1, 0, /* App version */ DEFAULT_MENU_...
#include "pebble_os.h" #include "pebble_app.h" #include "pebble_fonts.h" #define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 } PBL_APP_INFO(MY_UUID, "Pomade", "Jon Speicher", 0, 1, /* App version */ DEFAULT_MENU_ICON, ...
Change version, app and window name
Change version, app and window name
C
mit
elliots/simple-demo-pebble,jonspeicher/Pomade,jonspeicher/Pomade
747852023687e4fe4502cc616412a5e3568f56fd
gnu/lib/libregex/gnuregex.h
gnu/lib/libregex/gnuregex.h
/*- * Copyright (c) 2004 David E. O'Brien * Copyright (c) 2004 Andrey A. Chernov * 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 (c) 2004 David E. O'Brien * Copyright (c) 2004 Andrey A. Chernov * 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...
Change warning hint to be more useful
Change warning hint to be more useful
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
40a1a436137bab2bb7fc0ed7cc83d4d52be36ce4
tools/emulator/non_interactive.c
tools/emulator/non_interactive.c
// // Non-interactive test runner just produces register traces and memory dumps // #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <sys/poll.h> #include <stdarg.h> #include "core.h" #include "debug_info.h" void runNonInteractive(Core *core) { int i; enableTracing(core); ru...
// // Non-interactive test runner just produces register traces and memory dumps // #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <sys/poll.h> #include <stdarg.h> #include "core.h" #include "debug_info.h" void runNonInteractive(Core *core) { int i; enableTracing(core); fo...
Make emulator run for a little longer in non-interactive mode
Make emulator run for a little longer in non-interactive mode
C
apache-2.0
jbush001/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziPr...
9cc47bd19ebc3f697753d1a3ab62777c9e68d1c2
src/ignore.h
src/ignore.h
#include <sys/dir.h> #include <sys/types.h> #ifndef IGNORE_H #define IGNORE_H #define SVN_DIR_PROP_BASE "/dir-prop-base" #define SVN_DIR ".svn" #define SVN_PROP_IGNORE "svn:ignore" struct ignores { char **names; /* Non-regex ignore lines. Sorted so we can binary search them. */ size_t names_len; char **r...
#ifndef IGNORE_H #define IGNORE_H #include <sys/dir.h> #include <sys/types.h> #define SVN_DIR_PROP_BASE "/dir-prop-base" #define SVN_DIR ".svn" #define SVN_PROP_IGNORE "svn:ignore" struct ignores { char **names; /* Non-regex ignore lines. Sorted so we can binary search them. */ size_t names_len; char **r...
Put ifndef at the top.
Put ifndef at the top.
C
apache-2.0
accessv/the_silver_searcher,subev/the_silver_searcher,decaff/the_silver_searcher,siadat/the_silver_searcher,lunixbochs/the_silver_searcher,accessv/the_silver_searcher,nodakai/the_silver_searcher,cchamberlain/the_silver_searcher,brianstorti/the_silver_searcher,smaudet/the_silver_searcher,siadat/the_silver_searcher,godby...
f051e451c92d176532fde7e6da09dff3262aa9ae
src/gui/src/docks/settings-dock.h
src/gui/src/docks/settings-dock.h
#ifndef SETTINGS_DOCK_H #define SETTINGS_DOCK_H #include <QStringList> #include <QWidget> #include "dock.h" namespace Ui { class SettingsDock; } class Profile; class QEvent; class QSettings; class SettingsDock : public Dock { Q_OBJECT public: explicit SettingsDock(Profile *profile, QWidget *parent); ~Sett...
#ifndef SETTINGS_DOCK_H #define SETTINGS_DOCK_H #include <QStringList> #include <QWidget> #include "dock.h" namespace Ui { class SettingsDock; } class Profile; class QEvent; class QSettings; class SettingsDock : public Dock { Q_OBJECT public: explicit SettingsDock(Profile *profile, QWidget *parent); ~Sett...
Fix broken connection in quick settings dock
Fix broken connection in quick settings dock
C
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
0164cb003172e6e3224498eb77bbf14ca5ece039
mfmod.c
mfmod.c
#include <linux/module.h> #include <linux/kernel.h> #include <linux/netfilter.h> #include <linux/netfilter_ipv4.h> static struct nf_hook_ops nfho; unsigned int hook_func(unsigned int hooknum, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) { return N...
#include <linux/module.h> #include <linux/kernel.h> #include <linux/netfilter.h> #include <linux/netfilter_ipv4.h> static struct nf_hook_ops nfho; unsigned int hook_func(unsigned int hooknum, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) { socke...
Set hook to block all ICMP packets
Set hook to block all ICMP packets
C
mit
Muhlenberg/mfw