commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
22172bb584a97412e01d77f6cb3eb183aab06d56 | boards/arm/cc3200_launchxl/board.h | boards/arm/cc3200_launchxl/board.h | /*
* Copyright (c) 2016, Texas Instruments Incorporated
*
* 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 appl... | /*
* Copyright (c) 2016, Texas Instruments Incorporated
*
* 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 appl... | Add generic definitions for LEDs and switches | cc3200: Add generic definitions for LEDs and switches
Adds generic definitions for GPIO pins for onboard LEDs and
switches to enable the basic blinky, button, and disco
Zephyr examples for the TI CC3200 LaunchXL.
Change-Id: Iac0ed2ad01285f9e84eea1fa7013771ddd8d3a78
Signed-off-by: Gil Pitney <477da50908f0a7963c2c490cc... | C | apache-2.0 | zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,explora26/zephyr,punitvara/zephyr,bboozzoo/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,GiulianoFranchetto/zephyr,mbolivar/zephyr,explora26/zephyr,sharronliu/zephyr,sharronliu/zephyr,rsalveti... |
b666daaf75dc6cd5dced975d5a023bbc5b13114f | examples/GetDataChunkServer/Socket.h | examples/GetDataChunkServer/Socket.h | // -*- mode: c++ -*-
#ifndef _GET_DATA_CHUNK_SERVER_SOCKET_H_
#define _GET_DATA_CHUNK_SERVER_SOCKET_H_
#include <boost/shared_ptr.hpp>
#include <boost/asio.hpp>
class Socket
{
typedef boost::shared_ptr<boost::asio::ip::tcp::socket> SocketImplPtr;
public:
Socket(SocketImplPtr socket);
virtual ~Socket();
... | Add a thread-safe socket class. | Add a thread-safe socket class.
| C | mit | airekans/Tpool,airekans/Tpool,airekans/Tpool | |
7d51c07f00043f980050a06bd4e4a7b6983a78f6 | JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h | JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h | #include <stdio.h>
/* Interface to JPEG code */
#include "jpeglib.h"
#include <setjmp.h>
struct error_mgr2 {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct error_mgr2* error_ptr2;
void error_exit (j_common_ptr cinfo);
GLOBAL(void) jpeg_mem_sr... | #include <stdio.h>
/* Interface to JPEG code */
#include "jpeglib.h"
#include <setjmp.h>
struct error_mgr2 {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct error_mgr2* error_ptr2;
void error_exit (j_common_ptr cinfo);
GLOBAL(void) jpeg_mem_sr... | Fix typo in method signature | Fix typo in method signature
git-svn-id: http://squeakvm.org/svn/squeak/trunk@3745 fa1542d4-bde8-0310-ad64-8ed1123d492a
Former-commit-id: 76afe8ba507e75296f2fbba2c2c20aaa29c41819 | C | mit | bencoman/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,... |
2181f5b6f64769cc57b8a9872d5f89f0493eb5d0 | cc1/tests/test028.c | cc1/tests/test028.c |
/*
name: TEST028
description: Test of reinterpretation in define
output:
F5
G6 F5 foo
{
\
r "6869 'P
}
*/
#define M(x) x
#define A(a,b) a(b)
char *
foo(void)
{
return A(M,"hi");
}
| Add test for nested expansion in macros | Add test for nested expansion in macros
| C | isc | k0gaMSX/scc,k0gaMSX/scc,8l/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/kcc,8l/scc,k0gaMSX/scc | |
d9d5db9efedbf1ca9ddd11e0f2eff2a4b04afe90 | stutterfuzz.c | stutterfuzz.c | #include <stdio.h>
#include <stdint.h>
#include "rand.h"
static uint64_t sqrt64(uint64_t n) {
uint64_t g = UINT64_C(1) << 31;
for (uint64_t c = g; c; g |= c) {
if (g * g > n) {
g ^= c;
}
c >>= 1;
}
return g;
}
static uint64_t get_split(uint64_t len) {
uint64_t rnd;
rand_fill(&rnd, sizeof(rnd)... | #include <stdio.h>
#include <stdint.h>
#include "rand.h"
static uint64_t get_split(uint64_t total_len, uint64_t remaining_len) {
uint64_t rnd;
rand_fill(&rnd, sizeof(rnd));
rnd %= total_len;
return rnd > remaining_len ? remaining_len : rnd;
}
int main(int __attribute__ ((unused)) argc, char __attribute__ ((unuse... | Fix random algo to evenly distribute. | Fix random algo to evenly distribute.
| C | apache-2.0 | flamingcowtv/stutterfuzz |
bf7236ddf91b0242a3960fb3f66391e1a51b4a74 | cc1/tests/test019.c | cc1/tests/test019.c |
/*
name: TEST019
description: Basic test of constant folding in integer arithmetic operations
output:
test019.c:13: warning: division by 0
test019.c:14: warning: division by 0
F1
G1 F1 main
{
-
A2 I i
A2 #I3 :I
A2 #I1 :I
A2 #I12 :I
A2 #I2 :I
A2 #I0 :I
A2 A2 #I0 %I :I
A2 A2 #I0 %I :I
A2 #I8 :I
A2 #I2 :I
A2 #I... | Add basic test for integer constant folding | Add basic test for integer constant folding
| C | isc | k0gaMSX/scc,k0gaMSX/kcc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc | |
8a1556967443af2e55ef33b3cdab613acbc0ef91 | cc1/tests/test044.c | cc1/tests/test044.c | /*
name: TEST044
description: Test of corner cases in #if
output:
test044.c:14: warning: division by 0
test044.c:18: warning: division by 0
test044.c:22: warning: division by 0
test044.c:28: error: parameter of #if is not an integer constant expression
test044.c:29: error: #error 3 != (1,2,3)
*/
/* These should be ac... | Add test for preprocessor corner cases | Add test for preprocessor corner cases
| C | mit | k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc | |
f007fbd9af3299d047f0b1dce1ffb2b625775133 | src/include/impl/kernel/slab_static.h | src/include/impl/kernel/slab_static.h | /**
* @file
* @brief Internal implementation of static slab allocator
*
* @date 07.03.2011
* @author Kirill Tyushev
*/
#ifndef SLAB_STATIC_H_
# error "Do not include this file directly, use <kernel/mm/slab_static.h> instead!"
#endif /* SLAB_STATIC_H_ */
#include <util/binalign.h>
/** cache descriptor */
struct... | /**
* @file
* @brief Internal implementation of static slab allocator
*
* @date 07.03.2011
* @author Kirill Tyushev
*/
#ifndef SLAB_STATIC_H_
# error "Do not include this file directly, use <kernel/mm/slab_static.h> instead!"
#endif /* SLAB_STATIC_H_ */
#include <util/binalign.h>
/** cache descriptor */
struct... | Fix macro replacement: removal of conflict with __name_pool | Fix macro replacement: removal of conflict with __name_pool
(using pasting) | C | bsd-2-clause | Kefir0192/embox,vrxfile/embox-trik,embox/embox,abusalimov/embox,gzoom13/embox,Kakadu/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,Kefir0192/embox,embox/embox,Kefir0192/embox,vrxfile/embox-trik,mike2390/embox,mike2390/embox,abusalimov/embox,mike2390/embox,vrxfile/embox-trik,Kakadu/embox,mike2390/embox,vrxfile/... |
9b662d66ce40ee91314cf392a73cf6991a654172 | src/lib/ecore/Ecore_Str.h | src/lib/ecore/Ecore_Str.h | #ifndef _ECORE_STR_H
# define _ECORE_STR_H
#ifdef EAPI
#undef EAPI
#endif
#ifdef WIN32
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
# else
# define EAPI __declspec(dllimport)
# endif
#else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# else
# define EAPI... | #ifndef _ECORE_STR_H
# define _ECORE_STR_H
#ifdef EAPI
#undef EAPI
#endif
#ifdef WIN32
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
# else
# define EAPI __declspec(dllimport)
# endif
#else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# else
# define EAPI... | Fix doxygen comments for new header. | Fix doxygen comments for new header.
SVN revision: 27891
| C | bsd-2-clause | gfriloux/ecore,gfriloux/ecore,gfriloux/ecore |
e584184199f1d8b572455c9d30e0c57223d7b4df | src/chip8.c | src/chip8.c | #include <stdlib.h>
#include <string.h>
#include "chip8.h"
chip8_t * chip8_new(void) {
int i;
chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));
// The first 512 bytes are used by the interpreter.
self->program_counter = 0x200;
self->index_register = 0;
self->stack_pointer = 0;
self->opcode ... | #include <stdlib.h>
#include <string.h>
#include "chip8.h"
chip8_t * chip8_new(void) {
chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));
// The first 512 bytes are used by the interpreter.
self->program_counter = 0x200;
self->index_register = 0;
self->stack_pointer = 0;
self->opcode = 0;
... | Remove unused variable (int i) | Remove unused variable (int i)
| C | mit | gsamokovarov/chip8.c,gsamokovarov/chip8.c |
9a12c4bd62e7b23a69f8adc616f42a8f3c4c1685 | src/gauge.c | src/gauge.c | #include <math.h>
#include "gauge.h"
/**
* Initializes the gauge struct
* @arg gauge The gauge struct to initialize
* @return 0 on success.
*/
int init_gauge(gauge_t *gauge) {
gauge->count = 0;
gauge->sum = 0;
gauge->value = 0;
return 0;
}
/**
* Adds a new sample to the struct
* @arg gauge The g... | #include <math.h>
#include "gauge.h"
int init_gauge(gauge_t *gauge) {
gauge->count = 0;
gauge->sum = 0;
gauge->value = 0;
return 0;
}
int gauge_add_sample(gauge_t *gauge, double sample, bool delta) {
if (delta) {
gauge->value += sample;
} else {
gauge->value = sample;
}
... | Remove duplicate comment from the c file | Remove duplicate comment from the c file
| C | bsd-3-clause | drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite,drawks/statsite,drawks/statsite,theatrus/statsite,drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite |
0a0b275bc691c879b95028023406e98063a1ce2b | sipXportLib/src/test/sipxunittests.h | sipXportLib/src/test/sipxunittests.h | //
//
// Copyright (C) 2010 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2010 SIPez LLC All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
// Author: Daniel Petrie
// dpetrie AT SIPez DOT com
//////////////////////////////////////////... | //
//
// Copyright (C) 2010-2016 SIPez LLC. All rights reserved.
//
// $$
// Author: Daniel Petrie
// dpetrie AT SIPez DOT com
//////////////////////////////////////////////////////////////////////////////
#ifndef _sipxunittests_h_
#define _sipxunittests_h_
//#if !defined(NO_CPPUNIT) && defined(ANDROID)
#d... | Make portable unit tests default on all platforms. (vs CPPUNIT) | Make portable unit tests default on all platforms.
(vs CPPUNIT)
git-svn-id: 8a77b5e12cf30fc5f8c95b12d648985d6db39537@12346 a612230a-c5fa-0310-af8b-88eea846685b
| C | lgpl-2.1 | sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror |
92dd7b914b878f2172b4d436e9643c4a0d24683b | sbr/getarguments.c | sbr/getarguments.c |
/*
* getarguments.c -- Get the argument vector ready to go.
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
char **
getarguments (char *invo_name, ... |
/*
* getarguments.c -- Get the argument vector ready to go.
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
char **
getarguments (char *invo_name, ... | Replace getcpy() with mh_xstrdup() where the string isn't NULL. | Replace getcpy() with mh_xstrdup() where the string isn't NULL.
| C | bsd-3-clause | mcr/nmh,mcr/nmh |
14af75f24c313c736e12624c2e02e57339e25b9a | tema2/ex2.c | tema2/ex2.c | /*
Student: Szogyenyi Zoltan
Anul: I
Materie: Stagiu de Practica
Limbaj de programare: C
Data: Martie 21 2015 - Sambata
2. Se citesc de la tastatură elementele unei matrici de caractere (nr. linii=nr.
coloane), A(NxN), N<=10.
a) Să se afişeze matricea A;
b) ... | Add the reading and printing of the matrix. | Add the reading and printing of the matrix.
| C | apache-2.0 | zoltanszogyenyi/stagiu-de-practica,zoltanszogyenyi/stagiu-de-practica | |
231ff54e4cc4a6f1ef78fb4e1f94957bbb961aae | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.04.00.08-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 4
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.04.00.13-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 4
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update the driver version to 8.04.00.13-k. | [SCSI] qla2xxx: Update the driver version to 8.04.00.13-k.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
0ce2d5345a145015bc35f8251cf9d82a8f193a86 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k6"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k7"
| Update driver version to 5.03.00-k7 | [SCSI] qla4xxx: Update driver version to 5.03.00-k7
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
7ac5e552ca1d344baa09174c8b9ff1e776399f39 | Branch-SDK/Branch-SDK/BNCDeviceInfo.h | Branch-SDK/Branch-SDK/BNCDeviceInfo.h | //
// BNCDeviceInfo.h
// Branch-TestBed
//
// Created by Sojan P.R. on 3/22/16.
// Copyright © 2016 Branch Metrics. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef BNCDeviceInfo_h
#define BNCDeviceInfo_h
#endif /* BNCDeviceInfo_h */
@interface BNCDeviceInfo : NSObject
//---------Properties---... | //
// BNCDeviceInfo.h
// Branch-TestBed
//
// Created by Sojan P.R. on 3/22/16.
// Copyright © 2016 Branch Metrics. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef BNCDeviceInfo_h
#define BNCDeviceInfo_h
#endif /* BNCDeviceInfo_h */
@interface BNCDeviceInfo : NSObject
//---------Properties---... | Change property attribute to strong | Change property attribute to strong
| C | mit | BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking |
97b487e3f7d68a4ee579bdba1001984055463061 | src/containers/hash_map.h | src/containers/hash_map.h | #ifndef JTL_HASH_MAP_H__
#define JTL_HASH_MAP_H__
#include <memory>
namespace jtl {
template <typename Key,
typename Value>
class HashMap {
struct MapNode {
MapNode(Key k, Value v) : key(k), value(v) {}
~MapNode() {
delete key;
delete value;
}
Key key;
Value value;
}; /... | #ifndef JTL_FLAT_HASH_MAP_H__
#define JTL_FLAT_HASH_MAP_H__
#include <memory>
#include <cctype>
namespace jtl {
template <typename Key>
struct Hash {
using argument_type = Key;
using result_type = std::size_t;
result_type operator()(const Key& k);
}; // struct Hash
template <typename Key,
typename V... | Switch hash map class to a flat hash map | Switch hash map class to a flat hash map
| C | mit | j-haj/algorithms-datastructures |
7d403dcfb33763e9eb29fd1f4a67e293b1d98f94 | 3RVX/HotkeyInfo.h | 3RVX/HotkeyInfo.h | #pragma once
#include <vector>
class HotkeyInfo {
public:
enum HotkeyActions {
IncreaseVolume,
DecreaseVolume,
SetVolume,
Mute,
VolumeSlider,
RunApp,
Settings,
Exit,
};
static std::vector<std::wstring> ActionNames;
public:
int keyCombina... | #pragma once
#include <vector>
class HotkeyInfo {
public:
enum HotkeyActions {
IncreaseVolume,
DecreaseVolume,
SetVolume,
Mute,
VolumeSlider,
RunApp,
Settings,
Exit,
};
static std::vector<std::wstring> ActionNames;
public:
int keyCombina... | Add instance var for hotkey arguments | Add instance var for hotkey arguments
| C | bsd-2-clause | Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX |
9fa470e4021c096a808bfa9bb9406e9897f55b70 | CRToast/CRToast.h | CRToast/CRToast.h | //
// CRToast
// Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for CRToast.
FOUNDATION_EXPORT double CRToastVersionNumber;
//! Project version string for CRToast.
FOUNDATION_EXPORT const unsigned char CRToastVersionString[];
// In this header,... | //
// CRToast
// Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for CRToast.
FOUNDATION_EXPORT double CRToastVersionNumber;
//! Project version string for CRToast.
FOUNDATION_EXPORT const unsigned char CRToastVersionString[];
// In this header,... | Fix build error with import | Fix build error with import
| C | mit | Trueey/CRToast |
abeb3e3e92bd30ccd7f0d6683a97fbb9f828f75b | src/genericpage.h | src/genericpage.h | /*
* dialer - MeeGo Voice Call Manager
* Copyright (c) 2009, 2010, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#ifndef GENERICPAGE_H
#define GENE... | /*
* dialer - MeeGo Voice Call Manager
* Copyright (c) 2009, 2010, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#ifndef GENERICPAGE_H
#define GENE... | Make the genericPage methods activate and deactivate widgets public instead of protected. | Make the genericPage methods activate and deactivate widgets public instead of protected.
Signed-off-by: Michael Demeter <ed571e93df5b6cb8044d8ad4bd1aafe6e72f2a71@intel.com>
| C | apache-2.0 | lbt/meego-handset-dialer,lbt/meego-handset-dialer,lbt/meego-handset-dialer,lbt/meego-handset-dialer |
24f16f44b3b2569b8858c453429c3fb42ea02392 | objc/PromiseKit.h | objc/PromiseKit.h | #import "PromiseKit/Promise.h"
#ifdef PMK_CORELOCATION
#import "PromiseKit+CoreLocation.h"
#endif
#ifdef PMK_FOUNDATION
#import "PromiseKit+Foundation.h"
#endif
#ifdef PMK_UIKIT
#import "PromiseKit+UIKit.h"
#endif
#ifdef PMK_MAPKIT
#import "PromiseKit+MapKit.h"
#endif
#ifdef PMK_SOCIAL
#import "PromiseKit+Social.h"
#en... | #import "PromiseKit/Promise.h"
#ifdef PMK_CORELOCATION
#import "PromiseKit+CoreLocation.h"
#endif
#ifdef PMK_FOUNDATION
#import "PromiseKit+Foundation.h"
#endif
#ifdef PMK_UIKIT
#import "PromiseKit+UIKit.h"
#endif
#ifdef PMK_MAPKIT
#import "PromiseKit+MapKit.h"
#endif
#ifdef PMK_SOCIAL
#import "PromiseKit+Social.h"
#en... | Add missing import to umbrella header | Add missing import to umbrella header | C | mit | mxcl/PromiseKit,pgherveou/PromiseKit,mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit,pgherveou/PromiseKit,allen-zeng/PromiseKit,pgherveou/PromiseKit |
a935263bc17f40ed671abc3157adbc04ade7b3fa | Source/SimpleITKMacro.h | Source/SimpleITKMacro.h | #ifndef __SimpleITKMacro_h
#define __SimpleITKMacro_h
#include <stdint.h>
#include <itkImageBase.h>
#include <itkImage.h>
#include <itkLightObject.h>
#include <itkSmartPointer.h>
// Define macros to aid in the typeless layer
typedef itk::ImageBase<3> SimpleImageBase;
namespace itk {
namespace simple {
// To a... | #ifndef __SimpleITKMacro_h
#define __SimpleITKMacro_h
// Ideally, take the types from the C99 standard. However,
// VS 8 does not have stdint.h, but they are defined anyway.
#ifndef _MSC_VER
#include <stdint.h>
#endif
#include <itkImageBase.h>
#include <itkImage.h>
#include <itkLightObject.h>
#include <itkSmartPoi... | Support for MS Visual Studio 2008. | Support for MS Visual Studio 2008.
| C | apache-2.0 | SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging |
6536132facc72b11a630fef777d446e06dfeeed8 | test/FrontendC/2010-06-28-nowarn.c | test/FrontendC/2010-06-28-nowarn.c | // RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
// This should not warn about unreferenced label. 7729514.
// XFAIL: *
// XTARGET: i386-apple-darwin,x86_64-apple-darwin,i686-apple-darwin
void quarterAsm(int array[], int len)
{
__asm
{
mov esi, array;
mov ecx, len;
shr ecx, 2;
loop:
movdqa xmm... | // RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
// This should not warn about unreferenced label. 7729514.
// XFAIL: *
// XTARGET: x86,i386,i686
void quarterAsm(int array[], int len)
{
__asm
{
mov esi, array;
mov ecx, len;
shr ecx, 2;
loop:
movdqa xmm0, [esi];
psrad xmm0, 2;
movdqa [e... | Fix this XTARGET so that this does doesn't XPASS on non-darwin hosts. | Fix this XTARGET so that this does doesn't XPASS on non-darwin hosts.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108040 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mi... |
061a6dd3104815719c59aa4fed512be64cb2feab | include/nekit/crypto/stream_cipher_interface.h | include/nekit/crypto/stream_cipher_interface.h | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | Add interface for stream cipher | FEAT: Add interface for stream cipher
| C | mit | zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit | |
e36c3d63728197449d4e555823d7d07db16e2c3a | OCMustache/MustacheToken.h | OCMustache/MustacheToken.h | //
// MustacheToken.h
// OCMustache
//
// Created by Wesley Moore on 31/10/10.
// Copyright 2010 Wesley Moore. All rights reserved.
//
#import <Foundation/Foundation.h>
enum mustache_token_type {
mustache_token_type_etag = 1, // Escaped tag
mustache_token_type_utag, // Unescaped tag
mustache_token_type_section... | //
// MustacheToken.h
// OCMustache
//
// Created by Wesley Moore on 31/10/10.
// Copyright 2010 Wesley Moore. All rights reserved.
//
#import <Foundation/Foundation.h>
enum mustache_token_type {
mustache_token_type_etag = 1, // Escaped tag
mustache_token_type_utag, // Unescaped tag
mustache_token_type_section... | Fix type mismatch between property and ivar | Fix type mismatch between property and ivar | C | bsd-3-clause | wezm/OCMustache,wezm/OCMustache |
d4754ea5df0dc77ad9de3d05a36e89ed2a7ebd9b | src/libcsg/modules/io/gmxtopologyreader.h | src/libcsg/modules/io/gmxtopologyreader.h | /*
* Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | /*
* Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | Add unitconverter include to gmx top reader | Add unitconverter include to gmx top reader
| C | apache-2.0 | MrTheodor/csg,MrTheodor/csg,votca/csg,MrTheodor/csg,votca/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,votca/csg |
c33b5c9ef5b597850f66c66e8b68451f15adcfe7 | libyaul/scu/bus/a/cs0/dram-cartridge/dram-cartridge.h | libyaul/scu/bus/a/cs0/dram-cartridge/dram-cartridge.h | /*
* Copyright (c) 2012 Israel Jacques
* See LICENSE for details.
*
* Israel Jacques <mrko@eecs.berkeley.edu>
*/
#ifndef _DRAM_CARTRIDGE_H__
#define _DRAM_CARTRIDGE_H__
extern void dram_init(void);
#endif /* !_DRAM_CARTRIDGE_H_
| /*
* Copyright (c) 2012 Israel Jacques
* See LICENSE for details.
*
* Israel Jacques <mrko@eecs.berkeley.edu>
*/
#ifndef _DRAM_CARTRIDGE_H__
#define _DRAM_CARTRIDGE_H__
extern void dram_cartridge_init(void);
#endif /* !_DRAM_CARTRIDGE_H_
| Change incorrect prototype from 'dram_init(void)' to 'dram_cartridge_init(void)' | Change incorrect prototype from 'dram_init(void)' to 'dram_cartridge_init(void)'
| C | mit | ChillyWillyGuru/libyaul,ChillyWillyGuru/libyaul |
1d37f17343715e08ea2f206f7df4e3c6edf2ecf8 | tests/regression/31-ikind-awars-ints/05-shift.c | tests/regression/31-ikind-awars-ints/05-shift.c | // PARAM: --enable ana.int.interval --enable exp.partition-arrays.enabled --set ana.activated "['base', 'mallocWrapper']"
int main(void) {
// Shifting by a negative number is UB, but we should still not crash on it, but go to top instead
int v = -1;
int r = 17;
int u = r >> v;
}
| Test for shift by negative | Test for shift by negative
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
4a882fe26dab76ae7b0c89459a5808cfef99055a | libyaul/kernel/mm/slob.h | libyaul/kernel/mm/slob.h | /*
* Copyright (c) 2012 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _SLOB_H_
#define _SLOB_H_
#include <stddef.h>
/*-
* Restrictions
*
* 1. Allocation requests bigger than SLOB_PAGE_BREAK_2ND cannot be
* serviced. This is due to the memory block manager... | /*
* Copyright (c) 2012 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _SLOB_H_
#define _SLOB_H_
#include <stddef.h>
/*-
* Restrictions
*
* 1. Heap size limit: Allocation requests bigger than
* SLOB_PAGE_BREAK_2ND cannot be serviced. This is due to the
* ... | Change hard limit on heap | Change hard limit on heap
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
249fbcfbc118c0b6d59cf421ac919d3febf3181f | tests/regression/24-octagon/15-problem-rec2.c | tests/regression/24-octagon/15-problem-rec2.c | // PARAM: --sets solver td3 --set ana.activated "['base','threadid','threadflag','octagon','mallocWrapper']"
// Example from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/recursive-simple/afterrec_2calls-1.c
void f(int);
void f2(int);
void f(int n) {
if (n<3) return;
n--;
f2(n);
assert(1);
}
void f... | Add further issue with recursion | Add further issue with recursion
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
8b3bd1defc7baa4537528fb45e7f8f365407992a | NUCLEO_L053R8/Button_HAL/src/main.c | NUCLEO_L053R8/Button_HAL/src/main.c | /**
* Using the HAL library
*/
#include "stm32l0xx.h"
#include "stm32l0xx_nucleo.h"
int main(void) {
HAL_Init();
BSP_LED_Init(LED2);
while (1) {
BSP_LED_Toggle(LED2);
HAL_Delay(500);
}
}
| /**
* Using the HAL library
*/
#include "stm32l0xx.h"
#include "stm32l0xx_nucleo.h"
GPIO_InitTypeDef GPIO_InitStructure;
int main(void) {
HAL_Init();
BSP_LED_Init(LED2);
// Initialise the button (PC13)
__HAL_RCC_GPIOC_CLK_ENABLE();
GPIO_InitStructure.Pin = GPIO_PIN_13;
GPIO_InitStructure.Mode = GPIO_MODE_IN... | Read the button with the HAL library | Read the button with the HAL library
| C | mit | theapi/stm32,theapi/stm32 |
6e5eac20ada828fb2fbcd6fd262fe07e3d16fc54 | TTKMobile/musicmobileglobaldefine.h | TTKMobile/musicmobileglobaldefine.h | #ifndef MUSICMOBILEGLOBALDEFINE_H
#define MUSICMOBILEGLOBALDEFINE_H
/* =================================================
* This file is part of the TTK Music Player project
* Copyright (c) 2015 - 2017 Greedysky Studio
* All rights reserved!
* Redistribution and use of the source code or any derivative
* works are... | #ifndef MUSICMOBILEGLOBALDEFINE_H
#define MUSICMOBILEGLOBALDEFINE_H
/* =================================================
* This file is part of the TTK Music Player project
* Copyright (c) 2015 - 2017 Greedysky Studio
* All rights reserved!
* Redistribution and use of the source code or any derivative
* works are... | Fix dll import name error[132001] | Fix dll import name error[132001]
| C | lgpl-2.1 | Greedysky/Musicplayer,Greedysky/Musicplayer,Greedysky/Musicplayer |
2d5cecc31b53f508e721e1411faa2455560823f7 | src/extensions/boost_json_spirit.h | src/extensions/boost_json_spirit.h | #include <json_spirit.h>
namespace sqlite {
// json_spirit::mArray
template<> void get_col_from_db(database_binder& db, int inx, json_spirit::mArray& a) {
json_spirit::mValue tmp;
std::string str((char*)sqlite3_column_blob(db._stmt, inx), sqlite3_column_bytes(db._stmt, inx));
json_spirit::read(str, tmp);
... | Boost json::spirit support for mArrays and mObjects | Boost json::spirit support for mArrays and mObjects
| C | mit | aminroosta/sqlite_modern_cpp,zauguin/sqlite_modern_cpp | |
4e0739eb319e4283da0616ac64bd2d65168861ef | src/backend/utils/resource_manager/resource_manager.c | src/backend/utils/resource_manager/resource_manager.c | /*-------------------------------------------------------------------------
*
* resource_manager.c
* GPDB resource manager code.
*
*
* Copyright (c) 2006-2017, Greenplum inc.
*
*
-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/guc.h"
#inclu... | /*-------------------------------------------------------------------------
*
* resource_manager.c
* GPDB resource manager code.
*
*
* Copyright (c) 2006-2017, Greenplum inc.
*
*
-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/guc.h"
#inclu... | Initialize global var to avoid macOS linker error | Initialize global var to avoid macOS linker error
The macOS ld64 linker has an assertion on empty DATA segments
within linker Atoms. This assertion trips on the resource_manager
since it only contains uninitialized variables placed for the BSS
segment. This fails linking the backend on the resource_manager
SUBSYS obje... | C | apache-2.0 | xinzweb/gpdb,xinzweb/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Quikling/gpdb,50wu/gpdb,cjcjameson/gpdb,janebeckman/gpdb,50wu/gpdb,janebeckman/gpdb,ashwinstar/gpdb,Chibin/gpdb,yuanzhao/gpdb,50wu/gpdb,cjcjameson/gpdb,50wu/gpdb,Quikling/gpdb,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,edespino/gpdb,jmcatamney/gpdb,edespino/gpdb... |
4cc26f6ae19b096bae1ec8309671bb415997786c | c_solutions_1-10/Euler_1.c | c_solutions_1-10/Euler_1.c | #include <stdio.h>
#include <time.h>
int multiples_three_five(int limit)
{
long total = 0;
int i;
for (i=1; i < limit; i++)
total += i % 3 == 0 || i % 5 == 0 ? i : 0;
return total;
}
int main(void)
{
clock_t start, stop;
start = clock();
long ans = multiples_three_five(1000);
... | #include <time.h>
#include <stdio.h>
#define NANO 10000000000
int multiples_three_five(int limit)
{
long total = 0;
for (int i=1; i < limit; i++)
total += i % 3 == 0 || i % 5 == 0 ? i : 0;
return total;
}
int main(void)
{
struct timespec start;
clock_gettime(CLOCK_REALTIME, &start);
... | Use WALL time for timer | Use WALL time for timer
| C | mit | tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler |
65931e9f800a97f9fa8af4aa8c26b2ed04ed8eb2 | src/condor_includes/condor_collector.h | src/condor_includes/condor_collector.h | #ifndef __COLLECTOR_H__
#define __COLLECTOR_H__
#include "sched.h"
enum AdTypes
{
STARTD_AD,
SCHEDD_AD,
MASTER_AD,
GATEWAY_AD,
CKPT_SRVR_AD,
NUM_AD_TYPES
};
// collector commands
const int UPDATE_STARTD_AD = 0;
const int UPDATE_SCHEDD_AD = 1;
const int UPDATE_MASTER_AD = 2;... | #ifndef __COLLECTOR_H__
#define __COLLECTOR_H__
#include "sched.h"
enum AdTypes
{
STARTD_AD,
SCHEDD_AD,
MASTER_AD,
GATEWAY_AD,
CKPT_SRVR_AD,
NUM_AD_TYPES
};
#include "condor_commands.h" // collector commands
#endif // __COLLECTOR_H__
| Use condor_commands.h instead of defining commands here. | Use condor_commands.h instead of defining commands here.
| C | apache-2.0 | clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,htcondor/htcondor,bbockelm/condor-network-accounting,djw8605/condor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,htcondor/htcondor... |
d4b91732699737c33c64d949015e0f26bb5f22f2 | doxygen/input/doc_hashing.h | doxygen/input/doc_hashing.h | /**
* @file
* Hashing module documentation file.
*/
/**
* @addtogroup hashing_module Hashing module
*
* The Hashing module provides one-way hashing functions. Such functions can be
* used for creating a hash message authentication code (HMAC) when sending a
* message. Such a HMAC can be used in combination wit... | /**
* @file
* Hashing module documentation file.
*/
/**
* @addtogroup hashing_module Hashing module
*
* The Hashing module provides one-way hashing functions. Such functions can be
* used for creating a hash message authentication code (HMAC) when sending a
* message. Such a HMAC can be used in combination wit... | Update doxygen documentation on HMAC | Update doxygen documentation on HMAC
| C | apache-2.0 | NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls |
b0f91c40ff3f623c03b1ecbe5f929d3ef0b1a063 | as/target/x86/proc.h | as/target/x86/proc.h |
enum args {
AIMM = 1,
AIMM8,
AIMM16,
AIMM32,
AIMM64,
AREG_AX,
AREG_AL,
AREG_AH,
AREG_EAX,
AREG_BC,
AREG_BL,
AREG_BH,
AREG_EBX,
AREG_CX,
AREG_CL,
AREG_CH,
AREG_ECX,
AREG_DX,
AREG_DL,
AREG_DH,
AREG_EDX,
AREG_SI,
AREG_DI,
AREG_SP,
AREG_ESP,
AREG_EBP,
... |
enum args {
AIMM = 1,
AIMM8,
AIMM16,
AIMM32,
AIMM64,
AREG_CS,
AREG_DS,
AREG_SS,
AREG_ES
AREG_FS,
AREG_GS,
AREG_EFLAGS,
AREG_AX,
AREG_AL,
AREG_AH,
AREG_EAX,
AREG_RAX,
AREG_BX,
AREG_BL,
AREG_BH,
AREG_EBX,
AREG_RBX,
AREG_CX,
AREG_CL,
AREG_CH,
AREG_ECX,
A... | Extend list of intel registers | [as] Extend list of intel registers
| C | isc | k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc |
32165dbeaa2f8bac59051b6dc370d478aadc2633 | pixeltypes.h | pixeltypes.h | #ifndef __INC_PIXELS_H
#define __INC_PIXELS_H
#include <stdint.h>
struct CRGB {
union {
struct { uint8_t r; uint8_t g; uint8_t b; };
uint8_t raw[3];
};
};
#ifdef SUPPORT_ARGB
struct CARGB {
union {
struct { uint8_t a; uint8_t g; uint8_t r; uint8_t b; };
uint8_t raw[4];
uint32_t all32;
};
};
#endif
... | #ifndef __INC_PIXELS_H
#define __INC_PIXELS_H
#include <stdint.h>
struct CRGB {
union {
struct { uint8_t r; uint8_t g; uint8_t b; };
uint8_t raw[3];
};
inline uint8_t& operator[] (uint8_t x) __attribute__((always_inline)) { return raw[x]; }
};
#ifdef SUPPORT_ARGB
struct CARGB {
union {
struct { uint8_t a;... | Add raw array access to hsv structure, and operator[] operations to hsv and rgb classes | Add raw array access to hsv structure, and operator[] operations to hsv and rgb classes
| C | mit | liyanage/FastLED,eshkrab/FastLED-esp32,MattDurr/FastLED,NicoHood/FastLED,PaulStoffregen/FastLED,corbinstreehouse/FastLED,remspoor/FastLED,NicoHood/FastLED,felixLam/FastLED,kcouck/FastLED,neographophobic/FastLED,liyanage/FastLED,remspoor/FastLED,tullo-x86/FastLED,corbinstreehouse/FastLED,MattDurr/FastLED,yaneexy/FastLED... |
9dd93ba12825a3aa6af1bfebf40a60292992d971 | creator/plugins/docks/componentsdock/componentsdock.h | creator/plugins/docks/componentsdock/componentsdock.h | /*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied ... | /*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied ... | Make creator compile without being on ahiemstra's machine ;) | Make creator compile without being on ahiemstra's machine ;)
| C | lgpl-2.1 | cgaebel/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,KDE/gluon,KDE/gluon,cgaebel/gluon,KDE/gluon,cgaebel/gluon,cgaebel/gluon |
cd4c34d2a078b78ca31fd3bc5cbb210123dce89d | test/CodeGen/struct-passing.c | test/CodeGen/struct-passing.c | // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: grep 'declare i32 @f0() readnone$' %t
// RUN: grep 'declare i32 @f1() readonly$' %t
// RUN: grep 'declare void @f2(.* sret)$' %t
// RUN: grep 'declare void @f3(.* sret)$' %t
// RUN: grep 'declare void @f4(.* byval)$' %t
// RUN: grep 'declare void ... | // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: grep 'declare i32 @f0() readnone ;' %t
// RUN: grep 'declare i32 @f1() readonly ;' %t
// RUN: grep 'declare void @f2(.* sret) ;' %t
// RUN: grep 'declare void @f3(.* sret) ;' %t
// RUN: grep 'declare void @f4(.* byval) ;' %t
// RUN: grep 'declare ... | Correct this test for the fact that the number of uses is now printed in a comment. | Correct this test for the fact that the number of uses is now printed
in a comment.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@112813 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
6c915905f626c257222181886b7420a9a32d3360 | src/vast/aliases.h | src/vast/aliases.h | #ifndef VAST_ALIASES_H
#define VAST_ALIASES_H
#include <cstdint>
#include <limits>
namespace vast {
/// Uniquely identifies a VAST event.
using event_id = uint64_t;
/// The smallest possible event ID.
static constexpr event_id min_event_id = 1;
/// The largest possible event ID.
static constexpr event_id max_event... | #ifndef VAST_ALIASES_H
#define VAST_ALIASES_H
#include <cstdint>
#include <limits>
namespace vast {
/// Uniquely identifies a VAST event.
using event_id = uint64_t;
/// The invalid event ID.
static constexpr event_id invalid_event_id = 0;
/// The smallest possible event ID.
static constexpr event_id min_event_id =... | Add alias for invalid event ID. | Add alias for invalid event ID.
| C | bsd-3-clause | mavam/vast,pmos69/vast,mavam/vast,mavam/vast,pmos69/vast,pmos69/vast,vast-io/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast |
b90c3bb659a1e0e1f6d1f7715ba96614f25543d3 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 1
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | Change client version number to 1.2.0.0 | Change client version number to 1.2.0.0
| C | mit | TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin |
ee8e471d1b658635f9873faa1b2b5de41770216f | ghighlighter/gh-datastore.h | ghighlighter/gh-datastore.h | #ifndef GH_DATASTORE_H
#define GH_DATASTORE_H
#include <sqlite3.h>
struct reading
{
int id;
char *title;
int readmill_id;
int total_pages;
};
sqlite3 *gh_datastore_open_db (char *data_dir);
int gh_datastore_get_db_version (sqlite3 *db);
void gh_datastore_set_db_version (sqlite3 *db, int version);
#en... | #ifndef GH_DATASTORE_H
#define GH_DATASTORE_H
#include <sqlite3.h>
typedef struct
{
int id;
char *title;
int readmill_id;
int total_pages;
} Reading;
sqlite3 *gh_datastore_open_db (char *data_dir);
int gh_datastore_get_db_version (sqlite3 *db);
void gh_datastore_set_db_version (sqlite3 *db, int versio... | Use typedef for reading struct | Use typedef for reading struct | C | mit | chdorner/ghighlighter-c |
d8d27dc450b5862afa2fbf29579efd70442d0479 | sandbox/linux/services/linux_syscalls.h | sandbox/linux/services/linux_syscalls.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This header will be kept up to date so that we can compile system-call
// policies even when system headers are old.
// System call numbers are acc... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This header will be kept up to date so that we can compile system-call
// policies even when system headers are old.
// System call numbers are acc... | Add ABI check for syscall numbers definitions | [MIPS] Add ABI check for syscall numbers definitions
In file mips_linux_syscalls.h are definitions of syscall
numbers for O32 ABI, so this check is needed in order for
Mips architectures with other ABIs to work properly.
BUG=400684
TEST=compile sandbox_linux_unittest for MIPS32 and MIPS64
Review URL: https://coderev... | C | bsd-3-clause | ondra-novak/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,littlstar/chromium.src,br... |
0b3285c047b003f80ffbecdc86add24a6b6de51c | src/include/gpugrid.h | src/include/gpugrid.h | #ifndef GRIDINF_INCLUDE_GPUGRID_H
#define GRIDINF_INCLUDE_GPUGRID_H
#include "matdim.h"
namespace ginf {
// Mirrors the Grid class, but uses an implementation that is more suitable for GPUs.
template <typename T>
class GpuGrid {
public:
int smModel; // The smoothness cost model
MatDim dimDt, dimSm; // Dimensi... | Add class for representing a Grid on the device | Add class for representing a Grid on the device
| C | mit | evilncrazy/GridInfCuda,evilncrazy/GridInfCuda | |
736dc11a46bbdf20c807bca3e7585367c1fbc117 | lib/ortho/ortho.h | lib/ortho/ortho.h | /* $Id$Revision: */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (c)... | /* $Id$Revision: */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (c)... | Add to comments; remove use of sinfo from calling routines; adjust code to play well with other routing functions; add framework for handling loops | Add to comments;
remove use of sinfo from calling routines;
adjust code to play well with other routing functions;
add framework for handling loops
| C | epl-1.0 | kbrock/graphviz,BMJHayward/graphviz,ellson/graphviz,MjAbuz/graphviz,pixelglow/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,tkelman/graphviz,jho1965us/graphviz,pixelglow/graphviz,MjAbuz/graphviz,tkelman/graphviz,ellson/graphviz,kbrock/graphviz,tkelman/graphviz,BMJHayward... |
ab7b4a594efab038c9b40f52b0a525c445a25d8d | src/ArticleCellView.h | src/ArticleCellView.h | //
// ArticleCellView.h
// PXListView
//
// Adapted from PXListView by Alex Rozanski
// Modified by Barijaona Ramaholimihaso
//
#import <Cocoa/Cocoa.h>
#import "PXListViewCell.h"
#import "ArticleView.h"
@interface ArticleCellView : PXListViewCell
{
AppController * controller;
ArticleView *articleView;
NSProg... | //
// ArticleCellView.h
// PXListView
//
// Adapted from PXListView by Alex Rozanski
// Modified by Barijaona Ramaholimihaso
//
#import <Cocoa/Cocoa.h>
#import "PXListViewCell.h"
#import "ArticleView.h"
@interface ArticleCellView : PXListViewCell
{
AppController * controller;
ArticleView *articleView;
NSProg... | Fix a static analyzer error | Fix a static analyzer error | C | apache-2.0 | Feitianyuan/vienna-rss,josh64x2/vienna-rss,lapcat/vienna-rss,Eitot/vienna-rss,aidanamavi/vienna-rss,iamjasonchoi/vienna-rss,tothgy/vienna-rss,barijaona/vienna-rss,ViennaRSS/vienna-rss,Feitianyuan/vienna-rss,barijaona/vienna-rss,iamjasonchoi/vienna-rss,barijaona/vienna-rss,Eitot/vienna-rss,barijaona/vienna-rss,lapcat/vi... |
38d665c82ba3dedc51f597f519dac84546588638 | include/shmlog_tags.h | include/shmlog_tags.h | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(Headers)
| /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(H_Unknown)
#define HTTPH(a, b) SLTM(b)
#include "http_headers.h... | Use http_headers.h to define HTTP header tags for logging | Use http_headers.h to define HTTP header tags for logging
git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@90 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | varnish/Varnish-Cache,ajasty-cavium/Varnish-Cache,ssm/pkg-varnish,zhoualbeart/Varnish-Cache,franciscovg/Varnish-Cache,ajasty-cavium/Varnish-Cache,ambernetas/varnish-cache,zhoualbeart/Varnish-Cache,gauthier-delacroix/Varnish-Cache,drwilco/varnish-cache-drwilco,drwilco/varnish-cache-drwilco,ssm/pkg-varnish,feld/Varnish-C... |
4ee20e213b952faeaf1beb08b8f78600f6c79f1c | master/mcoils.h | master/mcoils.h | #define _MASTERCOILS
#include <inttypes.h>
//Functions for building requests
extern uint8_t MODBUSBuildRequest01( uint8_t, uint16_t, uint16_t );
extern uint8_t MODBUSBuildRequest05( uint8_t, uint16_t, uint16_t );
extern uint8_t MODBUSBuildRequest15( uint8_t, uint16_t, uint16_t, uint8_t * );
//Functions for parsing r... | #define _MASTERCOILS
#include <inttypes.h>
//Functions for building requests
extern uint8_t MODBUSBuildRequest01( uint8_t, uint16_t, uint16_t );
extern uint8_t MODBUSBuildRequest05( uint8_t, uint16_t, uint16_t );
extern uint8_t MODBUSBuildRequest15( uint8_t, uint16_t, uint16_t, uint8_t * );
//Functions for parsing r... | Add prototypes for functions for parsing slave's responses | Add prototypes for functions for parsing slave's responses
| C | mit | Jacajack/modlib |
15c7a4f2089b5688f7ff3be22fd349d8e3530267 | test/binaryTreeNode.h | test/binaryTreeNode.h |
#include <unordered_set>
#include "../src/include/gc_obj.h"
#include "../src/include/collector.h"
class BinaryTreeNode : public gc_obj {
public:
BinaryTreeNode(const int id);
~BinaryTreeNode() = delete;
int size() const;
void curtailToLevel(const int lvl);
void extendToLevel(const int size,Collector* collector);... |
#include <unordered_set>
#include "../src/include/gc_obj.h"
class BinaryTreeNode : public gc_obj {
public:
BinaryTreeNode(const int id);
int size() const;
void curtailToLevel(const int lvl);
void extendToLevel(const int size);
void addLeftChild(BinaryTreeNode* leftChild);
void addRightChild(BinaryTreeNode* righ... | Remove manual addObject usage from the collector | Remove manual addObject usage from the collector | C | mit | henfredemars/simple-collector |
5c443e8dd6db31588d8926af0ebb6dc60501c5f2 | src/plugins/render/weather/BBCWeatherItem.h | src/plugins/render/weather/BBCWeatherItem.h | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Bastian Holst <bastianholst@gmx.de>
//
#ifndef BBCWEATHERITEM_H
#define BBCWE... | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Bastian Holst <bastianholst@gmx.de>
//
#ifndef BBCWEATHERITEM_H
#define BBCWE... | Add Q_OBJECT macro (requested by lupdate). | Add Q_OBJECT macro (requested by lupdate).
svn path=/trunk/KDE/kdeedu/marble/; revision=1205732
| C | lgpl-2.1 | David-Gil/marble-dev,oberluz/marble,quannt24/marble,adraghici/marble,tzapzoor/marble,rku/marble,tzapzoor/marble,David-Gil/marble-dev,utkuaydin/marble,probonopd/marble,quannt24/marble,adraghici/marble,oberluz/marble,adraghici/marble,utkuaydin/marble,Earthwings/marble,Earthwings/marble,oberluz/marble,tzapzoor/marble,utku... |
b157c4c47402d1086d3324bca15aba09db54e03f | KTp/message-filters-private.h | KTp/message-filters-private.h |
#include "message-processor.h"
class UrlFilter : public AbstractMessageFilter
{
virtual void filterMessage(Message& message);
};
|
#include "message-processor.h"
class UrlFilter : public AbstractMessageFilter
{
virtual void filterMessage(Message& message);
};
class ImageFilter : public AbstractMessageFilter
{
virtual void filterMessage(Message& message);
};
class EmoticonFilter : public AbstractMessageFilter
{
virtual void filterMe... | Create headers for ImageFilter and EmoticonFilter | Create headers for ImageFilter and EmoticonFilter
| C | lgpl-2.1 | KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals |
8b22cf8108255c4771386ad3101e0058684cd757 | SSPSolution/SSPSolution/DebugHandler.h | SSPSolution/SSPSolution/DebugHandler.h | #ifndef SSPAPPLICATION_DEBUG_DEBUGHANDLER_H
#define SSPAPPLICATION_DEBUG_DEBUGHANDLER_H
#include <vector>
#include <iostream>
#include <Windows.h>
class DebugHandler
{
private:
std::vector<LARGE_INTEGER> m_timers;
std::vector<std::string> m_labels;
std::vector<unsigned short int> m_timerMins;
std::vector<unsigned... | #ifndef SSPAPPLICATION_DEBUG_DEBUGHANDLER_H
#define SSPAPPLICATION_DEBUG_DEBUGHANDLER_H
#include <vector>
#include <iostream>
#include <Windows.h>
class DebugHandler
{
private:
std::vector<LARGE_INTEGER> m_timers;
std::vector<std::string> m_labels;
std::vector<unsigned short int> m_timerMins;
std::vector<unsigned... | UPDATE some variable name changes | UPDATE some variable name changes
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
9e08143850140aa3ebc764c25c8ca85ae7e30bdb | hab/proxr/cb-set-resource.c | hab/proxr/cb-set-resource.c | #include <string.h>
#include "proxrcmds.h"
#include "sim-hab.h"
void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value)
{
uint8_t data;
float content;
int id;
bionet_node_t *node;
bionet_value_get_uint8(value, &data);
if(data < 0 || data > 255)
return;
node = bionet_reso... | #include <string.h>
#include "proxrcmds.h"
#include "sim-hab.h"
void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value)
{
float data;
float content;
int id;
bionet_node_t *node;
bionet_value_get_float(value, &data);
if(data < 0 || data > 255)
return;
node = bionet_resour... | Modify set resource. Using floats now. | Modify set resource. Using floats now.
| C | lgpl-2.1 | ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead |
d826393cdebe340b3716002bfb1298ab19b57e83 | include/asm-ia64/resource.h | include/asm-ia64/resource.h | #ifndef _ASM_IA64_RESOURCE_H
#define _ASM_IA64_RESOURCE_H
#include <asm/ustack.h>
#define _STK_LIM_MAX DEFAULT_USER_STACK_SIZE
#include <asm-generic/resource.h>
#endif /* _ASM_IA64_RESOURCE_H */
| #ifndef _ASM_IA64_RESOURCE_H
#define _ASM_IA64_RESOURCE_H
#include <asm/ustack.h>
#include <asm-generic/resource.h>
#endif /* _ASM_IA64_RESOURCE_H */
| Remove stack hard limit on ia64 | [IA64] Remove stack hard limit on ia64
Un-Breaks pthreads, since Oct 2003.
Signed-off-by: Olaf Hering <ded022db89399a060a39da31922f173c6556c2d9@aepfle.de>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Tony Luck <e7984595ec0368ff920a7b3521dc7093683f6f26@int... | C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... |
c098e4740216c0410a474bc54df3f70e91857079 | int2eng/str_util.h | int2eng/str_util.h | //
// str_util.h
// int2eng
//
// Created by Rodrigo Fontes on 17/12/16.
// Copyright © 2016 Rodrigo Fontes. All rights reserved.
//
#ifndef str_util_h
#define str_util_h
#endif /* str_util_h */
| Add header file with useful string functions | Add header file with useful string functions
| C | mit | fontesrp/int2eng | |
312dfd2307f1acc406d61135b91081b3d4115e8a | Settings/Controls/Control.h | Settings/Controls/Control.h | #pragma once
#include <Windows.h>
#include <functional>
#include <string>
class Control {
public:
Control();
Control(int id, HWND parent);
~Control();
virtual RECT Dimensions();
virtual void Enable();
virtual void Disable();
virtual bool Enabled();
virtual void Enabled(bool enabled);... | #pragma once
#include <Windows.h>
#include <functional>
#include <string>
class Control {
public:
Control();
Control(int id, HWND parent);
~Control();
virtual RECT Dimensions();
virtual void Enable();
virtual void Disable();
virtual bool Enabled();
virtual void Enabled(bool enabled);... | Decrease MAX_EDITSTR. Was way too big. | Decrease MAX_EDITSTR. Was way too big.
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX |
9db141ce4a4033e3c1ac5b7b69d55ff85d62a27f | libtu/util.h | libtu/util.h | /*
* libtu/util.h
*
* Copyright (c) Tuomo Valkonen 1999-2002.
*
* You may distribute and modify this library under the terms of either
* the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
*/
#ifndef LIBTU_UTIL_H
#define LIBTU_UTIL_H
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>... | /*
* libtu/util.h
*
* Copyright (c) Tuomo Valkonen 1999-2002.
*
* You may distribute and modify this library under the terms of either
* the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
*/
#ifndef LIBTU_UTIL_H
#define LIBTU_UTIL_H
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>... | Document (lack of) character encoding rules in the API | Document (lack of) character encoding rules in the API
| C | lgpl-2.1 | p5n/notion,dkogan/notion.xfttest,anoduck/notion,anoduck/notion,raboof/notion,knixeur/notion,p5n/notion,dkogan/notion.xfttest,dkogan/notion,dkogan/notion,dkogan/notion.xfttest,neg-serg/notion,anoduck/notion,dkogan/notion,raboof/notion,anoduck/notion,knixeur/notion,dkogan/notion,anoduck/notion,knixeur/notion,neg-serg/not... |
95d75ab83bf01bea87cc27af747e6da9c6c4b19d | ProcessLauncher/Util.h | ProcessLauncher/Util.h | #pragma once
#include <type_traits>
namespace ugly
{
template<typename T> constexpr const bool is_enum_flag = false;
template<typename T = typename std::enable_if<is_enum_flag<T>, T>::type>
class auto_bool
{
private:
T val_;
public:
constexpr auto_bool(T val) : val_(val) {}
... | #pragma once
#include <type_traits>
namespace ugly
{
template<typename T> constexpr const bool is_enum_flag = false;
template<typename T, typename = typename std::enable_if<is_enum_flag<T>>::type>
class auto_bool
{
private:
T val_;
public:
constexpr auto_bool(T val) : val_(val... | Fix bad template SFINAE declaration | Fix bad template SFINAE declaration
| C | mit | Ilod/ugly,Ilod/ugly,Ilod/ugly |
11f5916306e74765f5142ddd326e54ed22346dd5 | kill_file_access.c | kill_file_access.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
#include <limits.h>
/**
* kill processes which access descendants of given directory
*/
int is_number(const char *s)
{
size_t i, len = strlen(s);
for (i = 0; i < len; i++) {
if (!isdigit(s[i]))
return 0;
}
return 1;
}
void kill... | Kill processes which access descendants of given directory | Kill processes which access descendants of given directory
Signed-off-by: Hyeoncheol Lee <38aaa2eac3dc574e617f8f2982b79e2233686085@gmail.com>
| C | mit | 1982bom/linux-practices | |
f3994034c767f5c181d09bdb08e395eb11dfe18e | tests/embedded/main.c | tests/embedded/main.c | /*
* Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
* Copyright © 2009 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#include <hwloc.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_s... | /*
* Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
* Copyright © 2009 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#include <hwloc.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_s... | Add some more print statements to this test, just to help differentiate the output when debugging is enabled | Add some more print statements to this test, just to help
differentiate the output when debugging is enabled
git-svn-id: 14be032f8f42541b1a281b51ae8ea69814daf20e@1752 4b44e086-7f34-40ce-a3bd-00e031736276
| C | bsd-3-clause | BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc |
d9ace0273fba4d7da6da20f36183c2b9bf1ad305 | libevmjit/Common.h | libevmjit/Common.h | #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some lo... | #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some lo... | Fix some GCC initialization warnings | Fix some GCC initialization warnings
| C | mit | ethereum/evmjit,ethereum/evmjit,ethereum/evmjit |
af65de668c8b6ab55e46e07ca5235feee23e86dc | src/GameState.h | src/GameState.h | /******************************************************************************
GameState.h
Game State Management
Copyright (c) 2013 Jeffrey Carpenter
Portions Copyright (c) 2013 Fielding Johnston
******************************************************************************/
#ifndef GAMEAPP_GAMESTATE_HEA... | /******************************************************************************
GameState.h
Game State Management
Copyright (c) 2013 Jeffrey Carpenter
Portions Copyright (c) 2013 Fielding Johnston
******************************************************************************/
#ifndef GAMEAPP_GAMESTATE_HEA... | Rename of Input to HandleInput | Rename of Input to HandleInput
| C | bsd-2-clause | i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib |
6530ca82a95042e90d3cb6147472c8f9768dbfda | nbip4.c | nbip4.c | #define _BSD_SOURCE
#include <stdio.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include "config.h"
#include "common.h"
void printpkt(void)
{
struct ip *iphdr = (struct ip *) pkt;
printf("ip.version=%d "
"ip.ihl=%d "
"ip.tos=%02x "
"ip.length=%d "
"ip.id=%d "
"ip.flags=%d%c%c "
"ip.offset... | #define _BSD_SOURCE
#include <stdio.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include "config.h"
#include "common.h"
void printpkt(void)
{
struct ip *iphdr = (struct ip *) pkt;
printf("ip.version=%u "
"ip.ihl=%u "
"ip.tos=%02x "
"ip.length=%u "
"ip.id=%u "
"ip.flags=%u%c%c "
"ip.offset... | Change printf format %d -> %u | Change printf format %d -> %u
| C | mit | grn/netbox,grn/netbox |
8cb2fd424309fa6ff70cf00bfcedc4e66d3355c0 | platforms/app_fuzz/fuzzer.c | platforms/app_fuzz/fuzzer.c | //
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include <stdint.h>
#include <stddef.h>
#include "wasm3.h"
#define FATAL(...) __builtin_trap()
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{... | //
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include <stdint.h>
#include <stddef.h>
#include "wasm3.h"
#define FATAL(...) __builtin_trap()
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{... | Disable function execution for now, to focus on parsing issues | Disable function execution for now, to focus on parsing issues
| C | mit | wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3 |
649f41482e6114d7bdd67afc311a0eea06cbdeaa | samples/Qt/basic/mythread.h | samples/Qt/basic/mythread.h | #ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include "easylogging++.h"
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This ... | #ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include "easylogging++.h"
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This ... | Remove logger ids loop from sample | Remove logger ids loop from sample
| C | mit | orchid-hybrid/easyloggingpp,orchid-hybrid/easyloggingpp,orchid-hybrid/easyloggingpp |
f932830991824596fcfd635bdc2d4a2d59284f13 | mem/layout.h | mem/layout.h | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Add tools to mark a field as never-non-zero while constructed | Add tools to mark a field as never-non-zero while constructed
| C | apache-2.0 | chromium/subspace,chromium/subspace | |
e5566d834616be80ef5caf4c4713421bdde2e1bb | rpi3/src/gpio_switch.c | rpi3/src/gpio_switch.c | #include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <errno.h>
int main (int argc, char* argv[]){
if (argc < 2){
printf("Error, missing arguments\n");
printf("Convention: \n");
printf("./gpio_switch pin value\n");
return EXIT_SUCCESS;
}else{
int valueFile;
... | Add GPIO Switch first implementation | Add GPIO Switch first implementation
| C | mit | pblottiere/dominus,pblottiere/dominus | |
b6c2b3c712ab2b879b727fdb02dba169695de698 | src/host/os_isfile.c | src/host/os_isfile.c | /**
* \file os_isfile.c
* \brief Returns true if the given file exists on the file system.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include <sys/stat.h>
#include "premake.h"
int os_isfile(lua_State* L)
{
const char* filename = luaL_checkstring(L, 1);
lua_pushboolean(L, do_... | /**
* \file os_isfile.c
* \brief Returns true if the given file exists on the file system.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include <sys/stat.h>
#include "premake.h"
int os_isfile(lua_State* L)
{
const char* filename = luaL_checkstring(L, 1);
lua_pushboolean(L, do_... | Fix do_isfile to support symbolic links on Windows. | Fix do_isfile to support symbolic links on Windows.
| C | bsd-3-clause | mendsley/premake-core,noresources/premake-core,CodeAnxiety/premake-core,bravnsgaard/premake-core,starkos/premake-core,bravnsgaard/premake-core,mendsley/premake-core,TurkeyMan/premake-core,premake/premake-core,noresources/premake-core,resetnow/premake-core,noresources/premake-core,noresources/premake-core,starkos/premak... |
b7ce10aacc06b17d1e47c6da0d00a570e8517566 | kmail/kmversion.h | kmail/kmversion.h | // KMail Version Information
//
#ifndef kmversion_h
#define kmversion_h
#define KMAIL_VERSION "1.8.91"
#endif /*kmversion_h*/
| // KMail Version Information
//
#ifndef kmversion_h
#define kmversion_h
#define KMAIL_VERSION "1.9.50"
#endif /*kmversion_h*/
| Use a fresh version number for the trunk version | Use a fresh version number for the trunk version
svn path=/trunk/KDE/kdepim/; revision=466318
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
f7ee1dbbeb58a7d59fde269e7f11ffbf2e3e9e4a | src/lib/annis/join/nestedloop.h | src/lib/annis/join/nestedloop.h | #pragma once
#include <annis/types.h>
#include <annis/graphstorage/graphstorage.h>
#include <annis/db.h>
#include <annis/iterators.h>
namespace annis
{
class Operator;
/**
* A join that checks all combinations of the left and right matches if their are connected.
*
* @param lhsIdx the column of the ... | #pragma once
#include <annis/types.h>
#include <annis/graphstorage/graphstorage.h>
#include <annis/db.h>
#include <annis/iterators.h>
#include <deque>
namespace annis
{
class Operator;
/**
* A join that checks all combinations of the left and right matches if their are connected.
*
* @param lhsIdx t... | Use a deque instead of a list as inner cache in nested loop. | Use a deque instead of a list as inner cache in nested loop.
| C | apache-2.0 | thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS |
19697a3e104e0152c5e7a121c8cb1b5031fef145 | tests/regression/01-cpa/57-def_exc-interval-inconsistent.c | tests/regression/01-cpa/57-def_exc-interval-inconsistent.c | // PARAM: --enable ana.int.def_exc --enable ana.int.interval --enable ana.sv-comp.functions --set sem.int.signed_overflow assume_none --set ana.int.refinement never
// used to crash in branch when is_bool returned true, but to_bool returned None on (0,[1,1])
// manually minimized from sv-benchmarks/c/recursive/MultComm... | Add test with inconsistent IntDomain crash | Add test with inconsistent IntDomain crash
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
3e6389f02a1cbd5e08f74f4ba362874ecefbe596 | src/win32/timer_win.c | src/win32/timer_win.c | /*
*The MIT License (MIT)
*
* Copyright (c) <2017> <Stephan Gatzka>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, co... | Add stub for windows timer implementation. | Add stub for windows timer implementation.
| C | mit | mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet | |
72ff7ba9c9ed6436625c27b2616d1efb0f782a0a | Pathfinder-Core/include/pathfinder.h | Pathfinder-Core/include/pathfinder.h | #ifndef PATHFINDER_H_DEF
#define PATHFINDER_H_DEF
#include "pathfinder/mathutil.h"
#include "pathfinder/structs.h"
#include "pathfinder/fit.h"
#include "pathfinder/spline.h"
#include "pathfinder/trajectory.h"
#include "pathfinder/modifiers/tank.h"
#include "pathfinder/modifiers/swerve.h"
#include "pathfinder/follow... | #ifndef PATHFINDER_H_DEF
#define PATHFINDER_H_DEF
#ifdef __cplusplus
extern "C" {
#endif
#include "pathfinder/mathutil.h"
#include "pathfinder/structs.h"
#include "pathfinder/fit.h"
#include "pathfinder/spline.h"
#include "pathfinder/trajectory.h"
#include "pathfinder/modifiers/tank.h"
#include "pathfinder/modifier... | Use extern C if C++ | Use extern C if C++
| C | mit | JacisNonsense/Pathfinder,JacisNonsense/Pathfinder,JacisNonsense/Pathfinder |
0cc0c5734bad9e48de66f9293ab89f746c150a05 | tests/regression/02-base/46-spawn-global-funptrs.c | tests/regression/02-base/46-spawn-global-funptrs.c | #include <pthread.h>
#include <assert.h>
void foo() {
assert(1);
}
void bar() {
assert(1);
}
void (*funs[2])() = {
&foo,
&bar
};
extern void magic1();
extern void magic2(void (*funs[])());
void *t_fun(void *arg) {
// just for going to multithreaded mode
return NULL;
}
int main() {
pthread_t id;
p... | Add regression test where known functions in unknown AD should be spawned | Add regression test where known functions in unknown AD should be spawned
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
091e1dd907d7605ff96b7c0e3974aa1a88c73f07 | tests/regression/02-base/82-eq-no-overflow.c | tests/regression/02-base/82-eq-no-overflow.c | // PARAM: --enable ana.int.interval
#include <assert.h>
int main() {
unsigned long x;
x = 0;
int b;
b = x == 7; // NOWARN
if (b)
assert(0); // NOWARN (unreachable)
else
assert(1); // reachable
return 0;
} | Add unsigned eq emits spurious underflow warning | Add unsigned eq emits spurious underflow warning
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
d3a3e46ba364af0320037a8be3159eb238683e51 | linkedLists/addEndNode.c | linkedLists/addEndNode.c | #include<stdio.h>
#include"listHelper.h"
void makeNode(struct linkList **head, struct linkList **tail, int dat)
{
struct linkList *curr;
curr = (struct linkList*)malloc(sizeof(struct linkList));
curr->data = dat;
curr->next = NULL;
if(*he... | Append node to end of the list. | Append node to end of the list. | C | mit | vidya-ranganathan/algorithms | |
014e2375fa4b73feb98cea3a4d69700c4df32514 | ios/Utils/RNSVGVectorEffect.h | ios/Utils/RNSVGVectorEffect.h | /**
* Copyright (c) 2015-present, react-native-community.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
typedef CF_ENUM(int32_t, RNSVGVectorEffect) {
kRNSVGVectorEffectDefault,
kRNSVGVectorEffe... | Implement vectorEffect nonScalingStroke / non-scaling-stroke | [ios] Implement vectorEffect nonScalingStroke / non-scaling-stroke
Add missing header file
| C | mit | msand/react-native-svg,react-native-community/react-native-svg,magicismight/react-native-art-svg,magicismight/react-native-svg,magicismight/react-native-svg,msand/react-native-svg,magicismight/react-native-svg,magicismight/react-native-art-svg,magicismight/react-native-svg,msand/react-native-svg,msand/react-native-svg,... | |
c5bac4e6a4c55baedd93abb0b9e0ad0dcc93a2f3 | macos/compat/sys/types.h | macos/compat/sys/types.h | #ifndef __SYS_TYPES_H__
#define __SYS_TYPES_H__ 1
#include <MacTypes.h>
#include <alloca.h>
#include <string.h>
typedef short int16_t;
typedef long int32_t;
typedef long long int64_t;
#define vorbis_size32_t long
#if defined(__cplusplus)
extern "C" {
#endif
#pragma options ali... | #ifndef __SYS_TYPES_H__
#define __SYS_TYPES_H__ 1
#include <MacTypes.h>
#include <alloca.h>
#include <string.h>
typedef short int16_t;
// typedef long int32_t;
typedef long long int64_t;
#define vorbis_size32_t long
#if defined(__cplusplus)
extern "C" {
#endif
#pragma options ... | Fix osx build (this is going to be removed soon anyways) | Fix osx build (this is going to be removed soon anyways)
| C | bsd-3-clause | jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis |
6944671e2648a0bf4b380865227c3486b0c83612 | pzlib.h | pzlib.h | #ifndef PZLIB_H
#define PZLIB_H
typedef unsigned int psize_type;
typedef int pssize_type;
typedef pssize_type writerfunc(void *cookie, const void *buf, psize_type len);
typedef void closefunc(void*);
struct pz {
writerfunc *wf;
closefunc *cf;
};
inline pssize_type do_write(void *cookie, const void *buf, psiz... | #ifndef PZLIB_H
#define PZLIB_H
typedef unsigned int psize_type;
typedef int pssize_type;
typedef pssize_type writerfunc(void *cookie, const void *buf, psize_type len);
typedef void closefunc(void*);
struct pz {
writerfunc *wf;
closefunc *cf;
};
static inline pssize_type do_write(void *cookie, const void *bu... | Replace inline with static inline to enable DEBUG build (linking actually) | Replace inline with static inline to enable DEBUG build (linking actually)
It's all about bloody C89 vs C99 semantic...
| C | mit | yandex/sdch_module,yandex/sdch_module,yandex/sdch_module,yandex/sdch_module |
65fe3d63f25760fa643c39d665bad6ead63a3e08 | queue.c | queue.c | #include "queue.h"
struct Queue
{
size_t head;
size_t tail;
size_t size;
void** e;
};
Queue* Queue_Create(size_t n)
{
Queue* q = (Queue *)malloc(sizeof(Queue));
q->size = n;
q->head = q->tail = 1;
q->e = (void **)malloc(sizeof(void*) * (n + 1));
return q;
} | #include "queue.h"
struct Queue
{
size_t head;
size_t tail;
size_t size;
void** e;
};
Queue* Queue_Create(size_t n)
{
Queue* q = (Queue *)malloc(sizeof(Queue));
q->size = n;
q->head = q->tail = 1;
q->e = (void **)malloc(sizeof(void*) * (n + 1));
return q;
}
int Queue_Empty(Queue* q)
{
return (q->head == q-... | Add helper function Queue empty implementation | Add helper function Queue empty implementation
| C | mit | MaxLikelihood/CADT |
ddd0a6ac92572a6e6016f5fbc9fda7eaedc7b114 | numpy/core/src/multiarray/buffer.h | numpy/core/src/multiarray/buffer.h | #ifndef _NPY_PRIVATE_BUFFER_H_
#define _NPY_PRIVATE_BUFFER_H_
#ifdef NPY_ENABLE_MULTIPLE_COMPILATION
extern NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#else
NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#endif
#endif
| #ifndef _NPY_PRIVATE_BUFFER_H_
#define _NPY_PRIVATE_BUFFER_H_
#ifdef NPY_ENABLE_SEPARATE_COMPILATION
extern NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#else
NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#endif
#endif
| Fix mispelled separate compilation macro. | Fix mispelled separate compilation macro.
| C | bsd-3-clause | numpy/numpy-refactor,ESSS/numpy,mhvk/numpy,ddasilva/numpy,gmcastil/numpy,sonnyhu/numpy,dwf/numpy,Srisai85/numpy,cjermain/numpy,mindw/numpy,GrimDerp/numpy,matthew-brett/numpy,anntzer/numpy,jorisvandenbossche/numpy,felipebetancur/numpy,mingwpy/numpy,SiccarPoint/numpy,rherault-insa/numpy,pbrod/numpy,pelson/numpy,has2k1/nu... |
7a332a1a17f9026e27b7df22bb44d6532f4232b6 | modlib.c | modlib.c | #include "modlib.h"
uint16_t MODBUSSwapEndian( uint16_t Data )
{
//Change big-endian to little-endian and vice versa
uint8_t Swap;
//Create 2 bytes long union
union Conversion
{
uint16_t Data;
uint8_t Bytes[2];
} Conversion;
//Swap bytes
Conversion.Data = Data;
Swap = C... | #include "modlib.h"
uint16_t MODBUSSwapEndian( uint16_t Data )
{
//Change big-endian to little-endian and vice versa
uint8_t Swap;
//Create 2 bytes long union
union Conversion
{
uint16_t Data;
uint8_t Bytes[2];
} Conversion;
//Swap bytes
Conversion.Data = Data;
Swap = C... | Add cast to uint16_t in CRC function | Add cast to uint16_t in CRC function
| C | mit | Jacajack/modlib |
2240257c7f7cb075b43e844bae0749bd59005c80 | src/GNSMenuDelegate.h | src/GNSMenuDelegate.h | #import <Cocoa/Cocoa.h>
#include <gtk/gtk.h>
#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6)
@interface _GNSMenuDelegate : NSObject <NSMenuDelegate> {}
#else
@interface _GNSMenuDelegate : NSObject {}
#endif
@end
| #import <Cocoa/Cocoa.h>
#include <gtk/gtk.h>
#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5)
@interface _GNSMenuDelegate : NSObject <NSMenuDelegate> {}
#else
@interface _GNSMenuDelegate : NSObject {}
#endif
@end
| Fix minimum version to one that exists in 10.5 | Fix minimum version to one that exists in 10.5
| C | lgpl-2.1 | sharoonthomas/gtk-mac-integration,GNOME/gtk-mac-integration,jralls/gtk-mac-integration,GNOME/gtk-mac-integration,jralls/gtk-mac-integration,sharoonthomas/gtk-mac-integration,GNOME/gtk-mac-integration,jralls/gtk-mac-integration,sharoonthomas/gtk-mac-integration,sharoonthomas/gtk-mac-integration,sharoonthomas/gtk-mac-int... |
b94bcd4c0aa74f4f963aec368f8417add005fafe | lilthumb.h | lilthumb.h | #ifndef lilthumb
#define lilthumb
#include <ctime>
namespace lilthumb{
std::string timeString()
{
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo);
std::string str(buffer);
return str;
}
}
#defi... | #ifndef lilthumb
#define lilthumb
#include <ctime>
#include <ostream>
namespace lilthumb{
std::string timeString()
{
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo);
std::string str(buffer);
re... | Change logger define to namespace stone function | Change logger define to namespace stone function
| C | apache-2.0 | jeromevelut/lilthumb |
3ea520fdbc396ba8d1b859b669d8c16ee34820ad | util/parser/conf.h | util/parser/conf.h | #ifndef __LWP_CONFIG_H
#define __LWP_CONFIG_H
#include <stdint.h>
#include <stdbool.h>
typedef enum{
CFLAG_NWKSKEY = (1<<0),
CFLAG_APPSKEY = (1<<1),
CFLAG_APPKEY = (1<<2),
CFLAG_JOINR = (1<<3),
CFLAG_JOINA = (1<<4),
}config_flag_t;
typedef struct message{
uint8_t *buf;
... | #ifndef __LWP_CONFIG_H
#define __LWP_CONFIG_H
#include <stdint.h>
#include <stdbool.h>
typedef enum{
CFLAG_NWKSKEY = (1<<0),
CFLAG_APPSKEY = (1<<1),
CFLAG_APPKEY = (1<<2),
CFLAG_JOINR = (1<<3),
CFLAG_JOINA = (1<<4),
}config_flag_t;
typedef struct message{
uint8_t *buf;
... | Add motes_abp and motes_otaa link list structure definition. | Add motes_abp and motes_otaa link list structure definition.
| C | mit | JiapengLi/lorawan-parser,JiapengLi/lorawan-parser |
053300cfd6d2800cd3f744b1ffe4deca6c04082c | interpreter/cling/include/cling/Interpreter/RuntimeExceptions.h | interpreter/cling/include/cling/Interpreter/RuntimeExceptions.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_RUNTIME_EXCEPTIONS_... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_RUNTIME_EXCEPTIONS_... | Add missing header method declarations. | Add missing header method declarations.
| C | lgpl-2.1 | sirinath/root,esakellari/root,gganis/root,omazapa/root-old,cxx-hep/root-cern,CristinaCristescu/root,nilqed/root,CristinaCristescu/root,root-mirror/root,sbinet/cxx-root,gganis/root,sawenzel/root,mattkretz/root,thomaskeck/root,buuck/root,abhinavmoudgil95/root,veprbl/root,esakellari/root,agarciamontoro/root,pspe/root,omaz... |
aa81908f7a649ade93036b5f30b91307e20cb464 | include/clang/Rewrite/ASTConsumers.h | include/clang/Rewrite/ASTConsumers.h | //===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix typo spotted by Nico Weber. | Fix typo spotted by Nico Weber.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@117870 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
3a5041e79cbd70903d43608296e5b74e6473bd13 | config.h | config.h | /* Uncomment to compile with tcpd/libwrap support. */
//#define WITH_WRAP
/* Compile with database upgrading support? If disabled, mosquitto won't
* automatically upgrade old database versions. */
#define WITH_DB_UPGRADE
/* Compile with memory tracking support? If disabled, mosquitto won't track
* heap memory usage... | /* Uncomment to compile with tcpd/libwrap support. */
//#define WITH_WRAP
/* Compile with database upgrading support? If disabled, mosquitto won't
* automatically upgrade old database versions. */
//#define WITH_DB_UPGRADE
/* Compile with memory tracking support? If disabled, mosquitto won't track
* heap memory usa... | Disable db upgrade code for the moment. | Disable db upgrade code for the moment.
| C | bsd-3-clause | tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto |
d3e46ddf119944613580925c30d38a0dfa8f380e | test/CodeGen/pr5406.c | test/CodeGen/pr5406.c | // RUN: %clang_cc1 %s -emit-llvm -O0 -o - | FileCheck %s
// PR 5406
// XFAIL: *
// XTARGET: arm
typedef struct { char x[3]; } A0;
void foo (int i, ...);
// CHECK: call void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
int main (void)
{
A0 a3;
a3.x[0] = 0;
a3.x[0] = 0;
a3.x[2] = 26;
foo (1, a3 );
return... | // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
// PR 5406
typedef struct { char x[3]; } A0;
void foo (int i, ...);
// CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, [1 x i32] {{.*}})
int main (void)
{
A0 a3;
a3.x[0] = 0;
a3.x[0] = 0;
a3.x[2] = 26;
foo (1, a3 );
retu... | Add a triple to this test and make sure it passes on arm where it was supposed to. | Add a triple to this test and make sure it passes on arm where it was
supposed to.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136305 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
56b0b9bc9059bb25a5d7ea2ab8723f63fe1fed9f | src/Pomade.c | src/Pomade.c | #include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 }
PBL_APP_INFO(MY_UUID,
"Pomade", "Jon Speicher",
0, 1, /* App version */
DEFAULT_MENU_ICON,
... | #include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 }
PBL_APP_INFO(MY_UUID,
"Pomade", "Jon Speicher",
0, 1, /* App version */
DEFAULT_MENU_ICON,
... | Add framework timer code from Pebble feature_timer demo app | Add framework timer code from Pebble feature_timer demo app
| C | mit | jonspeicher/Pomade,jonspeicher/Pomade,elliots/simple-demo-pebble |
ad5ea012eb6f9ce2ce2ef182a17aab0697e1737d | fq/linked_list_queue.h | fq/linked_list_queue.h |
/*
* Copyright 2017 Brandon Yannoni
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Add header file for linked list queue | Add header file for linked list queue
| C | apache-2.0 | byannoni/qthreads | |
c8801b3611431a17c12c8b0842230ff8cf31033f | compiler/native/src/class/function_header.h | compiler/native/src/class/function_header.h | namespace NJS::Class
{
class Function
{
public:
int cnt = 0;
string code = "[native code]";
void Delete();
Function(void *_f);
void *__NJS_VALUE;
vector<pair<const char *, NJS::VAR>> __OBJECT;
template <class... Args>
NJS::VAR operator()(Args... args);
explicit NJS::Class::Function::operator std::s... | namespace NJS::Class
{
class Function
{
public:
int cnt = 0;
string code = "[native code]";
void Delete();
Function(void *_f);
void *__NJS_VALUE;
vector<pair<const char *, NJS::VAR>> __OBJECT;
template <class... Args>
NJS::VAR operator()(Args... args);
explicit operator std::string() const
{
r... | Add function.toString() and source code if --debug | Add function.toString() and source code if --debug
| C | mit | seraum/nectarjs,seraum/nectarjs,seraum/nectarjs,seraum/nectarjs,seraum/nectarjs |
653f37b8f1aa186ac1234e466dc5246ca34020d9 | webkit/glue/screen_info.h | webkit/glue/screen_info.h | // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#ifndef WEBKIT_GLUE_SCREEN_INFO_H_
#define WEBKIT_GLUE_SCREEN_INFO_H_
#include "base/gfx/rect.h"
namespace webkit_glue {
struct ScreenInfo {
int... | Add missing file. Oops :( | Add missing file. Oops :(
TBR=dglazkov
Review URL: http://codereview.chromium.org/8789
git-svn-id: http://src.chromium.org/svn/trunk/src@4338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 6520b60844230204cf736f17b814d95b6c0e249b | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... | |
685cc22bc92f5b35c9ec6fcc7fe8e65bda3ecf1e | src/math/p_asin.c | src/math/p_asin.c | #include <pal.h>
/**
*
* Caclulates the inverse sine (arc sine) of the argument 'a'. Arguments must be
* in the range -1 to 1. The function does not check for illegal input values.
* Results are in the range -pi/2 to pi/2.
*
* @param a Pointer to input vector
*
* @param c Pointer to output vector
*
*... | #include <math.h>
#include <pal.h>
static const float pi_2 = (float) M_PI / 2.f;
/*
* 0 <= x <= 1
* asin x = pi/2 - (1 - x)^(1/2) * (a0 + a1 * x + ... + a3 * x^3) + e(x)
* |e(x)| <= 5 * 10^-5
*/
static inline float __p_asin_pos(const float x)
{
const float a0 = 1.5707288f;
const float a1 = -0.2121144f;
... | Implement the inverse sine function. | math:asin: Implement the inverse sine function.
Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
| C | apache-2.0 | debug-de-su-ka/pal,8l/pal,eliteraspberries/pal,Adamszk/pal3,8l/pal,Adamszk/pal3,Adamszk/pal3,aolofsson/pal,debug-de-su-ka/pal,mateunho/pal,parallella/pal,parallella/pal,8l/pal,aolofsson/pal,debug-de-su-ka/pal,olajep/pal,mateunho/pal,8l/pal,eliteraspberries/pal,olajep/pal,parallella/pal,parallella/pal,debug-de-su-ka/pal... |
afaa27fd652fbc3555faa92f3e1e16957bafd751 | src/_usage.h | src/_usage.h | /*
* @file _usage.h
* @brief standardize help/usage output across all our programs
* @internal
*
* Copyright 2007 Gentoo Foundation
* Released under the GPLv2
*/
#define getoptstring_COMMON "Ch"
#define longopts_COMMON \
{ "help", 0, NULL, 'h'}, \
{ "nocolor", 0, NULL, 'C'},
#define case_RC_... | Add --nocolor to more programs | Add --nocolor to more programs
| C | bsd-2-clause | dwfreed/openrc,OpenRC/openrc,williamh/openrc,williamh/openrc,williamh/openrc,OpenRC/openrc,dwfreed/openrc,dwfreed/openrc,OpenRC/openrc | |
70c33ced375baeccbb500446a861c7a61d04abc2 | tools/regression/bpf/bpf_filter/tests/test0083.h | tools/regression/bpf/bpf_filter/tests/test0083.h | /*-
* Test 0083: Check that the last instruction is BPF_RET.
*
* $FreeBSD$
*/
/* BPF program */
struct bpf_insn pc[] = {
BPF_JUMP(BPF_JMP+BPF_JA, 0, 0, 0),
};
/* Packet */
u_char pkt[] = {
0x00,
};
/* Packet length seen on wire */
u_int wirelen = sizeof(pkt);
/* Packet length passed on buffer */
u_int buflen ... | /*-
* Test 0083: Check that the last instruction is BPF_RET.
*
* $FreeBSD$
*/
/* BPF program */
struct bpf_insn pc[] = {
BPF_STMT(BPF_LD|BPF_IMM, 0),
};
/* Packet */
u_char pkt[] = {
0x00,
};
/* Packet length seen on wire */
u_int wirelen = sizeof(pkt);
/* Packet length passed on buffer */
u_int buflen = size... | Adjust a test case and make it more jump optimization neutral for JIT case. | Adjust a test case and make it more jump optimization neutral for JIT case.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
ce580a9f30cc5d4058cb650498efe21b63f39d65 | src/toolbox/tbx/dns_cache.h | src/toolbox/tbx/dns_cache.h | /*
Copyright 2016 Vanderbilt University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | /*
Copyright 2016 Vanderbilt University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Add enough space in DNS cache for IPV6 | Add enough space in DNS cache for IPV6
We have code supporting IPV6, but the structs only have enough space for
IPV4.
| C | apache-2.0 | PerilousApricot/lstore,accre/lstore,accre/lstore,PerilousApricot/lstore,tacketar/lstore,tacketar/lstore,PerilousApricot/lstore,accre/lstore,tacketar/lstore,accre/lstore,tacketar/lstore,PerilousApricot/lstore |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.