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 |
|---|---|---|---|---|---|---|---|---|---|
fc3cad92574b76d27c629b704f23c70ef46a2428 | core/httpd-platform.h | core/httpd-platform.h | #ifndef HTTPD_PLATFORM_H
#define HTTPD_PLATFORM_H
void httpdPlatSendData(ConnTypePtr conn, char *buff, int len);
void httpdPlatDisconnect(ConnTypePtr conn);
void httpdPlatInit(int port, int maxConnCt);
#endif | #ifndef HTTPD_PLATFORM_H
#define HTTPD_PLATFORM_H
int httpdPlatSendData(ConnTypePtr conn, char *buff, int len);
void httpdPlatDisconnect(ConnTypePtr conn);
void httpdPlatInit(int port, int maxConnCt);
#endif | Change to send routine: return status | Change to send routine: return status
| C | mpl-2.0 | chmorgan/libesphttpd |
04e7f7e951bcefbc37e8e127cf268c67f9a20e17 | setcapslock.c | setcapslock.c | #include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
#define CAPSLOCK 2
void setcaps(int on)
{
Display* display = XOpenDisplay(NULL);
XkbLockModifiers(display, XkbUseCoreKbd, CAPSLOCK, on ? CAPSLOCK : 0);
XCloseDisplay(display);
}
void usage(const char* program_name)
{
... | #include <stdio.h>
#include <strings.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
#define CAPSLOCK 2
void setcaps(int on)
{
Display* display = XOpenDisplay(NULL);
XkbLockModifiers(display, XkbUseCoreKbd, CAPSLOCK, on ? CAPSLOCK : 0);
XCloseDisplay(display);
}
void usage(const char* program_name)
{
... | Make command line argument case insensitive | Make command line argument case insensitive
| C | unlicense | coldfix/setcapslock |
1bc76e90771befd2be6accd71b32ae2547e98f6a | include/user.c | include/user.c | #include "user.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
user_t* NewUser(int fd,char *addr,unsigned short port,char *name){
user_t *user = malloc(sizeof(user_t));
if(user == NULL){
goto ret;
}
if(fd < 0 || addr == NULL || name == NULL){
free(user);
user = NU... | #include "user.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
user_t* NewUser(int fd,char *addr,unsigned short port,char *name){
user_t *user = malloc(sizeof(user_t));
if(user == NULL){
goto ret;
}
if(fd < 0 || addr == NULL || name == NULL){
free(user);
user = NU... | Fix AddUserToList bug when root is NULL | Fix AddUserToList bug when root is NULL
| C | apache-2.0 | Billy4195/Simple_Chatroom |
a51cfb2c9e02993446f822a491bb9d2910883a19 | kmail/kmversion.h | kmail/kmversion.h | // KMail Version Information
//
#ifndef kmversion_h
#define kmversion_h
#define KMAIL_VERSION "1.9.8"
#endif /*kmversion_h*/
| // KMail Version Information
//
#ifndef kmversion_h
#define kmversion_h
#define KMAIL_VERSION "1.9.9"
#endif /*kmversion_h*/
| Increase version number for KDE 3.5.9. | Increase version number for KDE 3.5.9.
svn path=/branches/KDE/3.5/kdepim/; revision=771811
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
f9d5482c1d20f6724ea6ddb4cd2395db0bdc670a | src/agent/downloader.h | src/agent/downloader.h | // Copyright (c) 2015, Galaxy Authors. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yuanyi03@baidu.com
#ifndef _DOWNLOAD_H
#define _DOWNLOAD_H
#include <string>
namespace galaxy {
class Downloader {
public:
virtual int ... | // Copyright (c) 2015, Galaxy Authors. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yuanyi03@baidu.com
#ifndef _DOWNLOAD_H
#define _DOWNLOAD_H
#include <string>
namespace galaxy {
class Downloader {
public:
virtual ~Dow... | Add virtual deconstructor for abstract class Downloader | Add virtual deconstructor for abstract class Downloader
| C | bsd-3-clause | fxsjy/galaxy,fxsjy/galaxy,baidu/galaxy,szxw/galaxy,WangCrystal/galaxy,sdgdsffdsfff/galaxy,May2016/galaxy,ontologyzsy/galaxy,imotai/galaxy,sdgdsffdsfff/galaxy,Kai-Zhang/galaxy,May2016/galaxy,ontologyzsy/galaxy,fxsjy/galaxy,imotai/galaxy,WangCrystal/galaxy,imotai/galaxy,linyvxiang/galaxy,baidu/galaxy,fxsjy/galaxy,imotai/... |
f3826a11eb29d54ecc30ed509699aaec7c20a969 | luv.c | luv.c | #include <string.h>
#include "luv.h"
#include "luv_functions.c"
int luv_newindex(lua_State* L) {
lua_getfenv(L, 1);
lua_pushvalue(L, 2);
lua_pushvalue(L, 3);
lua_rawset(L, -3);
lua_pop(L, 1);
return 0;
}
LUALIB_API int luaopen_luv (lua_State *L) {
luv_main_thread = L;
luaL_newmetatable(L, "luv_hand... | #include <string.h>
#include "luv.h"
#include "luv_functions.c"
static int luv_newindex(lua_State* L) {
lua_getfenv(L, 1);
lua_pushvalue(L, 2);
lua_pushvalue(L, 3);
lua_rawset(L, -3);
lua_pop(L, 1);
return 0;
}
static int luv_index(lua_State* L) {
#ifdef LUV_STACK_CHECK
int top = lua_gettop(L);
#endif
... | Allow reading back callbacks set to handles | Allow reading back callbacks set to handles
| C | apache-2.0 | leecrest/luv,DBarney/luv,RomeroMalaquias/luv,brimworks/luv,mkschreder/luv,daurnimator/luv,xpol/luv,zhaozg/luv,daurnimator/luv,daurnimator/luv,luvit/luv,RomeroMalaquias/luv,kidaa/luv,brimworks/luv,mkschreder/luv,NanXiao/luv,NanXiao/luv,xpol/luv,joerg-krause/luv,joerg-krause/luv,DBarney/luv,zhaozg/luv,luvit/luv,kidaa/luv... |
f487686bba37f0a7a22f0f87d915b05115094948 | libc/stdio/gets.c | libc/stdio/gets.c | /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSAFE FU... | /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSAFE FU... | Build if GETC_MACRO use is disabled | Build if GETC_MACRO use is disabled
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
da7beedbb4b1f5cfa2b546d6fe41bb158845afe0 | src/pch.h | src/pch.h | #pragma once
#define NOMINMAX
#include <windows.h>
#include <streams.h>
#include <audioclient.h>
#include <comdef.h>
#include <malloc.h>
#include <mmdeviceapi.h>
#include <process.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <deque>
#include <functional>
#include <future>
... | #pragma once
#ifndef NOMINMAX
# define NOMINMAX
#endif
#include <windows.h>
#include <streams.h>
#include <audioclient.h>
#include <comdef.h>
#include <malloc.h>
#include <mmdeviceapi.h>
#include <process.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <deque>
#include <f... | Make sure NOMINMAX is not redefined | Make sure NOMINMAX is not redefined
| C | lgpl-2.1 | kasper93/sanear,kasper93/sanear,alexmarsev/sanear,kasper93/sanear,alexmarsev/sanear |
1ec14d4fd52cb05096b46a940d490433635508b4 | PWGLF/NUCLEX/Hypernuclei/Vertexer3Body/AliVertexerHyperTriton3Body.h | PWGLF/NUCLEX/Hypernuclei/Vertexer3Body/AliVertexerHyperTriton3Body.h | #ifndef ALIVERTEXERHYPERTRITON3BODY_H
#define ALIVERTEXERHYPERTRITON3BODY_H
#include <AliVertexerTracks.h>
class AliESDVertex;
class AliESDtrack;
class AliExternalTrackParam;
class AliVertexerHyperTriton3Body
{
public:
AliVertexerHyperTriton3Body();
AliESDVertex* GetCurrentVertex() { return mCurrentVertex; }
... | #ifndef ALIVERTEXERHYPERTRITON3BODY_H
#define ALIVERTEXERHYPERTRITON3BODY_H
class TClonesArray; /// This will be removed as soon as alisw/AliRoot#898 is merged and a new tag is available
#include <AliVertexerTracks.h>
class AliESDVertex;
class AliESDtrack;
class AliExternalTrackParam;
class AliVertexerHyperTriton3B... | Fix for missing forward declaration in AliROOT | Fix for missing forward declaration in AliROOT
| C | bsd-3-clause | AMechler/AliPhysics,victor-gonzalez/AliPhysics,kreisl/AliPhysics,hcab14/AliPhysics,pbuehler/AliPhysics,carstooon/AliPhysics,fcolamar/AliPhysics,AMechler/AliPhysics,dmuhlhei/AliPhysics,dmuhlhei/AliPhysics,preghenella/AliPhysics,hcab14/AliPhysics,akubera/AliPhysics,sebaleh/AliPhysics,hcab14/AliPhysics,fbellini/AliPhysics... |
2f40aad6b9d0ed57c32b48854d4b7a4358924738 | sys/i386/linux/linux_genassym.c | sys/i386/linux/linux_genassym.c | /* $FreeBSD$ */
#include <sys/param.h>
#include <sys/assym.h>
#include <i386/linux/linux.h>
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
ASSYM(LINUX_SC_EFLAGS, offsetof(struct l_... | /* $FreeBSD$ */
#include <sys/param.h>
#include <sys/assym.h>
#include <sys/systm.h>
#include <i386/linux/linux.h>
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
ASSYM(LINUX_SC_EFL... | Include <sys/systm.h> for the definition of offsetof() instead of depending on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>. | Include <sys/systm.h> for the definition of offsetof() instead of depending
on the definition being misplaced in <sys/types.h>. The definition probably
belongs in <sys/stddef.h>.
| 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 |
175264adfef6d6e050c2ca7caf5e8afddefeceb7 | src/Core/RAlloc.h | src/Core/RAlloc.h | #ifndef RUTIL2_RALLOC_H
#define RUTIL2_RALLOC_H
#include "OO.h"
void* RAlloc(int Size);
void* RAlign(int Align, int Size);
#if defined(__MINGW32__)
#define _aligned_malloc __mingw_aligned_malloc
#define _aligned_free __mingw_aligned_free
#define memalign(align, size) _aligned_malloc(size, align)
#endif //For MinGW
... | #ifndef RUTIL2_RALLOC_H
#define RUTIL2_RALLOC_H
#include <memory.h>
#include "OO.h"
void* RAlloc(int Size);
void* RAlign(int Align, int Size);
#if defined(__MINGW32__)
#define _aligned_malloc __mingw_aligned_malloc
#define _aligned_free __mingw_aligned_free
#define memalign(align, size) _aligned_malloc(size, align... | Add method 'RClean' for clean memory | Add method 'RClean' for clean memory
| C | mit | Icenowy/RUtil2,Rocaloid/RUtil2,Rocaloid/RUtil2,Icenowy/RUtil2,Icenowy/RUtil2,Rocaloid/RUtil2 |
f7daed906287e6141ea04a1097672a544765f105 | src/qt/bitcoinaddressvalidator.h | src/qt/bitcoinaddressvalidator.h | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVali... | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base58 entry widget validator.
Corrects near-miss characters and refuses characters that are not part of base58.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVal... | Fix typo in a comment: it's base58, not base48. | Fix typo in a comment: it's base58, not base48.
| C | mit | Checkcoin/checkcoin,zemrys/vertcoin,KaSt/equikoin,bitgoldcoin-project/bitgoldcoin,Coinfigli/coinfigli,privatecoin/privatecoin,coinkeeper/2015-06-22_18-51_vertcoin,ohac/sakuracoin,gwangjin2/gwangcoin-core,coinkeeper/2015-04-19_21-20_litecoindark,brightcoin/brightcoin,Czarcoin/czarcoin,kryptokredyt/ProjektZespolowyCoin,d... |
50d89048e3f9f8e98f0bcaa813bd87a1517e6d05 | Cutelyst/cutelyst_global.h | Cutelyst/cutelyst_global.h | #ifndef CUTELYST_GLOBAL_H
#define CUTELYST_GLOBAL_H
#include <QtCore/QtGlobal>
#if defined(CUTELYST_LIBRARY)
# define CUTELYST_LIBRARY Q_DECL_EXPORT
#else
# define CUTELYST_LIBRARY Q_DECL_IMPORT
#endif
#endif // CUTELYST_GLOBAL_H
| #ifndef CUTELYST_GLOBAL_H
#define CUTELYST_GLOBAL_H
#include <QtCore/QtGlobal>
// defined by cmake when building this library
#if defined(cutelyst_qt5_EXPORTS)
# define CUTELYST_LIBRARY Q_DECL_EXPORT
#else
# define CUTELYST_LIBRARY Q_DECL_IMPORT
#endif
#endif // CUTELYST_GLOBAL_H
| Make sure export macro is properly set | Make sure export macro is properly set
| C | bsd-3-clause | simonaw/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,simonaw/cutelyst |
1f2d0a53e4be19d374b02ac85442ba8ebe20ff30 | engine/include/graphics/Vertex.h | engine/include/graphics/Vertex.h | /*
* Copyright (c) 2017 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#ifndef ROS_VERTEX_H
#define ROS_VERTEX_H
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <core/Common.h>
#incl... | /*
* Copyright (c) 2017 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#ifndef ROS_VERTEX_H
#define ROS_VERTEX_H
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <core/Common.h>
#incl... | Support several texture coords and colors per vertex | Support several texture coords and colors per vertex
| C | apache-2.0 | lechkulina/RealmsOfSteel,lechkulina/RealmsOfSteel |
3b7b8507444b059534fe4d708ad8fd251b42c0c4 | ext/libxml/ruby_xml_namespaces.h | ext/libxml/ruby_xml_namespaces.h | /* $Id: ruby_xml_ns.h 612 2008-11-21 08:01:29Z cfis $ */
/* Please see the LICENSE file for copyright and distribution information */
#ifndef __RXML_NAMESPACES__
#define __RXML_NAMESPACES__
extern VALUE cXMLNamespaces;
void ruby_init_xml_namespaces(void);
#endif
| /* $Id: ruby_xml_ns.h 612 2008-11-21 08:01:29Z cfis $ */
/* Please see the LICENSE file for copyright and distribution information */
#ifndef __RXML_NAMESPACES__
#define __RXML_NAMESPACES__
extern VALUE cXMLNamespaces;
void rxml_init_namespaces(void);
#endif
| Fix up name of init_namespaces method. | Fix up name of init_namespaces method.
| C | mit | sferik/libxml-ruby,xml4r/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,sferik/libxml-ruby,xml4r/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,sferik/libxml-ruby,xml4r/libxml-ruby |
9339344aec109c94237278e4544c8111cee6b3f4 | stdinc/sys/mman.h | stdinc/sys/mman.h | #pragma once
#include <uk/mman.h>
BEGIN_DECLS
void *mmap(void *addr, size_t length, int prot, int flags,
int fd, off_t offset);
int munmap(void *addr, size_t length);
int mprotect(void *addr, size_t length, int prot);
int madvise(void *addr, size_t length, int advice);
END_DECLS
| #pragma once
#include <sys/types.h>
#include <uk/mman.h>
BEGIN_DECLS
void *mmap(void *addr, size_t length, int prot, int flags,
int fd, off_t offset);
int munmap(void *addr, size_t length);
int mprotect(void *addr, size_t length, int prot);
int madvise(void *addr, size_t length, int advice);
END_DECLS
| Fix missing dependency on sys/types.h | stdinc: Fix missing dependency on sys/types.h
| C | mit | aclements/sv6,bowlofstew/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6 |
7ae7d98acee75625a8eaaa9074b0bc66deda76bd | main.c | main.c | //
// Created by wan on 1/2/16.
//
#include <stdio.h>
int main(void) {
printf("Input:");
int a;
scanf("%d", &a);
if (2016 % a != 0) {
printf("No way. Exit.\n");
return 0;
}
int s = 2016;
printf("2016 = ");
int flag = 0, b;
for (b = 1111; b >= 1; b /= 10) {
in... | //
// Created by Hexapetalous on 1/1/16.
//
#include <stdio.h>
int main(void) {
printf("Input[1]:");
int a;
scanf("%d", &a);
printf("Input[2]:");
int z;
scanf("%d", &z);
if (z % a != 0) {
printf("No way. Exit.\n");
return 0;
}
int s = z;
printf("%d = ", z);
i... | Support to division every number. | Support to division every number.
| C | mit | hxptls/P0000,hxptls/P0000 |
5e6b427fb951576718f177f837daf81bf02cd721 | main.c | main.c | #include "scheme.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifndef DEFAULT_BOOTFILE_PATH
# define DEFAULT_BOOTFILE_PATH "./shen.boot"
#endif
static void custom_init(void) {}
int main(int argc, char *argv[]) {
int status;
char *bfpath = getenv("SHEN_BOOTFILE_PATH");
if (bfpath == NULL) {
... | #include "scheme.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#ifndef DEFAULT_BOOTFILE_PATH
# define DEFAULT_BOOTFILE_PATH NULL
#endif
static void custom_init(void) {}
int main(int argc, char *argv[]) {
int status;
char *bfpath = getenv("SHEN_BOOTFILE_PAT... | Make it so that if no path for the shen boot file is specified, it is looked at the same directory of the shen-scheme executable | Make it so that if no path for the shen boot file is specified, it is looked at the same directory of the shen-scheme executable
| C | bsd-3-clause | tizoc/chibi-shen |
d7579b98bf36dbb78472aabfc269939e646f73bf | src/essentia/utils/extractor_freesound/extractor_version.h | src/essentia/utils/extractor_freesound/extractor_version.h | #ifndef EXTRACTOR_VERSION_H_
#define EXTRACTOR_VERSION_H_
#define FREESOUND_EXTRACTOR_VERSION "freesound 2.0"
#endif /* EXTRACTOR_VERSION_H_ */
| #ifndef EXTRACTOR_VERSION_H_
#define EXTRACTOR_VERSION_H_
#define FREESOUND_EXTRACTOR_VERSION "freesound 0.5"
#endif /* EXTRACTOR_VERSION_H_ */
| Change FreesoundExtractor version to 0.5 | Change FreesoundExtractor version to 0.5
After discussion (#582) we decided to keep incrementing 0.4
| C | agpl-3.0 | MTG/essentia,carthach/essentia,carthach/essentia,MTG/essentia,carthach/essentia,MTG/essentia,carthach/essentia,carthach/essentia,MTG/essentia,MTG/essentia |
8ff46ef395b30e1e3f9dd84c08e1b93796ab524d | Classes/AHKNavigationController.h | Classes/AHKNavigationController.h | // Created by Arkadiusz on 01-04-14.
#import <UIKit/UIKit.h>
/// A UINavigationController subclass allowing the interactive pop gesture when the navigation bar is hidden or a custom back button is used.
@interface AHKNavigationController : UINavigationController
@end
| // Created by Arkadiusz on 01-04-14.
#import <UIKit/UIKit.h>
/// A UINavigationController subclass allowing the interactive pop gesture when the navigation bar is hidden or a custom back button is used.
@interface AHKNavigationController : UINavigationController
- (void)pushViewController:(UIViewController *)viewCo... | Add warning when a subclass doesn’t call super on pushViewController:animated: | Add warning when a subclass doesn’t call super on pushViewController:animated:
This method is used for keeping an internal state, so calling super is mandatory.
| C | mit | viccc/AHKNavigationController,kingiol/AHKNavigationController,MrAPPs-RSM/AHKNavigationController,fastred/AHKNavigationController |
afe1e6b8d950fe94627a200cf210a1e387c0c4d7 | generic/include/math/clc_ldexp.h | generic/include/math/clc_ldexp.h | _CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(double, int);
#endif
| _CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_DEF _CLC_OVERLOAD double __clc_ldexp(double, int);
#endif
| Fix double precision function return type | ldexp: Fix double precision function return type
Fixes ~1200 external calls from nvtpx library.
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
git-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@315170 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc |
bb97296d4b4285e6884e61ceda833af5a453cb91 | src/libfuzzymatch/util.h | src/libfuzzymatch/util.h | #include <cstdint>
#include <cstring>
#include <string>
#include <vector>
#include "../utf8/utf8.h"
/*
* Convert UTF-8 string to std::vector<uint32_t>
*/
void utf8to32(const std::string &s, std::vector<uint32_t> &vec) {
vec.assign(utf8::distance(s.cbegin(), s.cend()), 0);
utf8::utf8to32(s.cbegin(), s.cend(), vec.... | #include <cstdint>
#include <cstring>
#include <string>
#include <vector>
#include "../utf8/utf8.h"
/*
* Convert UTF-8 string to std::vector<uint32_t>
*/
void inline utf8to32(const std::string &s, std::vector<uint32_t> &vec) {
vec.assign(utf8::distance(s.cbegin(), s.cend()), 0);
utf8::utf8to32(s.cbegin(), s.cend(... | Use inline as a workaround so that the utf8 functions are not exported | Use inline as a workaround so that the utf8 functions are not exported
| C | mit | xhochy/libfuzzymatch,xhochy/libfuzzymatch |
fa9ee52556f493e4a896e2570ca1a3102d777d9a | src/policy/rbf.h | src/policy/rbf.h | // Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POLICY_RBF_H
#define BITCOIN_POLICY_RBF_H
#include <txmempool.h>
enum class RBFTransactionState {
UNKNO... | // Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_POLICY_RBF_H
#define BITCOIN_POLICY_RBF_H
#include <txmempool.h>
/** The rbf state of unconfirmed transacti... | Add doxygen comment to IsRBFOptIn | doc: Add doxygen comment to IsRBFOptIn
| C | mit | MarcoFalke/bitcoin,AkioNak/bitcoin,GroestlCoin/GroestlCoin,dscotese/bitcoin,ElementsProject/elements,litecoin-project/litecoin,anditto/bitcoin,jamesob/bitcoin,EthanHeilman/bitcoin,jambolo/bitcoin,ajtowns/bitcoin,pataquets/namecoin-core,tecnovert/particl-core,sstone/bitcoin,domob1812/namecore,mm-s/bitcoin,jlopp/statoshi... |
e2cd49be27b0e40467415fbc3318a5a4a5ad9161 | AFToolkit/AFToolkit.h | AFToolkit/AFToolkit.h | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "NSBundle+Universal.h"
#import "UITableViewCell+Universal.h"
#impo... | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFReachability.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "NSBundle+Universal.h"
#import "UITable... | Add Reachability to toolkit header. | Add Reachability to toolkit header.
| C | mit | mlatham/AFToolkit |
8ebf7bc9546695c516859093d8db0d300d8bd23c | stdlib/public/SwiftShims/RuntimeStubs.h | stdlib/public/SwiftShims/RuntimeStubs.h | //===--- RuntimeStubs.h -----------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | //===--- RuntimeStubs.h -----------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | Add export attribute to header declaration. | Add export attribute to header declaration.
| C | apache-2.0 | gribozavr/swift,djwbrown/swift,xedin/swift,calebd/swift,austinzheng/swift,lorentey/swift,gmilos/swift,shajrawi/swift,tardieu/swift,alblue/swift,roambotics/swift,rudkx/swift,IngmarStein/swift,codestergit/swift,jtbandes/swift,practicalswift/swift,manavgabhawala/swift,brentdax/swift,airspeedswift/swift,aschwaighofer/swift... |
e1559a5b92d6db3880f6226e03aed4f5cc1182e0 | src/chip8.c | src/chip8.c | #include <stdlib.h>
#include "chip8.h"
chip8_t *
chip8_new(void) {
chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));
/* The first 512 bytes are used by the interpreter. */
self->program_counter = 0x200;
self->index_register = 0;
self->stack_pointer = 0;
self->opcode = 0;
return self;
}
... | #include <stdlib.h>
#include "chip8.h"
chip8_t * chip8_new(void) {
chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));
/* The first 512 bytes are used by the interpreter. */
self->program_counter = 0x200;
self->index_register = 0;
self->stack_pointer = 0;
self->opcode = 0;
return self;
}
... | Define the functions on one line | Define the functions on one line
| C | mit | gsamokovarov/chip8.c,gsamokovarov/chip8.c |
8f6c32d4d8124bd58caf7886dda3032641416ded | CCMessageWindow/Utils.h | CCMessageWindow/Utils.h | #ifndef StringUtils_h
#define StringUtils_h
#include <stdio.h>
#include <string.h>
namespace CCMessageWindow {
class Utils {
public:
static std::string substringUTF8(const char* str, int from, int length);
static std::vector<std::string> split(const std::string& input, char delimiter);
... | #ifndef StringUtils_h
#define StringUtils_h
#include "cocos2d.h"
namespace CCMessageWindow {
class Utils {
public:
static std::string substringUTF8(const char* str, int from, int length);
static std::vector<std::string> split(const std::string& input, char delimiter);
static std::strin... | Fix build error on Android | Fix build error on Android
| C | mit | giginet/CCMessageWindow,giginet/CCMessageWindow |
1a848c2eb37fc488b610ad36f562c705594b7e00 | UICountingLabel.h | UICountingLabel.h | #import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef enum {
UILabelCountingMethodEaseInOut,
UILabelCountingMethodEaseIn,
UILabelCountingMethodEaseOut,
UILabelCountingMethodLinear
} UILabelCountingMethod;
typedef NSString* (^UICountingLabelFormatBlock)(float value);
typedef NSAttributedStr... | #import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, UILabelCountingMethod) {
UILabelCountingMethodEaseInOut,
UILabelCountingMethodEaseIn,
UILabelCountingMethodEaseOut,
UILabelCountingMethodLinear
};
typedef NSString* (^UICountingLabelFormatBlock)(float value);
typedef ... | Use NS_ENUM instead of enum makes more clear | Use NS_ENUM instead of enum makes more clear
| C | mit | AlexanderMazaletskiy/UICountingLabel,HarrisLee/UICountingLabel,jesseclay/UICountingLabel,flovilmart/UICountingLabel,kalsariyac/UICountingLabel,ElaWorkshop/UICountingLabel,Bogon/UICountingLabel,dataxpress/UICountingLabel |
4dc9c4567301f2481b12965bdcf02a7281963b61 | tests/utils/core-utils.h | tests/utils/core-utils.h | /* * This file is part of meego-im-framework *
*
* Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This library ... | /* * This file is part of meego-im-framework *
*
* Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This library ... | Add surface server side implementation for tests | Add surface server side implementation for tests
Add a TestSurfaceGroup and TestSurfaceGroupFactory class for tests.
RevBy: TrustMe.
| C | lgpl-2.1 | binlaten/framework,RHawkeyed/framework,jpetersen/framework,Elleo/framework,jpetersen/framework,RHawkeyed/framework,Elleo/framework |
15ddd7987b08b24d572ad3c767fd477dfc5a3bd7 | inc/m_types.h | inc/m_types.h | /*********************************** LICENSE **********************************\
* Copyright 2017 Morphux *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); ... | /*********************************** LICENSE **********************************\
* Copyright 2017 Morphux *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); ... | Fix comment style in mtypes | Fix(Comment): Fix comment style in mtypes
| C | apache-2.0 | Morphux/lib,Morphux/lib |
bcd0f03a33b360f54b0223e64bd5dae90d3a0e2c | include/lambdacommon/document/document.h | include/lambdacommon/document/document.h | /*
* Copyright © 2017 AperLambda <aper.entertainment@gmail.com>
*
* This file is part of λcommon.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
#ifndef LAMBDACOMMON_DOCUMENT_H
#define LAMBDACOMMON_DOCUMENT_H
#include "../lambdacommon.h"
#include <map>
namespace lambdacom... | /*
* Copyright © 2017 AperLambda <aper.entertainment@gmail.com>
*
* This file is part of λcommon.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
#ifndef LAMBDACOMMON_DOCUMENT_H
#define LAMBDACOMMON_DOCUMENT_H
#include "../lambdacommon.h"
#include <map>
namespace lambdacom... | Change the Content class to the Element class | :floppy_disk: Change the Content class to the Element class
| C | mit | AperEntertainment/AperCommon,AperEntertainment/AperCommon |
b00e6535be25fca1e9775951bd09542fdb88ce7d | libyaul/common/internal_exception_show.c | libyaul/common/internal_exception_show.c | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <stdlib.h>
#include <vdp1.h>
#include <vdp2.h>
#include <vdp2/tvmd.h>
#include <vdp2/vram.h>
#include <cons.h>
void __noreturn
internal_exception_show(const char *buffer)
{
/* Reset... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <stdlib.h>
#include <vdp1.h>
#include <vdp2.h>
#include <vdp2/tvmd.h>
#include <vdp2/vram.h>
#include <cons.h>
void __noreturn
internal_exception_show(const char *buffer)
{
/* Reset... | Hide VDP1 even if FB hasn't been erased and changed | Hide VDP1 even if FB hasn't been erased and changed
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
0773e72754c7ec546ccf0a93bf6b4b321fc7899e | windows/dirent.h | windows/dirent.h | #ifndef _TOKU_DIRENT_H
#define _TOKU_DIRENT_H
#if defined(__cplusplus)
extern "C" {
#endif
//The DIR functions do not exist in windows, but the Linux API ends up
//just using a wrapper. We might convert these into an toku_os_* type api.
enum {
DT_UNKNOWN = 0,
DT_DIR = 4,
DT_REG = 8
};
struct di... | #ifndef _TOKU_DIRENT_H
#define _TOKU_DIRENT_H
#include "toku_os_types.h"
#if defined(__cplusplus)
extern "C" {
#endif
//The DIR functions do not exist in windows, but the Linux API ends up
//just using a wrapper. We might convert these into an toku_os_* type api.
enum {
DT_UNKNOWN = 0,
DT_DIR = 4,
D... | Fix broken windows build due to r19902 (merge of 2499d branch) | [t:2499] Fix broken windows build due to r19902 (merge of 2499d branch)
git-svn-id: b5c078ec0b4d3a50497e9dd3081db18a5b4f16e5@19935 c7de825b-a66e-492c-adef-691d508d4ae1
| C | lgpl-2.1 | natsys/mariadb_10.2,natsys/mariadb_10.2,ollie314/server,natsys/mariadb_10.2,kuszmaul/PerconaFT,flynn1973/mariadb-aix,davidl-zend/zenddbi,kuszmaul/PerconaFT-tmp,davidl-zend/zenddbi,ottok/PerconaFT,ollie314/server,slanterns/server,BohuTANG/ft-index,percona/PerconaFT,BohuTANG/ft-index,davidl-zend/zenddbi,ollie314/server,k... |
05fd893ea40718a0f0f81246425dfcb4b711642c | drivers/auth/mbedtls/mbedtls_common.c | drivers/auth/mbedtls/mbedtls_common.c | /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <debug.h>
/* mbed TLS headers */
#include <mbedtls/memory_buffer_alloc.h>
#include <mbedtls/platform.h>
/*
* mbed TLS heap
*/
#if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)
#d... | /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <debug.h>
/* mbed TLS headers */
#include <mbedtls/memory_buffer_alloc.h>
#include <mbedtls/platform.h>
/*
* mbed TLS heap
*/
#if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)
#d... | Define optimized mbed TLS heap size | mbedtls: Define optimized mbed TLS heap size
mbed TLS provides the debug API `mbedtls_memory_buffer_alloc_status()`
to analyse the RAM usage of the library.
When RSA is selected as algorithm, the maximum heap usage in FVP and
Juno has been determined empirically to be approximately 5.5 KiB.
However, The default heap ... | C | bsd-3-clause | achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware,lsigithub/arm-trusted-firmware_public,lsigithub/arm-trusted-firmware_public |
758d5af6abf26753054ae0662395b27ff4ab2221 | src/lz4mt_compat.h | src/lz4mt_compat.h | #ifndef LZ4MT_COMPAT_H
#define LZ4MT_COMPAT_H
namespace Lz4Mt {
unsigned getHardwareConcurrency();
struct launch {
#if defined(_MSC_VER)
typedef std::launch::launch Type;
#else
typedef std::launch Type;
#endif
static const Type deferred;
static const Type async;
};
}
#endif
| #ifndef LZ4MT_COMPAT_H
#define LZ4MT_COMPAT_H
namespace Lz4Mt {
unsigned getHardwareConcurrency();
struct launch {
#if defined(_MSC_VER) && (_MSC_VER <= 1700)
typedef std::launch::launch Type;
#else
typedef std::launch Type;
#endif
static const Type deferred;
static const Type async;
};
}
#endif
| Fix compile error with VC++2013 preview | Fix compile error with VC++2013 preview
| C | bsd-2-clause | rgde/lz4mt,tempbottle/lz4mt,t-mat/lz4mt,t-mat/lz4mt,tempbottle/lz4mt,rgde/lz4mt,t-mat/lz4mt |
11fb3304ba88fa84e2349c08f73b4ffaf0a8fd89 | OctoKit/OctoKit.h | OctoKit/OctoKit.h | //
// OctoKit.h
// OctoKit
//
// Created by Piet Brauer on 25/08/15.
// Copyright (c) 2015 nerdish by nature. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for OctoKit.
FOUNDATION_EXPORT double OctoKitVersionNumber;
//! Project version string for OctoKit.
FOUNDATION_EXPORT const unsi... | //
// OctoKit.h
// OctoKit
//
// Created by Piet Brauer on 25/08/15.
// Copyright (c) 2015 nerdish by nature. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for OctoKit.
FOUNDATION_EXPORT double OctoKitVersionNumber;
//! Project version string for OctoKit.
FOUNDATION_EXPORT ... | Use Foundation instead of UIKit | Use Foundation instead of UIKit | C | mit | nerdishbynature/octokit.swift,nerdishbynature/octokit.swift,nerdishbynature/octokit.swift,phatblat/octokit.swift,phatblat/octokit.swift |
68584771ffe6608ed50dcb8f7e414d9ba6bcafa4 | src/api-mock.h | src/api-mock.h | #ifndef APIMOCK_H
#define APIMOCK_H
#include "core/server.h"
#endif | #ifndef APIMOCK_H
#define APIMOCK_H
#include "core/server.h"
#include "core/exceptions.h"
#endif | Include exceptions in main header | Include exceptions in main header
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
4bd45e4d59931a8aa4873f40ddb77b5142fb175f | src/bin/e_signals.c | src/bin/e_signals.c | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
#include <execinfo.h>
/* a tricky little devil, requires e and it's libs to be built
* with the -rdynamic flag to GCC for any sort of decent output.
*/
void e_sigseg_act(int x, siginfo_t *info, void *data){
void *array[255];
size_t size... | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
* NOTE TO FreeBSD users. Install libexecinfo from
* ports/devel/libexecinfo and add -lexecinfo to LDFLAGS
* to add backtrace support.
*/
#include "e.h"
#include <execinfo.h>
/* a tricky little devil, requires e and it's libs to be built
* with the -rdynamic... | Add note to help FreeBSD users. | Add note to help FreeBSD users.
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
0a2825db5a26372454d53fc20a877e0e0bc82123 | libipc/ipcreg_internal.h | libipc/ipcreg_internal.h | //===-- ipcreg_internal.h -------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- ipcreg_internal.h -------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Extend assert in getFDDesc to print invalid fd. | Extend assert in getFDDesc to print invalid fd.
Helps debug issues like one fixed by previous commit.
| C | isc | dtzWill/ipcopter,dtzWill/ipcopter,dtzWill/ipcopter,dtzWill/ipcopter,dtzWill/ipcopter,dtzWill/ipcopter |
6521caab4016e59941bb8c97ace364f83b34ba9c | 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
# endif
#endif
| #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
# endif
#endif
| Add header function for creating new monitors. | Add header function for creating new monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84123
| C | bsd-2-clause | rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e |
72caa3963e9d0ef6b47774f9b9a7a0de83634ec4 | src/trace_processor/types/version_number.h | src/trace_processor/types/version_number.h | /*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... | /*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... | Fix VersionNumber comparison operator constness | Fix VersionNumber comparison operator constness
Currently Perfetto builds are broken in Chromium.
Change-Id: I09b2e29682667e6dfecc36ea072327dd51f5e071
| C | apache-2.0 | google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto |
0de12dcf3dde407ceaff96b28c2b292a3aa463e2 | Classes/APIRouter.h | Classes/APIRouter.h | //
// APIRouter.h
// APIClient
//
// Created by Klaas Pieter Annema on 14-09-13.
// Copyright (c) 2013 Klaas Pieter Annema. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "APIInflector.h"
@protocol APIRouter <NSObject>
@property (nonatomic, readonly, strong) id<APIInflector> inflector;
- (NSS... | //
// APIRouter.h
// APIClient
//
// Created by Klaas Pieter Annema on 14-09-13.
// Copyright (c) 2013 Klaas Pieter Annema. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "APIInflector.h"
@protocol APIRouter <NSObject>
- (NSString *)pathForAction:(NSString *)action onResource:(Class)resource;
... | Remove the inflector from the router protocol | Remove the inflector from the router protocol
| C | mit | klaaspieter/APIClient |
8c75289033623c366a6949adfabe4cdcf550d4ac | tests/Tests.h | tests/Tests.h | #pragma once
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#define STDCALL __stdcall
#define CDECL __cdecl
#else
#define DLL_API __attribute__ ((visibility ("default")))
#define STDCALL __attribute__((stdcall))
#define CDECL __attribute__((cdecl))
#endif
#define CS_OUT | #pragma once
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#ifndef STDCALL
#define STDCALL __stdcall
#endif
#ifndef CDECL
#define CDECL __cdecl
#endif
#else
#define DLL_API __attribute__ ((visibility ("default")))
#ifndef STDCALL
#define STDCALL __attribute__((stdcall))
#endif
#ifndef CDECL
#define C... | Check for defines before defining to get rid of some warnings. | Check for defines before defining to get rid of some warnings.
| C | mit | xistoso/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,xistoso/CppSharp,imazen/CppSharp,mono/CppSharp,imazen/CppSharp,SonyaSa/CppSharp,Samana/CppSharp,xistoso/CppSharp,genuinelucifer/CppSharp,mohtamohit/CppSharp,mono/CppSharp,ktopouzi/CppSharp,inordertotest/CppSharp,Samana/CppSharp,imazen/CppSh... |
846e6f3b71fcf9fca2df36c101e6de2d080dcb83 | PHPHub/Constants/SecretConstant.example.h | PHPHub/Constants/SecretConstant.example.h | //
// SecretConstant.example.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define Client_id @"kHOugsx4dmcXwvVbmLkd"
#define Client_secret @"PuuFCrF94MloSbSkxpwS"
#define UMENG_APPKEY @"Set up UMEng App Key"
#define UMENG_QQ_ID @"Set up qq id... | //
// SecretConstant.example.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#if DEBUG
#define Client_id @"kHOugsx4dmcXwvVbmLkd"
#define Client_secret @"PuuFCrF94MloSbSkxpwS"
#else
#define Client_id @"Set up a client id for production env"
#defi... | Set up a client id and a client secret for production environment | Set up a client id and a client secret for production environment
| C | mit | Aufree/phphub-ios |
b70923c9dc77371c24b3d2183b0573969602eca0 | Source/Pester_Prefix.h | Source/Pester_Prefix.h | //
// Prefix header for all source files of the 'Pester' target in the 'Pester' project
//
#import "NJROperatingSystemVersion.h" | //
// Prefix header for all source files of the 'Pester' target in the 'Pester' project
//
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#import "NJROperatingSystemVersion.h"
#endif
| Fix Pester prefix header to import Cocoa again. | Fix Pester prefix header to import Cocoa again. | C | bsd-2-clause | ssp/Pester,ssp/Pester,ssp/Pester,ssp/Pester,nriley/Pester,ssp/Pester,nriley/Pester |
37a155226210640f16018e1033d4769b2fb36909 | gitst.c | gitst.c |
#include <stdio.h>
#include "lib/proc.h"
int
main(int argc, char **argv)
{
char* gitbuff;
int out = run_proc(&gitbuff, "git", "branch", "--list", 0);
//int out = run_proc(&gitbuff, "ls", "-l", "-h", 0);
if (out != 0)
{
fprintf(stderr, "Error running subprocess:%d\n", out);
exit(1);
}
//printf("... |
#include <stdio.h>
#include <string.h>
#include "lib/proc.h"
int
main(int argc, char **argv)
{
char* gitbuff;
int out = run_proc(&gitbuff, "git", "branch", "--list", 0);
if (out != 0)
{
exit(1);
}
char *token;
char *sep=" \r\n";
int next = 0;
while((token = strsep(&gitbuff, sep)) != NULL)
{
... | Use strsep to split output | Use strsep to split output
| C | bsd-3-clause | wnh/prompt_utils |
0dc3d4785076cad20dfc015c32a6d656ec9b1b68 | PodioKit/Common/Core/PKTHTTPClient.h | PodioKit/Common/Core/PKTHTTPClient.h | //
// PKTClient.h
// PodioKit
//
// Created by Sebastian Rehnby on 16/01/14.
// Copyright (c) 2014 Citrix Systems, Inc. All rights reserved.
//
#import "PKTRequest.h"
#import "PKTResponse.h"
#import "PKTRequestSerializer.h"
#import "PKTResponseSerializer.h"
typedef void(^PKTRequestCompletionBlock)(PKTResponse *re... | //
// PKTClient.h
// PodioKit
//
// Created by Sebastian Rehnby on 16/01/14.
// Copyright (c) 2014 Citrix Systems, Inc. All rights reserved.
//
#import "PKTRequest.h"
#import "PKTResponse.h"
#import "PKTRequestSerializer.h"
#import "PKTResponseSerializer.h"
typedef void(^PKTRequestCompletionBlock)(PKTResponse *re... | Add ability to set base URL | Add ability to set base URL
| C | mit | podio/podio-objc,shelsonjava/podio-objc,shelsonjava/podio-objc,podio/podio-objc,shelsonjava/podio-objc,podio/podio-objc |
ac11de6c4775bb08fbdfbf35536dc39a425508f0 | iserv/cbits/iservmain.c | iserv/cbits/iservmain.c | #include "../rts/PosixSource.h"
#include "Rts.h"
#include "HsFFI.h"
int main (int argc, char *argv[])
{
RtsConfig conf = defaultRtsConfig;
// We never know what symbols GHC will look up in the future, so
// we must retain CAFs for running interpreted code.
conf.keep_cafs = 1;
extern StgClosure Z... | #include "../rts/PosixSource.h"
#include "Rts.h"
#include "HsFFI.h"
int main (int argc, char *argv[])
{
RtsConfig conf = defaultRtsConfig;
// We never know what symbols GHC will look up in the future, so
// we must retain CAFs for running interpreted code.
conf.keep_cafs = 1;
conf.rts_opts_enabl... | Allow all RTS options to iserv | Allow all RTS options to iserv
(cherry picked from commit db121b2ec4596b99fed9781ec2d055f29e0d5b20)
| C | bsd-3-clause | GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc |
f6de960fb76ab36550a119b1465e8a24e59af219 | plat/rpi3/rpi3_stack_protector.c | plat/rpi3/rpi3_stack_protector.c | /*
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <lib/utils.h>
#include "rpi3_private.h"
/* Get 128 bits of entropy and fuse the values together to form the canary. */
#define TRNG_NBYTES 16U
u_register_t ... | /*
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <lib/utils.h>
#include <lib/utils_def.h>
#include "rpi3_private.h"
/* Get 128 bits of entropy and fuse the values together to form the canary. */
#define TRN... | Fix compilation error when stack protector is enabled | rpi3: Fix compilation error when stack protector is enabled
Include necessary header file to use ARRAY_SIZE() macro
Change-Id: I5b7caccd02c14c598b7944cf4f347606c1e7a8e7
Signed-off-by: Madhukar Pappireddy <c854e377c0ff08e0fa4357b6357bedff114c98a6@arm.com>
| C | bsd-3-clause | achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware |
6dab1e9536c81bb9848c806faf4d0eb80cc48ca4 | src/file-events/headers/jni_support.h | src/file-events/headers/jni_support.h | #pragma once
#include <jni.h>
/**
* Support for using JNI in a multi-threaded environment.
*/
class JniSupport {
public:
JniSupport(JavaVM* jvm);
JniSupport(JNIEnv* env);
protected:
jclass findClass(const char* className);
JNIEnv* getThreadEnv();
protected:
JavaVM* jvm;
};
/**
* Attach a nat... | #pragma once
#include <jni.h>
#include <stdexcept>
/**
* Support for using JNI in a multi-threaded environment.
*/
class JniSupport {
public:
JniSupport(JavaVM* jvm);
JniSupport(JNIEnv* env);
protected:
jclass findClass(const char* className);
JNIEnv* getThreadEnv();
protected:
JavaVM* jvm;
};... | Add include necessary on Linux | Add include necessary on Linux
| C | apache-2.0 | adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform |
cc74b1067d791ce7f765eba8b67e2d1000c2cfcb | src/condor_c++_util/directory.h | src/condor_c++_util/directory.h | #ifndef DIRECTORY_H
#define DIRECTORY_H
#if defined (ULTRIX42) || defined(ULTRIX43) /* _POSIX_SOURCE should have taken care of this, */
#define __POSIX /* but for some reason the ULTRIX version of dirent.h */
#endif /* is not POSIX conforming without it... */
#include <dirent.h>
class Directory
{
public:
Dire... | #ifndef DIRECTORY_H
#define DIRECTORY_H
#if defined (ULTRIX42) || defined(ULTRIX43)
/* _POSIX_SOURCE should have taken care of this,
but for some reason the ULTRIX version of dirent.h
is not POSIX conforming without it...
*/
# define __POSIX
#endif
#include <dirent.h>
#if defined(SUNOS41)
/* Note that functio... | Add prototype for seekdir() for Suns. | Add prototype for seekdir() for Suns.
| C | apache-2.0 | htcondor/htcondor,clalancette/condor-dcloud,djw8605/htcondor,djw8605/htcondor,djw8605/condor,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/htcondor,djw8605/htcondor,htcondor/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,htcondor/htcondor,zhangzhehust/htcondor,htcondor/htcondor,htcondor/htcondor,djw8605/ht... |
caceb4cf2704b445379874a36f0274ee54c141eb | src/libreset/util/macros.h | src/libreset/util/macros.h | #ifndef __MACROS_H__
#define __MACROS_H__
/**
* @file macros.h
*
* This file contains simple helper macros
*/
/**
* @addtogroup internal_util_helper_macros "(internal) helper macros"
*
* This group contains helper macros for internal use only.
*
* @{
*/
/**
* Computes the maximum value of the two passed v... | #ifndef __MACROS_H__
#define __MACROS_H__
/**
* @file macros.h
*
* This file contains simple helper macros
*/
/**
* @addtogroup internal_util_helper_macros "(internal) helper macros"
*
* This group contains helper macros for internal use only.
*
* @{
*/
/**
* Computes the maximum value of the two passed v... | Modify MIN(x,y) to not contain a scope | Modify MIN(x,y) to not contain a scope
| C | lgpl-2.1 | waysome/libreset,waysome/libreset |
268fdc1e10931c3a9c0e4c8c6699139516429adc | knode/kngrouppropdlg.h | knode/kngrouppropdlg.h | /*
kngrouppropdlg.h
KNode, the KDE newsreader
Copyright (c) 1999-2001 the KNode authors.
See file AUTHORS for details
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... | /*
kngrouppropdlg.h
KNode, the KDE newsreader
Copyright (c) 1999-2001 the KNode authors.
See file AUTHORS for details
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... | Add forward declaration for QComboBox | Add forward declaration for QComboBox
svn path=/trunk/kdenetwork/knode/; revision=144112
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
649ae48e2b2c5b9e03379294fa93aa100c850e71 | Paystack/Classes/PublicHeaders/Paystack.h | Paystack/Classes/PublicHeaders/Paystack.h | //
// Paystack.h
// Paystack
//
// Created by Ibrahim Lawal on 02/02/16.
// Copyright (c) 2016 Paystack. All rights reserved.
//
// The code in this workspace was adapted from https://github.com/stripe/stripe-ios.
// Stripe was replaced with Paystack - and STP with PSTCK - to avoid collisions within
// apps that ... | //
// Paystack.h
// Paystack
//
// Created by Ibrahim Lawal on 02/02/16.
// Copyright (c) 2016 Paystack. All rights reserved.
//
// The code in this workspace was adapted from https://github.com/stripe/stripe-ios.
// Stripe was replaced with Paystack - and STP with PSTCK - to avoid collisions within
// apps that ... | Update umbrella header file declaration | Update umbrella header file declaration
| C | mit | PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios |
06cfb4f02ad9f2561302f21f4f38ec5f5ed4372f | SmartDeviceLink/SDLMacros.h | SmartDeviceLink/SDLMacros.h | //
// SDLMacros.h
// SmartDeviceLink-iOS
//
// Created by Muller, Alexander (A.) on 10/17/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#ifndef SDLMacros_h
#define SDLMacros_h
// Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability.
#ifndef SDL_SWIFT_ENUM
#if __has_at... | //
// SDLMacros.h
// SmartDeviceLink-iOS
//
// Created by Muller, Alexander (A.) on 10/17/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#ifndef SDLMacros_h
#define SDLMacros_h
// Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability.
#ifndef SDL_SWIFT_ENUM
#if __has_at... | Revert "Changed macro to look specifically for NS_STRING_ENUM" | Revert "Changed macro to look specifically for NS_STRING_ENUM"
This reverts commit de01a9f7b3ed63f683604d3595568bacf5f54a5e.
| C | bsd-3-clause | APCVSRepo/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,kshala-ford/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,FordDev/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,smartdevic... |
4346c30bae8b1a64acba564f6775cb0bacd026e4 | generic/include/clc/integer/definitions.h | generic/include/clc/integer/definitions.h | #define CHAR_BIT 8
#define INT_MAX 2147483647
#define INT_MIN -2147483648
#define LONG_MAX 0x7fffffffffffffffL
#define LONG_MIN -0x8000000000000000L
#define SCHAR_MAX 127
#define SCHAR_MIN -128
#define CHAR_MAX 127
#define CHAR_MIN -128
#define SHRT_MAX 32767
#define SHRT_MIN -32768
#define UCHAR_MAX 255
#define USHRT... | #define CHAR_BIT 8
#define INT_MAX 2147483647
#define INT_MIN ((int)(-2147483647 - 1))
#define LONG_MAX 0x7fffffffffffffffL
#define LONG_MIN (-0x7fffffffffffffffL - 1)
#define CHAR_MAX SCHAR_MAX
#define CHAR_MIN SCHAR_MIN
#define SCHAR_MAX 127
#define SCHAR_MIN ((char)(-127 - 1))
#define SHRT_MAX 32767
#define SHRT_MI... | Update integer limits to comply with spec | integer: Update integer limits to comply with spec
The values for the char/short/integer/long minimums were declared with
their actual values, not the definitions from the CL spec (v1.1). As
a result, (-2147483648) was actually being treated as a long by the
compiler, not an int, which caused issues when trying to ad... | C | apache-2.0 | llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc |
75463d8bb33ca74e64842c871740002fbc32c902 | src/ios/BEMServerSyncCommunicationHelper.h | src/ios/BEMServerSyncCommunicationHelper.h | //
// DataUtils.h
// CFC_Tracker
//
// Created by Kalyanaraman Shankari on 3/9/15.
// Copyright (c) 2015 Kalyanaraman Shankari. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
@interface BEMServerSyncCommunicationHelper: NSObject
// Top level method
+ (void) backgro... | //
// DataUtils.h
// CFC_Tracker
//
// Created by Kalyanaraman Shankari on 3/9/15.
// Copyright (c) 2015 Kalyanaraman Shankari. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
typedef void (^SilentPushCompletionHandler)(UIBackgroundFetchResult);
@interface BEMServe... | Move the SilentPushCompletionHandler typedef in here | Move the SilentPushCompletionHandler typedef in here
Since it is likely to be used as part of background sync
| C | bsd-3-clause | e-mission/cordova-server-sync,e-mission/cordova-server-sync,e-mission/cordova-server-sync |
43e02f563314f179b1221921034c145887a968fa | include/lyra2.h | include/lyra2.h | #pragma once
#include <stdlib.h>
#include <stdint.h>
#define PHS_NCOLS 64
int lyra2(char *key, uint32_t keylen, const char *pwd, uint32_t pwdlen, const char *salt, uint32_t saltlen, uint32_t R, uint32_t C, uint32_t T);
int PHS(void *out, size_t outlen, const void *in, size_t inlen, const void *salt, size_t saltlen, ... | #pragma once
#include <stdlib.h>
#include <stdint.h>
#define PHS_NCOLS 256
int lyra2(char *key, uint32_t keylen, const char *pwd, uint32_t pwdlen, const char *salt, uint32_t saltlen, uint32_t R, uint32_t C, uint32_t T);
int PHS(void *out, size_t outlen, const void *in, size_t inlen, const void *salt, size_t saltlen,... | Use 256 cols when in PHS mode. | Use 256 cols when in PHS mode.
| C | mit | guilherme-pg/lyra2,guilherme-pg/lyra2,eggpi/lyra2,eggpi/lyra2,eggpi/lyra2,guilherme-pg/lyra2 |
c2a85cdcb14b4b04619593261a49c310a8f59185 | libsel4/arch_include/x86/sel4/arch/mapping.h | libsel4/arch_include/x86/sel4/arch/mapping.h | /*
* 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)
*/
#ifndef __LIBSEL4_ARCH_MAPPING
#define __LIBSEL4_ARCH_MAPPING
#define SEL4_MAPPING_... | /*
* 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)
*/
#ifndef __LIBSEL4_ARCH_MAPPING
#define __LIBSEL4_ARCH_MAPPING
#include <autoconf.h>... | Define different lookup levels for PAE | libsel4: Define different lookup levels for PAE
| C | bsd-2-clause | cmr/seL4,zhicheng/seL4,cmr/seL4,cmr/seL4,zhicheng/seL4,zhicheng/seL4 |
47107014052cf2345f4d22066e236582f4bbc0a9 | tests/ssp/main.c | tests/ssp/main.c | /*
* Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief ssp test applicat... | /*
* Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief ssp test applicat... | Fix on macOS while compiling w/ clang | tests/ssp: Fix on macOS while compiling w/ clang
On macOS using Apple LLVM version 9.0.0 this test would
not compile due to clang detecting the buffer overflow.
Since this test is all about having a buffer overflow, I
tricked clang into not detecting this anymore.
This loosely relates to #6473.
| C | lgpl-2.1 | mfrey/RIOT,smlng/RIOT,miri64/RIOT,authmillenon/RIOT,miri64/RIOT,rfuentess/RIOT,avmelnikoff/RIOT,jasonatran/RIOT,basilfx/RIOT,LudwigOrtmann/RIOT,roberthartung/RIOT,basilfx/RIOT,biboc/RIOT,rfuentess/RIOT,cladmi/RIOT,jasonatran/RIOT,BytesGalore/RIOT,basilfx/RIOT,toonst/RIOT,biboc/RIOT,smlng/RIOT,toonst/RIOT,immesys/RiSyn,... |
b981ad885a6f4e0a79506451157c1459141320f5 | exception_handling_3.c | exception_handling_3.c | /*
* Author: NagaChaitanya Vellanki
*
* TRY/THROW/CATCH/FINALLY - example
* Reference: http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#define FOO_EXCEPTION (1)
#define BAR_EXCEPTION (2)
#define GOO_EXCEPTION (3)
#define TRY do{ jm... | /*
* Author: NagaChaitanya Vellanki
*
* TRY/THROW/CATCH/FINALLY - example
* Reference: http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html
*
* use gcc -E -P exception_handling_3.c to see the result of the preprocessing
* step
*/
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#define FO... | Add command to see output of preprocessor | Add command to see output of preprocessor
| C | isc | chaitanyav/cprograms,chaitanyav/cprograms |
2f5741458f22ed495dd05f989be98b62f18108d9 | timer.h | timer.h | #ifndef TIMER_H_
#define TIMER_H_ 1
/*
* By default, the timer calls the function a few extra times that aren't
* measured to get it into cache and ensure more consistent running times.
* Specifying this option in flags will stop this.
*/
#define TIMER_NO_EXTRA 1
struct timer {
unsigned long long ns;
unsi... | #ifndef TIMER_H_
#define TIMER_H_ 1
/*
* By default, the timer calls the function a few extra times that aren't
* measured to get it into cache and ensure more consistent running times.
* Specifying this option in flags will stop this.
*/
#define TIMER_NO_EXTRA 1
/*
* By default, each of these functions assumes ... | Add more flags and documentation | Add more flags and documentation
| C | mit | joeljk13/Timer,joeljk13/Timer |
64286c63308db83935b5112b4adc2524f7c7f28f | chrome/browser/extensions/extension_management_api_constants.h | chrome/browser/extensions/extension_management_api_constants.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#pragm... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#pragm... | Remove leftover constant declarations accidentally left behind by a previous patch. | Remove leftover constant declarations accidentally left behind by a previous patch.
BUG=119692
TEST=compile succeeds
Review URL: https://chromiumcodereview.appspot.com/9903017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@129799 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | fujunwei/chromium-crosswalk,littlstar/chromium.src,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,robclark/chromium,robclark/chromium,PeterWangIntel/chro... |
3a8985756e68560b5aa84adab988b681e1695f84 | generate/templates/manual/include/configurable_class_wrapper.h | generate/templates/manual/include/configurable_class_wrapper.h | #ifndef CALLER_CONFIGURABLE_CLASS_WRAPPER_H
#define CALLER_CONFIGURABLE_CLASS_WRAPPER_H
#include <memory>
#include <nan.h>
#include <string>
#include "cleanup_handle.h"
namespace nodegit {
class Context;
template<typename Traits>
class ConfigurableClassWrapper : public CleanupHandle {
public:
typedef ty... | #ifndef CALLER_CONFIGURABLE_CLASS_WRAPPER_H
#define CALLER_CONFIGURABLE_CLASS_WRAPPER_H
#include <memory>
#include <nan.h>
#include <string>
#include "cleanup_handle.h"
namespace nodegit {
class Context;
template<typename Traits>
class ConfigurableClassWrapper : public CleanupHandle {
public:
typedef ty... | Delete copy and move constructors for ConfigurableClassWrapper | Delete copy and move constructors for ConfigurableClassWrapper
| C | mit | jmurzy/nodegit,jmurzy/nodegit,nodegit/nodegit,nodegit/nodegit,jmurzy/nodegit,jmurzy/nodegit,nodegit/nodegit,nodegit/nodegit,nodegit/nodegit,jmurzy/nodegit |
8e37740dc6b20c6ec044e5db3b23894614c7784f | test/Driver/offloading-interoperability.c | test/Driver/offloading-interoperability.c | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \
// RUN: | FileCheck %s --check-prefix NO... | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \
// RUN: | FileCheck %s --check-prefix NO... | Fix link command pattern in offloading interoperability test. | [OpenMP] Fix link command pattern in offloading interoperability test.
It was causing a few bots to fail.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@276983 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
14320dcce2895b07e85d11bdbb1d47aaeaad9142 | server.h | server.h | #ifndef _SERVER_H
#define _SERVER_H
#include <time.h>
#include <sys/epoll.h>
#include "list.h"
#include "threadpool.h"
int open_listenfd(int port);
void* check_connections(void* data);
struct http_socket {
int fd;
/*struct pollfd* poll_fd;*/
struct epoll_event event;
char* read_buffer;
int read_buf... | #ifndef _SERVER_H
#define _SERVER_H
#include <time.h>
#include <sys/epoll.h>
#include "list.h"
#include "threadpool.h"
struct http_socket;
int open_listenfd(int port);
void* check_connections(void* data);
int watch_read(struct http_socket* http);
int watch_write(struct http_socket* http);
int destroy_socket(struct htt... | Define functions for polling of sockets. | Define functions for polling of sockets.
| C | apache-2.0 | tbporter/http-server,tbporter/http-server,tbporter/http-server |
f9457b88e1be84a0a03f8185d4b86e9f07562506 | pblib/pblib/PBMacros.h | pblib/pblib/PBMacros.h | //
// PBMacros.h
// pblib
//
// Created by haxpor on 3/5/15.
// Copyright (c) 2015 Maethee Chongchitnant. All rights reserved.
//
#ifndef pblib_PBMacros_h
#define pblib_PBMacros_h
#define PB_IS_NSNull(obj) ((obj == (id)[NSNull null]) ? YES : NO)
#define PB_IS_NIL_OR_NSNull(obj) ((obj == nil) || (obj == (id)... | //
// PBMacros.h
// pblib
//
// Created by haxpor on 3/5/15.
// Copyright (c) 2015 Maethee Chongchitnant. All rights reserved.
//
#ifndef pblib_PBMacros_h
#define pblib_PBMacros_h
/**
Check against NSNull.
If input obj is NSNull then return YES, otherwise return NO.
*/
#define PB_IS_NSNull(obj) ((obj == (id)... | Add comment for added macros. | Add comment for added macros.
| C | mit | haxpor/playbasis-ios,haxpor/playbasis-ios,playbasis/mobile-sdk-ios |
49d804b0623790650086764dfdda15cc36b068e4 | pkg/fizhi/fizhi_land_SIZE.h | pkg/fizhi/fizhi_land_SIZE.h | C $Header$
C $Name$
c Land Grid Horizontal Dimension (Number of Tiles)
c ------------------------------------------------
integer nchp, maxtyp
parameter (maxtyp = 10)
c parameter (nchp = sNx*sNy*maxtyp)
parameter (nchp = 2048)
| C $Header$
C $Name$
c Land Grid Horizontal Dimension (Number of Tiles)
c ------------------------------------------------
integer nchp, maxtyp
parameter (maxtyp = 10)
parameter (nchp = sNx*sNy*maxtyp)
| Make sure nchp is big enough for real vegetation tiles | Make sure nchp is big enough for real vegetation tiles
| C | mit | altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h |
962d09e8e4566fe6780f106e98d8b131542defb5 | ui/aura/aura_switches.h | ui/aura/aura_switches.h | // Copyright (c) 2011 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 UI_AURA_AURA_SWITCHES_H_
#define UI_AURA_AURA_SWITCHES_H_
#pragma once
namespace switches {
extern const char kAuraHostWindowSize[];
extern ... | // Copyright (c) 2011 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 UI_AURA_AURA_SWITCHES_H_
#define UI_AURA_AURA_SWITCHES_H_
#pragma once
#include "ui/aura/aura_export.h"
namespace switches {
AURA_EXPORT ex... | Fix shared library build for aura. | Fix shared library build for aura.
TBR=ben@chromium.org,derat@chromium.org
R=ben@chromium.org,derat@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8438039
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@108299 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,yitian13... |
c5f7bcbae9e82ae3e54987510397d063b941d14f | test/CFrontend/2007-05-07-NestedStructReturn.c | test/CFrontend/2007-05-07-NestedStructReturn.c | // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { int m, n; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}
| // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { int m, n, o, p; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}
| Make the struct bigger, in an attempt to get a "struct return" on more platforms. | Make the struct bigger, in an attempt to get a "struct return" on more
platforms.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@37489 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,appl... |
5ad831820bf5c3c557f3b49e70c76c54a92e0085 | OctoKit/OCTFileContent.h | OctoKit/OCTFileContent.h | //
// OCTFileContent.h
// OctoKit
//
// Created by Aron Cedercrantz on 14-07-2013.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import "OCTContent.h"
// A file in a git repository.
@interface OCTFileContent : OCTContent
// The encoding of the file content.
@property (nonatomic, copy, readonly) NSString... | //
// OCTFileContent.h
// OctoKit
//
// Created by Aron Cedercrantz on 14-07-2013.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import "OCTContent.h"
// A file in a git repository.
@interface OCTFileContent : OCTContent
// The encoding of the file content.
@property (nonatomic, copy, readonly) NSString... | Add backticks around the ref to encoding property. | Add backticks around the ref to encoding property.
Signed-off-by: Aron Cedercrantz <ce30127eefa07a02d568832e3de6952fb491981c@cedercrantz.se> | C | mit | daukantas/octokit.objc,cnbin/octokit.objc,CHNLiPeng/octokit.objc,phatblat/octokit.objc,cnbin/octokit.objc,GroundControl-Solutions/octokit.objc,yeahdongcn/octokit.objc,jonesgithub/octokit.objc,GroundControl-Solutions/octokit.objc,daemonchen/octokit.objc,CleanShavenApps/octokit.objc,wrcj12138aaa/octokit.objc,xantage/octo... |
09c0f20bb9372909232397300d74329cc793c552 | ui/reflectionview.h | ui/reflectionview.h | #pragma once
#include <QtGui/QMouseEvent>
#include <QtGui/QPaintEvent>
#include <QtWidgets/QWidget>
#include "binaryninjaapi.h"
#include "dockhandler.h"
#include "uitypes.h"
class ContextMenuManager;
class DisassemblyContainer;
class Menu;
class ViewFrame;
class BINARYNINJAUIAPI ReflectionView: public QWidget, publ... | #pragma once
#include <QtGui/QMouseEvent>
#include <QtGui/QPaintEvent>
#include <QtWidgets/QWidget>
#include "binaryninjaapi.h"
#include "dockhandler.h"
#include "uitypes.h"
class ContextMenuManager;
class DisassemblyContainer;
class Menu;
class ViewFrame;
class BINARYNINJAUIAPI ReflectionView: public QWidget, publ... | Update reflection view on transition to visible state. | Update reflection view on transition to visible state.
| C | mit | Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api |
6a5ae45aad7943b8da905f2f1d7c894e412843ea | cli/tests/hello/hello.c | cli/tests/hello/hello.c | #include <stdio.h>
#ifndef ENV_NAME
# define ENV_NAME "host"
#endif
int main(int argc, char* argv)
{
printf("Hello World from Rebuild environment " ENV_NAME "\n");
return 0;
}
| #include <stdio.h>
#ifndef ENV_NAME
# define ENV_NAME "host"
#endif
int main(int argc, char** argv)
{
printf("Hello World from Rebuild environment " ENV_NAME "\n");
return 0;
}
| Fix main parameter of the test application | tests: Fix main parameter of the test application
[ci skip]
Signed-off-by: Yan Vugenfirer <e958ec5a56cd9794647c3623b3aa5a85122e74a5@daynix.com>
| C | apache-2.0 | rbld/rebuild,daynix/rebuild,rbld/rebuild,daynix/rebuild,daynix/rebuild,rbld/rebuild |
04e00705faf26d7d6f009350cdadc5279dd4e72a | Classes/AXTabBar.h | Classes/AXTabBar.h | //
// AXTabBar.h
// Pods
//
#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
AXTabBarStyleDefault = 0,
AXTabBarStyleVariableWidthButton,
} AXTabBarStyle;
@class AXTabBar;
@protocol AXTabBarDelegate <NSObject>
@optional
- (BOOL)tabBar:(AXTabBar *)tabBar shouldSelectItem:(UITabBarItem *)item;
- (void)tabBar:... | //
// AXTabBar.h
// Pods
//
#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
AXTabBarStyleDefault = 0,
AXTabBarStyleVariableWidthButton,
} AXTabBarStyle;
@class AXTabBar;
@protocol AXTabBarDelegate <NSObject>
@optional
- (BOOL)tabBar:(AXTabBar *)tabBar shouldSelectItem:(UITabBarItem *)item;
- (void)tabBar:... | Allow tab bar style property | Allow tab bar style property | C | mit | nickelsberry/AXStretchableHeaderTabViewController,nickelsberry/AXStretchableHeaderTabViewController,nickelsberry/AXStretchableHeaderTabViewController |
2cb74a0913f6568a87de9246063e74089c38ea10 | Example/BonMot/NSDictionary+BONEquality.h | Example/BonMot/NSDictionary+BONEquality.h | //
// NSDictionary+BONEquality.h
// BonMot
//
// Created by Zev Eisenberg on 7/11/15.
// Copyright © 2015 Zev Eisenberg. All rights reserved.
//
@import Foundation;
@import CoreGraphics.CGBase;
OBJC_EXTERN const CGFloat kBONCGFloatEpsilon;
OBJC_EXTERN BOOL BONCGFloatsCloseEnough(CGFloat float1, CGFloat float2);
... | //
// NSDictionary+BONEquality.h
// BonMot
//
// Created by Zev Eisenberg on 7/11/15.
// Copyright © 2015 Zev Eisenberg. All rights reserved.
//
@import Foundation;
@import CoreGraphics.CGBase;
OBJC_EXTERN const CGFloat kBONCGFloatEpsilon;
OBJC_EXTERN BOOL BONCGFloatsCloseEnough(CGFloat float1, CGFloat float2);
... | Fix copypasta to re-enable clang-format. | Fix copypasta to re-enable clang-format.
| C | mit | Raizlabs/BonMot,Raizlabs/BonMot,Raizlabs/BonMot |
7afb68bf3ea5c1549f10e3bdb7f25ecb51256786 | tests.c | tests.c | #include "lua.h"
#include "lua_debug.h"
int main() {
return 0;
}
| #include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "lua_debug.h"
static const luaL_Reg STANDARD_LIBS[] = {
{ "_G", luaopen_base },
{ LUA_TABLIBNAME, luaopen_table },
{ LUA_STRLIBNAME, luaopen_string },
{ LUA_MATHLIBNAME, luaopen_math },
{ LUA_DBLIBNAME, luaopen_debug },
{ 0, 0 ... | Add a test program with a bit more substance. | Add a test program with a bit more substance.
| C | mit | laarmen/lua_debug,laarmen/lua_debug |
542c416be33f1cc748530f20db2025f43f490b30 | content/public/common/resource_devtools_info.h | content/public/common/resource_devtools_info.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 CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_
#define CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_
#include <string>
#include <vector>
#include "base/bas... | // 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 CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_
#define CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_
#include <string>
#include <vector>
#include "base/bas... | Use base::StringPairs where appropriate from /content | Use base::StringPairs where appropriate from /content
Because base/strings/string_split.h defines:
typedef std::vector<std::pair<std::string, std::string> > StringPairs;
BUG=412250
Review URL: https://codereview.chromium.org/600163003
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#296649}
| C | bsd-3-clause | hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,dednal/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswa... |
c57a5ce0df04be61bafedc0f3043d568103c7ab5 | arch/powerpc/include/uapi/asm/byteorder.h | arch/powerpc/include/uapi/asm/byteorder.h | #ifndef _ASM_POWERPC_BYTEORDER_H
#define _ASM_POWERPC_BYTEORDER_H
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version... | #ifndef _ASM_POWERPC_BYTEORDER_H
#define _ASM_POWERPC_BYTEORDER_H
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version... | Include the appropriate endianness header | powerpc: Include the appropriate endianness header
This patch will have powerpc include the appropriate generic endianness
header depending on what the compiler reports.
Signed-off-by: Ian Munsie <2796b2a6f60f1cdadaf10e577f7c9240e2ad3d38@au1.ibm.com>
Signed-off-by: Anton Blanchard <14deb5e5e417133e888bf47bb6a3555c9bb... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
98c1fbe223dd5469e194a4e772b8e5b181b692ee | src/ui.h | src/ui.h | #pragma once
void draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer);
void draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer);
void draw_hours(GContext *ctx, uint8_t hours, Layer *layer);
| #pragma once
/*
This header file declares drawing methods that are defined in rect.c or round.c,
depending on the platform being built. Since the methods share the same function
signature, they can share the same header file, even though the implementations
of the functions themselves are different.
*/
void draw_se... | Add comment to header file about change | Add comment to header file about change
| C | mit | NiVZ78/concentricity,pebble-examples/concentricity,NiVZ78/concentricity,pebble-examples/concentricity,pebble-examples/concentricity |
93ae893e22571cc61f7d334cf36bb5642460a39c | extensions/ringopengl/opengl11/ring_opengl11.c | extensions/ringopengl/opengl11/ring_opengl11.c | #include "ring.h"
/*
OpenGL 1.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_FUNC(ring_get_gl_zero)
{
RING_API_RETNUMBER(GL_ZERO);
}
RING_FUNC(ring_get_gl_false)
{
RING_API_RETNUMBER(GL_FALSE);
}
RING_FUNC(ring_get_gl_logic_op)
{
RING_AP... | #include "ring.h"
/*
OpenGL 1.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_FUNC(ring_get_gl_zero)
{
RING_API_RETNUMBER(GL_ZERO);
}
RING_FUNC(ring_get_gl_false)
{
RING_API_RETNUMBER(GL_FALSE);
}
RING_FUNC(ring_get_gl_logic_op)
{
RING_AP... | Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_TEXTURE_COMPONENTS | Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_TEXTURE_COMPONENTS
| C | mit | ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring |
29db01601e61470f99eff92e5191bfefa64f2a7d | src/irc.h | src/irc.h | #ifndef _IRC_H
#define _IRC_H
#define NICK "slackboat"
#define SERVER "irc.what.cd"
#define PASSWORD "thisistheonlygoodbot"
void irc_notice_event(char *, char *, char *);
void irc_welcome_event(void);
void irc_privmsg_event(char *, char *, char *);
void irc_privmsg(const char *, const char *);
void irc_join_channel(c... | #ifndef _IRC_H
#define _IRC_H
#define NICK "slackboat"
#define SERVER "irc.what.cd"
#define PASSWORD "PASSWORD"
void irc_notice_event(char *, char *, char *);
void irc_welcome_event(void);
void irc_privmsg_event(char *, char *, char *);
void irc_privmsg(const char *, const char *);
void irc_join_channel(const char *)... | Structure the program for minimum coupling | Structure the program for minimum coupling
| C | isc | Zlacki/slackboat,Zlacki/slackboat,Zlacki/slackboat,Zlacki/slackboat |
35bc38ac4592800a2c3d13b001a0b66679c8f0b7 | include/api/ofp_epoll.h | include/api/ofp_epoll.h | /* Copyright (c) 2016, Nokia
* Copyright (c) 2016, ENEA Software AB
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __OFP_EPOLL_H__
#define __OFP_EPOLL_H__
#include <stdint.h>
typedef union ofp_epoll_data {
void *ptr;
int fd;
uint32_t u32;
uint64_t u64;
} ofp_epoll_da... | /* Copyright (c) 2016, Nokia
* Copyright (c) 2016, ENEA Software AB
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __OFP_EPOLL_H__
#define __OFP_EPOLL_H__
#include <stdint.h>
#if __GNUC__ >= 4
#pragma GCC visibility push(default)
#endif
typedef union ofp_epoll_data {
void *... | Add visibility to epoll headers | Add visibility to epoll headers
The odp_epoll_* symbols were not visible in the final library built with
GCC.
Signed-off-by: Oriol Arcas <a98c9d4e37de3d71db2e1a293b51c579a914c4ae@starflownetworks.com>
Reviewed-by: Sorin Vultureanu <8013ba55f8675034bc2ab0d6c3a1c9650437ca36@enea.com>
| C | bsd-3-clause | TolikH/ofp,TolikH/ofp,OpenFastPath/ofp,OpenFastPath/ofp,OpenFastPath/ofp,TolikH/ofp,OpenFastPath/ofp |
6626332f97efce89d2322a203058b4ab74ffc17b | cmd_start_daemon.c | cmd_start_daemon.c | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#include... | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#include... | Set prgname to stub while in daemon | Set prgname to stub while in daemon
| C | bsd-3-clause | JuudeDemos/fb-adb,JuudeDemos/fb-adb,biddyweb/fb-adb,0359xiaodong/fb-adb,0359xiaodong/fb-adb,0359xiaodong/fb-adb,biddyweb/fb-adb,biddyweb/fb-adb,tcmulcahy/fb-adb,tcmulcahy/fb-adb,JuudeDemos/fb-adb,tcmulcahy/fb-adb |
31ab70c9b25b7203422c12d18439cfdee95a6d8d | ir/be/test/CallingTest.c | ir/be/test/CallingTest.c | #include <stdio.h>
int int_func(void)
{
return 42;
}
float float_func(void)
{
return 13.5f;
}
int main(int argc, char *argv[])
{
printf("calltest.c\n");
printf(" Calling int function: %d\n", int_func());
printf(" Calling float function: %f\n", float_func());
return 0;
}
| #include <stdio.h>
int int_func(void)
{
return 42;
}
float float_func(void)
{
return 13.5f;
}
double double_func(void)
{
return 13.5;
}
int main(int argc, char *argv[])
{
printf("calltest.c\n");
printf(" Calling int function: %d\n", int_func());
printf(" Calling float function: %f\n", float_func(... | Add test for double call | Add test for double call
[r15890]
| C | lgpl-2.1 | libfirm/libfirm,libfirm/libfirm,libfirm/libfirm,jonashaag/libfirm,davidgiven/libfirm,davidgiven/libfirm,jonashaag/libfirm,8l/libfirm,davidgiven/libfirm,MatzeB/libfirm,killbug2004/libfirm,8l/libfirm,MatzeB/libfirm,davidgiven/libfirm,jonashaag/libfirm,killbug2004/libfirm,8l/libfirm,davidgiven/libfirm,jonashaag/libfirm,8l... |
0416ae00706748da9fb6a1c716b824aa33cac1a5 | hello_world.c | hello_world.c | #include <stdio.h>
int main()
{
printf("hello, world\n");
} | #include <stdio.h>
int main()
{
printf("hello, world\n");
return 0;
}
| Fix gcc warning when -Wall (implicit return). | Fix gcc warning when -Wall (implicit return).
warning: control reaches end of non-void function [-Wreturn-type]
}
^ | C | mit | learnclang/1-helloworld |
394d0cdb020eaf4342d6f0fb31ca85d802f529f9 | src/util/dlist/dlist_debug.c | src/util/dlist/dlist_debug.c | /**
* @file
* @brief Paranoia checks of doubly-linked lists
*
* @date 05.12.2013
* @author Eldar Abusalimov
*/
#include <inttypes.h>
#include <assert.h>
#include <util/dlist.h>
#if DLIST_DEBUG_VERSION
void __dlist_debug_check(const struct dlist_head *head) {
const struct dlist_head *p = head->prev;
const str... | /**
* @file
* @brief Paranoia checks of doubly-linked lists
*
* @date 05.12.2013
* @author Eldar Abusalimov
*/
#include <inttypes.h>
#include <assert.h>
#include <util/dlist.h>
#if DLIST_DEBUG_VERSION
void __dlist_debug_check(const struct dlist_head *head) {
#ifndef NDEBUG
const struct dlist_head *p = head->p... | Fix dlist compilation with NDEBUG flag | minor: Fix dlist compilation with NDEBUG flag
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
21882ab7a21eb17f0d23d2d2459fdb3c6e787322 | libpkg/pkg_util.h | libpkg/pkg_util.h | #ifndef _PKG_UTIL_H
#define _PKG_UTIL_H
#include <sys/types.h>
#include <sys/sbuf.h>
#include <sys/param.h>
#define ARRAY_INIT {0, 0, NULL}
struct array {
size_t cap;
size_t len;
void **data;
};
#define STARTS_WITH(string, needle) (strncasecmp(string, needle, strlen(needle)) == 0)
#define ERROR_SQLITE(db) \
EM... | #ifndef _PKG_UTIL_H
#define _PKG_UTIL_H
#include <sys/types.h>
#include <sys/sbuf.h>
#include <sys/param.h>
#define STARTS_WITH(string, needle) (strncasecmp(string, needle, strlen(needle)) == 0)
#define ERROR_SQLITE(db) \
EMIT_PKG_ERROR("sqlite: %s", sqlite3_errmsg(db))
int sbuf_set(struct sbuf **, const char *);
... | Remove last occurences of the dead struct array | Remove last occurences of the dead struct array
| C | bsd-2-clause | en90/pkg,khorben/pkg,en90/pkg,khorben/pkg,Open343/pkg,skoef/pkg,Open343/pkg,skoef/pkg,junovitch/pkg,junovitch/pkg,khorben/pkg |
246372f35d6e7025e7ff16ce8d7543e961800a0e | include/llvm/ExecutionEngine/GenericValue.h | include/llvm/ExecutionEngine/GenericValue.h | //===-- GenericValue.h - Represent any type of LLVM value -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- GenericValue.h - Represent any type of LLVM value -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Use uintptr_t for pointer values in the ExecutionEngine. | Use uintptr_t for pointer values in the ExecutionEngine.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10425 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm... |
b841954d3e11a0d626016ca709f4b4fd3ad75e8e | Classes/Categories/NSDate+GTTimeAdditions.h | Classes/Categories/NSDate+GTTimeAdditions.h | //
// NSDate+GTTimeAdditions.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 27/03/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "git2.h"
@interface NSDate (GTTimeAdditions)
// Creates a new `NSDate` from the provided `git_time`.
//
// time ... | //
// NSDate+GTTimeAdditions.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 27/03/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "git2.h"
@interface NSDate (GTTimeAdditions)
// Creates a new `NSDate` from the provided `git_time`.
//
// time ... | Document the timeZone as being optional. | Document the timeZone as being optional.
| C | mit | tiennou/objective-git,blackpixel/objective-git,misterfifths/objective-git,javiertoledo/objective-git,Acidburn0zzz/objective-git,0x4a616e/objective-git,phatblat/objective-git,nerdishbynature/objective-git,TOMalley104/objective-git,c9s/objective-git,misterfifths/objective-git,javiertoledo/objective-git,c9s/objective-git,... |
6c1897af9f323a22cf53a195a12168e42985c62e | smallrl.c | smallrl.c | #include <stdlib.h>
#include <curses.h>
#include <time.h>
#include "game.h"
#include "ui.h"
static void shutdown(void);
int main(int argc, char ** argv)
{
srand(time(NULL));
initscr();
cbreak();
noecho();
curs_set(0);
keypad(stdscr, TRUE);
start_color();
init_pair(color_black, COL... | #include <stdlib.h>
#include <curses.h>
#include <time.h>
#include "game.h"
#include "ui.h"
static void shutdown(void);
int main(int argc, char ** argv)
{
time_t random_seed = time(NULL);
printf("Random game #%ld\n", random_seed);
srand(random_seed);
initscr();
cbreak();
noecho();
curs_s... | Print random seed for sharing / debugging purposes | Print random seed for sharing / debugging purposes
| C | bsd-2-clause | happyponyland/smallrl,happyponyland/smallrl,happyponyland/smallrl |
608e78d43eb205fd6bb4755c5495a7d1460a159b | src/tgl.c | src/tgl.c | /* Main program for TGL (Text Generation Language). */
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
int main(int argc, char** argv) {
printf("hello world\n");
return 0;
}
| /* Main program for TGL (Text Generation Language). */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
/* BEGIN: String handling (strings may have NUL bytes within, and are not
* NUL-terminated).
*/
/* ... | Add length-prefixed string handling functions. | Add length-prefixed string handling functions.
| C | bsd-3-clause | AltSysrq/tgl,AltSysrq/tgl |
536df7c46c031adf1591ed44b5c51c905422e63f | BBBAPI/BBBAPI/Classes/BBASearchSuggestionsResult.h | BBBAPI/BBBAPI/Classes/BBASearchSuggestionsResult.h | //
// BBASearchSuggestionsResult.h
// BBBAPI
//
// Created by Owen Worley on 12/01/2015.
// Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@class FEMObjectMapping;
/**
* Represents data returned from the book search suggestions service (search/suggestion... | //
// BBASearchSuggestionsResult.h
// BBBAPI
//
// Created by Owen Worley on 12/01/2015.
// Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@class FEMObjectMapping;
/**
* Represents data returned from the book search suggestions service (search/suggestion... | Document contents of items array | Document contents of items array
| C | mit | blinkboxbooks/blinkbox-network.objc,blinkboxbooks/blinkbox-network.objc |
6f81fa70bca7bbf082253c5f2e6cef5b02cb4b7d | x86_64/unix/2.2.4progamain.c | x86_64/unix/2.2.4progamain.c | #include <stdlib.h>
#include <stdio.h>
typedef struct Poly Poly;
struct Poly {
int32_t coef;
int32_t abc;
Poly *link;
};
int add(Poly *q, Poly *p);
Poly *avail;
int
main(int argc, char **argv)
{
Poly *pool, *p;
pool = calloc(500, sizeof(*pool));
for(p = pool; p < pool+499; p++)
p->link = p+1;
p->link = N... | #include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
typedef struct Poly Poly;
struct Poly {
int32_t coef;
int32_t abc;
Poly *link;
};
int add(Poly *q, Poly *p);
Poly *avail;
Poly*
makepoly(void)
{
Poly *p;
if(avail == NULL)
return NULL;
p = avail;
avail = avail->link;
p->abc = -1;
p->coef = 0;
... | Add infrastructure for constructing polynomials | Add infrastructure for constructing polynomials
| C | isc | spewspew/TAOCP,spewspews/TAOCP |
abcc32beb01e1beb2f274de94d6917d90aae0ffd | ASFFeedly/ASFRequestBuilder.h | ASFFeedly/ASFRequestBuilder.h | //
// ASFRequestBuilder.h
// ASFFeedly
//
// Created by Anton Simakov on 12/12/13.
// Copyright (c) 2013 Anton Simakov. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSURL *ASFURLByAppendingParameters(NSURL *URL, NSDictionary *parameters);
extern NSString *ASFQueryFromURL(NSURL *URL);
extern NS... | //
// ASFRequestBuilder.h
// ASFFeedly
//
// Created by Anton Simakov on 12/12/13.
// Copyright (c) 2013 Anton Simakov. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSURL *ASFURLByAppendingParameters(NSURL *URL, NSDictionary *parameters);
extern NSString *ASFQueryFromURL(NSURL *URL);
extern NS... | Remove private method from the public interface | Remove private method from the public interface
| C | mit | anton-simakov/ASFeedly |
7e4e4f0f7ea96059d18b65ffa9fcc3d6f9a5bce3 | OCCommunicationLib/OCCommunicationLib/OCErrorMsg.h | OCCommunicationLib/OCCommunicationLib/OCErrorMsg.h | //
// OCErrorMsg.h
// Owncloud iOs Client
//
// Copyright (c) 2014 ownCloud (http://www.owncloud.org/)
//
// 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 w... | //
// OCErrorMsg.h
// Owncloud iOs Client
//
// Copyright (c) 2014 ownCloud (http://www.owncloud.org/)
//
// 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 w... | Add error constant for not permmited methods in the server | Add error constant for not permmited methods in the server
| C | mit | blueseaguo/ios-library,pd81999/ios-library,owncloud/ios-library |
a4d60fe0ef77abcc9d91cdca0c6f276e5a7fb627 | src/qt/bitcoinaddressvalidator.h | src/qt/bitcoinaddressvalidator.h | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVali... | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base58 entry widget validator.
Corrects near-miss characters and refuses characters that are not part of base58.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVal... | Fix typo in a comment: it's base58, not base48. | Fix typo in a comment: it's base58, not base48.
| C | mit | cinnamoncoin/Feathercoin,nanocoins/mycoin,nanocoins/mycoin,cinnamoncoin/Feathercoin,saydulk/Feathercoin,cinnamoncoin/Feathercoin,nanocoins/mycoin,ghostlander/Feathercoin,enlighter/Feathercoin,saydulk/Feathercoin,cqtenq/Feathercoin,enlighter/Feathercoin,cqtenq/Feathercoin,cinnamoncoin/Feathercoin,nanocoins/mycoin,ghostl... |
c756758fa6f074ca17423326c40c6e298184d997 | eval/src/vespa/eval/tensor/test/test_utils.h | eval/src/vespa/eval/tensor/test/test_utils.h | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/eval/eval/tensor_spec.h>
#include <vespa/eval/tensor/default_tensor_engine.h>
#include <vespa/vespalib/testkit/test_kit.h>
namespace vespalib::tensor::test {
template <typena... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/eval/eval/tensor_spec.h>
#include <vespa/eval/tensor/default_tensor_engine.h>
#include <vespa/vespalib/testkit/test_kit.h>
namespace vespalib::tensor::test {
template <typena... | Return unique pointer to const tensor instead. | Return unique pointer to const tensor instead.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
fc819be192e956dcd856f6ca7032d766d1b4a6e3 | Utilities/ParseOGLExt/Tokenizer.h | Utilities/ParseOGLExt/Tokenizer.h | /*=========================================================================
Program: Visualization Toolkit
Module: Tokenizer.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distr... | /*=========================================================================
Program: Visualization Toolkit
Module: Tokenizer.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distr... | Add carriage return to the list of default delimiters to correctly handle "windows-style" end of line on "unix-style" systems. | BUG: Add carriage return to the list of default delimiters to correctly handle
"windows-style" end of line on "unix-style" systems.
| C | bsd-3-clause | candy7393/VTK,mspark93/VTK,spthaolt/VTK,biddisco/VTK,demarle/VTK,aashish24/VTK-old,gram526/VTK,spthaolt/VTK,ashray/VTK-EVM,naucoin/VTKSlicerWidgets,spthaolt/VTK,aashish24/VTK-old,mspark93/VTK,Wuteyan/VTK,johnkit/vtk-dev,sgh/vtk,jmerkow/VTK,keithroe/vtkoptix,gram526/VTK,johnkit/vtk-dev,spthaolt/VTK,ashray/VTK-EVM,sankhe... |
70cb60b7ed2a04f3054cffda01b961decbf0827a | edXVideoLocker/OEXRegistrationFieldValidator.h | edXVideoLocker/OEXRegistrationFieldValidator.h | //
// OEXRegistrationFieldValidation.h
// edXVideoLocker
//
// Created by Jotiram Bhagat on 03/03/15.
// Copyright (c) 2015 edX. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OEXRegistrationFormField.h"
@interface OEXRegistrationFieldValidator : NSObject
+(NSString *)validateField:(OEXRegistra... | //
// OEXRegistrationFieldValidation.h
// edXVideoLocker
//
// Created by Jotiram Bhagat on 03/03/15.
// Copyright (c) 2015 edX. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OEXRegistrationFormField.h"
@interface OEXRegistrationFieldValidator : NSObject
/// Returns an error string, or nil if ... | Add comment for validation method | Add comment for validation method
| C | apache-2.0 | appsembler/edx-app-ios,chinlam91/edx-app-ios,chinlam91/edx-app-ios,appsembler/edx-app-ios,proversity-org/edx-app-ios,yrchen/edx-app-ios,Ben21hao/edx-app-ios-enterprise-new,nagyistoce/edx-app-ios,ehmadzubair/edx-app-ios,edx/edx-app-ios,knehez/edx-app-ios,edx/edx-app-ios,edx/edx-app-ios,keyeMyria/edx-app-ios,edx/edx-app-... |
d695d87aaabe6bb8e2ca2ba8f1db45d4a62dc7c9 | FUState.h | FUState.h | #ifndef FUSTATE_H
#define FUSTATE_H
#include <SFML/Window/Event.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <memory>
class FUStateManager;
class FUState
{
public:
struct FUContext
{
FUContext(std::shared_ptr<sf::RenderWindow> window)
: renderWindo... | #ifndef FUSTATE_H
#define FUSTATE_H
#include <SFML/Window/Event.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <memory>
class FUState
{
public:
struct FUContext
{
FUContext(std::shared_ptr<sf::RenderWindow> window)
: renderWindow(window) {}
s... | Delete an unnecessary forward decleration | Delete an unnecessary forward decleration
| C | unlicense | Furkanzmc/StateManager |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.