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 |
|---|---|---|---|---|---|---|---|---|---|
ae5143868081c97304191a55a4ecc3a390fc77e5 | src/MarbleTest.h | src/MarbleTest.h | //
// This file is part of the Marble Desktop 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 2004-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wallin <ingwa@kde.... | //
// This file is part of the Marble Desktop 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 2004-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wallin <ingwa@kde.... | Fix @brief description by making it on one line instead of two | Fix @brief description by making it on one line instead of two
svn path=/trunk/KDE/kdeedu/marble/; revision=879319
| C | lgpl-2.1 | tucnak/marble,David-Gil/marble-dev,utkuaydin/marble,tzapzoor/marble,tucnak/marble,Earthwings/marble,David-Gil/marble-dev,probonopd/marble,quannt24/marble,AndreiDuma/marble,oberluz/marble,oberluz/marble,oberluz/marble,quannt24/marble,tzapzoor/marble,Earthwings/marble,tzapzoor/marble,AndreiDuma/marble,Earthwings/marble,o... |
84562bd91c74c00ad7df15ddb0e2ee8e7d8f49ab | src/debugger_global.h | src/debugger_global.h | #ifndef DEBUGGER_PARSER_GLOBAL_H_
#define DEBUGGER_PARSER_GLOBAL_H_
#include "common.h"
#include <stdio.h>
struct debug_expr {
enum expr_type { EXPR_NULL, EXPR_MEM, EXPR_REG } type;
int32_t val;
};
enum display_type {
DISP_NULL,
DISP_DEC,
DISP_HEX,
DISP_INST,
DISP_max
};
struct debugg... | #ifndef DEBUGGER_PARSER_GLOBAL_H_
#define DEBUGGER_PARSER_GLOBAL_H_
#include "common.h"
#include <stdint.h>
#include <stdio.h>
struct debug_expr {
enum expr_type { EXPR_NULL, EXPR_MEM, EXPR_REG } type;
int32_t val;
};
enum display_type {
DISP_NULL,
DISP_DEC,
DISP_HEX,
DISP_INST,
DISP_m... | Mend missing reference to stdint | Mend missing reference to stdint
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
970d2e0a24d25f61ba31eee9575f73f48dd1102d | src/debugger/utils.h | src/debugger/utils.h | /*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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 o... | /*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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 o... | Add [] operator. Fix potential memory errors. | Add [] operator.
Fix potential memory errors.
| C | apache-2.0 | bgarrels/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,28msec/zorba,28msec/zorba,cezarfx/zorba,bgarrels/zor... |
951007303bdf13ef0f50de7e1b84b766c682e5d3 | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
printf("O número %d é o secreto. Não conta p... | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | Update file, Alura, Introdução a C, Aula 1.5 | Update file, Alura, Introdução a C, Aula 1.5
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
5ac661e80c92e90ae0ed8ba658570db8f76e8490 | modules/acct_rtcp_hep/_acct_rtcp_hep_config.h | modules/acct_rtcp_hep/_acct_rtcp_hep_config.h | static struct hep_ctx ctx = {
.initfails = 0,
.hints = {{ 0 }},
.capt_host = "10.0.0.1",
.capt_port = "9060",
.capt_id = 101,
.hep_version = 3,
.usessl = 0,
.pl_compress = 0,
.sendPacketsCount = 0
};
| static struct hep_ctx ctx = {
.initfails = 0,
.hints = {{ 0 }},
.capt_host = "10.0.0.1",
.capt_port = "9060",
.hints = {{ .ai_socktype = SOCK_DGRAM }},
.capt_id = 101,
.hep_version = 3,
.usessl = 0,
.pl_compress = 0,
.sendPacketsCount = 0... | Add .hints initializer for clarity. | Add .hints initializer for clarity.
| C | bsd-2-clause | dsanders11/rtpproxy,sippy/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy |
a8e112272be9d82ba964e4b1694539b4606b2436 | test/CodeGen/pointer-signext.c | test/CodeGen/pointer-signext.c | // RUN: %clang_cc1 -triple x86_64-pc-win32 -emit-llvm -O2 -o - %s | FileCheck %s
// Under Windows 64, int and long are 32-bits. Make sure pointer math doesn't
// cause any sign extensions.
// CHECK: [[P:%.*]] = add i64 %param, -8
// CHECK-NEXT: [[Q:%.*]] = inttoptr i64 [[P]] to [[R:%.*\*]]
// CHECK-NEXT: {{%.*}... | // RUN: %clang_cc1 -triple x86_64-pc-win32 -emit-llvm -O2 -o - %s | FileCheck %s
// Under Windows 64, int and long are 32-bits. Make sure pointer math doesn't
// cause any sign extensions.
// CHECK: [[P:%.*]] = add i64 %param, -8
// CHECK-NEXT: [[Q:%.*]] = inttoptr i64 [[P]] to [[R:%.*]]*
// CHECK-NEXT: {{%.*}}... | Adjust test case to be compatible with future changes to explicitly pass the type to getelementptr | Adjust test case to be compatible with future changes to explicitly pass the type to getelementptr
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@229196 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
8035340f994f48b8b5f7c0d382517c3243b58ac3 | libpqxx/include/pqxx/util.h | libpqxx/include/pqxx/util.h | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | Allow suppression of "deprecated header" warning | Allow suppression of "deprecated header" warning
| C | bsd-3-clause | jtv/libpqxx,jtv/libpqxx,jtv/libpqxx,jtv/libpqxx |
f16b686efbe6bfe50c1fbb3c5b318c279fc16ec0 | include/rime/common.h | include/rime/common.h | //
// Copyleft RIME Developers
// License: GPLv3
//
// 2011-03-14 GONG Chen <chen.sst@gmail.com>
//
#ifndef RIME_COMMON_H_
#define RIME_COMMON_H_
#include <memory>
#include <utility>
#define BOOST_BIND_NO_PLACEHOLDERS
#include <boost/signals2/connection.hpp>
#include <boost/signals2/signal.hpp>
#ifdef RIME_ENABLE_LOG... | //
// Copyleft RIME Developers
// License: GPLv3
//
// 2011-03-14 GONG Chen <chen.sst@gmail.com>
//
#ifndef RIME_COMMON_H_
#define RIME_COMMON_H_
#include <memory>
#include <utility>
#define BOOST_BIND_NO_PLACEHOLDERS
#include <boost/signals2/connection.hpp>
#include <boost/signals2/signal.hpp>
#ifdef RIME_ENABLE_LOG... | Fix a typo in the comment. | Fix a typo in the comment.
| C | bsd-3-clause | kionz/librime,j717273419/librime,kionz/librime,bygloam/librime,rime/librime,rime/librime,jakwings/librime,bygloam/librime,bygloam/librime,j717273419/librime,rwduzhao/librime,Prcuvu/librime,Prcuvu/librime,j717273419/librime,rwduzhao/librime,rwduzhao/librime,kionz/librime,jakwings/librime,Prcuvu/librime,jakwings/librime,... |
67053fa6cd61e995236f77bd525822a80a2b83aa | src/strategies/BasicRoundStrategy.h | src/strategies/BasicRoundStrategy.h | // This program is free software licenced under MIT Licence. You can
// find a copy of this licence in LICENCE.txt in the top directory of
// source code.
//
#ifndef BASIC_ROUND_STRATEGY_H_INCLUDED
#define BASIC_ROUND_STRATEGY_H_INCLUDED
// Project
#include "globals.h"
#include "RoundStrategy.h"
namespace warlight... | // This program is free software licenced under MIT Licence. You can
// find a copy of this licence in LICENCE.txt in the top directory of
// source code.
//
#ifndef BASIC_ROUND_STRATEGY_H_INCLUDED
#define BASIC_ROUND_STRATEGY_H_INCLUDED
// Project
#include "globals.h"
#include "RoundStrategy.h"
namespace warlight... | Add override after overriden methods | Add override after overriden methods
| C | mit | calincru/Warlight-AI-Challenge-2-Bot,calincru/Warlight-AI-Challenge-2-Bot |
35ae6c5ab2c6945d346a45dedc095dc54f8b8a03 | lib/src/downloader/download-query-loader.h | lib/src/downloader/download-query-loader.h | #ifndef DOWNLOAD_QUERY_LOADER_H
#define DOWNLOAD_QUERY_LOADER_H
#include <QString>
class Site;
class DownloadQueryImage;
class DownloadQueryGroup;
class DownloadQueryLoader
{
public:
static bool load(QString path, QList<DownloadQueryImage> &uniques, QList<DownloadQueryGroup> &batchs, QMap<QString, Site*> &sites)... | #ifndef DOWNLOAD_QUERY_LOADER_H
#define DOWNLOAD_QUERY_LOADER_H
#include <QString>
#include <QList>
#include <QMap>
class Site;
class DownloadQueryImage;
class DownloadQueryGroup;
class DownloadQueryLoader
{
public:
static bool load(QString path, QList<DownloadQueryImage> &uniques, QList<DownloadQueryGroup> &bat... | Include QList and QMap to header file to fix build | Include QList and QMap to header file to fix build
| C | apache-2.0 | Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber |
03c66d522256b7cc8a266625e5f16f4b63b6c303 | 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 | ollie314/server,flynn1973/mariadb-aix,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,natsys/mariadb_10.2,natsys/mariadb_10.2,ollie314/server,ollie314/server,davidl-zend/zenddbi,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,flynn1973/mariadb-aix,davidl-zend/zenddbi,flynn1973/mariadb-aix,davidl... |
8c890982a2aa318fcc632ee616e1c5398fa9eb91 | Settings/Display.h | Settings/Display.h | #pragma once
#include "Tab.h"
class Display : public Tab {
public:
virtual void SaveSettings();
protected:
virtual void Initialize();
virtual void LoadSettings();
private:
bool OnAnimationChanged();
bool OnAnimationSpin(NMUPDOWN *ud);
bool OnCustomCheckChanged();
bool OnPositionChanged()... | #pragma once
#include "Tab.h"
#include <CommCtrl.h>
class Display : public Tab {
public:
virtual void SaveSettings();
protected:
virtual void Initialize();
virtual void LoadSettings();
private:
bool OnAnimationChanged();
bool OnAnimationSpin(NMUPDOWN *ud);
bool OnCustomCheckChanged();
b... | Add constant for spin increment | Add constant for spin increment
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX |
1f1153dc7087845e1909bae381af106d39c13912 | tests/pinocchio/lib.h | tests/pinocchio/lib.h | #include <QtCore/QProcess>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <TelepathyQt4/Client/PendingOperation>
#include <TelepathyQt4/Constants>
#include "tests/lib/test.h"
class PinocchioTest : public Test
{
Q_OBJECT
public:
PinocchioTest(QObject *parent = 0);
virtual ~PinocchioTest()... | #include <QtCore/QProcess>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <TelepathyQt4/Client/PendingOperation>
#include <TelepathyQt4/Constants>
#include "tests/lib/test.h"
class PinocchioTest : public Test
{
Q_OBJECT
public:
PinocchioTest(QObject *parent = 0);
virtual ~PinocchioTest()... | Remove spurious mLoop member from PinocchioTest | Remove spurious mLoop member from PinocchioTest
Having moved mLoop into the parent class, the fact that there's another
one here (uninitialized, and used for about half the functions) breaks
the tests.
| C | lgpl-2.1 | TelepathyIM/telepathy-qt,special/telepathy-qt-upstream,tiagosh/telepathy-qt,TelepathyQt/telepathy-qt,anantkamath/telepathy-qt,anantkamath/telepathy-qt,freedesktop-unofficial-mirror/telepathy__telepathy-qt4,tiagosh/telepathy-qt,TelepathyIM/telepathy-qt,freedesktop-unofficial-mirror/telepathy__telepathy-qt,special/telepa... |
99b0d43bdf67fc060df5e5b541d72e6e3723a391 | chap1/charcount.c | chap1/charcount.c | #include <stdio.h>
int main()
{
long nc = 0;
while (getchar() != EOF) {
++nc;
}
printf("count: %d\n", nc);
}
| #include <stdio.h>
int main()
{
double nc = 0;
for (nc = 0; getchar() != EOF; ++nc)
;
printf("count: %f\n", nc);
}
| Use dirty C tricks to make it smaller | Use dirty C tricks to make it smaller
| C | mit | jabocg/theclang |
9ff982c1ae369eeb29f416251c63721a9c8738bf | test/CodeGen/2009-06-01-addrofknr.c | test/CodeGen/2009-06-01-addrofknr.c | // RUN: clang-cc %s -o %t -emit-llvm -verify
// PR4289
struct funcptr {
int (*func)();
};
static int func(f)
void *f;
{
return 0;
}
int
main(int argc, char *argv[])
{
struct funcptr fp;
fp.func = &func;
fp.func = func;
return 0;
}
| // RUN: clang-cc %s -o %t -emit-llvm -verify
// PR4289
struct funcptr {
int (*func)();
};
static int func(f)
void *f;
{
return 0;
}
int
main(int argc, char *argv[])
{
struct funcptr fp;
fp.func = &func;
fp.func = func;
}
| Revert this, was a bug in my new warning code, not the test case. | Revert this, was a bug in my new warning code, not the test case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@76690 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
ebb0c49aa4b45a4778ec270c99b872873d4d37a6 | starlight.h | starlight.h | #pragma once
#include <string>
#if 0
int Stricmp(const char* str1, const char* str2) {
int d;
while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) {
str1++;
str2++;
}
return d;
}
int Strnicmp(const char* str1, const char* str2, int count) {
int d = 0;
while (count > 0 && (d = toupper(*str2) - toupper... | #pragma once
#include <string>
#if 0
int Stricmp(const char* str1, const char* str2) {
int d;
while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) {
str1++;
str2++;
}
return d;
}
int Strnicmp(const char* str1, const char* str2, int count) {
int d = 0;
while (count > 0 && (d = toupper(*str2) - toupper... | Remove __vectorcall calling convention on older versions of MSVC++ | Remove __vectorcall calling convention on older versions of MSVC++
| C | mit | darkedge/starlight,darkedge/starlight,darkedge/starlight |
77378e0ff43a3fc1074c3eac22dbf25d1686fece | src/imap/cmd-create.c | src/imap/cmd-create.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "mail-namespace.h"
#include "commands.h"
bool cmd_create(struct client_command_context *cmd)
{
struct mail_namespace *ns;
const char *mailbox, *full_mailbox;
bool directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(cmd, 1, &mai... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "mail-namespace.h"
#include "commands.h"
bool cmd_create(struct client_command_context *cmd)
{
struct mail_namespace *ns;
const char *mailbox, *full_mailbox;
bool directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(cmd, 1, &mai... | CREATE ns_prefix/box/ didn't work right when namespace prefix existed. | CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
--HG--
branch : HEAD
| C | mit | dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot |
bf3b21090f3081c379cffb8f28cecfe6cb28591b | 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(HD_Unknown)
SLTM(HD_Lost)
#define HTTPH(a, b, c, d, e, f, g) SL... | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(HD_Unknown)
SLTM(HD_Lost)
#define HTTPH(a, b, c, d,... | Add a Debug shmemlog tag. | Add a Debug shmemlog tag.
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@104 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish |
c0d6f035e91ad580fca2e764c7bbe6c70d4d5c74 | src/condor_includes/condor_syscall_mode.h | src/condor_includes/condor_syscall_mode.h | #ifndef _CONDOR_SYSCALLS_H
#define _CONDOR_SYSCALLS_H
#if defined( AIX32)
# include "syscall.aix32.h"
#else
# include <syscall.h>
#endif
typedef int BOOL;
static const int SYS_LOCAL = 1;
static const int SYS_REMOTE = 0;
static const int SYS_RECORDED = 2;
static const int SYS_MAPPED = 2;
static const int SYS_UNRE... | #ifndef _CONDOR_SYSCALLS_H
#define _CONDOR_SYSCALLS_H
#if defined( AIX32)
# include "syscall.aix.h"
#else
# include <syscall.h>
#endif
typedef int BOOL;
static const int SYS_LOCAL = 1;
static const int SYS_REMOTE = 0;
static const int SYS_RECORDED = 2;
static const int SYS_MAPPED = 2;
static const int SYS_UNRECO... | Make work for AIX machines. | Make work for AIX machines.
| C | apache-2.0 | zhangzhehust/htcondor,zhangzhehust/htcondor,htcondor/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,bbockelm/condor-network-accounting,htcondor/htcondor,djw8605/htcondor,clalancette/condor-dcloud,djw8605/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,djw8605/condor,clalancette... |
f08a19b4cdf0740d852fc4cadf1c27f4cf63cfb9 | libmorton/include/morton_common.h | libmorton/include/morton_common.h | #pragma once
#include <stdint.h>
#if _MSC_VER
#include <intrin.h>
#endif
template<typename morton>
inline bool findFirstSetBit(const morton x, unsigned long* firstbit_location) {
#if _MSC_VER && !_WIN64
// 32 BIT on 32 BIT
if (sizeof(morton) <= 4) {
return _BitScanReverse(firstbit_location, x);
}
// 64 BIT on 3... | #pragma once
// Libmorton - Common helper methods needed in Morton encoding/decoding
#include <stdint.h>
#if _MSC_VER
#include <intrin.h>
#endif
template<typename morton>
inline bool findFirstSetBit(const morton x, unsigned long* firstbit_location) {
#if _MSC_VER && !_WIN64
// 32 BIT on 32 BIT
if (sizeof(morton) <... | Fix MSVC compiler warnings about return value not being a boolean | Fix MSVC compiler warnings about return value not being a boolean
| C | mit | Forceflow/libmorton |
b96e42cf7643421ab923ac1d4bb0119c2f3faa8e | include/tclap/Visitor.h | include/tclap/Visitor.h |
/******************************************************************************
*
* file: Visitor.h
*
* Copyright (c) 2003, Michael E. Smoot .
* All rights reverved.
*
* See the file COPYING in the top directory of this distribution for
* more information.
*
* THE SOFTWARE IS PROVIDED _AS IS_, W... |
/******************************************************************************
*
* file: Visitor.h
*
* Copyright (c) 2003, Michael E. Smoot .
* All rights reverved.
*
* See the file COPYING in the top directory of this distribution for
* more information.
*
* THE SOFTWARE IS PROVIDED _AS IS_, W... | Make "visit" method pure virtual (needs to be implemented by subclass to make sense). | Make "visit" method pure virtual (needs to be implemented by subclass
to make sense).
| C | mit | ufz/tclap,ufz/tclap,mjkoo/tclap,mirror/tclap,ufz/tclap,mirror/tclap,Qointum/tclap,mc-server/TCLAP,xguerin/tclap,mc-server/TCLAP,Qointum/tclap,mirror/tclap,mirror/tclap,mjkoo/tclap,xguerin/tclap,xguerin/tclap,mjkoo/tclap,xguerin/tclap,mc-server/TCLAP,Qointum/tclap |
d8f45f076d3f27ac094acb998c2c457ec2ae105f | RectConfinementForce.h | RectConfinementForce.h | /*===- RectConfinementForce.h - libSimulation -=================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef RECTC... | /*===- RectConfinementForce.h - libSimulation -=================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef RECTC... | Fix direction of rectangular confinement force. | Fix direction of rectangular confinement force. | C | bsd-3-clause | leios/demonsimulationcode,leios/demonsimulationcode |
bf6888b5555a045a90642bf637f1a18f82559bcc | src/arch/microblaze/kernel/interrupt_handler.c | src/arch/microblaze/kernel/interrupt_handler.c | /**
* @file
* @details This file contains @link interrupt_handler() @endlink function.
* It's proxy between asm code and kernel interrupt handler
* @link irq_dispatch() @endlink function.
*
* @date 27.11.09
* @author Anton Bondarev
*/
#include <drivers/irqctrl.h>
#include <asm/msr.h>
/* we havn'... | /**
* @file
* @details This file contains @link interrupt_handler() @endlink function.
* It's proxy between asm code and kernel interrupt handler
* @link irq_dispatch() @endlink function.
*
* @date 27.11.09
* @author Anton Bondarev
*/
#include <drivers/irqctrl.h>
#include <asm/msr.h>
#include <ke... | Fix microblaze build after merge 480c64b | Fix microblaze build after merge 480c64b | C | bsd-2-clause | gzoom13/embox,mike2390/embox,embox/embox,Kefir0192/embox,abusalimov/embox,mike2390/embox,mike2390/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,abusalimov/embox,Kakadu/embox,gzoom13/embox,vrxfile/embox-trik,Kakadu/embox,vrxfile/embox-trik,gzoom13/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,embox/embox,Kakadu/em... |
267980e066f9e8c5df8902cdec2005018f632a4d | simulator/mips/mips.h | simulator/mips/mips.h | /**
* mips.h - all the aliases to MIPS ISA
* @author Aleksandr Misevich
* Copyright 2018 MIPT-MIPS
*/
#ifndef MIPS_H_
#define MIPS_H_
#include "mips_instr.h"
#include <infra/instrcache/instr_cache_memory.h>
template<MIPSVersion VERSION>
struct MIPS
{
using Register = MIPSRegister;
using RegisterUInt = M... | /**
* mips.h - all the aliases to MIPS ISA
* @author Aleksandr Misevich
* Copyright 2018 MIPT-MIPS
*/
#ifndef MIPS_H_
#define MIPS_H_
#include "mips_instr.h"
#include <infra/instrcache/instr_cache_memory.h>
template<MIPSVersion version>
struct MIPS
{
using Register = MIPSRegister;
using RegisterUInt = M... | Rename VERSION to avoid overlapping with external macros | Rename VERSION to avoid overlapping with external macros | C | mit | MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015 |
f585f6437fb528405f2a9afb620b21be21bebfac | src/main.c | src/main.c | #include <stdio.h>
int main(int argc, char *argv[])
{
printf("gxtas - The GTA Text Assembler\n");
return 0;
}
| /*
* Copyright (c) 2017 Wes Hampson <thehambone93@gmail.com>
*
* Licensed under the MIT License. See LICENSE at top level directory.
*/
#include <stdio.h>
#include <string.h>
#include "gxtas.h"
void show_help_info(void)
{
printf("%s\n", GXTAS_HELP_MESSAGE);
}
void show_version_info(void)
{
printf("%s - ... | Add license header, add version and help info | Add license header, add version and help info
| C | mit | thehambone93/gxtmaker,thehambone93/gxtmaker |
0f262e2c5921e8febea95f259c41302714de5a6a | src/settings/types/Ratio.h | src/settings/types/Ratio.h | //Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifndef RATIO_H
#define RATIO_H
namespace cura
{
/*
* \brief Represents a ratio between two numbers.
*
* This is a facade. It behaves like a double.
*/
struct Ratio
{
/*
* \brief Default constructor set... | //Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifndef RATIO_H
#define RATIO_H
namespace cura
{
/*
* \brief Represents a ratio between two numbers.
*
* This is a facade. It behaves like a double.
*/
struct Ratio
{
/*
* \brief Default constructor set... | Add operators for arithmetic with ratios | Add operators for arithmetic with ratios
Contributes to issue CURA-4410.
| C | agpl-3.0 | Ultimaker/CuraEngine,Ultimaker/CuraEngine |
472c06e90366bc906d48caac6d9e6320e4823116 | include/rocksdb/perf_level.h | include/rocksdb/perf_level.h | // Copyright (c) 2011-present, 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.
#ifndef INCLUDE_ROCKSDB... | // Copyright (c) 2011-present, 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.
#ifndef INCLUDE_ROCKSDB... | Add low and upper bound values for rocksdb::PerfLevel enum | Add low and upper bound values for rocksdb::PerfLevel enum
Summary:
Add under and over limits for rocksdb::PerfLevel enum
to allow us to do boundary checks before casting ints or unints
to this enum.
Test Plan: make all check -j32
Reviewers: sdong
Reviewed By: sdong
Subscribers: andrewkr, dhruba, leveldb
Differen... | C | bsd-3-clause | wenduo/rocksdb,facebook/rocksdb,hobinyoon/rocksdb,hobinyoon/rocksdb,hobinyoon/rocksdb,SunguckLee/RocksDB,norton/rocksdb,wat-ze-hex/rocksdb,norton/rocksdb,wat-ze-hex/rocksdb,norton/rocksdb,SunguckLee/RocksDB,vmx/rocksdb,wenduo/rocksdb,SunguckLee/RocksDB,wat-ze-hex/rocksdb,ryneli/rocksdb,hobinyoon/rocksdb,bbiao/rocksdb,A... |
eb7a693e0f6de7f3baf55f4fc3a744d6b2863c26 | include/encode/SkWebpEncoder.h | include/encode/SkWebpEncoder.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkWebpEncoder_DEFINED
#define SkWebpEncoder_DEFINED
#include "SkEncoder.h"
class SkWStream;
namespace SK_API SkWebpEncoder {
struct Options {
/**
... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkWebpEncoder_DEFINED
#define SkWebpEncoder_DEFINED
#include "SkEncoder.h"
class SkWStream;
namespace SkWebpEncoder {
struct SK_API Options {
/**
... | Move SK_API from namespace to function | Move SK_API from namespace to function
Bug: skia:
Change-Id: Ib538b77c28e323bbcc40634b0f3cd87d88d898e8
Reviewed-on: https://skia-review.googlesource.com/16496
Reviewed-by: Mike Reed <f5cabf8735907151a446812c9875d6c0c712d847@google.com>
Reviewed-by: Matt Sarett <bb43c9b8214fcf1292f134c9714ba8a0e7075913@google.com>
Comm... | C | bsd-3-clause | google/skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,HalCanary/skia-hc,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia... |
b020472a9ad91dd6a7d950aeeb49af36170cd334 | src/tests/marquise_util_test.c | src/tests/marquise_util_test.c | #include <glib.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../marquise.h"
extern uint8_t valid_namespace(char *namespace);
extern char* build_spool_path(const char *spool_prefix, char *namespace);
void test_valid_namespace() {
int ret = valid_namespace("abcdefghijklmn12345");
g_assert_... | #include <glib.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../marquise.h"
extern uint8_t valid_namespace(char *namespace);
extern char* build_spool_path(const char *spool_prefix, char *namespace);
void test_valid_namespace() {
int ret = valid_namespace("abcdefghijklmn12345");
g_assert_... | Add test for spool path construction | Add test for spool path construction
Signed-off-by: Sharif Olorin <f4e2cff0138e8cd5600e8ca295bf078683584659@tesser.org>
| C | bsd-3-clause | anchor/libmarquise,anchor/libmarquise |
41f5a8559f2909ca28cffaa73eb138d6811a598c | elixir/src/main.c | elixir/src/main.c | // Regular C libs
#include <stdio.h>
// Elixir libs -- clang doesn't know where the hell this is
#include "erl_nif.h"
static ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {
}
| // Regular C libs
#include <stdio.h>
// Elixir libs -- clang doesn't know where the hell this is
#include "erl_nif.h"
// Needs to figure out what ERL_NIF_TERM means
static ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {
}
static ErlNifFuncs funcs[] = {
{"hello", 2, hello}
};
ERL_NIF_INIT... | Add basic setup for Elixir binding | Add basic setup for Elixir binding
| C | unlicense | bentranter/binding,bentranter/binding,bentranter/binding |
943c83c4943e375b18858c770378b2a74cadf74e | doc/doxy_examples.c | doc/doxy_examples.c | /** \defgroup mpg123_examples example programs using libmpg123
@{ */
/** \file mpg123_to_wav.c A simple MPEG audio to WAV converter using libmpg123 (read) and libsndfile (write).
...an excersize on two simple APIs. */
/** \file mpglib.c Example program mimicking the old mpglib test program.
It takes an MPEG bit... | /** \defgroup mpg123_examples example programs using libmpg123
@{ */
/** \file mpg123_to_wav.c A simple MPEG audio to WAV converter using libmpg123 (read) and libsndfile (write).
...an excersize on two simple APIs. */
/** \file mpglib.c Example program mimicking the old mpglib test program.
It takes an MPEG bit... | Add feedseek example to API docs. | Add feedseek example to API docs.
git-svn-id: 793bb72743a407948e3701719c462b6a765bc435@2963 35dc7657-300d-0410-a2e5-dc2837fedb53
| C | lgpl-2.1 | Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123 |
f6db8b91f5cfb6203727754f5e1cf2a666a1cdba | BoxContentSDK/BoxContentSDK/QueueManagers/BOXAPIAccessTokenDelegate.h | BoxContentSDK/BoxContentSDK/QueueManagers/BOXAPIAccessTokenDelegate.h | //
// BOXAPIAccessTokenDelegate.h
// BoxContentSDK
//
// Created by Andrew Chun on 6/6/15.
// Copyright (c) 2015 Box. All rights reserved.
//
/**
* App Users are full-featured enterprise Box accounts that belong to your application not a Box user. Unlike typical Box accounts,
* these accounts do not have an ass... | //
// BOXAPIAccessTokenDelegate.h
// BoxContentSDK
//
// Created by Andrew Chun on 6/6/15.
// Copyright (c) 2015 Box. All rights reserved.
//
/**
* App Users are full-featured enterprise Box accounts that belong to your application not a Box user. Unlike typical Box accounts,
* these accounts do not have an ass... | Update the App Users documentation links | Update the App Users documentation links | C | apache-2.0 | box/box-ios-sdk,box/box-ios-sdk,box/box-ios-sdk |
41cdace7b9f4caf0e21119996ca2d8696c6abae0 | mud/home/Http/lib/form/thing.c | mud/home/Http/lib/form/thing.c | inherit "/lib/string/sprint";
inherit "../support";
static string thing_form(object obj)
{
string buffer;
buffer = "<h1>Object form</h1>\n";
buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n";
buffer += "<p>Mass: <input type=\"text\" name=\"mass\" value=\"" + mixed_sprint(o... | inherit "/lib/string/sprint";
inherit "../support";
static string thing_form(object obj)
{
string buffer;
buffer = "<h1>Object form</h1>\n";
buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n";
buffer += "Mass: <input type=\"text\" name=\"mass\" value=\"" + mixed_sprint(obj-... | Allow local mass and mass to be set separately by form | Allow local mass and mass to be set separately by form
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
77645b99f438be1a0906126be8052ad36761b1cd | src/include/port/bsdi.h | src/include/port/bsdi.h | #if defined(__i386__)
#define NEED_I386_TAS_ASM
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
| #if defined(__i386__)
#define NEED_I386_TAS_ASM
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
/* This is marked as obsoleted in BSD/OS 4.3. */
#ifndef EAI_ADDRFAMILY
#define EAI_ADDRFAMILY 1
#endif
| Add define for missing EAI_ADDRFAMILY in BSD/OS 4.3. | Add define for missing EAI_ADDRFAMILY in BSD/OS 4.3.
| C | agpl-3.0 | tpostgres-projects/tPostgres,yuanzhao/gpdb,chrishajas/gpdb,ahachete/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,foyzur/gpdb,atris/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,postmind-net/postgres-xl,50wu/gpdb,rvs/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,Chibin/gpdb,Quikling/gpdb... |
4b32efb0f13060b1769d65a16a952b9b02b873a7 | src/lib/mkdir-parents.c | src/lib/mkdir-parents.c | /* Copyright (c) 2003 Timo Sirainen */
#include "lib.h"
#include "mkdir-parents.h"
#include <sys/stat.h>
int mkdir_parents(const char *path, mode_t mode)
{
const char *p;
if (mkdir(path, mode) < 0 && errno != EEXIST) {
if (errno != ENOENT)
return -1;
p = strrchr(path, '/');
if (p == NULL || p == path)
... | /* Copyright (c) 2003 Timo Sirainen */
#include "lib.h"
#include "mkdir-parents.h"
#include <sys/stat.h>
int mkdir_parents(const char *path, mode_t mode)
{
const char *p;
/* EISDIR check is for BSD/OS which returns it if path contains '/'
at the end and it exists. */
if (mkdir(path, mode) < 0 && errno != EEX... | Check for EISDIR error as well. Fixed problems with BSD/OS. | Check for EISDIR error as well. Fixed problems with BSD/OS.
--HG--
branch : HEAD
| C | mit | dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,dscho/dovecot,jwm/dovecot-notmuch |
c504a5c47a93476f4e28208bd8307e79e7340db0 | JPetReaderInterface/JPetReaderInterface.h | JPetReaderInterface/JPetReaderInterface.h | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | Change int to long long | Change int to long long
| C | apache-2.0 | alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework |
e192c702e056dd62480ac3a31fe44a4038d5cb0e | modules/template/src/hello.c | modules/template/src/hello.c | /*
* Sample MPI "hello world" application in C
*
* J. Hursey
*
*/
#include <stdio.h>
#include "mpi.h"
int main(int argc, char* argv[])
{
int rank, size, len;
char processor[MPI_MAX_PROCESSOR_NAME];
/*
* Initialize the MPI library
*/
MPI_Init(&argc, &argv);
/*
* Get my 'rank' ... | /*
* Sample MPI "hello world" application in C
*
* J. Hursey
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "mpi.h"
int main(int argc, char* argv[])
{
int rank, size, len;
char processor[MPI_MAX_PROCESSOR_NAME];
char *name = NULL;
/*
* Initialize the MPI library
... | Add an optional command line parameter to demostrate a custom form field | Add an optional command line parameter to demostrate a custom form field
| C | bsd-3-clause | OnRampOrg/onramp,OnRampOrg/onramp,ssfoley/onramp,koepked/onramp,koepked/onramp,koepked/onramp,koepked/onramp,koepked/onramp,ssfoley/onramp,OnRampOrg/onramp,OnRampOrg/onramp,koepked/onramp,ssfoley/onramp,OnRampOrg/onramp,OnRampOrg/onramp,ssfoley/onramp,OnRampOrg/onramp |
90fd5ea47ef2c91bc908165a9acd946977155e86 | include/flatcc/portable/pstdalign.h | include/flatcc/portable/pstdalign.h | #ifndef PSTDALIGN_H
#define PSTDALIGN_H
#ifndef __alignas_is_defined
#ifndef __cplusplus
#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L)
/* C11 or newer */
#include <stdalign.h>
#else
#if defined(__GNUC__) || defined (__IBMC__) || defined(__clang__)
#define _Alignas(... | #ifndef PSTDALIGN_H
#define PSTDALIGN_H
#ifndef __alignas_is_defined
#ifndef __cplusplus
#if ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) || defined(__IBMC__)
#undef PORTABLE_C11_STDALIGN_MISSING
#define PORTABLE_C11_STDALIGN_MISSING
#endif
#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__)... | Handle C11 compilers witout stdalign | Handle C11 compilers witout stdalign
| C | apache-2.0 | dvidelabs/flatcc,skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc |
9ebd09954a3b53fa5d87e8e3f1b1bb49c15b62e5 | PolyMapGenerator/LineEquation.h | PolyMapGenerator/LineEquation.h | #ifndef LINE_EQUATION_H
#define LINE_EQUATION_H
#include "Vector2.h"
class LineEquation
{
public:
LineEquation();
LineEquation(Vector2 a, Vector2 b);
LineEquation(Vector2 p, double m);
~LineEquation();
LineEquation(const LineEquation& e);
LineEquation(LineEquation&& e);
LineEquation& operator=(const LineEq... | #ifndef LINE_EQUATION_H
#define LINE_EQUATION_H
#include "Vector2.h"
class LineEquation
{
public:
LineEquation();
LineEquation(Vector2 p1, Vector2 p2);
LineEquation(Vector2 p, double m);
~LineEquation();
LineEquation(const LineEquation& e);
LineEquation(LineEquation&& e);
LineEquation& operator=(const Line... | Modify parameter's name (name conflict) | Modify parameter's name (name conflict)
| C | mit | utilForever/PolyMapGenerator |
87239eaa106a3d4ada4f538b885d9372afa93c6c | include/GLState.h | include/GLState.h | //
// Created by Asger Nyman Christiansen on 08/01/2017.
// Copyright © 2017 Asger Nyman Christiansen. All rights reserved.
//
#pragma once
namespace gle
{
class GLState
{
public:
static void cull_back_faces(bool enable)
{
static bool currently_enabled = true;
if(... | //
// Created by Asger Nyman Christiansen on 08/01/2017.
// Copyright © 2017 Asger Nyman Christiansen. All rights reserved.
//
#pragma once
namespace gle
{
class GLState
{
public:
static void cull_back_faces(bool enable)
{
static bool currently_enabled = false;
if... | Correct initialisation of cull back faces. | Bugfix: Correct initialisation of cull back faces.
| C | mit | asny/GLEngine |
7f34eeef5436765c791931b8a75fce002bf9e13a | src/app_mt/temp_profile.c | src/app_mt/temp_profile.c |
#include "temp_profile.h"
#include "sntp.h"
float
temp_profile_get_current_setpoint(const temp_profile_t* profile)
{
int i;
uint32_t duration_into_profile = sntp_get_time() - profile->start_time;
uint32_t step_begin = 0;
float last_temp = profile->start_value.value;
for (i = 0; i < profile->num_steps; ++i... |
#include "temp_profile.h"
#include "sntp.h"
float
temp_profile_get_current_setpoint(const temp_profile_t* profile)
{
int i;
uint32_t duration_into_profile = sntp_get_time() - profile->start_time;
uint32_t step_begin = 0;
float last_temp = profile->start_value.value;
for (i = 0; i < profile->num_steps; ++i... | Fix temp profile setpoint interpolation. | Fix temp profile setpoint interpolation. | C | mit | brewbit/model-t,brewbit/model-t,brewbit/model-t |
25b8cee970500b0b82324807ad058d55ce10be41 | src/ios/ChromeBluetooth.h | src/ios/ChromeBluetooth.h | @interface ChromeBluetooth : CDVPlugin {
}
#pragma mark chrome.bluetoothLowEnergy interface
// chrome.bluetooth and chrome.bluetoothLowEnergy uses same file because connect, and disconnect
// a deivce requires the same instance of CBCentralManager that found the device.
- (void)connect:(CDVInvokedUrlCommand*)com... | @interface ChromeBluetooth : CDVPlugin {
}
#pragma mark chrome.bluetoothLowEnergy interface
// chrome.bluetooth and chrome.bluetoothLowEnergy uses same file because connect, and disconnect
// a deivce requires the same instance of CBCentralManager that found the device.
- (void)connect:(CDVInvokedUrlCommand*)com... | Fix up missing newlines at eof | Fix up missing newlines at eof
| C | bsd-3-clause | pwnall/cordova-plugin-chrome-apps-bluetooth,MobileChromeApps/cordova-plugin-chrome-apps-bluetooth,pwnall/cordova-plugin-chrome-apps-bluetooth,MobileChromeApps/cordova-plugin-chrome-apps-bluetooth |
bb50e22fd3ad82381dbf750a790b8380a1a1bba5 | src/get_load.c | src/get_load.c | // vim:ts=8:expandtab
#include "i3status.h"
const char *get_load() {
static char part[512];
/* Get load */
#ifdef LINUX
slurp("/proc/loadavg", part, sizeof(part));
*skip_character(part, ' ', 3) = '\0';
#else
/* TODO: correctly check for NetBSD, check if it works the same on *BSD */
... | // vim:ts=8:expandtab
#include "i3status.h"
#include <err.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
const char *get_load() {
static char part[512];
/* Get load */
#if defined(__FreeBSD__) || defined(linux) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(sun)... | Use getloadavg() instead of using /proc, patch by Baptiste Daroussin | Use getloadavg() instead of using /proc, patch by Baptiste Daroussin
| C | bsd-3-clause | mkroman/i3status,dj95/i3status,lexszero/i3status,DSMan195276/i3status,afh/i3status,opntr/i3status,Watcom/i3status,lastorset/i3status,Yuhta/i3status,opntr/i3status,rpetrano/i3status,JSmith-BitFlipper/i3status,Gravemind/i3status,puiterwijk/i3status,rpetrano/i3status,i3/i3status,stettberger/i3status,lexszero/i3status,lahw... |
3893e7e397b3932a3e6e604d2e7a82b260a1133e | 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 | ndmsystems/uClibc,wbx-github/uclibc-ng,klee/klee-uclibc,mephi42/uClibc,waweber/uclibc-clang,groundwater/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-xtensa/uClibc,ysat0/uClibc,hwoarang/uClibc,klee/klee-uclibc,kraj/uClibc,gittup/uClibc,czankel/xtensa-uclibc,groundwater/uClibc,foss-xtensa/uClibc,groundwater/uClibc,skristiansson... |
5781c503d06f05637262564eafbb324adb39b344 | SVNetworking/SVNetworking/SVNetworking.h | SVNetworking/SVNetworking/SVNetworking.h | //
// SVNetworking.h
// SVNetworking
//
// Created by Nate Stedman on 3/14/14.
// Copyright (c) 2014 Svpply. All rights reserved.
//
#import <SVNetworking/NSObject+SVBindings.h>
#import <SVNetworking/NSObject+SVMultibindings.h>
#import <SVNetworking/SVDataRequest.h>
#import <SVNetworking/SVDiskCache.h>
#import <SV... | //
// SVNetworking.h
// SVNetworking
//
// Created by Nate Stedman on 3/14/14.
// Copyright (c) 2014 Svpply. All rights reserved.
//
#import <SVNetworking/NSObject+SVBindings.h>
#import <SVNetworking/NSObject+SVMultibindings.h>
#import <SVNetworking/SVDataRequest.h>
#import <SVNetworking/SVDiskCache.h>
#import <SV... | Add new resource classes to the header. | Add new resource classes to the header.
| C | bsd-3-clause | eBay/SVNetworking,eBay/SVNetworking |
5031c46ec40984d57fd0e4a1e53dc3490603b2ae | test/PCH/asm.c | test/PCH/asm.c | // Test this without pch.
// RUN: clang-cc -include %S/asm.h -fsyntax-only -verify %s &&
// Test with pch.
// RUN: clang-cc -emit-pch -o %t %S/asm.h &&
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
void call_f(void) { f(); }
void call_clobbers(void) { clobbers(); }
| // Test this without pch.
// RUN: clang-cc -triple i386-unknown-unknown -include %S/asm.h -fsyntax-only -verify %s &&
// Test with pch.
// RUN: clang-cc -triple i386-unknown-unknown -emit-pch -o %t %S/asm.h &&
// RUN: clang-cc -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s
void call_f(void) {... | Make this test portable to non-x86 hosts, patch by Mark Cianciosa! | Make this test portable to non-x86 hosts, patch by Mark Cianciosa!
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@71146 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
3624f96f852e276f9fc7731b9c43a9de42dd8983 | test/helpers-Server.c | test/helpers-Server.c | #include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "Server.h"
char char_of_uint8(uint8_t x) {
return (char) x;
}
uint32_t bufstrcpy(char *dst, const char *src) {
/* The F* precondition guarantees that src is zero-terminated */
return sprintf(dst, "%s", src);
}
uint32_t print_u32(char *dst, ... | #include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "Server.h"
uint32_t bufstrcpy(char *dst, const char *src) {
/* The F* precondition guarantees that src is zero-terminated */
return sprintf(dst, "%s", src);
}
uint32_t print_u32(char *dst, uint32_t i) {
return sprintf(dst, "%"PRIu32, i);
}
| Remove function now implemented in kremlib | Remove function now implemented in kremlib
| C | apache-2.0 | FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin |
82b3f8023289175cf756187ab35318066715f430 | src/modules/conf_theme/e_int_config_theme.h | src/modules/conf_theme/e_int_config_theme.h | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void... | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void... | Declare public function in header. | Declare public function in header.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@35475 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
f755ecfb8cec7b19dff84295309f2afb24a5afd1 | arch/powerpc/platforms/pseries/of_helpers.c | arch/powerpc/platforms/pseries/of_helpers.c | #include <linux/string.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
#include "of_helpers.h"
/**
* pseries_of_derive_parent - basically like dirname(1)
* @path: the full_name of a node to be added to the tree
*
* Returns the node which should be the parent of the node
* described by pa... | #include <linux/string.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
#include "of_helpers.h"
/**
* pseries_of_derive_parent - basically like dirname(1)
* @path: the full_name of a node to be added to the tree
*
* Returns the node which should be the parent of the node
* described by pa... | Correct string length in pseries_of_derive_parent() | powerpc/pseries: Correct string length in pseries_of_derive_parent()
Commit a030e1e4bbd085bbcfd0a23f8d355fcd41f39bed make a change to use
kstrndup() instead of kmalloc() + strlcpy() in the pseries_of_derive_parent()
routine that introduces a subtle change in the parent path name generated.
The kstrndup() routine will ... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
3151c3c004a5edac53a35a9a017cd7b9229cc85b | runtime/runtime_vars.c | runtime/runtime_vars.c |
#include "gc.h"
#include "runtime_vars.h"
#include "scheduler.h"
GC_Env* __get_GC_Env()
{
#ifdef MULTITHREAD
return get_currentthread()->gcEnv;
#else
return currentthread->gcEnv;
#endif
}
|
#include "gc.h"
#include "runtime_vars.h"
#include "scheduler.h"
GC_Env* __get_GC_Env()
{
#ifdef MULTITHREAD
return get_currentthread()->gcEnv;
#else
return currentthread->gcEnv;
#endif
}
ThreadData* __mellow_get_cur_green_thread()
{
#ifdef MULTITHREAD
return get_currentthread();
#else
return current... | Add function to get current green thread at-will | Add function to get current green thread at-will
| C | mit | Mellow-Programming-Language/Mellow,Mellow-Programming-Language/Mellow,Mellow-Programming-Language/Mellow |
54fcf270dee6ed9d27e23b94129788b758df1e6b | include/uapi/linux/cifs/cifs_mount.h | include/uapi/linux/cifs/cifs_mount.h | /*
* include/uapi/linux/cifs/cifs_mount.h
*
* Author(s): Scott Lovenberg (scott.lovenberg@gmail.com)
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 ... | /*
* include/uapi/linux/cifs/cifs_mount.h
*
* Author(s): Scott Lovenberg (scott.lovenberg@gmail.com)
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 ... | Expand max share name length to 256 | cifs: Expand max share name length to 256
The old max share name length limit was 80 due to Windows NET SHARE
command not allowing more than that. However, share names can be much
longer. This is a more reasonable maximum share name length.
Signed-off-by: Scott Lovenberg <15023d7c1da44acb5cafa0fa8ca989be856d31b9@gm... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
13f68420e7b441d5364055f2cc50f14e7b547f76 | vp8/common/opencl/idctllm_cl.h | vp8/common/opencl/idctllm_cl.h | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | Declare C fallbacks in IDCT header. | Declare C fallbacks in IDCT header.
| C | bsd-3-clause | awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl |
1475e4c1f1ae295038b97cbb8cdcdd42e9e27cf1 | common/network/packet_type.h | common/network/packet_type.h | #ifndef __PACKET_TYPE_H__
#define __PACKET_TYPE_H__
enum PacketType
{
INVALID,
USER,
SHARED_MEM_REQ,
SHARED_MEM_EVICT,
SHARED_MEM_RESPONSE,
SHARED_MEM_UPDATE_UNEXPECTED,
SHARED_MEM_ACK,
SHARED_MEM_TERMINATE_THREADS,
MCP_REQUEST_TYPE,
MCP_RESPONSE_TYPE,
MCP_UTILIZATION_UPDATE_TYPE,
... | #ifndef __PACKET_TYPE_H__
#define __PACKET_TYPE_H__
enum PacketType
{
INVALID,
USER,
SHARED_MEM_REQ,
SHARED_MEM_EVICT,
SHARED_MEM_RESPONSE,
SHARED_MEM_UPDATE_UNEXPECTED,
SHARED_MEM_ACK,
SHARED_MEM_TERMINATE_THREADS,
MCP_REQUEST_TYPE,
MCP_RESPONSE_TYPE,
MCP_UTILIZATION_UPDATE_TYPE,
... | Expand MCP messages to have user (modeled) and system (magic) types. | [network] Expand MCP messages to have user (modeled) and system (magic) types.
| C | mit | 8l/Graphite,8l/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,mit-carbon/Graphite,nkawahara/Graphite,mit-carbon/Graphite,fhijaz/Graphite,nkawahara/Graphite,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite,mit-carbon/Graphite-Cycle-Level,nkawahara/Graphite,fhijaz/Graphite,nkawahara/Graphite,victorisildur/Graphi... |
7edfed86771a8b04c8b20919311f5493e07f775f | core/cont/inc/TListOfTypes.h | core/cont/inc/TListOfTypes.h | // @(#)root/cont
// Author: Philippe Canal Aug 2013
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/cont
// Author: Philippe Canal Aug 2013
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Remove unnecessary virtual keyword. Lower version number to minimun. | Remove unnecessary virtual keyword. Lower version number to minimun.
| C | lgpl-2.1 | CristinaCristescu/root,root-mirror/root,agarciamontoro/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,CristinaCristescu/root,perovic/root,cxx-hep/root-cern,Duraznos/root,esakellari/root,CristinaCristescu/root,abhinavmoudgil95/root,jrtomps/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,karies... |
e6f3a0156453cfd376e90f50ee93acfda2b03e9e | BotKit/BotKit.h | BotKit/BotKit.h | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+Coding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relative... | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+BKCoding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relati... | Fix reference to BKCoding category | Fix reference to BKCoding category
| C | mit | thoughtbot/BotKit,thoughtbot/BotKit |
df2aa1efbb940aa7bf5ef49235e1d7aff0d52128 | test/Analysis/array-struct.c | test/Analysis/array-struct.c | // RUN: clang -checker-simple -verify %s
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
q->data = 3;
... | // RUN: clang -checker-simple -verify %s
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
q->data = 3;
... | Add test code for array initialization. | Add test code for array initialization.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58502 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
3d1e914af227fd8fd7a41420664b225bf63e8f81 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k4"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k5"
| Update driver version to 5.04.00-k5 | qla4xxx: Update driver version to 5.04.00-k5
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Reviewed-by: Mike Christie <6fe105eefab41990d7ec714c6c25ade3095cdb48@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
458e459c372dca5579958aa760b4f3e2fc4c0e35 | bandit/registration/registrar.h | bandit/registration/registrar.h | #ifndef BANDIT_REGISTRATION_REGISTRAR_H
#define BANDIT_REGISTRATION_REGISTRAR_H
#include <bandit/registration/spec_registry.h>
namespace bandit {
namespace detail {
struct spec_registrar {
spec_registrar(std::function<void()> func) {
bandit::detail::specs().push_back(func);
}
};
}
}
#... | #ifndef BANDIT_REGISTRATION_REGISTRAR_H
#define BANDIT_REGISTRATION_REGISTRAR_H
#include <bandit/registration/spec_registry.h>
namespace bandit {
namespace detail {
struct spec_registrar {
spec_registrar(std::function<void()> func) {
bandit::detail::specs().push_back(func);
}
};
}
}
#... | Use BANDIT_CONCAT instead of SNOWHOUSE_CONCAT macro | Use BANDIT_CONCAT instead of SNOWHOUSE_CONCAT macro
Resolves #134
| C | mit | joakimkarlsson/bandit,joakimkarlsson/bandit,joakimkarlsson/bandit |
594d5743324d6748cb3fb1fa01c559ec4b225a34 | src/SE_CInputManager.h | src/SE_CInputManager.h | /*
* This file is part of SpeakEasy.
* Copyright (C) 2012 Lambert Clara <lambert.clara@yahoo.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* Licens... | /*
* This file is part of SpeakEasy.
* Copyright (C) 2012 Lambert Clara <lambert.clara@yahoo.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* Licens... | Remove useless explicit keyword on constructors without arguments. | Remove useless explicit keyword on constructors without arguments.
| C | agpl-3.0 | belkiss/SpeakEasy,belkiss/SpeakEasy |
81cb088385ca4a1f63b7b308a8766117eaf90c09 | 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.06.00.08-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#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.06.00.12-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update the driver version to 8.06.00.12-k. | [SCSI] qla2xxx: Update the driver version to 8.06.00.12-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,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
302313fc0923fb3cc142e3a37c54e5f0f5ebdaa4 | test/FrontendC/vla-2.c | test/FrontendC/vla-2.c | // RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 32"
extern void bar(int[]);
void foo(int a)
{
int var[a] __attribute__((__aligned__(32)));
bar(var);
return;
}
| // RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 16"
extern void bar(int[]);
void foo(int a)
{
int var[a] __attribute__((__aligned__(16)));
bar(var);
return;
}
| Update this to use a "valid" alignment. | Update this to use a "valid" alignment.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108985 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,app... |
dfc6e33a4089b9f76dfb9aaf22014daa925849a2 | radiant-player-mac/LastFm/LastFmPopover.h | radiant-player-mac/LastFm/LastFmPopover.h | /*
* LastFmPopover.h
*
* Created by Sajid Anwar.
*
* Subject to terms and conditions in LICENSE.md.
*
*/
#import <Cocoa/Cocoa.h>
#import <LastFM/LastFm.h>
#import "LastFmService.h"
#define LASTFM_SIGN_IN_TAG 1
@interface LastFmPopover : NSPopover<NSPopoverDelegate>
@property (retain) IBOutlet LastFmService ... | /*
* LastFmPopover.h
*
* Created by Sajid Anwar.
*
* Subject to terms and conditions in LICENSE.md.
*
*/
#import <Cocoa/Cocoa.h>
#import <LastFm/LastFm.h>
#import "LastFmService.h"
#define LASTFM_SIGN_IN_TAG 1
@interface LastFmPopover : NSPopover<NSPopoverDelegate>
@property (retain) IBOutlet LastFmService ... | Fix case sensitive import statement | Fix case sensitive import statement
Fixes #190
| C | mit | kbhomes/radiant-player-mac,radiant-player/radiant-player-mac,kbhomes/radiant-player-mac,kbhomes/radiant-player-mac,radiant-player/radiant-player-mac,kbhomes/radiant-player-mac,radiant-player/radiant-player-mac,radiant-player/radiant-player-mac,kbhomes/radiant-player-mac,radiant-player/radiant-player-mac |
b51aa35a0453a008bd583f4e8cfcf9a0eb22366b | Markup.h | Markup.h | //***************************************************************************
extern "C"
{
#import <Cocoa/Cocoa.h>
#import "RWPluginFramework.h"
}
//***************************************************************************
#pragma mark Logging
#if ENABLE_LOGGING
# define Log NSLog
# define LOG_ENTRY NSLog(@"... | //***************************************************************************
extern "C"
{
#import <Cocoa/Cocoa.h>
#import "RWPluginFramework.h"
}
//***************************************************************************
#pragma mark Logging
#if ENABLE_LOGGING
# define Log NSLog
# define LOG_ENTRY NSLog(@"... | Use stringWithUTF8String instead of deprecated stringWithCString | Use stringWithUTF8String instead of deprecated stringWithCString
| C | mit | andrep/rw-markup,andrep/rw-markup,andrep/rw-markup |
0c831cc87a2effc6791e946858afaf5156d0edfc | deal.II/base/include/base/std_cxx1x/shared_ptr.h | deal.II/base/include/base/std_cxx1x/shared_ptr.h | //---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the file deal.II/doc/l... | //---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the file deal.II/doc/l... | Implement the equivalent of std::unique_ptr using boost::scoped_ptr. | Implement the equivalent of std::unique_ptr using boost::scoped_ptr.
git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@19195 0785d39b-7218-0410-832d-ea1e28bc413d
| C | lgpl-2.1 | sriharisundar/dealii,YongYang86/dealii,sriharisundar/dealii,kalj/dealii,sriharisundar/dealii,YongYang86/dealii,sriharisundar/dealii,flow123d/dealii,flow123d/dealii,johntfoster/dealii,ibkim11/dealii,gpitton/dealii,pesser/dealii,ibkim11/dealii,spco/dealii,jperryhouts/dealii,shakirbsm/dealii,ibkim11/dealii,JaeryunYim/deal... |
799d09c40076c5187d25f489963f2a112cb7703b | sys/sys/devfsext.h | sys/sys/devfsext.h | /* usual BSD style copyright here */
/* Written by Julian Elischer (julian@dialix.oz.au)*/
/*
* $Id: devfsext.h,v 1.6 1996/01/21 09:03:04 julian Exp $
*/
#ifndef _SYS_DEVFSECT_H_
#define _SYS_DEVFSECT_H_ 1
void *devfs_add_devsw(char *path,
char *name,
void *devsw,
int minor,
int chrblk,
uid_t uid,
gid_t ... | /* usual BSD style copyright here */
/* Written by Julian Elischer (julian@dialix.oz.au)*/
/*
* $Id: devfsext.h,v 1.7 1996/01/25 07:17:05 phk Exp $
*/
#ifndef _SYS_DEVFSECT_H_
#define _SYS_DEVFSECT_H_ 1
void *devfs_add_devsw(char *path,
char *name,
void *devsw,
int minor,
int chrblk,
uid_t uid,
gid_t gid... | Define magic uids and gids for use in devfs_add_devsw[f](). | Define magic uids and gids for use in devfs_add_devsw[f]().
The kernel shouldn't know these values, but there is currently no
better way of setting them.
| 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 |
4577174153ee0fbabc142fee3bf4c178b56ec635 | test/CodeGen/pr41027.c | test/CodeGen/pr41027.c | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -S -O2 -o - %s | FileCheck %s
// CHECK-LABEL: f:
// CHECK: movl $1, %eax
// CHECK-NEXT: #APP
// CHECK-NEXT: outl %eax, $1
// CHECK-NEXT: #NO_APP
static inline void pr41027(unsigned a, unsigned b) {
if (__builtin_constant_p(a)) {
__asm__ volatile... | // REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -S -O2 -o - %s | FileCheck %s
// CHECK-LABEL: f:
// CHECK: movl $1, %eax
// CHECK-NEXT: #APP
// CHECK-NEXT: outl %eax, $1
// CHECK-NEXT: #NO_APP
static inline void pr41027(unsigned a, unsigned b) {
if (__builtin_co... | Add target requirements for those bots which don't handle x86. | Add target requirements for those bots which don't handle x86.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@368202 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang |
af58e8d5600753082455ec1ebedae00a6cf8ba32 | test/FrontendC/2007-10-01-BuildArrayRef.c | test/FrontendC/2007-10-01-BuildArrayRef.c | // RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
// PR 1603
int func()
{
const int *arr;
arr[0] = 1;
}
| // RUN: not %llvmgcc_only -c %s -o /dev/null |& FileCheck %s
// PR 1603
void func()
{
const int *arr;
arr[0] = 1; // CXHECK: error: assignment of read-only location
}
struct foo {
int bar;
};
struct foo sfoo = { 0 };
int func2()
{
const struct foo *fp;
fp = &sfoo;
fp[0].bar = 1; // CHECK: error: assig... | Test case for r113248. Raar 8361341. | Test case for r113248. Raar 8361341.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@113249 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/ll... |
2004a168dc481a9b3a2986741507e953efa7afab | bindings/uwp/uwp-binding/Microsoft.Azure.IoT.Gateway/GatewayUwp.h | bindings/uwp/uwp-binding/Microsoft.Azure.IoT.Gateway/GatewayUwp.h | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "pch.h"
#include "..\..\..\..\core\inc\gateway_ll.h"
#include "IGatewayModule.h"
namespace Microsoft { namespace Azure { namespace IoT { namesp... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "pch.h"
#include "gateway.h"
#include "IGatewayModule.h"
namespace Microsoft { namespace Azure { namespace IoT { namespace Gateway {
interfac... | Fix gateway header path in UWP | Fix gateway header path in UWP
| C | mit | yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk |
7304ae70f7c369b6dbb47edd3517c4c0c11a0def | webkit/glue/simple_webmimeregistry_impl.h | webkit/glue/simple_webmimeregistry_impl.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#ifndef WEBMIMEREGISTRY_IMPL_H_
#define WEBMIMEREGISTRY_IMPL_H_
#include "third_party/WebKit/WebKit/chromium/public/WebMimeRegistry.h"
namespace we... | // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#ifndef WEBMIMEREGISTRY_IMPL_H_
#define WEBMIMEREGISTRY_IMPL_H_
#include "third_party/WebKit/WebKit/chromium/public/WebMimeRegistry.h"
namespace we... | Add a virtual destructor to SimpleWebMimeRegistryImpl so that child class destructors get called correctly. | Add a virtual destructor to SimpleWebMimeRegistryImpl so that child class destructors get called correctly.
BUG=62828
TEST=No memory leak in TestShellWebMimeRegistryImpl
Review URL: http://codereview.chromium.org/4880002
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@65967 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,... |
bb2994d4d628484f1bb1befa0b7098db71d74a4d | random.c | random.c | #include "random.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
void
seed_random(void)
{
/* Single iteration of Xorshift to get a good seed. */
unsigned int seed = time(NULL) ^ getpid();
seed ^= (seed << 19);
seed ^= (seed >> 11);
seed ^= (seed << 9);
printf("seed = %u\n", seed... | #include "random.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
void
seed_random(void)
{
/* Single iteration of Xorshift to get a good seed. */
unsigned int seed = time(NULL) ^ getpid();
seed ^= (seed << 19);
seed ^= (seed >> 11);
seed ^= (seed << 9);
fprintf(stderr, "seed = %u... | Print seed to stderr, not stdout. | Print seed to stderr, not stdout.
| C | mit | ingramj/dice |
9cf8f370f0777a24808b3485f3b5abb8e736d3e8 | include/asm-parisc/param.h | include/asm-parisc/param.h | #ifndef _ASMPARISC_PARAM_H
#define _ASMPARISC_PARAM_H
#ifdef __KERNEL__
# ifdef CONFIG_PA20
# define HZ 1000 /* Faster machines */
# else
# define HZ 100 /* Internal kernel timer frequency */
# endif
# define USER_HZ 100 /* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* like time... | #ifndef _ASMPARISC_PARAM_H
#define _ASMPARISC_PARAM_H
#ifdef __KERNEL__
#define HZ CONFIG_HZ
#define USER_HZ 100 /* some user API use "ticks" */
#define CLOCKS_PER_SEC (USER_HZ) /* like times() */
#endif
#ifndef HZ
#define HZ 100
#endif
#define EXEC_PAGESIZE 4096
#ifndef NOGROUP
#define NOGROUP (-1)
#endif
#de... | Use CONFIG_HZ to determine interval timer rate (aka clock ticks) | [PARISC] Use CONFIG_HZ to determine interval timer rate (aka clock ticks)
This isn't likely to be causing problems for other bits of
kernel code. I can't find any other user of CONFIG_HZ outside
of arch specific code.
Signed-off-by: Grant Grundler <fd58b8293aeebb072b32124aef6e8da71dd5739c@parisc-linux.org>
Signed-off... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program... |
62f68976927c28ad86144c596576d6311a21f2bd | src/argon2_node.h | src/argon2_node.h | #ifndef ARGON2_NODE_H
#define ARGON2_NODE_H
#include <memory>
#include <nan.h>
namespace NodeArgon2 {
class HashAsyncWorker final: public Nan::AsyncWorker {
public:
HashAsyncWorker(std::string&& plain, std::string&& salt,
std::tuple<uint32_t, uint32_t, uint32_t, argon2_type>&& params);
void Exec... | #ifndef ARGON2_NODE_H
#define ARGON2_NODE_H
#include <memory>
#include <nan.h>
namespace NodeArgon2 {
class HashAsyncWorker final: public Nan::AsyncWorker {
public:
explicit HashAsyncWorker(std::string&& plain, std::string&& salt,
std::tuple<uint32_t, uint32_t, uint32_t, argon2_type>&& params);
... | Use explicit constructors for correctness | Use explicit constructors for correctness
| C | mit | markfejes/node-argon2,markfejes/node-argon2,markfejes/node-argon2,ranisalt/node-argon2,ranisalt/node-argon2,ranisalt/node-argon2 |
ff22d76862b24b1ca7152ca624cdd2e9772a23b6 | src/math/p_atan.c | src/math/p_atan.c | #include <pal.h>
/**
*
* Calculates inverse tangent (arc tangent) of the input value. The function
* returns a value between -pi/2 to pi/2 but does not check for illegal input
* values.
*
* @param a Pointer to input vector
*
* @param c Pointer to output vector
*
* @param n Size of 'a' and 'c' vec... | #include <pal.h>
/*
* -1 <= x <= 1
* atan x = a1 * x + a3 * x^3 + ... + a9 * x^9 + e(x)
* |e(x)| <= 10^-5
*/
static inline float _p_atan(const float x)
{
const float a1 = 0.9998660f;
const float a3 = -0.3302995f;
const float a5 = 0.1801410f;
const float a7 = -0.0851330f;
const float a9 = 0.0... | Implement the inverse tangent function. | math:atan: Implement the inverse tangent function.
Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
| C | apache-2.0 | Adamszk/pal3,Adamszk/pal3,aolofsson/pal,eliteraspberries/pal,mateunho/pal,parallella/pal,8l/pal,aolofsson/pal,olajep/pal,mateunho/pal,8l/pal,debug-de-su-ka/pal,olajep/pal,mateunho/pal,Adamszk/pal3,mateunho/pal,parallella/pal,aolofsson/pal,aolofsson/pal,debug-de-su-ka/pal,Adamszk/pal3,parallella/pal,debug-de-su-ka/pal,o... |
033bfcb84aa88dde9779c789e4aefeb20bb899ed | lelib/lelib.h | lelib/lelib.h | //
// lelib.h
// lelib
//
// Created by Petr on 27.10.13.
// Copyright (c) 2013 JLizard. All rights reserved.
//
#define LE_DEBUG_LOGS 1
#if LE_DEBUG_LOGS
#define LE_DEBUG(...) NSLog(__VA_ARGS__)
#else
#define LE_DEBUG(...)
#endif
#import "LELog.h"
#import "lecore.h"
| //
// lelib.h
// lelib
//
// Created by Petr on 27.10.13.
// Copyright (c) 2013 JLizard. All rights reserved.
//
#ifndef LE_DEBUG_LOGS
#ifdef DEBUG
#define LE_DEBUG_LOGS 1
#else
#define LE_DEBUG_LOGS 0
#endif
#endif
#if LE_DEBUG_LOGS
#define LE_DEBUG(...) NSLog(__VA_ARGS__)
#el... | Allow logging to be configured at compilation time. | Allow logging to be configured at compilation time.
| C | mit | smalltownheroes/le_ios,omgapuppy/le_ios,omgapuppy/le_ios,omgapuppy/le_ios,smalltownheroes/le_ios,logentries/le_ios,JohnLemberger/le_ios,KieranOB/le_ios,smalltownheroes/le_ios |
394d5c9d3ae0f8e3ff40ae98a3eeab43004c85e6 | src/interrupts.h | src/interrupts.h | #ifndef INTERRUPTS_H
#define INTERRUPTS_H
#include "types.h"
namespace interrupts {
// Enable interrupts on the CPU.
inline void enable() {
asm volatile("sti");
}
// Enable interrupts on the CPU.
inline void disable() {
asm volatile("cli");
}
struct Registers {
u32 gs, fs, es, ds; // ... | #ifndef INTERRUPTS_H
#define INTERRUPTS_H
#include "types.h"
namespace interrupts {
// Enable interrupts on the CPU.
inline void enable() {
asm volatile("sti");
}
// Enable interrupts on the CPU.
inline void disable() {
asm volatile("cli");
}
struct Registers {
u32 gs, fs, es, ds; // ... | Remove prototypes for removed functions. | Remove prototypes for removed functions.
| C | isc | tsion/spideros,tsion/spideros,tsion/spideros |
ef0e80e41dafccc5d3b64b37d150b4cee858997e | src/alpha-memory.c | src/alpha-memory.c | #include "papi.h"
int get_memory_info( PAPI_mem_info_t * mem_info ){
int retval = 0;
return PAPI_OK;
}
long _papi_hwd_get_dmem_info(int option){
}
| #include "papi.h"
#include <sys/procfs.h>
#include <stdio.h>
#include <fcntl.h>
int get_memory_info( PAPI_mem_info_t * mem_info ){
int retval = 0;
return PAPI_OK;
}
long _papi_hwd_get_dmem_info(int option){
pid_t pid = getpid();
prpsinfo_t info;
char pfile[256];
int fd;
sprintf(pfile, "/proc/%05... | Support for dynamic memory information added for Alpha | Support for dynamic memory information added for Alpha
| C | bsd-3-clause | pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi |
613d7f23227b5b763e3ebe58442b5edaefe324ba | lib/debug_msg.c | lib/debug_msg.c | /**
* @file debug_msg.c Debug Message function
*/
/* $Id$ */
#include "gangliaconf.h"
int debug_level = 0;
/**
* @fn void debug_msg(const char *format, ...)
* Prints the message to STDERR if DEBUG is #defined
* @param format The format of the msg (see printf manpage)
* @param ... Optional arguments
*/
void
deb... | /**
* @file debug_msg.c Debug Message function
*/
/* $Id$ */
#include "gangliaconf.h"
int debug_level = 0;
/**
* @fn void debug_msg(const char *format, ...)
* Prints the message to STDERR if DEBUG is #defined
* @param format The format of the msg (see printf manpage)
* @param ... Optional arguments
*/
void
deb... | Debug level 1 now only shows error messages (and no backgrounding in gmetad). | Debug level 1 now only shows error messages (and no backgrounding in gmetad).
| C | bsd-3-clause | phreakocious/monitor-core,phreakocious/monitor-core,mjzhou/monitor-core,lawrencewu/monitor-core,dmourati/monitor-core,phreakocious/monitor-core,fastly/monitor-core,fastly/monitor-core,lawrencewu/monitor-core,ganglia/monitor-core,torkelsson/monitor-core,phreakocious/monitor-core,ganglia/monitor-core,fastly/monitor-core,... |
1c48a973b28eeb5747e5c0780a7bc0a1ad1b3b09 | src/config.h | src/config.h | #include "can/canutil.h"
namespace openxc {
namespace config {
typedef struct {
int messageSetIndex;
} Configuration;
Configuration CONFIG;
} // namespace config
} // namespace openxc
| #ifndef _CONFIG_H_
#define _CONFIG_H_
#include "can/canutil.h"
namespace openxc {
namespace config {
typedef struct {
int messageSetIndex;
} Configuration;
static Configuration CONFIG;
} // namespace config
} // namespace openxc
#endif // _CONFIG_H_
| Make sure CONFIG is static and only imported once. | Make sure CONFIG is static and only imported once.
| C | bsd-3-clause | mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware |
8a879a16cffbd6e379ea041f759d1f7fa1631496 | test/C++Frontend/2003-05-22-LocalTypeTest.c | test/C++Frontend/2003-05-22-LocalTypeTest.c | struct sometimes {
short offset; short bit;
short live_length; short calls_crossed;
} Y;
int main() {
struct sometimes { int X, Y; } S;
S.X = 1;
return Y.offset;
}
| #include <stdio.h>
struct sometimes {
short offset; short bit;
short live_length; short calls_crossed;
} Y;
int main() {
int X;
{
struct sometimes { int X, Y; } S;
S.X = 1;
X = S.X;
}
{
struct sometimes { char X; } S;
S.X = -1;
X += S.X;
}
X += Y.offset;
printf("Result is %... | Make the testcase even more insane | Make the testcase even more insane
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@6280 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,... |
2e2d03c70274bba1fa762e123842994238f68f41 | test/Sema/warn-missing-variable-declarations.c | test/Sema/warn-missing-variable-declarations.c | // RUN: %clang -Wmissing-variable-declarations -fsyntax-only -Xclang -verify %s
int vbad1; // expected-warning{{no previous extern declaration for non-static variable 'vbad1'}}
int vbad2;
int vbad2 = 10; // expected-warning{{no previous extern declaration for non-static variable 'vbad2'}}
struct {
int mgood1;
} vb... | // RUN: %clang -Wmissing-variable-declarations -fsyntax-only -Xclang -verify %s
int vbad1; // expected-warning{{no previous extern declaration for non-static variable 'vbad1'}}
int vbad2;
int vbad2 = 10; // expected-warning{{no previous extern declaration for non-static variable 'vbad2'}}
struct {
int mgood1;
} vb... | Delete junk that snuck into r166498. | Delete junk that snuck into r166498.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@166499 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
8aeecdc8e131ee74d891017b628181409330f509 | bincookie.h | bincookie.h | #ifndef _BINCOOKIE_H
#define _BINCOOKIE_H
#if defined(_MSC_VER)
#define uint32_t DWORD
#else
#include <stdint.h>
#endif
#define binarycookies_is_secure(cookie_ptr) (cookie_ptr->flags & secure)
#define binarycookies_domain_access_full(cookie_ptr) (cookie_ptr->domain[0] == '.')
typedef enum {
secure = 1,
http_... | #ifndef _BINCOOKIE_H
#define _BINCOOKIE_H
#if defined(_MSC_VER)
#define uint32_t DWORD
#else
#include <stdint.h>
#endif
#include <time.h>
#define binarycookies_is_secure(cookie_ptr) (cookie_ptr->flags & secure)
#define binarycookies_domain_access_full(cookie_ptr) (cookie_ptr->domain[0] == '.')
typedef enum {
se... | Change time type from double to time_t | Change time type from double to time_t
| C | mit | Tatsh/libbinarycookies,Tatsh/libbinarycookies |
8beb08cb2432f73348ea370c556f4daeccdcaf36 | type-offset.c | type-offset.c | #include <sys/types.h>
#include <stdio.h>
#include <limits.h>
int
main (void)
{
const unsigned long long bits = sizeof (off_t) * CHAR_BIT;
const unsigned long long shift_bits = bits - 2;
const unsigned long long off_max = 1LL << shift_bits;
(void) printf (" type Offset_t is range -%llu .. %llu;\n", ... | #include <sys/types.h>
#include <stdio.h>
#include <limits.h>
int
main (void)
{
const unsigned long long bits = sizeof (off_t) * CHAR_BIT;
const unsigned long long shift_bits = bits - 1;
const unsigned long long off_max = 1LL << shift_bits;
(void) printf (" type Offset_t is range -%llu .. %llu;\n", ... | Fix to 64 bit offsets. | Fix to 64 bit offsets.
| C | isc | io7m/coreland-posix-ada,io7m/coreland-posix-ada,io7m/coreland-posix-ada |
16e0b0cb9c40169a646660f492617c037e8acafe | lelib/lelib.h | lelib/lelib.h | //
// lelib.h
// lelib
//
// Created by Petr on 27.10.13.
// Copyright (c) 2013,2014 Logentries. All rights reserved.
//
#ifndef LE_DEBUG_LOGS
#ifdef DEBUG
#define LE_DEBUG_LOGS 1
#else
#define LE_DEBUG_LOGS 0
#endif
#endif
#if LE_DEBUG_LOGS
#define LE_DEBUG(...) NSLog(__VA_ARG... | //
// lelib.h
// lelib
//
// Created by Petr on 27.10.13.
// Copyright (c) 2013,2014 Logentries. All rights reserved.
//
#ifndef LE_DEBUG_LOGS
// #ifdef DEBUG
// #define LE_DEBUG_LOGS 1
// #else
#define LE_DEBUG_LOGS 0
// #endif
#endif
#if LE_DEBUG_LOGS
#define LE_DEBUG(...) NSLog(... | Disable LE's own debug log spam | Disable LE's own debug log spam | C | mit | JohnLemberger/le_ios |
ef157b1acb6dbc241b4b9d2f834164e0858f21a9 | src/lib/lib.h | src/lib/lib.h | #ifndef __LIB_H
#define __LIB_H
/* default lib includes */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
/* default system includes - keep these at minimum.. */
#include <string.h> /* strcmp() etc. */
#ifdef HAVE_STRINGS_H
# include <strings.h> /* strcasecmp() etc. */
#endif
#include <stdarg.h> /* va_list is use... | #ifndef __LIB_H
#define __LIB_H
/* default lib includes */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
/* default system includes - keep these at minimum.. */
#include <stddef.h> /* Solaris defines NULL wrong unless this is used */
#include <string.h> /* strcmp() etc. */
#ifdef HAVE_STRINGS_H
# include <string... | Include stddef.h always to make NULL expand correctly in Solaris. | Include stddef.h always to make NULL expand correctly in Solaris.
| C | mit | Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot |
00c99f556862333b85c4e2b6df87f8af95272b22 | src/map/map.h | src/map/map.h | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "../common/vec.h"
#include "structure.h"
#include "../gfx/immediate_renderer.h"
namespace game
{
using pos_t = Vec<float>;
struct Structure_Instance
{
Structure_Instance(Structure const&, pos_t pos) noexcept;
~St... | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "../common/vec.h"
#include "structure.h"
#include "../gfx/immediate_renderer.h"
namespace game
{
using pos_t = Vec<float>;
struct Structure_Instance
{
Structure_Instance(Structure const&, pos_t pos) noexcept;
~St... | Add a member to Map for the pending structure | Add a member to Map for the pending structure
| C | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
98e5b672422ca1e38ca38ff0357cee6cc936aee0 | lang/cpp/src/gpgmepp_export.h | lang/cpp/src/gpgmepp_export.h |
#ifndef GPGMEPP_EXPORT_H
#define GPGMEPP_EXPORT_H
#ifdef GPGMEPP_STATIC_DEFINE
# define GPGMEPP_EXPORT
# define GPGMEPP_NO_EXPORT
#else
# ifndef GPGMEPP_EXPORT
# ifdef KF5Gpgmepp_EXPORTS
/* We are building this library */
# define GPGMEPP_EXPORT __attribute__((visibility("default")))
# else
... |
#ifndef GPGMEPP_EXPORT_H
#define GPGMEPP_EXPORT_H
#ifdef GPGMEPP_STATIC_DEFINE
# define GPGMEPP_EXPORT
# define GPGMEPP_NO_EXPORT
#else
# ifndef GPGMEPP_EXPORT
# ifdef BUILDING_GPGMEPP
/* We are building this library */
# ifdef WIN32
# define GPGMEPP_EXPORT __declspec(dllexport)
# else
#... | Fix export header and windows export macros | Fix export header and windows export macros
* lang/cpp/src/gpgme_export.h: Fix variable name. Add Windows ifdefs.
| C | lgpl-2.1 | gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme |
1ad4a72ba51234a45e3e3a294676e1ab3e758d0e | lab5-btree-in-c/bTree.h | lab5-btree-in-c/bTree.h | #ifndef __STACK__
#define __STACK__
struct btreeNode {
int data;
struct btreeNode * left;
struct btreeNode * right;
};
typedef struct btreeNode * btreeNode_t;
typedef struct {
btreeNode_t root;
}btree;
typedef btree * btree_t;
btree_t newTree(void);
int addNode(btree_t, int);
void inOrder(btree_t... | #ifndef __STACK__
#define __STACK__
struct btreeNode {
int data;
struct btreeNode * left;
struct btreeNode * right;
};
typedef struct btreeNode * btreeNode_t;
typedef struct {
btreeNode_t root;
}btree;
typedef btree * btree_t;
btree_t newTree(void);
int addNode(btree_t, int);
void inOrder(btree_t... | Add inOrder_iter() signature to header | Add inOrder_iter() signature to header
| C | mit | NirmalL/AlgorithmsLabs,NirmalL/AlgorithmsLabs,NirmalL/AlgorithmsLabs |
674a7580b153119527f92582465524a09627c1e9 | Tools/Parser/UnicodeVersion.h | Tools/Parser/UnicodeVersion.h | /*
* Copyright (C) 2015 Muhammad Tayyab Akram
*
* 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 la... | /*
* Copyright (C) 2015 Muhammad Tayyab Akram
*
* 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 la... | Fix warnings about major and minor macros | Fix warnings about major and minor macros
Tools/Parser/UnicodeVersion.h:29:13: warning: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly.... | C | apache-2.0 | mta452/SheenBidi,mta452/SheenBidi |
194dfdea3af930f0e16d5f3f34876cb1d5cc63a9 | include/effects/SkArithmeticImageFilter.h | include/effects/SkArithmeticImageFilter.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkArithmeticImageFilter_DEFINED
#define SkArithmeticImageFilter_DEFINED
#include "include/core/SkImageFilter.h"
struct ArithmeticFPInputs {
ArithmeticFPInputs(fl... | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkArithmeticImageFilter_DEFINED
#define SkArithmeticImageFilter_DEFINED
#include "include/core/SkImageFilter.h"
struct ArithmeticFPInputs {
ArithmeticFPInputs(fl... | Add comment explaining memset in ArithmeticFPInputs | Add comment explaining memset in ArithmeticFPInputs
Change-Id: I1541e3f4629a117eee3f244c0209e442b705b67b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268844
Auto-Submit: Brian Osman <794c0b5534edf5601d88e1d41975d0262da12894@google.com>
Reviewed-by: Brian Osman <794c0b5534edf5601d88e1d41975d0262da12894@go... | C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,google/skia,go... |
bedd7a18966bdfc10ec01d64e30aa359f217941a | android/hal-log.h | android/hal-log.h | /*
* Copyright (C) 2013 Intel Corporation
*
* 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... | /*
* Copyright (C) 2013 Intel Corporation
*
* 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... | Make HAL logging wrapper print to stderr instead of stdout | android/tester: Make HAL logging wrapper print to stderr instead of stdout
This is used for testing and for user it makes no difference. This
will allow to switch on/off verbose logging from automated android
tester.
| C | lgpl-2.1 | pkarasev3/bluez,pkarasev3/bluez,silent-snowman/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,mapfau/bluez,mapfau/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,mapfau/bluez,silent-snowman/bluez,ComputeCycles/bluez,pkarasev3/bluez,ComputeCycles/bluez,pstglia/externa... |
7e8532edeb46a3b40c0260c4e2677e903f988fbd | include/llvm/Testing/Support/SupportHelpers.h | include/llvm/Testing/Support/SupportHelpers.h | //===- Testing/Support/SupportHelpers.h -----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- Testing/Support/SupportHelpers.h -----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add an include of gtest-printers.h to appease the buildbots. | Add an include of gtest-printers.h to appease the buildbots.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@305396 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Dri... |
e174f652d9552b5ff5dd9d04ced0e28ba4d274cf | tests/fibonacci.c | tests/fibonacci.c |
int fibonacci(int n)
{
if(n == 1)
return 1;
if(n == 2)
return 1;
int x = fibonacci(n - 1);
int y = fibonacci(n - 2);
return x + y;
}
void main()
{
return;
}
|
int fibonacci(int n)
{
if(n == 1)
return 1;
if(n == 2)
return 1;
int x = fibonacci(n - 1);
int y = fibonacci(n - 2);
return x + y;
}
void main()
{
int n = readint();
writeint(fibonacci(n));
return;
}
| Add readint and writeint call. | Add readint and writeint call.
| C | mit | RyanWangGit/scc |
da10dd621c699fdccac5c4e618f31ea61a2ebb23 | TimerDisplay.h | TimerDisplay.h | #ifndef TIMER_DISPLAY_H
#define TIMER_DISPLAY_H
#include <SevenSegmentExtended.h>
class TimerDisplay : public SevenSegmentExtended
{
public:
TimerDisplay(uint8_t pin_clk, uint8_t pin_dio);
void on();
void off();
void start();
void stop();
void refresh();
private:
unsigned long start_millis;
bool is_ru... | #ifndef TIMER_DISPLAY_H
#define TIMER_DISPLAY_H
#include <SevenSegmentExtended.h>
class TimerDisplay : public SevenSegmentExtended
{
public:
TimerDisplay(uint8_t pin_clk, uint8_t pin_dio);
void on();
void off();
void start();
void stop();
void refresh();
private:
unsigned long start_millis;
bool is_ru... | Make static some functions that should be static | Make static some functions that should be static
| C | mit | mortenfyhn/coffee-scales |
fddc41e81dda0627ccd9b6b998df57d62b8d2460 | test/functional/c-shared-library/libtest.c | test/functional/c-shared-library/libtest.c | #ifdef __GNUC__
#define DLL_PUBLIC __attribute__ ((dllexport))
#else
#define DLL_PUBLIC __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
#endif
DLL_PUBLIC int libtest_main()
{
return 0;
}
| #if defined(__GNUC__) || defined(__clang__)
# define DLL_PUBLIC __attribute__ ((dllexport))
#else
# define DLL_PUBLIC __declspec(dllexport)
#endif
DLL_PUBLIC int libtest_main()
{
return 0;
}
| Use gcc attribute for clang too. | test.functional.c-shared-library: Use gcc attribute for clang too.
| C | bsd-3-clause | hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure |
36e5254e4de0a03485b51f5b830db0ea65272e38 | lib/Target/SparcV9/MappingInfo.h | lib/Target/SparcV9/MappingInfo.h | //===- lib/Target/SparcV9/MappingInfo.h -------------------------*- 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.
//
//===--------... | //===- lib/Target/SparcV9/MappingInfo.h -------------------------*- 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.
//
//===--------... | Add decl. for new mapping info pass factory method. | Add decl. for new mapping info pass factory method.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@13979 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llv... |
ec83646e392933afcd7c7686f6ad157ebe4d2769 | os/include/tinyara/seclink_drv.h | os/include/tinyara/seclink_drv.h | #ifndef _SECLINK_DRV_H__
#define _SECLINK_DRV_H__
#include <stdint.h>
struct sec_lowerhalf_s;
struct sec_upperhalf_s {
struct sec_lowerhalf_s *lower;
char *path;
int32_t refcnt;
sem_t su_lock;
};
struct sec_ops_s;
struct sec_lowerhalf_s {
struct sec_ops_s *ops;
struct sec_upperhalf_s *parent;
};
int se_regist... | #ifndef _SECLINK_DRV_H__
#define _SECLINK_DRV_H__
#include <stdint.h>
#include <semaphore.h>
struct sec_lowerhalf_s;
struct sec_upperhalf_s {
struct sec_lowerhalf_s *lower;
char *path;
int32_t refcnt;
sem_t su_lock;
};
struct sec_ops_s;
struct sec_lowerhalf_s {
struct sec_ops_s *ops;
struct sec_upperhalf_s *pa... | Resolve build break for rtl8721csm/security_hal_test config. | include/tinyara: Resolve build break for rtl8721csm/security_hal_test config.
This patch resolves build break for rtl8721csm/security_hal_test configuration.
Signed-off-by: Vidisha <3d8bcdb46ae40344d12a5a0255e34cf386c7657a@samsung.com>
| C | apache-2.0 | pillip8282/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,junmin-kim/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,Samsung/TizenRT,pillip8282/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,Samsung/TizenRT,Samsung/TizenRT,an4967/TizenRT,jeongchanKim/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,jeo... |
4e11ac31897512ee8da99bede058c9666f2ed3d8 | include/mart-common/exceptions.h | include/mart-common/exceptions.h | #ifndef LIB_MART_COMMON_GUARD_EXPERIMENTAL_NW_EXCEPTIONS_H
#define LIB_MART_COMMON_GUARD_EXPERIMENTAL_NW_EXCEPTIONS_H
#include <exception>
#include "ConstString.h"
namespace mart {
class RuntimeError : public std::exception {
mart::ConstString _msg;
public:
RuntimeError( mart::ConstString message )
: _msg( std... | #ifndef LIB_MART_COMMON_GUARD_EXPERIMENTAL_NW_EXCEPTIONS_H
#define LIB_MART_COMMON_GUARD_EXPERIMENTAL_NW_EXCEPTIONS_H
#include <exception>
#include "ConstString.h"
namespace mart {
class RuntimeError : public std::exception {
mba::im_zstr _msg;
public:
RuntimeError( mba::im_zstr message ) noexcept
: _msg( std:... | Add BlockingOpCanceled and use im_zstr | [exception] Add BlockingOpCanceled and use im_zstr
| C | mit | tum-ei-rcs/mart-common,tum-ei-rcs/mart-common |
9c8944ca89e40772cd3b1f2fe933f428c688221c | gst/dtmf/gstdtmf.c | gst/dtmf/gstdtmf.c |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gstdtmfdetect.h"
#include "gstdtmfsrc.h"
#include "gstrtpdtmfsrc.h"
#include "gstrtpdtmfdepay.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_dtmf_detect_plugin_init (plugin))
return FALSE;
if (!gst_dtmf_src_plugin_init (plugin))
... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gstdtmfdetect.h"
#include "gstdtmfsrc.h"
#include "gstrtpdtmfsrc.h"
#include "gstrtpdtmfdepay.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_dtmf_detect_plugin_init (plugin))
return FALSE;
if (!gst_dtmf_src_plugin_init (plugin))
... | Update for GST_PLUGIN_DEFINE() API changes | gst: Update for GST_PLUGIN_DEFINE() API changes
| C | lgpl-2.1 | rawoul/gst-plugins-good,ndufresne/gst-plugins-good,sebras/gst-plugins-good,veo-labs/gst-plugins-good,GrokImageCompression/gst-plugins-good,ariscop/gst-plugins-good,BigBrother-International/gst-plugins-good,shelsonjava/gst-plugins-good,froggatt/gst-plugins-good-m,cablelabs/gst-plugins-good,GStreamer/gst-plugins-good,Str... |
5957e7a2fd2ab77b58a301c6c97071b98a5e2648 | src/xmlhandler.h | src/xmlhandler.h | #ifndef GPXMLHANDLER_H
#define GPXMLHANDlER_H
#include <QtXml/QXmlDefaultHandler>
#include <QtCore/QDebug>
class PlaceContainer;
class PlaceMark;
class KAtlasXmlHandler : public QXmlDefaultHandler {
public:
KAtlasXmlHandler();
KAtlasXmlHandler( PlaceContainer* );
bool startDocument();
bool stopDocument();
boo... | #ifndef GPXMLHANDLER_H
#define GPXMLHANDLER_H
#include <QtXml/QXmlDefaultHandler>
#include <QtCore/QDebug>
class PlaceContainer;
class PlaceMark;
class KAtlasXmlHandler : public QXmlDefaultHandler {
public:
KAtlasXmlHandler();
KAtlasXmlHandler( PlaceContainer* );
bool startDocument();
bool stopDocument();
boo... | Fix build with enable final | Fix build with enable final
svn path=/trunk/kdereview/marble/; revision=665299
| C | lgpl-2.1 | AndreiDuma/marble,utkuaydin/marble,Earthwings/marble,tzapzoor/marble,quannt24/marble,utkuaydin/marble,oberluz/marble,rku/marble,oberluz/marble,AndreiDuma/marble,utkuaydin/marble,David-Gil/marble-dev,probonopd/marble,quannt24/marble,Earthwings/marble,rku/marble,Earthwings/marble,rku/marble,utkuaydin/marble,David-Gil/mar... |
936e55e8fad9394aeee8e4ca4e50c1247ca4d390 | libgo/runtime/yield.c | libgo/runtime/yield.c | // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "config.h"
#include <stddef.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sched.h>
#include <unistd.h>
#ifdef HAVE_SYS_SELECT_H
#include ... | // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "config.h"
#include <stddef.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sched.h>
#include <unistd.h>
#ifdef HAVE_SYS_SELECT_H
#include ... | Use _mm_pause rather than __builtin_ia32_pause. | runtime: Use _mm_pause rather than __builtin_ia32_pause.
Based on a patch from Peter Collingbourne.
R=iant
CC=gofrontend-dev
https://golang.org/cl/102920043
| C | bsd-3-clause | anlhord/gofrontend,golang/gofrontend,golang/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,golang/gofrontend,golang/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.