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
|
|---|---|---|---|---|---|---|---|---|---|
ee4c2a98030ca0aae12a474b3ebde34d5a55c53d
|
libevmjit-cpp/JitVM.h
|
libevmjit-cpp/JitVM.h
|
#pragma once
#include <libevm/VMFace.h>
#include <evmjit/libevmjit/ExecutionEngine.h>
namespace dev
{
namespace eth
{
class JitVM: public VMFace
{
public:
virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final;
private:
jit::RuntimeData m_data;
jit::ExecutionEngine m_engine;
std::unique_ptr<VMFace> m_fallbackVM; ///< VM used in case of input data rejected by JIT
};
}
}
|
#pragma once
#include <libevm/VMFace.h>
#include <evmjit/libevmjit/ExecutionEngine.h>
namespace dev
{
namespace eth
{
class JitVM: public VMFace
{
public:
virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps) override final;
private:
jit::RuntimeData m_data;
jit::ExecutionEngine m_engine;
std::unique_ptr<VMFace> m_fallbackVM; ///< VM used in case of input data rejected by JIT
};
}
}
|
Change the way execution results are collected.
|
Change the way execution results are collected.
Changes handling ExecutionResult by Executive. From now execution results are collected on if a storage for results (ExecutionResult) is provided to an Executiove instance up front. This change allow better output management for calls - VM interface improved.
|
C
|
mit
|
ethcore/evmjit,debris/evmjit,ethcore/evmjit,debris/evmjit
|
42f453c38a1dd6c14aaf9cd655034d258c9ae931
|
lib/ext/digest/defs.h
|
lib/ext/digest/defs.h
|
/* -*- C -*-
* $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
*/
#ifndef DIGEST_DEFS_H
#define DIGEST_DEFS_H
#include "ruby.h"
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* #if defined(HAVE_SYS_CDEFS_H)
* # include <sys/cdefs.h>
* #endif
* #if !defined(__BEGIN_DECLS)
* # define __BEGIN_DECLS
* # define __END_DECLS
* #endif
*/
#include <inttypes.h>
/*
* #if defined(HAVE_INTTYPES_H)
* # include <inttypes.h>
* #elif !defined __CYGWIN__ || !defined __uint8_t_defined
* typedef unsigned char uint8_t;
* typedef unsigned int uint32_t;
* # if SIZEOF_LONG == 8
* typedef unsigned long uint64_t;
* # elif SIZEOF_LONG_LONG == 8
* typedef unsigned LONG_LONG uint64_t;
* # else
* # define NO_UINT64_T
* # endif
* #endif
*/
#endif /* DIGEST_DEFS_H */
|
/* -*- C -*-
* $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
*/
#ifndef DIGEST_DEFS_H
#define DIGEST_DEFS_H
#include "ruby.h"
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* #if defined(HAVE_SYS_CDEFS_H)
* # include <sys/cdefs.h>
* #endif
* #if !defined(__BEGIN_DECLS)
* # define __BEGIN_DECLS
* # define __END_DECLS
* #endif
*/
#include <inttypes.h>
/*
* #if defined(HAVE_INTTYPES_H)
* # include <inttypes.h>
* #elif !defined __CYGWIN__ || !defined __uint8_t_defined
* typedef unsigned char uint8_t;
* typedef unsigned int uint32_t;
* # if SIZEOF_LONG == 8
* typedef unsigned long uint64_t;
* # elif SIZEOF_LONG_LONG == 8
* typedef unsigned LONG_LONG uint64_t;
* # else
* # define NO_UINT64_T
* # endif
* #endif
*/
/* Define if processor uses big-endian word */
/*
#ifdef __BIG_ENDIAN__
#define WORDS_BIGENDIAN
#else */ /* !__BIG_ENDIAN__ */
/* #undef WORDS_BIGENDIAN */
/* #endif */ /* __BIG_ENDIAN__ */
#endif /* DIGEST_DEFS_H */
|
Fix Digest failures on OSX PPC (big endian) systems
|
Fix Digest failures on OSX PPC (big endian) systems
- add some tests to defs.h to check for the existence of the __BIG_ENDIAN__
macro which is available on POSIX systems. If it is defined, we define the
WORDS_BIGENDIAN macro which is tested by the digest/**/*.c files to activate
special code for byte reordering
Signed-off-by: Brian Ford <31227094f3baea959abbdb82d34f0bc93c1f3b36@engineyard.com>
|
C
|
bsd-3-clause
|
heftig/rubinius,mlarraz/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,kachick/rubinius,travis-repos/rubinius,pH14/rubinius,jemc/rubinius,Wirachmat/rubinius,ngpestelos/rubinius,slawosz/rubinius,Azizou/rubinius,travis-repos/rubinius,pH14/rubinius,digitalextremist/rubinius,digitalextremist/rubinius,jemc/rubinius,jsyeo/rubinius,pH14/rubinius,chad/rubinius,sferik/rubinius,Wirachmat/rubinius,heftig/rubinius,benlovell/rubinius,Wirachmat/rubinius,pH14/rubinius,chad/rubinius,benlovell/rubinius,benlovell/rubinius,Wirachmat/rubinius,heftig/rubinius,ruipserra/rubinius,ngpestelos/rubinius,kachick/rubinius,dblock/rubinius,kachick/rubinius,chad/rubinius,jemc/rubinius,mlarraz/rubinius,lgierth/rubinius,kachick/rubinius,slawosz/rubinius,Wirachmat/rubinius,sferik/rubinius,slawosz/rubinius,Azizou/rubinius,ngpestelos/rubinius,heftig/rubinius,ngpestelos/rubinius,sferik/rubinius,benlovell/rubinius,kachick/rubinius,mlarraz/rubinius,digitalextremist/rubinius,chad/rubinius,slawosz/rubinius,dblock/rubinius,ruipserra/rubinius,slawosz/rubinius,kachick/rubinius,ruipserra/rubinius,kachick/rubinius,jsyeo/rubinius,benlovell/rubinius,dblock/rubinius,dblock/rubinius,digitalextremist/rubinius,chad/rubinius,lgierth/rubinius,pH14/rubinius,dblock/rubinius,chad/rubinius,chad/rubinius,mlarraz/rubinius,lgierth/rubinius,lgierth/rubinius,digitalextremist/rubinius,travis-repos/rubinius,Wirachmat/rubinius,benlovell/rubinius,jemc/rubinius,jsyeo/rubinius,jemc/rubinius,lgierth/rubinius,heftig/rubinius,sferik/rubinius,jemc/rubinius,chad/rubinius,travis-repos/rubinius,Azizou/rubinius,jsyeo/rubinius,dblock/rubinius,mlarraz/rubinius,jsyeo/rubinius,Azizou/rubinius,ruipserra/rubinius,chad/rubinius,lgierth/rubinius,slawosz/rubinius,sferik/rubinius,mlarraz/rubinius,ngpestelos/rubinius,travis-repos/rubinius,ruipserra/rubinius,Azizou/rubinius,Azizou/rubinius,benlovell/rubinius,digitalextremist/rubinius,ngpestelos/rubinius,sferik/rubinius,ruipserra/rubinius,travis-repos/rubinius,ruipserra/rubinius,Azizou/rubinius,heftig/rubinius,slawosz/rubinius,mlarraz/rubinius,travis-repos/rubinius,heftig/rubinius,kachick/rubinius,digitalextremist/rubinius,jsyeo/rubinius,dblock/rubinius,ngpestelos/rubinius,pH14/rubinius,jsyeo/rubinius,chad/rubinius,pH14/rubinius,Wirachmat/rubinius
|
74de5774f6ac0458a72e7dac54df6b014a05490a
|
core/src/platform.h
|
core/src/platform.h
|
#pragma once
#ifdef PLATFORM_ANDROID
struct _JNIEnv;
typedef _JNIEnv JNIEnv;
class _jobject;
typedef _jobject* jobject;
void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager);
#endif
#if (defined PLATFORM_IOS) && (defined __OBJC__)
#import "ViewController.h"
void setViewController(ViewController* _controller);
#endif
#include <string>
/* Print a formatted message to the console
*
* Uses printf syntax to write a string to stderr (or logcat, on Android)
*/
void logMsg(const char* fmt, ...);
/* Request that a new frame be rendered by the windowing system
*/
void requestRender();
/* Read a bundled resource file as a string
*
* Opens the file at the given relative path and returns a string with its contents.
* _path is the location of the file within the core/resources folder. If the file
* cannot be found or read, the returned string is empty.
*/
std::string stringFromResource(const char* _path);
/* Read and allocates size bytes of memory
*
* Similarly to stringFromResource, _path is the location of file within
* core/resources. If the file cannot be read nothing is allocated and
* a nullptr is returned.
* _size is is an in/out parameter to retrieve the size in bytes of the
* allocated file
*/
unsigned char* bytesFromResource(const char* _path, unsigned int* _size);
|
#pragma once
#ifdef PLATFORM_ANDROID
struct _JNIEnv;
typedef _JNIEnv JNIEnv;
class _jobject;
typedef _jobject* jobject;
void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager);
#endif
#if (defined PLATFORM_IOS) && (defined __OBJC__)
#import "ViewController.h"
void setViewController(ViewController* _controller);
#endif
#include <string>
/* Print a formatted message to the console
*
* Uses printf syntax to write a string to stderr (or logcat, on Android)
*/
void logMsg(const char* fmt, ...);
/* Request that a new frame be rendered by the windowing system
*/
void requestRender();
/* If called with 'true', the windowing system will re-draw frames continuously;
* otherwise new frames will only be drawn when 'requestRender' is called.
*/
void setContinuousRendering(bool _isContinuous);
bool isContinuousRendering();
/* Read a bundled resource file as a string
*
* Opens the file at the given relative path and returns a string with its contents.
* _path is the location of the file within the core/resources folder. If the file
* cannot be found or read, the returned string is empty.
*/
std::string stringFromResource(const char* _path);
/* Read and allocates size bytes of memory
*
* Similarly to stringFromResource, _path is the location of file within
* core/resources. If the file cannot be read nothing is allocated and
* a nullptr is returned.
* _size is is an in/out parameter to retrieve the size in bytes of the
* allocated file
*/
unsigned char* bytesFromResource(const char* _path, unsigned int* _size);
|
Add headers for setting and getting continuous rendering state
|
Add headers for setting and getting continuous rendering state
|
C
|
mit
|
tangrams/tangram-es,xvilan/tangram-es,cleeus/tangram-es,cleeus/tangram-es,hjanetzek/tangram-es,karimnaaji/tangram-es,hjanetzek/tangram-es,xvilan/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,karimnaaji/tangram-es,cleeus/tangram-es,karimnaaji/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,xvilan/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,karimnaaji/tangram-es,xvilan/tangram-es,hjanetzek/tangram-es,cleeus/tangram-es,tangrams/tangram-es,hjanetzek/tangram-es,cleeus/tangram-es,tangrams/tangram-es
|
e86ec93def569ec100bcbca7e9f1952e64a0851d
|
inc/libutils/io/system_log.h
|
inc/libutils/io/system_log.h
|
/*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
template<typename CharT>
class SystemLog : public misc::Singleton<Logger<CharT>, SystemLog<CharT>>
{};
}
}
|
/*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
template<typename T> class Logger;
}
}
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
template<typename CharT>
class SystemLog : public misc::Singleton<Logger<CharT>, SystemLog<CharT>>
{};
}
}
#include "libutils/io/logger.h"
|
Include logger.h later to prevent using SystemLog before definition
|
Include logger.h later to prevent using SystemLog before definition
|
C
|
mit
|
nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils
|
768df6b3adad4557b81749e18c06c56c0a0c53fb
|
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
|
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
|
/*! @file GTMAppAuth.h
@brief GTMAppAuth SDK
@copyright
Copyright 2016 Google Inc.
@copydetails
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import "GTMAppAuthFetcherAuthorization.h"
#import "GTMAppAuthFetcherAuthorization+Keychain.h"
#if TARGET_OS_TV
#elif TARGET_OS_WATCH
#elif TARGET_OS_IOS
#import "GTMOAuth2KeychainCompatibility.h"
#elif TARGET_OS_MAC
#import "GTMOAuth2KeychainCompatibility.h"
#else
#warn "Platform Undefined"
#endif
|
/*! @file GTMAppAuth.h
@brief GTMAppAuth SDK
@copyright
Copyright 2016 Google Inc.
@copydetails
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import "GTMAppAuthFetcherAuthorization.h"
#import "GTMAppAuthFetcherAuthorization+Keychain.h"
#import "GTMKeychain.h"
#if TARGET_OS_TV
#elif TARGET_OS_WATCH
#elif TARGET_OS_IOS
#import "GTMOAuth2KeychainCompatibility.h"
#elif TARGET_OS_MAC
#import "GTMOAuth2KeychainCompatibility.h"
#else
#warn "Platform Undefined"
#endif
|
Add GTMKeychain.h to umbrella header
|
Add GTMKeychain.h to umbrella header
This is required for Xcode 12.5 and Swift Package Manager. Verified locally that this fix resolves the issue.
|
C
|
apache-2.0
|
google/GTMAppAuth,google/GTMAppAuth
|
d11d5a161003ccb024927fff5c620eb7515716fc
|
source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
|
source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
|
//===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef liblldb_NativeRegisterContextWindows_h_
#define liblldb_NativeRegisterContextWindows_h_
#include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h"
#include "lldb/Host/common/NativeThreadProtocol.h"
#include "lldb/Utility/DataBufferHeap.h"
namespace lldb_private {
class NativeThreadWindows;
class NativeRegisterContextWindows : public NativeRegisterContextRegisterInfo {
public:
NativeRegisterContextWindows::NativeRegisterContextWindows(
NativeThreadProtocol &native_thread,
RegisterInfoInterface *reg_info_interface_p);
static std::unique_ptr<NativeRegisterContextWindows>
CreateHostNativeRegisterContextWindows(const ArchSpec &target_arch,
NativeThreadProtocol &native_thread);
protected:
lldb::thread_t GetThreadHandle() const;
};
} // namespace lldb_private
#endif // liblldb_NativeRegisterContextWindows_h_
|
//===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef liblldb_NativeRegisterContextWindows_h_
#define liblldb_NativeRegisterContextWindows_h_
#include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h"
#include "lldb/Host/common/NativeThreadProtocol.h"
#include "lldb/Utility/DataBufferHeap.h"
namespace lldb_private {
class NativeThreadWindows;
class NativeRegisterContextWindows : public NativeRegisterContextRegisterInfo {
public:
NativeRegisterContextWindows(
NativeThreadProtocol &native_thread,
RegisterInfoInterface *reg_info_interface_p);
static std::unique_ptr<NativeRegisterContextWindows>
CreateHostNativeRegisterContextWindows(const ArchSpec &target_arch,
NativeThreadProtocol &native_thread);
protected:
lldb::thread_t GetThreadHandle() const;
};
} // namespace lldb_private
#endif // liblldb_NativeRegisterContextWindows_h_
|
Fix compilation for MinGW, remove redundant class name on inline member
|
[LLDB] Fix compilation for MinGW, remove redundant class name on inline member
This fixes build errors like these:
NativeRegisterContextWindows.h:22:33: error: extra qualification on member 'NativeRegisterContextWindows'
NativeRegisterContextWindows::NativeRegisterContextWindows(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Differential Revision: https://reviews.llvm.org/D67856
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@372482 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb
|
8c1f6397bf58de0676cd2ef0a59d2cd0debd3c60
|
lib/src/models/post-filter.h
|
lib/src/models/post-filter.h
|
#ifndef POST_FILTER_H
#define POST_FILTER_H
#include <QString>
#include <QStringList>
#include <QMap>
#include "loader/token.h"
class PostFilter
{
public:
static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters);
static QStringList blacklisted(const QMap<QString, Token> &tokens, const QStringList &blacklistedTags, bool invert = true);
protected:
static QString match(const QMap<QString, Token> &tokens, QString filter, bool invert = false);
};
#endif // POST_FILTER_H
|
#ifndef POST_FILTER_H
#define POST_FILTER_H
#include <QString>
#include <QStringList>
#include <QMap>
#include "loader/token.h"
class PostFilter
{
public:
static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters);
static QStringList blacklisted(const QMap<QString, Token> &tokens, const QStringList &blacklistedTags, bool invert = true);
static QString match(const QMap<QString, Token> &tokens, QString filter, bool invert = false);
};
#endif // POST_FILTER_H
|
Fix tests broken by new PostFilter class
|
Fix tests broken by new PostFilter class
|
C
|
apache-2.0
|
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
|
83c438405367324e00e15d39f7ee82e2f467f2f6
|
config.def.h
|
config.def.h
|
/* See LICENSE file for copyright and license details. */
/* Notification, remove DNOTIFY in config.mk if you don't want it */
static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */
static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */
/*
* This is the array which defines all the timer that will be used.
* It will be repeated after all of it is executed.
*/
static Timers timers[] = {
/* timer(s) comment */
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 900, "Time to take some nap!"},
};
|
/* See LICENSE file for copyright and license details. */
/* Notification, remove DNOTIFY in config.mk if you don't want it */
static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */
static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */
/*
* This is the array which defines all the timer that will be used.
* It will be repeated after all of it is executed.
*/
static Timers timers[] = {
/* timer(s) comment */
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 1500, "Time to start working!"},
{ 300, "Time to start resting!"},
{ 900, "Time to take a nap!" },
};
|
Make a small grammar fix
|
Make a small grammar fix
|
C
|
isc
|
pickfire/spt,pickfire/spt
|
a7634a1e5a46e1cbcef577a2cb850cdf00ad63bc
|
features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h
|
features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h
|
/*
* Copyright (c) 2015-2017 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* \file ns_trace.h
* Trace interface abstraction for NanoStack library as well as application.
*
* Actual used trace library is mbed-trace. For usage details check mbed_trace.h.
*
*/
#ifndef NS_TRACE_H_
#define NS_TRACE_H_
#if defined(HAVE_DEBUG) && !defined(FEA_TRACE_SUPPORT)
#define FEA_TRACE_SUPPORT
#endif
#include "mbed-trace/mbed_trace.h"
#endif /* NS_TRACE_H_ */
|
/*
* Copyright (c) 2015-2017 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* \file ns_trace.h
* Trace interface abstraction for NanoStack library as well as application.
*
* Actual used trace library is mbed-trace. For usage details check mbed_trace.h.
*
*/
#ifndef NS_TRACE_H_
#define NS_TRACE_H_
#if defined(HAVE_DEBUG) && !defined(FEA_TRACE_SUPPORT)
#define FEA_TRACE_SUPPORT
#endif
#include "ns_types.h"
#include "mbed-trace/mbed_trace.h"
#endif /* NS_TRACE_H_ */
|
Include ns_types.h before mbed_trace.h in Nanomesh
|
Include ns_types.h before mbed_trace.h in Nanomesh
|
C
|
apache-2.0
|
andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed
|
49d8436a2b84d7bd90fc76c17b723ad5c89772a7
|
net/flip/flip_bitmasks.h
|
net/flip/flip_bitmasks.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 NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader
const int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader
const int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME
const int kLengthMask = 0xffffff; // Mask the lower 24 bits.
} // flip
#endif // NET_FLIP_FLIP_BITMASKS_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 NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader
const unsigned int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader
const unsigned int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME
const unsigned int kLengthMask = 0xffffff; // Mask the lower 24 bits.
} // flip
#endif // NET_FLIP_FLIP_BITMASKS_H_
|
Fix signed vs unsigned issue
|
linux: Fix signed vs unsigned issue
Review URL: http://codereview.chromium.org/297015
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@30099 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,dednal/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,markYoungH/chromium.src,rogerwang/chromium,zcbenz/cefode-chromium,ltilve/chromium,hgl888/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,rogerwang/chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,keishi/chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,M4sse/chromium.src,hujiajie/pa-chromium,keishi/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,rogerwang/chromium,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,M4sse/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,patrickm/chromium.src,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,rogerwang/chromium,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,Just-D/chromium-1,anirudhSK/chromium,robclark/chromium,nacl-webkit/chrome_deps,Jonekee/chromium.src,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,patrickm/chromium.src,robclark/chromium,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,robclark/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,M4sse/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,M4sse/chromium.src,ltilve/chromium,rogerwang/chromium,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,patrickm/chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,robclark/chromium,Fireblend/chromium-crosswalk,Jonekee/chromium.src,keishi/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,anirudhSK/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,keishi/chromium,littlstar/chromium.src,hujiajie/pa-chromium,Chilledheart/chromium,axinging/chromium-crosswalk,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,axinging/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,patrickm/chromium.src,markYoungH/chromium.src,anirudhSK/chromium,markYoungH/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,ltilve/chromium,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,Chilledheart/chromium,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,ltilve/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,ondra-novak/chromium.src,chuan9/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,Chilledheart/chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,robclark/chromium,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Chilledheart/chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,littlstar/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,ltilve/chromium,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,Chilledheart/chromium,ondra-novak/chromium.src,rogerwang/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,rogerwang/chromium,timopulkkinen/BubbleFish,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,M4sse/chromium.src,dednal/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,zcbenz/cefode-chromium,littlstar/chromium.src,ondra-novak/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,keishi/chromium,rogerwang/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,ltilve/chromium,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,keishi/chromium,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,Jonekee/chromium.src,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,Chilledheart/chromium,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,robclark/chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,robclark/chromium,markYoungH/chromium.src,keishi/chromium,patrickm/chromium.src,keishi/chromium,keishi/chromium,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,robclark/chromium,littlstar/chromium.src,robclark/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,keishi/chromium,dednal/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src
|
e32e63bf018f24cfe6dbd0f2ab0ccad785e1d045
|
Source/Library/Object/HCIsNil.h
|
Source/Library/Object/HCIsNil.h
|
//
// OCHamcrest - HCIsNil.h
// Copyright 2011 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid
//
#import <OCHamcrest/HCBaseMatcher.h>
/**
Is the value @c nil?
@b Factory: @ref nilValue, @ref notNilValue
@ingroup object_matchers
*/
@interface HCIsNil : HCBaseMatcher
+ (id)isNil;
@end
#pragma mark -
/**
Matches if the value is @c nil.
@b Synonym: @ref nilValue
@see HCIsNil
@ingroup object_matchers
*/
OBJC_EXPORT id<HCMatcher> HC_nilValue();
/**
Matches if the value is @c nil.
Synonym for @ref HC_nilValue, available if @c HC_SHORTHAND is defined.
@see HCIsNil
@ingroup object_matchers
*/
#ifdef HC_SHORTHAND
#define nilValue() HC_nilValue()
#endif
/**
Matches if the value is not @c nil.
@b Synonym: @ref notNilValue
@see HCIsNil
@see HCIsNot
@ingroup object_matchers
*/
OBJC_EXPORT id<HCMatcher> HC_notNilValue();
/**
Matches if the value is not @c nil.
Synonym for @ref HC_notNilValue, available if @c HC_SHORTHAND is defined.
@see HCIsNil
@see HCIsNot
@ingroup object_matchers
*/
#ifdef HC_SHORTHAND
#define notNilValue() HC_notNilValue()
#endif
|
//
// OCHamcrest - HCIsNil.h
// Copyright 2011 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid
//
#import <OCHamcrest/HCBaseMatcher.h>
@interface HCIsNil : HCBaseMatcher
+ (id)isNil;
@end
OBJC_EXPORT id<HCMatcher> HC_nilValue();
/**
Matches if the value is @c nil.
In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
@c HC_nilValue instead.
@ingroup object_matchers
*/
#ifdef HC_SHORTHAND
#define nilValue() HC_nilValue()
#endif
OBJC_EXPORT id<HCMatcher> HC_notNilValue();
/**
Matches if the value is not @c nil.
In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
@c HC_notNilValue instead.
@ingroup object_matchers
*/
#ifdef HC_SHORTHAND
#define notNilValue() HC_notNilValue()
#endif
|
Simplify docs for nilValue / notNilValue
|
Simplify docs for nilValue / notNilValue
|
C
|
bsd-2-clause
|
hamcrest/OCHamcrest,nschum/OCHamcrest,klundberg/OCHamcrest,klundberg/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest,nschum/OCHamcrest,nschum/OCHamcrest
|
36e2af43dfed86736ee3f33cae7f32d51d5aeff4
|
include/libsvc/packetqueue.h
|
include/libsvc/packetqueue.h
|
#ifndef _PACKETQUEUE_H
#define _PACKETQUEUE_H 1
#include <libsvc/thread.h>
#include <libsvc/transport.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct pktbuf_s {
uint8_t pkt[4096];
} pktbuf;
typedef struct packetqueue_s {
thread super;
pthread_mutexattr_t mattr;
pthread_mutex_t mutex;
pthread_cond_t cond;
intransport *trans;
pktbuf *buffer;
size_t sz;
volatile size_t rpos;
volatile size_t wpos;
} packetqueue;
thread *packetqueue_create (size_t qcount, intransport *producer);
#endif
|
#ifndef _PACKETQUEUE_H
#define _PACKETQUEUE_H 1
#include <libsvc/thread.h>
#include <libsvc/transport.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct pktbuf_s {
uint8_t pkt[4096];
struct sockaddr_storage addr;
} pktbuf;
typedef struct packetqueue_s {
thread super;
pthread_mutexattr_t mattr;
pthread_mutex_t mutex;
pthread_cond_t cond;
intransport *trans;
pktbuf *buffer;
size_t sz;
volatile size_t rpos;
volatile size_t wpos;
} packetqueue;
thread *packetqueue_create (size_t qcount, intransport *producer);
#endif
|
Extend the packet ringbuffer to have address stamps
|
Extend the packet ringbuffer to have address stamps
|
C
|
apache-2.0
|
CloudVPS/opticon,CloudVPS/opticon,CloudVPS/opticon
|
d56d7adb525d0fb1c4516567d400ae13f2b93013
|
src/win/util.h
|
src/win/util.h
|
/*
MIT License
Copyright (c) 2017 Eren Okka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#pragma once
#include <memory>
#include <windows.h>
namespace anisthesia {
namespace win {
struct HandleDeleter {
using pointer = HANDLE;
void operator()(HANDLE handle) { ::CloseHandle(handle); }
};
using Handle = std::unique_ptr<HANDLE, HandleDeleter>;
} // namespace win
} // namespace anisthesia
|
/*
MIT License
Copyright (c) 2017 Eren Okka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#pragma once
#include <memory>
#include <type_traits>
#include <windows.h>
namespace anisthesia {
namespace win {
struct HandleDeleter {
using pointer = HANDLE;
void operator()(pointer p) const { ::CloseHandle(p); }
};
using Handle = std::unique_ptr<HANDLE, HandleDeleter>;
////////////////////////////////////////////////////////////////////////////////
template <typename T>
struct ComInterfaceDeleter {
static_assert(std::is_base_of<IUnknown, T>::value, "Invalid COM interface");
using pointer = T*;
void operator()(pointer p) const { if (p) p->Release(); }
};
template <typename T>
using ComInterface = std::unique_ptr<T, ComInterfaceDeleter<T>>;
} // namespace win
} // namespace anisthesia
|
Add smart pointer for COM interfaces
|
Add smart pointer for COM interfaces
|
C
|
mit
|
erengy/anisthesia
|
74976f231130b843f555a8f73df18ffb4d89639e
|
test/CodeGen/debug-info-line2.c
|
test/CodeGen/debug-info-line2.c
|
// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s
// Radar 9199234
int bar();
int foo(int i) {
int j = 0;
if (i) {
j = bar();
//CHECK: store i32
//CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg
}
else
{
j = bar() + 2;
}
return j;
}
|
// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s
// Radar 9199234
int bar();
int foo(int i) {
int j = 0;
if (i) {
j = bar();
}
else
{
//CHECK: store i32 %add
//CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
j = bar() + 2;
}
return j;
}
|
Fix regexp for this test to properly check.
|
Fix regexp for this test to properly check.
Patch by Eli Bendersky.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@160385 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
|
98330bd7030626759102845a0467ed2c71f26c30
|
documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h
|
documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vdslib/container/searchresult.h>
#include <vespa/documentapi/messagebus/messages/visitor.h>
namespace documentapi {
class SearchResultMessage : public VisitorMessage,
public vdslib::SearchResult {
protected:
// Implements VisitorMessage.
DocumentReply::UP doCreateReply() const;
public:
/**
* Convenience typedefs.
*/
typedef std::unique_ptr<SearchResultMessage> UP;
typedef std::shared_ptr<SearchResultMessage> SP;
/**
* Constructs a new search result message for deserialization.
*/
SearchResultMessage();
/**
* Constructs a new search result message for the given search result.
*
* @param result The result to set.
*/
SearchResultMessage(const vdslib::SearchResult &result);
// Overrides VisitorMessage.
uint32_t getApproxSize() const;
// Implements VisitorMessage.
uint32_t getType() const;
string toString() const { return "searchresultmessage"; }
};
}
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "visitor.h"
#include <vespa/vdslib/container/searchresult.h>
namespace documentapi {
class SearchResultMessage : public VisitorMessage,
public vdslib::SearchResult {
protected:
DocumentReply::UP doCreateReply() const override;
public:
/**
* Convenience typedefs.
*/
typedef std::unique_ptr<SearchResultMessage> UP;
typedef std::shared_ptr<SearchResultMessage> SP;
/**
* Constructs a new search result message for deserialization.
*/
SearchResultMessage();
/**
* Constructs a new search result message for the given search result.
*
* @param result The result to set.
*/
SearchResultMessage(const vdslib::SearchResult &result);
uint32_t getApproxSize() const override;
uint32_t getType() const override;
string toString() const override { return "searchresultmessage"; }
};
}
|
Add the overrides and you are backin business.
|
Add the overrides and you are backin business.
|
C
|
apache-2.0
|
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
|
24049967c5cc379e34a8e1cd714d472949464300
|
UIforETW/Version.h
|
UIforETW/Version.h
|
#pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.50f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// increment that won't trigger the new-version checks, handy for minor
// releases that I don't want to bother users about.
#define VERSION_SUFFIX 'b'
|
#pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.51f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// increment that won't trigger the new-version checks, handy for minor
// releases that I don't want to bother users about.
//#define VERSION_SUFFIX 'b'
|
Increment version number from 1.50b to 1.51
|
Increment version number from 1.50b to 1.51
|
C
|
apache-2.0
|
ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW
|
653b614d7cd51871fa3f63bbbab9e05b83ba0437
|
Nimble/Nimble.h
|
Nimble/Nimble.h
|
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
|
#import <Foundation/Foundation.h>
#import <Nimble/NMBExceptionCapture.h>
#import <Nimble/DSL.h>
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
|
Revert "Remove public headers from umbrella header"
|
Revert "Remove public headers from umbrella header"
This reverts commit 7ab1093ffdf6adb66df1bf0799cfdbf34f136521.
|
C
|
apache-2.0
|
AnthonyMDev/Nimble,DanielAsher/Nimble,mishimay/Nimble,mishimay/Nimble,jeffh/Nimble,DanielAsher/Nimble,AnthonyMDev/Nimble,phatblat/Nimble,abbeycode/Nimble,DanielAsher/Nimble,phatblat/Nimble,dgdosen/Nimble,twobitlabs/Nimble,abbeycode/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,dgdosen/Nimble,mishimay/Nimble,phatblat/Nimble,jeffh/Nimble,dgdosen/Nimble,abbeycode/Nimble,Quick/Nimble,ashfurrow/Nimble,jeffh/Nimble,AnthonyMDev/Nimble,ashfurrow/Nimble,ashfurrow/Nimble,dgdosen/Nimble,Quick/Nimble,abbeycode/Nimble,jeffh/Nimble,feinstruktur/Nimble,Quick/Nimble
|
6f470d631baf6f5a9d30e49ef67593a12e7d7faa
|
adm/cmake/TKernel/Precompiled.h
|
adm/cmake/TKernel/Precompiled.h
|
#pragma once
#include <string>
#include <iostream>
#include <math.h>
#include "Standard.hxx"
#include "Standard_PrimitiveTypes.hxx"
#include "Standard_Stream.hxx"
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
#ifdef USE_STL_STREAM
#include <sstream>
#else /* USE_STL_STREAM */
#ifdef WNT
#include <strstrea.h>
#else
#include <strstream.h>
#endif
#endif
|
#pragma once
#include <string>
#include <iostream>
#include <math.h>
#include "Standard.hxx"
#include "Standard_PrimitiveTypes.hxx"
#include "Standard_Stream.hxx"
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
|
Remove obsolete includes in TKernel precompiled
|
Remove obsolete includes in TKernel precompiled
|
C
|
lgpl-2.1
|
finetjul/oce,heartvalve/oce,heartvalve/oce,Tridify/oce,BenoitPerrot/oce,tpaviot/oce,tpaviot/oce,EvgeneOskin/oce,EvgeneOskin/oce,finetjul/oce,heartvalve/oce,finetjul/oce,finetjul/oce,Tridify/oce,EvgeneOskin/oce,Tridify/oce,BenoitPerrot/oce,BenoitPerrot/oce,finetjul/oce,Tridify/oce,tpaviot/oce,tpaviot/oce,heartvalve/oce,Tridify/oce,heartvalve/oce,EvgeneOskin/oce,BenoitPerrot/oce,EvgeneOskin/oce,BenoitPerrot/oce,tpaviot/oce
|
5b8d378c0bc0da49812eb880e40f6de5844d7d70
|
Sources/Core/Transformer/OCATransformer.h
|
Sources/Core/Transformer/OCATransformer.h
|
//
// OCATransformer.h
// Objective-Chain
//
// Created by Martin Kiss on 31.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
#import "OCATransformer+Base.h"
#import "OCATransformer+Nil.h"
#import "OCATransformer+Predefined.h"
|
//
// OCATransformer.h
// Objective-Chain
//
// Created by Martin Kiss on 31.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
#import "OCATransformer+Base.h"
#import "OCATransformer+Predefined.h"
|
Fix import of removed file
|
Fix import of removed file
|
C
|
mit
|
iMartinKiss/Objective-Chain,Tricertops/Objective-Chain
|
a39acef2a0cad730bfa8317dc98c733212b2afb0
|
include/libk/kmem.h
|
include/libk/kmem.h
|
#ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <libk/kabort.h>
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
#define KHEAP_BLOCK_SLOP 32
struct kheap_metadata {
size_t size;
struct kheap_metadata *next;
bool is_free;
};
struct kheap_metadata *root;
struct kheap_metadata *kheap_init();
int kheap_extend();
void kheap_install(struct kheap_metadata *root, size_t initial_heap_size);
void *kmalloc(size_t bytes);
void kfree(void *mem);
void kheap_defragment();
#endif
|
#ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <arch/x86/memlayout.h>
#include <libk/kabort.h>
// KHEAP_PHYS_ROOT is defined in memlayout.h because it is architecture
// specific.
#define KHEAP_END_SENTINEL (NULL)
#define KHEAP_BLOCK_SLOP 32
struct kheap_metadata {
size_t size;
struct kheap_metadata *next;
bool is_free;
};
struct kheap_metadata *root;
struct kheap_metadata *kheap_init();
int kheap_extend();
void kheap_install(struct kheap_metadata *root, size_t initial_heap_size);
void *kmalloc(size_t bytes);
void kfree(void *mem);
void kheap_defragment();
#endif
|
Move KHEAP macros into memlayout.h
|
Move KHEAP macros into memlayout.h
We should try to make this file architecture agnostic
|
C
|
mit
|
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth
|
94123219bfd5f9e688764a2125d36f206bf89704
|
src/include/libpq/be-fsstubs.h
|
src/include/libpq/be-fsstubs.h
|
/*-------------------------------------------------------------------------
*
* be-fsstubs.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef BE_FSSTUBS_H
#define BE_FSSTUBS_H
extern Oid lo_import(text *filename);
extern int4 lo_export(Oid lobjId, text *filename);
extern Oid lo_creat(int mode);
extern int lo_open(Oid lobjId, int mode);
extern int lo_close(int fd);
extern int lo_read(int fd, char *buf, int len);
extern int lo_write(int fd, char *buf, int len);
extern int lo_lseek(int fd, int offset, int whence);
extern int lo_tell(int fd);
extern int lo_unlink(Oid lobjId);
extern struct varlena *LOread(int fd, int len);
extern int LOwrite(int fd, struct varlena *wbuf);
#endif /* BE_FSSTUBS_H */
|
/*-------------------------------------------------------------------------
*
* be-fsstubs.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef BE_FSSTUBS_H
#define BE_FSSTUBS_H
/* Redefine names LOread() and LOwrite() to be lowercase to allow calling
* using the new v6.1 case-insensitive SQL parser. Define macros to allow
* the existing code to stay the same. - tgl 97/05/03
*/
#define LOread(f,l) loread(f,l)
#define LOwrite(f,b) lowrite(f,b)
extern Oid lo_import(text *filename);
extern int4 lo_export(Oid lobjId, text *filename);
extern Oid lo_creat(int mode);
extern int lo_open(Oid lobjId, int mode);
extern int lo_close(int fd);
extern int lo_read(int fd, char *buf, int len);
extern int lo_write(int fd, char *buf, int len);
extern int lo_lseek(int fd, int offset, int whence);
extern int lo_tell(int fd);
extern int lo_unlink(Oid lobjId);
extern struct varlena *loread(int fd, int len);
extern int lowrite(int fd, struct varlena *wbuf);
#endif /* BE_FSSTUBS_H */
|
Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
|
Rename LOread() and LOwrite() to be lower case to allow use
in case-insensitive SQL. Define LOread() and LOwrite() as macros
to avoid having to update calls everywhere.
|
C
|
mpl-2.0
|
kmjungersen/PostgresXL,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lintzc/gpdb,postmind-net/postgres-xl,rvs/gpdb,zeroae/postgres-xl,xinzweb/gpdb,tpostgres-projects/tPostgres,CraigHarris/gpdb,janebeckman/gpdb,foyzur/gpdb,rubikloud/gpdb,atris/gpdb,kmjungersen/PostgresXL,zaksoup/gpdb,ashwinstar/gpdb,tangp3/gpdb,pavanvd/postgres-xl,foyzur/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,kaknikhil/gpdb,lisakowen/gpdb,janebeckman/gpdb,foyzur/gpdb,Chibin/gpdb,chrishajas/gpdb,jmcatamney/gpdb,rvs/gpdb,zaksoup/gpdb,royc1/gpdb,jmcatamney/gpdb,rvs/gpdb,Quikling/gpdb,jmcatamney/gpdb,ovr/postgres-xl,Quikling/gpdb,CraigHarris/gpdb,chrishajas/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,zeroae/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,ahachete/gpdb,atris/gpdb,rubikloud/gpdb,lintzc/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,randomtask1155/gpdb,yazun/postgres-xl,edespino/gpdb,kaknikhil/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,rvs/gpdb,Chibin/gpdb,ashwinstar/gpdb,Chibin/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,zeroae/postgres-xl,lintzc/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,50wu/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,royc1/gpdb,foyzur/gpdb,ahachete/gpdb,chrishajas/gpdb,Quikling/gpdb,rubikloud/gpdb,chrishajas/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,Chibin/gpdb,edespino/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,zaksoup/gpdb,edespino/gpdb,ovr/postgres-xl,tangp3/gpdb,Quikling/gpdb,chrishajas/gpdb,tangp3/gpdb,50wu/gpdb,atris/gpdb,CraigHarris/gpdb,postmind-net/postgres-xl,chrishajas/gpdb,yazun/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,Chibin/gpdb,rvs/gpdb,zaksoup/gpdb,lisakowen/gpdb,50wu/gpdb,janebeckman/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,rubikloud/gpdb,ahachete/gpdb,50wu/gpdb,royc1/gpdb,xuegang/gpdb,snaga/postgres-xl,ashwinstar/gpdb,chrishajas/gpdb,adam8157/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,foyzur/gpdb,rvs/gpdb,pavanvd/postgres-xl,Quikling/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,edespino/gpdb,adam8157/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,edespino/gpdb,lisakowen/gpdb,atris/gpdb,snaga/postgres-xl,yuanzhao/gpdb,CraigHarris/gpdb,zaksoup/gpdb,ashwinstar/gpdb,lintzc/gpdb,rvs/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,atris/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,adam8157/gpdb,xuegang/gpdb,royc1/gpdb,rubikloud/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,edespino/gpdb,rubikloud/gpdb,foyzur/gpdb,0x0FFF/gpdb,arcivanov/postgres-xl,atris/gpdb,xinzweb/gpdb,kaknikhil/gpdb,adam8157/gpdb,Chibin/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,ahachete/gpdb,greenplum-db/gpdb,yazun/postgres-xl,Quikling/gpdb,postmind-net/postgres-xl,randomtask1155/gpdb,zaksoup/gpdb,ahachete/gpdb,postmind-net/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,foyzur/gpdb,pavanvd/postgres-xl,Chibin/gpdb,janebeckman/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,lisakowen/gpdb,50wu/gpdb,rvs/gpdb,randomtask1155/gpdb,chrishajas/gpdb,rvs/gpdb,edespino/gpdb,xinzweb/gpdb,cjcjameson/gpdb,ahachete/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,lintzc/gpdb,snaga/postgres-xl,lintzc/gpdb,janebeckman/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,CraigHarris/gpdb,arcivanov/postgres-xl,royc1/gpdb,oberstet/postgres-xl,ahachete/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,edespino/gpdb,yazun/postgres-xl,rubikloud/gpdb,oberstet/postgres-xl,yuanzhao/gpdb,adam8157/gpdb,kaknikhil/gpdb,snaga/postgres-xl,CraigHarris/gpdb,edespino/gpdb,atris/gpdb,lisakowen/gpdb,0x0FFF/gpdb,Quikling/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,Quikling/gpdb,randomtask1155/gpdb,lintzc/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,ovr/postgres-xl,xuegang/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,ahachete/gpdb,kaknikhil/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,rubikloud/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,xinzweb/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,ovr/postgres-xl,oberstet/postgres-xl,xuegang/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,xinzweb/gpdb,lintzc/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,jmcatamney/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,50wu/gpdb,zaksoup/gpdb,zaksoup/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,xuegang/gpdb,50wu/gpdb,tangp3/gpdb,techdragon/Postgres-XL,xuegang/gpdb,xuegang/gpdb,foyzur/gpdb,lisakowen/gpdb,tangp3/gpdb,tangp3/gpdb,kmjungersen/PostgresXL,royc1/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,xinzweb/gpdb,janebeckman/gpdb,lisakowen/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,tangp3/gpdb
|
ebd65d48956d3a55fa5281f4cf5b5ee14172aae0
|
tests/regression/02-base/88-strings.c
|
tests/regression/02-base/88-strings.c
|
#include <assert.h>
#include <stdlib.h>
int main(){
char* str = "Hello";
char* str2 = "Hello";
char* str3 = "hi";
char* str4 = "other string";
// Unknown since the there may be multiple copies of the same string
__goblint_check(str != str2); // UNKNOWN!
__goblint_check(str == str);
__goblint_check(str != str3);
char *ptr = NULL;
int top = rand();
if(top){
ptr = str2;
} else {
ptr = str3;
}
__goblint_check(*ptr == *str); //UNKNOWN
// This is unknwon due to only keeping one string pointer in abstract address sets
__goblint_check(*ptr == *str4); //UNKNOWN
return 0;
}
|
#include <assert.h>
#include <stdlib.h>
int main(){
char* str = "Hello";
char* str2 = "Hello";
char* str3 = "hi";
char* str4 = "other string";
// Unknown since the there may be multiple copies of the same string
__goblint_check(str != str2); // UNKNOWN!
__goblint_check(str == str);
__goblint_check(str != str3);
char *ptr = NULL;
int top = rand();
if(top){
ptr = str2;
} else {
ptr = str3;
}
__goblint_check(*ptr == *str); //UNKNOWN
// This is unknwon due to only keeping one string pointer in abstract address sets
__goblint_check(*ptr == *str4); //UNKNOWN
char *ptr2 = unknown_function();
__goblint_check(ptr == ptr2); //UNKNOWN
__goblint_check(ptr2 == str); //UNKNOWN
return 0;
}
|
Add checks to regression tests that unknown pointers and string pointers may be equal
|
Add checks to regression tests that unknown pointers and string pointers may be equal
|
C
|
mit
|
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
|
6a7fdeffa49b5c52c8d3aadd09838eb028aa16ef
|
src/opts/SkBlitRow_opts_SSE4.h
|
src/opts/SkBlitRow_opts_SSE4.h
|
/*
* Copyright 2014 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkBlitRow_opts_SSE4_DEFINED
#define SkBlitRow_opts_SSE4_DEFINED
#include "SkBlitRow.h"
/* Check if we are able to build assembly code, GCC/AT&T syntax.
* Had problems with LLVM-GCC 4.2.
*/
#if defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC))
extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst,
const SkPMColor* SK_RESTRICT src,
int count, U8CPU alpha);
#define SK_ATT_ASM_SUPPORTED
#endif
#endif
|
/*
* Copyright 2014 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkBlitRow_opts_SSE4_DEFINED
#define SkBlitRow_opts_SSE4_DEFINED
#include "SkBlitRow.h"
/* Check if we are able to build assembly code, GCC/AT&T syntax.
* Had problems with LLVM-GCC 4.2.
* MemorySanitizer cannot handle assembly code.
*/
#if (defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC))) \
&& !defined(MEMORY_SANITIZER)
extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst,
const SkPMColor* SK_RESTRICT src,
int count, U8CPU alpha);
#define SK_ATT_ASM_SUPPORTED
#endif
#endif
|
Disable assembly code in MemorySanitizer builds.
|
Disable assembly code in MemorySanitizer builds.
MemorySanitizer is an unitialized memory use detector which is used in
Chromium, and does not presently support assembly code.
BUG=chromium:344505, chromium:373739
R=mtklein@google.com
Review URL: https://codereview.chromium.org/367973005
|
C
|
bsd-3-clause
|
OptiPop/external_chromium_org_third_party_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,PAC-ROM/android_external_skia,invisiblek/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,scroggo/skia,Infinitive-OS/platform_external_skia,amyvmiwei/skia,MyAOSP/external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,w3nd1go/android_external_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,ominux/skia,MinimalOS-AOSP/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,OneRom/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,Igalia/skia,Omegaphora/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,Jichao/skia,invisiblek/android_external_skia,Igalia/skia,ominux/skia,PAC-ROM/android_external_skia,geekboxzone/mmallow_external_skia,Infinitive-OS/platform_external_skia,scroggo/skia,scroggo/skia,TeamEOS/external_chromium_org_third_party_skia,spezi77/android_external_skia,Igalia/skia,OptiPop/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,pcwalton/skia,VRToxin-AOSP/android_external_skia,chenlian2015/skia_from_google,MonkeyZZZZ/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,TeamExodus/external_skia,TeamEOS/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,android-ia/platform_external_chromium_org_third_party_skia,tmpvar/skia.cc,nvoron23/skia,amyvmiwei/skia,samuelig/skia,Jichao/skia,aosp-mirror/platform_external_skia,MonkeyZZZZ/platform_external_skia,rubenvb/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AOSPB/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,spezi77/android_external_skia,MarshedOut/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,noselhq/skia,mydongistiny/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,OneRom/external_skia,PAC-ROM/android_external_skia,geekboxzone/mmallow_external_skia,noselhq/skia,MyAOSP/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,tmpvar/skia.cc,todotodoo/skia,google/skia,Hikari-no-Tenshi/android_external_skia,vanish87/skia,UBERMALLOW/external_skia,MinimalOS-AOSP/platform_external_skia,TeamTwisted/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,Igalia/skia,MinimalOS-AOSP/platform_external_skia,UBERMALLOW/external_skia,google/skia,TeamExodus/external_skia,Hikari-no-Tenshi/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,jtg-gg/skia,DARKPOP/external_chromium_org_third_party_skia,vanish87/skia,MIPS/external-chromium_org-third_party-skia,samuelig/skia,Infinitive-OS/platform_external_skia,vanish87/skia,timduru/platform-external-skia,MinimalOS-AOSP/platform_external_skia,rubenvb/skia,OneRom/external_skia,ench0/external_chromium_org_third_party_skia,rubenvb/skia,AOSP-YU/platform_external_skia,DARKPOP/external_chromium_org_third_party_skia,rubenvb/skia,jtg-gg/skia,Fusion-Rom/external_chromium_org_third_party_skia,Igalia/skia,mydongistiny/external_chromium_org_third_party_skia,spezi77/android_external_skia,UBERMALLOW/external_skia,HalCanary/skia-hc,google/skia,PAC-ROM/android_external_skia,shahrzadmn/skia,aosp-mirror/platform_external_skia,AOSP-YU/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,BrokenROM/external_skia,AOSPB/external_skia,TeamTwisted/external_skia,w3nd1go/android_external_skia,TeamExodus/external_skia,MinimalOS-AOSP/platform_external_skia,boulzordev/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,boulzordev/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,scroggo/skia,MonkeyZZZZ/platform_external_skia,TeamExodus/external_skia,ench0/external_chromium_org_third_party_skia,AOSPB/external_skia,MarshedOut/android_external_skia,HalCanary/skia-hc,pcwalton/skia,nfxosp/platform_external_skia,ominux/skia,timduru/platform-external-skia,OptiPop/external_chromium_org_third_party_skia,TeamTwisted/external_skia,tmpvar/skia.cc,UBERMALLOW/external_skia,YUPlayGodDev/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,qrealka/skia-hc,geekboxzone/mmallow_external_skia,HalCanary/skia-hc,ench0/external_chromium_org_third_party_skia,BrokenROM/external_skia,google/skia,xin3liang/platform_external_chromium_org_third_party_skia,google/skia,TeamExodus/external_skia,MIPS/external-chromium_org-third_party-skia,MyAOSP/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,MinimalOS-AOSP/platform_external_skia,AOSP-YU/platform_external_skia,AOSP-YU/platform_external_skia,noselhq/skia,pcwalton/skia,amyvmiwei/skia,VRToxin-AOSP/android_external_skia,Infinitive-OS/platform_external_skia,ominux/skia,BrokenROM/external_skia,TeamExodus/external_skia,aosp-mirror/platform_external_skia,samuelig/skia,MinimalOS/external_chromium_org_third_party_skia,OneRom/external_skia,invisiblek/android_external_skia,todotodoo/skia,w3nd1go/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,TeamTwisted/external_skia,Hikari-no-Tenshi/android_external_skia,MIPS/external-chromium_org-third_party-skia,DARKPOP/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,invisiblek/android_external_skia,AOSPB/external_skia,spezi77/android_external_skia,BrokenROM/external_skia,ench0/external_chromium_org_third_party_skia,TeamTwisted/external_skia,nfxosp/platform_external_skia,shahrzadmn/skia,tmpvar/skia.cc,TeamEOS/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,pcwalton/skia,ominux/skia,samuelig/skia,google/skia,amyvmiwei/skia,MinimalOS/android_external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,pcwalton/skia,ominux/skia,qrealka/skia-hc,invisiblek/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,rubenvb/skia,VRToxin-AOSP/android_external_skia,samuelig/skia,noselhq/skia,TeamTwisted/external_skia,aosp-mirror/platform_external_skia,Infinitive-OS/platform_external_skia,nvoron23/skia,BrokenROM/external_skia,MyAOSP/external_chromium_org_third_party_skia,AOSPB/external_skia,nvoron23/skia,scroggo/skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,TeamExodus/external_skia,todotodoo/skia,DiamondLovesYou/skia-sys,MinimalOS/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,jtg-gg/skia,YUPlayGodDev/platform_external_skia,UBERMALLOW/external_skia,AOSP-YU/platform_external_skia,VRToxin-AOSP/android_external_skia,todotodoo/skia,TeamEOS/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,boulzordev/android_external_skia,google/skia,Jichao/skia,boulzordev/android_external_skia,YUPlayGodDev/platform_external_skia,Igalia/skia,aosp-mirror/platform_external_skia,DiamondLovesYou/skia-sys,Omegaphora/external_chromium_org_third_party_skia,shahrzadmn/skia,rubenvb/skia,rubenvb/skia,Igalia/skia,android-ia/platform_external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,MinimalOS-AOSP/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,PAC-ROM/android_external_skia,samuelig/skia,HalCanary/skia-hc,Infinitive-OS/platform_external_skia,ominux/skia,pcwalton/skia,chenlian2015/skia_from_google,qrealka/skia-hc,Jichao/skia,FusionSP/external_chromium_org_third_party_skia,shahrzadmn/skia,Hikari-no-Tenshi/android_external_skia,noselhq/skia,MinimalOS/android_external_chromium_org_third_party_skia,noselhq/skia,todotodoo/skia,aosp-mirror/platform_external_skia,UBERMALLOW/external_skia,nfxosp/platform_external_skia,qrealka/skia-hc,rubenvb/skia,mydongistiny/external_chromium_org_third_party_skia,TeamTwisted/external_skia,AOSPB/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,Jichao/skia,VRToxin-AOSP/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,amyvmiwei/skia,Hikari-no-Tenshi/android_external_skia,PAC-ROM/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,BrokenROM/external_skia,ench0/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,vanish87/skia,w3nd1go/android_external_skia,aosp-mirror/platform_external_skia,w3nd1go/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,vanish87/skia,Fusion-Rom/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,jtg-gg/skia,boulzordev/android_external_skia,MonkeyZZZZ/platform_external_skia,Jichao/skia,PAC-ROM/android_external_skia,rubenvb/skia,mydongistiny/external_chromium_org_third_party_skia,tmpvar/skia.cc,TeamExodus/external_skia,nvoron23/skia,DiamondLovesYou/skia-sys,spezi77/android_external_skia,chenlian2015/skia_from_google,VRToxin-AOSP/android_external_skia,MarshedOut/android_external_skia,shahrzadmn/skia,noselhq/skia,qrealka/skia-hc,nfxosp/platform_external_skia,VRToxin-AOSP/android_external_skia,amyvmiwei/skia,ench0/external_chromium_org_third_party_skia,invisiblek/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,timduru/platform-external-skia,timduru/platform-external-skia,TeamTwisted/external_skia,pcwalton/skia,nfxosp/platform_external_skia,MonkeyZZZZ/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,vanish87/skia,HalCanary/skia-hc,qrealka/skia-hc,ominux/skia,samuelig/skia,TeamTwisted/external_skia,DARKPOP/external_chromium_org_third_party_skia,pcwalton/skia,boulzordev/android_external_skia,ominux/skia,YUPlayGodDev/platform_external_skia,MonkeyZZZZ/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,BrokenROM/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,geekboxzone/mmallow_external_skia,DARKPOP/external_chromium_org_third_party_skia,HalCanary/skia-hc,shahrzadmn/skia,tmpvar/skia.cc,PAC-ROM/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,amyvmiwei/skia,todotodoo/skia,boulzordev/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,timduru/platform-external-skia,nvoron23/skia,TeamEOS/external_chromium_org_third_party_skia,timduru/platform-external-skia,amyvmiwei/skia,nfxosp/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,todotodoo/skia,scroggo/skia,MarshedOut/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,google/skia,geekboxzone/mmallow_external_skia,tmpvar/skia.cc,boulzordev/android_external_skia,boulzordev/android_external_skia,vanish87/skia,xin3liang/platform_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Jichao/skia,MyAOSP/external_chromium_org_third_party_skia,nvoron23/skia,google/skia,MIPS/external-chromium_org-third_party-skia,w3nd1go/android_external_skia,shahrzadmn/skia,MIPS/external-chromium_org-third_party-skia,TeamExodus/external_skia,spezi77/android_external_skia,MarshedOut/android_external_skia,MIPS/external-chromium_org-third_party-skia,vanish87/skia,mydongistiny/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,Jichao/skia,OneRom/external_skia,android-ia/platform_external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,UBERMALLOW/external_skia,scroggo/skia,nfxosp/platform_external_skia,w3nd1go/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,todotodoo/skia,jtg-gg/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,scroggo/skia,vanish87/skia,OneRom/external_skia,chenlian2015/skia_from_google,timduru/platform-external-skia,invisiblek/android_external_skia,DiamondLovesYou/skia-sys,samuelig/skia,MinimalOS/android_external_chromium_org_third_party_skia,Jichao/skia,OneRom/external_skia,HalCanary/skia-hc,nfxosp/platform_external_skia,google/skia,MinimalOS/external_chromium_org_third_party_skia,Igalia/skia,AOSP-YU/platform_external_skia,shahrzadmn/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,AOSPB/external_skia,chenlian2015/skia_from_google,MonkeyZZZZ/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,nvoron23/skia,ench0/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,OneRom/external_skia,mydongistiny/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,BrokenROM/external_skia,invisiblek/android_external_skia,nvoron23/skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,chenlian2015/skia_from_google,HalCanary/skia-hc,tmpvar/skia.cc,FusionSP/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,MarshedOut/android_external_skia,jtg-gg/skia,Omegaphora/external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,OneRom/external_skia,noselhq/skia,MarshedOut/android_external_skia,noselhq/skia,shahrzadmn/skia,jtg-gg/skia,tmpvar/skia.cc,FusionSP/external_chromium_org_third_party_skia,AOSPB/external_skia,w3nd1go/android_external_skia,geekboxzone/mmallow_external_skia,pcwalton/skia,rubenvb/skia,FusionSP/external_chromium_org_third_party_skia,AOSPB/external_skia,DiamondLovesYou/skia-sys,qrealka/skia-hc,qrealka/skia-hc,OptiPop/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,nvoron23/skia,todotodoo/skia,VRToxin-AOSP/android_external_skia,DiamondLovesYou/skia-sys,UBERMALLOW/external_skia,UBERMALLOW/external_skia
|
612b95ba94af1bf3a2459dcec6a578c381374dc9
|
inc/types.h
|
inc/types.h
|
#pragma once
#include <Eigen/Dense>
namespace model {
#if BICYCLE_USE_DOUBLE_PRECISION_REAL
using real_t = double;
#else
using real_t = float;
#endif
} // namespace model
|
#pragma once
namespace model {
#if BICYCLE_USE_DOUBLE_PRECISION_REAL
using real_t = double;
#else
using real_t = float;
#endif
} // namespace model
|
Remove Eigen/Dense include in type header
|
Remove Eigen/Dense include in type header
|
C
|
bsd-2-clause
|
oliverlee/bicycle,oliverlee/bicycle
|
75dc6c7cb879d0018893baf6ba6b49d1f16e1b92
|
unpack-trees.h
|
unpack-trees.h
|
#ifndef UNPACK_TREES_H
#define UNPACK_TREES_H
#define MAX_UNPACK_TREES 8
struct unpack_trees_options;
typedef int (*merge_fn_t)(struct cache_entry **src,
struct unpack_trees_options *options);
struct unpack_trees_options {
int reset;
int merge;
int update;
int index_only;
int nontrivial_merge;
int trivial_merges_only;
int verbose_update;
int aggressive;
int skip_unmerged;
int gently;
const char *prefix;
int pos;
struct dir_struct *dir;
merge_fn_t fn;
int head_idx;
int merge_size;
struct cache_entry *df_conflict_entry;
void *unpack_data;
struct index_state *dst_index;
const struct index_state *src_index;
struct index_state result;
};
extern int unpack_trees(unsigned n, struct tree_desc *t,
struct unpack_trees_options *options);
int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o);
int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o);
int bind_merge(struct cache_entry **src, struct unpack_trees_options *o);
int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o);
#endif
|
#ifndef UNPACK_TREES_H
#define UNPACK_TREES_H
#define MAX_UNPACK_TREES 8
struct unpack_trees_options;
typedef int (*merge_fn_t)(struct cache_entry **src,
struct unpack_trees_options *options);
struct unpack_trees_options {
unsigned int reset:1,
merge:1,
update:1,
index_only:1,
nontrivial_merge:1,
trivial_merges_only:1,
verbose_update:1,
aggressive:1,
skip_unmerged:1,
gently:1;
const char *prefix;
int pos;
struct dir_struct *dir;
merge_fn_t fn;
int head_idx;
int merge_size;
struct cache_entry *df_conflict_entry;
void *unpack_data;
struct index_state *dst_index;
const struct index_state *src_index;
struct index_state result;
};
extern int unpack_trees(unsigned n, struct tree_desc *t,
struct unpack_trees_options *options);
int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o);
int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o);
int bind_merge(struct cache_entry **src, struct unpack_trees_options *o);
int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o);
#endif
|
Make unpack_trees_options bit flags actual bitfields
|
Make unpack_trees_options bit flags actual bitfields
Instead of wasting space with whole integers for a single bit.
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
Signed-off-by: Junio C Hamano <a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com>
|
C
|
mit
|
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
|
4478bc737ca39f5f7d1db4488a5aa2c0d8a793d2
|
scripts/reference-citation/URLcheck.c
|
scripts/reference-citation/URLcheck.c
|
reference(citation): URLcheck
If [ $$stopFileNameCheck = 1 ]
Exit Script [ ]
End If
If [ Filter ( reference::fileName ; "?" ) = "?" or
Filter ( reference::fileName ; "#" ) = "#" or
Filter ( reference::fileName ; ";" ) = ";" or
Filter ( reference::fileName ; ":" ) = ":" ]
Show Custom Dialog [ Message: "These special characters ? # ; : prevent the system from opening files. Remove them from your filename and then test the 'file' button above to insure it opens your file."; Buttons: “OK” ]
Go to Field [ reference::fileName ]
End If
January 7, 平成26 17:54:06 Imagination Quality Management.fp7 - URLcheck -1-
|
reference(citation): URLcheck
If [ $$stopFileNameCheck = 1 ]
Exit Script [ ]
End If
If [ Filter ( reference::fileName ; "?" ) = "?" or
Filter ( reference::fileName ; "#" ) = "#" or
Filter ( reference::fileName ; ";" ) = ";" or
Filter ( reference::fileName ; "/" ) = "/" or
Filter ( reference::fileName ; ":" ) = ":" ]
Show Custom Dialog [ Message: "These special characters ? # / ; : prevent the system from opening files. Remove them from your filename and then test the 'file' button above to insure it opens your file."; Buttons: “OK” ]
Go to Field [ reference::fileName ]
End If
April 26, 平成26 14:17:47 Imagination Quality Management.fp7 - URLcheck -1-
|
Add slash = / to warning message
|
Add slash = / to warning message
Add slash = / to warning message for file name character that prevent
library from opening them.
|
C
|
apache-2.0
|
HelpGiveThanks/Library,HelpGiveThanks/Library
|
0e02d81608e0054a79b3760dc0af526df43f71e0
|
Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h
|
Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h
|
//
// ApptentiveConversationMetadataItem.h
// Apptentive
//
// Created by Frank Schmitt on 2/20/17.
// Copyright © 2017 Apptentive, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, ApptentiveConversationState) {
ApptentiveConversationStateNone = 0,
ApptentiveConversationStateAnonymousPending,
ApptentiveConversationStateAnonymous,
ApptentiveConversationStateLoggedIn,
ApptentiveConversationStateLoggedOut
};
@interface ApptentiveConversationMetadataItem : NSObject <NSSecureCoding>
- (instancetype)initWithConversationIdentifier:(NSString *)conversationIdentifier filename:(NSString *)filename;
@property (assign, nonatomic) ApptentiveConversationState state;
@property (strong, nonatomic) NSString *conversationIdentifier;
@property (strong, nonatomic) NSString *fileName;
@end
|
//
// ApptentiveConversationMetadataItem.h
// Apptentive
//
// Created by Frank Schmitt on 2/20/17.
// Copyright © 2017 Apptentive, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, ApptentiveConversationState) {
ApptentiveConversationStateUndefined = 0,
ApptentiveConversationStateAnonymousPending,
ApptentiveConversationStateAnonymous,
ApptentiveConversationStateLoggedIn,
ApptentiveConversationStateLoggedOut
};
@interface ApptentiveConversationMetadataItem : NSObject <NSSecureCoding>
- (instancetype)initWithConversationIdentifier:(NSString *)conversationIdentifier filename:(NSString *)filename;
@property (assign, nonatomic) ApptentiveConversationState state;
@property (strong, nonatomic) NSString *conversationIdentifier;
@property (strong, nonatomic) NSString *fileName;
@end
|
Update name of null state to match Android
|
Update name of null state to match Android
|
C
|
bsd-3-clause
|
apptentive/apptentive-ios,apptentive/apptentive-ios,apptentive/apptentive-ios
|
9f49055456049bdff41f61231553d29573fac184
|
test/Analysis/uninit-vals-ps.c
|
test/Analysis/uninit-vals-ps.c
|
// RUN: clang -checker-simple -verify %s
struct FPRec {
void (*my_func)(int * x);
};
int bar(int x);
int f1_a(struct FPRec* foo) {
int x;
(*foo->my_func)(&x);
return bar(x)+1; // no-warning
}
int f1_b() {
int x;
return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}}
}
int f2() {
int x;
if (x+1) // expected-warning{{Branch}}
return 1;
return 2;
}
int f2_b() {
int x;
return ((x+1)+2+((x))) + 1 ? 1 : 2; // expected-warning{{Branch}}
}
int f3(void) {
int i;
int *p = &i;
if (*p > 0) // expected-warning{{Branch condition evaluates to an uninitialized value}}
return 0;
else
return 1;
}
|
// RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct FPRec {
void (*my_func)(int * x);
};
int bar(int x);
int f1_a(struct FPRec* foo) {
int x;
(*foo->my_func)(&x);
return bar(x)+1; // no-warning
}
int f1_b() {
int x;
return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}}
}
int f2() {
int x;
if (x+1) // expected-warning{{Branch}}
return 1;
return 2;
}
int f2_b() {
int x;
return ((x+1)+2+((x))) + 1 ? 1 : 2; // expected-warning{{Branch}}
}
int f3(void) {
int i;
int *p = &i;
if (*p > 0) // expected-warning{{Branch condition evaluates to an uninitialized value}}
return 0;
else
return 1;
}
|
Enable test file for 'region store' in addition to basic store.
|
Enable test file for 'region store' in addition to basic store.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59762 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang
|
bcc883fed382acb90216a8158f6bf62329581194
|
src/include/port/i386_solaris.h
|
src/include/port/i386_solaris.h
|
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NO_EMPTY_STMTS
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#include <sys/isa_defs.h>
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifndef NAN
#ifndef __nan_bytes
#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
#endif /* __nan_bytes */
#ifdef __GNUC__
#define NAN \
(__extension__ ((union { unsigned char __c[8]; \
double __d; }) \
{ __nan_bytes }).__d)
#else /* Not GCC. */
#define NAN (*(__const double *) __nan)
#endif /* GCC. */
#endif /* NAN */
#ifndef index
#define index strchr
#endif
#ifndef HAVE_RUSAGE
#define HAVE_RUSAGE 1
#endif
|
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NO_EMPTY_STMTS
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#include <sys/isa_defs.h>
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifndef NAN
#ifndef __nan_bytes
#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
#endif /* __nan_bytes */
#ifdef __GNUC__
#define NAN \
(__extension__ ((union { unsigned char __c[8]; \
double __d; }) \
{ __nan_bytes }).__d)
#else /* Not GCC. */
#define NAN (*(__const double *) __nan)
#endif /* GCC. */
#endif /* NAN */
#ifndef index
#define index strchr
#endif
|
Remove HAVE_USAGE because it is no longer used.
|
Remove HAVE_USAGE because it is no longer used.
|
C
|
apache-2.0
|
Chibin/gpdb,lintzc/gpdb,zaksoup/gpdb,randomtask1155/gpdb,adam8157/gpdb,Chibin/gpdb,CraigHarris/gpdb,Quikling/gpdb,tangp3/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,jmcatamney/gpdb,yazun/postgres-xl,rvs/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,chrishajas/gpdb,Chibin/gpdb,kaknikhil/gpdb,atris/gpdb,ashwinstar/gpdb,tangp3/gpdb,yuanzhao/gpdb,Chibin/gpdb,rvs/gpdb,ahachete/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,CraigHarris/gpdb,lisakowen/gpdb,oberstet/postgres-xl,chrishajas/gpdb,rubikloud/gpdb,pavanvd/postgres-xl,edespino/gpdb,xinzweb/gpdb,greenplum-db/gpdb,xinzweb/gpdb,janebeckman/gpdb,edespino/gpdb,ashwinstar/gpdb,janebeckman/gpdb,yuanzhao/gpdb,Chibin/gpdb,ovr/postgres-xl,foyzur/gpdb,zaksoup/gpdb,CraigHarris/gpdb,lintzc/gpdb,CraigHarris/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,postmind-net/postgres-xl,rubikloud/gpdb,lisakowen/gpdb,Quikling/gpdb,chrishajas/gpdb,ashwinstar/gpdb,snaga/postgres-xl,0x0FFF/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,atris/gpdb,lintzc/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,xuegang/gpdb,rubikloud/gpdb,xinzweb/gpdb,zaksoup/gpdb,Quikling/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,xinzweb/gpdb,cjcjameson/gpdb,50wu/gpdb,ovr/postgres-xl,jmcatamney/gpdb,royc1/gpdb,lintzc/gpdb,kaknikhil/gpdb,lpetrov-pivotal/gpdb,snaga/postgres-xl,xinzweb/gpdb,kmjungersen/PostgresXL,janebeckman/gpdb,janebeckman/gpdb,50wu/gpdb,pavanvd/postgres-xl,kaknikhil/gpdb,xuegang/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,Quikling/gpdb,cjcjameson/gpdb,xinzweb/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,tangp3/gpdb,zeroae/postgres-xl,ahachete/gpdb,edespino/gpdb,randomtask1155/gpdb,xuegang/gpdb,janebeckman/gpdb,royc1/gpdb,chrishajas/gpdb,janebeckman/gpdb,0x0FFF/gpdb,rubikloud/gpdb,Quikling/gpdb,adam8157/gpdb,foyzur/gpdb,chrishajas/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,rvs/gpdb,royc1/gpdb,rubikloud/gpdb,rvs/gpdb,ovr/postgres-xl,rubikloud/gpdb,cjcjameson/gpdb,rvs/gpdb,yazun/postgres-xl,zeroae/postgres-xl,kmjungersen/PostgresXL,snaga/postgres-xl,lpetrov-pivotal/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,techdragon/Postgres-XL,foyzur/gpdb,50wu/gpdb,zaksoup/gpdb,ashwinstar/gpdb,royc1/gpdb,royc1/gpdb,yuanzhao/gpdb,rvs/gpdb,xuegang/gpdb,jmcatamney/gpdb,randomtask1155/gpdb,oberstet/postgres-xl,yazun/postgres-xl,techdragon/Postgres-XL,techdragon/Postgres-XL,snaga/postgres-xl,tpostgres-projects/tPostgres,atris/gpdb,atris/gpdb,edespino/gpdb,ahachete/gpdb,arcivanov/postgres-xl,foyzur/gpdb,cjcjameson/gpdb,ahachete/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,lintzc/gpdb,chrishajas/gpdb,xuegang/gpdb,ashwinstar/gpdb,kmjungersen/PostgresXL,lpetrov-pivotal/gpdb,50wu/gpdb,50wu/gpdb,cjcjameson/gpdb,pavanvd/postgres-xl,rvs/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,ovr/postgres-xl,tangp3/gpdb,rubikloud/gpdb,0x0FFF/gpdb,royc1/gpdb,lpetrov-pivotal/gpdb,CraigHarris/gpdb,zaksoup/gpdb,cjcjameson/gpdb,postmind-net/postgres-xl,Chibin/gpdb,xuegang/gpdb,zaksoup/gpdb,postmind-net/postgres-xl,edespino/gpdb,yazun/postgres-xl,snaga/postgres-xl,xinzweb/gpdb,janebeckman/gpdb,adam8157/gpdb,lintzc/gpdb,ashwinstar/gpdb,chrishajas/gpdb,royc1/gpdb,zeroae/postgres-xl,kaknikhil/gpdb,atris/gpdb,zaksoup/gpdb,lintzc/gpdb,lisakowen/gpdb,xinzweb/gpdb,CraigHarris/gpdb,arcivanov/postgres-xl,chrishajas/gpdb,rvs/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,ahachete/gpdb,50wu/gpdb,royc1/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,foyzur/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,lisakowen/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,Quikling/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,zaksoup/gpdb,tangp3/gpdb,techdragon/Postgres-XL,adam8157/gpdb,janebeckman/gpdb,Quikling/gpdb,yuanzhao/gpdb,tangp3/gpdb,xuegang/gpdb,randomtask1155/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,tpostgres-projects/tPostgres,greenplum-db/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,edespino/gpdb,foyzur/gpdb,Chibin/gpdb,50wu/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,arcivanov/postgres-xl,ovr/postgres-xl,randomtask1155/gpdb,kaknikhil/gpdb,lintzc/gpdb,yuanzhao/gpdb,edespino/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,tpostgres-projects/tPostgres,xuegang/gpdb,adam8157/gpdb,atris/gpdb,postmind-net/postgres-xl,atris/gpdb,Postgres-XL/Postgres-XL,atris/gpdb,foyzur/gpdb,0x0FFF/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,Quikling/gpdb,oberstet/postgres-xl,edespino/gpdb,oberstet/postgres-xl,ahachete/gpdb,rvs/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,Quikling/gpdb,ahachete/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,lisakowen/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,xuegang/gpdb,yuanzhao/gpdb,Quikling/gpdb,0x0FFF/gpdb,rubikloud/gpdb,rvs/gpdb,kmjungersen/PostgresXL,ahachete/gpdb,kmjungersen/PostgresXL,pavanvd/postgres-xl,tangp3/gpdb,yuanzhao/gpdb,janebeckman/gpdb,adam8157/gpdb,jmcatamney/gpdb,edespino/gpdb,lintzc/gpdb
|
3973eb1a7833ac3e96ff7738ef72b6bd6ce42685
|
examples/debug-trans-socket/duk_trans_socket.h
|
examples/debug-trans-socket/duk_trans_socket.h
|
#if !defined(DUK_TRANS_SOCKET_H_INCLUDED)
#define DUK_TRANS_SOCKET_H_INCLUDED
#include "duktape.h"
void duk_trans_socket_init(void);
void duk_trans_socket_finish(void);
void duk_trans_socket_waitconn(void);
duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, duk_size_t length);
duk_size_t duk_trans_socket_write_cb(void *udata, const char *buffer, duk_size_t length);
duk_size_t duk_trans_socket_peek_cb(void *udata);
void duk_trans_socket_read_flush_cb(void *udata);
void duk_trans_socket_write_flush_cb(void *udata);
#endif /* DUK_TRANS_SOCKET_H_INCLUDED */
|
#if !defined(DUK_TRANS_SOCKET_H_INCLUDED)
#define DUK_TRANS_SOCKET_H_INCLUDED
#include "duktape.h"
#if defined(__cplusplus)
extern "C" {
#endif
void duk_trans_socket_init(void);
void duk_trans_socket_finish(void);
void duk_trans_socket_waitconn(void);
duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, duk_size_t length);
duk_size_t duk_trans_socket_write_cb(void *udata, const char *buffer, duk_size_t length);
duk_size_t duk_trans_socket_peek_cb(void *udata);
void duk_trans_socket_read_flush_cb(void *udata);
void duk_trans_socket_write_flush_cb(void *udata);
#if defined(__cplusplus)
}
#endif /* end 'extern "C"' wrapper */
#endif /* DUK_TRANS_SOCKET_H_INCLUDED */
|
Enable C++ support for socket debug transport
|
Enable C++ support for socket debug transport
|
C
|
mit
|
svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape
|
e42dbed53ae145bd1b9b88c1903f0360904fea4e
|
include/llvm/Intrinsics.h
|
include/llvm/Intrinsics.h
|
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- 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.
//
//===----------------------------------------------------------------------===//
//
// This file defines a set of enums which allow processing of intrinsic
// functions. Values of these enum types are returned by
// Function::getIntrinsicID.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_INTRINSICS_H
#define LLVM_INTRINSICS_H
namespace llvm {
/// Intrinsic Namespace - This namespace contains an enum with a value for
/// every intrinsic/builtin function known by LLVM. These enum values are
/// returned by Function::getIntrinsicID().
///
namespace Intrinsic {
enum ID {
not_intrinsic = 0, // Must be zero
// Get the intrinsic enums generated from Intrinsics.td
#define GET_INTRINSIC_ENUM_VALUES
#include "llvm/Intrinsics.gen"
#undef GET_INTRINSIC_ENUM_VALUES
};
} // End Intrinsic namespace
} // End llvm namespace
#endif
|
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- 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.
//
//===----------------------------------------------------------------------===//
//
// This file defines a set of enums which allow processing of intrinsic
// functions. Values of these enum types are returned by
// Function::getIntrinsicID.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_INTRINSICS_H
#define LLVM_INTRINSICS_H
namespace llvm {
/// Intrinsic Namespace - This namespace contains an enum with a value for
/// every intrinsic/builtin function known by LLVM. These enum values are
/// returned by Function::getIntrinsicID().
///
namespace Intrinsic {
enum ID {
not_intrinsic = 0, // Must be zero
// Get the intrinsic enums generated from Intrinsics.td
#define GET_INTRINSIC_ENUM_VALUES
#include "llvm/Intrinsics.gen"
#undef GET_INTRINSIC_ENUM_VALUES
, num_intrinsics
};
/// Intrinsic::getName(ID) - Return the LLVM name for an intrinsic, such as
/// "llvm.ppc.altivec.lvx".
const char *getName(ID id);
} // End Intrinsic namespace
} // End llvm namespace
#endif
|
Add a programatic interface to intrinsic names.
|
Add a programatic interface to intrinsic names.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27107 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap
|
794450b5b7c744273aa1c8c6c920523a1f7b3801
|
src/mfast/json/json.h
|
src/mfast/json/json.h
|
#ifndef JSON_H_H4Q7QTC4
#define JSON_H_H4Q7QTC4
#include "mfast_json_export.h"
#include "mfast.h"
#include <iostream>
namespace mfast
{
namespace json {
MFAST_JSON_EXPORT bool encode(std::ostream& os,
const ::mfast::aggregate_cref& msg,
unsigned json_object_tag_mask=0);
MFAST_JSON_EXPORT bool encode(std::istream& is,
const ::mfast::sequence_mref& seq,
unsigned json_object_tag_mask=0);
MFAST_JSON_EXPORT bool decode(std::istream& is,
const ::mfast::aggregate_mref& msg,
unsigned json_object_tag_mask=0);
MFAST_JSON_EXPORT bool decode(std::istream& is,
const ::mfast::sequence_mref& seq,
unsigned json_object_tag_mask=0);
} // namespace json
} // namespace mfast
#endif /* end of include guard: JSON_H_H4Q7QTC4 */
|
#ifndef JSON_H_H4Q7QTC4
#define JSON_H_H4Q7QTC4
#include "mfast_json_export.h"
#include "mfast.h"
#include <iostream>
namespace mfast
{
namespace json {
MFAST_JSON_EXPORT bool encode(std::ostream& os,
const ::mfast::aggregate_cref& msg,
unsigned json_object_tag_mask=0);
MFAST_JSON_EXPORT bool encode(std::istream& is,
const ::mfast::sequence_cref& seq,
unsigned json_object_tag_mask=0);
MFAST_JSON_EXPORT bool decode(std::istream& is,
const ::mfast::aggregate_mref& msg,
unsigned json_object_tag_mask=0);
MFAST_JSON_EXPORT bool decode(std::istream& is,
const ::mfast::sequence_mref& seq,
unsigned json_object_tag_mask=0);
} // namespace json
} // namespace mfast
#endif /* end of include guard: JSON_H_H4Q7QTC4 */
|
Fix a JSON sequence encode bug
|
Fix a JSON sequence encode bug
|
C
|
bsd-3-clause
|
cuavas/mFAST,objectcomputing/mFAST,cuavas/mFAST,cuavas/mFAST,objectcomputing/mFAST
|
24652d16f84e4fd605aaffdd5112a606be6c8074
|
lib/Target/PowerPC/PPCMachineFunctionInfo.h
|
lib/Target/PowerPC/PPCMachineFunctionInfo.h
|
//===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the PowerPC specific subclass of MachineFunctionInfo.
//
//===----------------------------------------------------------------------===//
#ifndef PPC_MACHINE_FUNCTION_INFO_H
#define PPC_MACHINE_FUNCTION_INFO_H
#include "llvm/CodeGen/MachineFunction.h"
namespace llvm {
/// PPCFunctionInfo - This class is derived from MachineFunction private
/// PowerPC target-specific information for each MachineFunction.
class PPCFunctionInfo : public MachineFunctionInfo {
private:
/// FramePointerSaveIndex - Frame index of where the old frame pointer is
/// stored. Also used as an anchor for instructions that need to be altered
/// when using frame pointers (dyna_add, dyna_sub.)
int FramePointerSaveIndex;
public:
PPCFunctionInfo(MachineFunction& MF)
: FramePointerSaveIndex(0)
{}
int getFramePointerSaveIndex() const { return FramePointerSaveIndex; }
void setFramePointerSaveIndex(int Idx) { FramePointerSaveIndex = Idx; }
};
} // end of namespace llvm
#endif
|
//===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the PowerPC specific subclass of MachineFunctionInfo.
//
//===----------------------------------------------------------------------===//
#ifndef PPC_MACHINE_FUNCTION_INFO_H
#define PPC_MACHINE_FUNCTION_INFO_H
#include "llvm/CodeGen/MachineFunction.h"
namespace llvm {
/// PPCFunctionInfo - This class is derived from MachineFunction private
/// PowerPC target-specific information for each MachineFunction.
class PPCFunctionInfo : public MachineFunctionInfo {
private:
/// FramePointerSaveIndex - Frame index of where the old frame pointer is
/// stored. Also used as an anchor for instructions that need to be altered
/// when using frame pointers (dyna_add, dyna_sub.)
int FramePointerSaveIndex;
public:
PPCFunctionInfo(MachineFunction& MF)
: FramePointerSaveIndex(0)
{}
int getFramePointerSaveIndex() const { return FramePointerSaveIndex; }
void setFramePointerSaveIndex(int Idx) { FramePointerSaveIndex = Idx; }
};
} // end of namespace llvm
#endif
|
Add newline at end of file.
|
Add newline at end of file.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@31902 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap
|
207820e858122666cbaa69801532258e5bfa6bce
|
ext/rubygame/rubygame_shared.h
|
ext/rubygame/rubygame_shared.h
|
/*
* Rubygame -- Ruby code and bindings to SDL to facilitate game creation
* Copyright (C) 2004-2007 John Croisant
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _RUBYGAME_SHARED_H
#define _RUBYGAME_SHARED_H
#include <SDL.h>
#include <ruby.h>
#include <stdio.h>
/* General */
extern VALUE mRubygame;
extern VALUE eSDLError;
extern VALUE cSurface;
extern VALUE cRect;
extern SDL_Rect *make_rect(int, int, int, int);
extern Uint32 collapse_flags(VALUE);
extern void Init_rubygame_shared();
#ifndef _MSC_VER
extern static inline int max(int, int);
extern static inline int min(int, int);
#endif
#endif
|
/*
* Rubygame -- Ruby code and bindings to SDL to facilitate game creation
* Copyright (C) 2004-2007 John Croisant
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _RUBYGAME_SHARED_H
#define _RUBYGAME_SHARED_H
#include <SDL.h>
#include <ruby.h>
#include <stdio.h>
/* General */
extern VALUE mRubygame;
extern VALUE eSDLError;
extern VALUE cSurface;
extern VALUE cRect;
extern SDL_Rect *make_rect(int, int, int, int);
extern Uint32 collapse_flags(VALUE);
extern void Init_rubygame_shared();
#ifndef _MSC_VER
extern inline int max(int, int);
extern inline int min(int, int);
#endif
#endif
|
Fix type conflict with min/max in shared.
|
Fix type conflict with min/max in shared.
|
C
|
lgpl-2.1
|
singpolyma/rubygame,rubygame/rubygame,Dami-coding/rubygame,singpolyma/rubygame,firstval/rubygame
|
affce21f6503652363251b264dc23d66e0994926
|
common_audio/signal_processing/cross_correlation.c
|
common_audio/signal_processing/cross_correlation.c
|
/*
* Copyright (c) 2012 The WebRTC 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 contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */
void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,
const int16_t* seq1,
const int16_t* seq2,
int16_t dim_seq,
int16_t dim_cross_correlation,
int right_shifts,
int step_seq2) {
int i = 0, j = 0;
for (i = 0; i < dim_cross_correlation; i++) {
int32_t corr = 0;
// Linux 64-bit performance is improved by the int16_t cast below.
// Presumably this is some sort of compiler bug, as there's no obvious
// reason why that should result in better code.
for (j = 0; j < dim_seq; j++)
corr += (seq1[j] * seq2[j]) >> (int16_t)right_shifts;
seq2 += step_seq2;
*cross_correlation++ = corr;
}
}
|
/*
* Copyright (c) 2012 The WebRTC 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 contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */
void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,
const int16_t* seq1,
const int16_t* seq2,
int16_t dim_seq,
int16_t dim_cross_correlation,
int right_shifts,
int step_seq2) {
int i = 0, j = 0;
for (i = 0; i < dim_cross_correlation; i++) {
int32_t corr = 0;
for (j = 0; j < dim_seq; j++)
corr += (seq1[j] * seq2[j]) >> right_shifts;
seq2 += step_seq2;
*cross_correlation++ = corr;
}
}
|
Remove a cast again, after it was shown to worsen Windows perf.
|
Remove a cast again, after it was shown to worsen Windows perf.
This will hurt Linux x64 perf, but we think that's a compiler bug and we're
willing to take the hit for the better clarity of the code sans cast as well as
the better Windows perf. Hopefully eventually the compiler will improve.
BUG=504813
TEST=none
TBR=andrew
Review URL: https://codereview.webrtc.org/1215053002
Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9516}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 3c60d614636a858e18fda9e52045fd1192517b8d
|
C
|
bsd-3-clause
|
Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,Alkalyne/webrtctrunk,sippet/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,jchavanton/webrtc,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,jchavanton/webrtc,aleonliao/webrtc-trunk,sippet/webrtc,aleonliao/webrtc-trunk,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,sippet/webrtc,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,sippet/webrtc
|
17aaf98c7a1db77947e28da9c407a094c2fcd64f
|
src/kernel.c
|
src/kernel.c
|
#include <rose/interrupts.h>
#include <rose/screen.h>
#include <rose/serial.h>
#include <rose/memory.h>
extern void protected_mode_start(void);
extern char end[];
void
kmain(void)
{
interrupts_disable();
screen_clear();
memory_init_gdt();
interrupts_init();
protected_mode_start();
serial_init();
memory_init_paging(0, end);
/* XXX turn on interrupts? */
screen_write_string_at("Hello from rOSe (in protected mode!)", 0, 0);
}
|
#include <rose/console.h>
#include <rose/interrupts.h>
#include <rose/screen.h>
#include <rose/serial.h>
#include <rose/memory.h>
extern void protected_mode_start(void);
extern char end[];
void
kmain(void)
{
interrupts_disable();
screen_clear();
memory_init_gdt();
interrupts_init();
protected_mode_start();
serial_init();
memory_init_paging(0, end);
/* XXX turn on interrupts? */
console_write_string("Hello from rOSe (in protected mode!)\n");
}
|
Write hello message to console
|
Write hello message to console
|
C
|
mit
|
hoelzro/rose-kernel,hoelzro/rose-kernel
|
6c4710ca4fa04771c6d5d9422781430fc8f0ede6
|
str/lstrip.c
|
str/lstrip.c
|
/* str/lstrip.c - Strip whitespace from the left of a string
* Copyright (C) 2001 Bruce Guenter <bruceg@em.ca>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <ctype.h>
#include "str.h"
void str_lstrip(str* s)
{
unsigned off;
for (off = 0; off < s->len && isspace(s->s[off]); ++off) ;
if (off) {
memcpy(s->s, s->s+off, s->len-off+1);
s->len -= off;
}
}
|
/* str/lstrip.c - Strip whitespace from the left of a string
* Copyright (C) 2001 Bruce Guenter <bruceg@em.ca>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <ctype.h>
#include <string.h>
#include "str.h"
void str_lstrip(str* s)
{
unsigned off;
for (off = 0; off < s->len && isspace(s->s[off]); ++off) ;
if (off) {
memmove(s->s, s->s+off, s->len-off+1);
s->len -= off;
}
}
|
Use memmove instead of memcpy due to the fact that the strings will be overlapping.
|
Use memmove instead of memcpy due to the fact that the strings will be
overlapping.
|
C
|
lgpl-2.1
|
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
|
b5cb1f3cbf4cf94304c931419bd707ca6e60edcf
|
Wikipedia/Code/WMFProxyServer.h
|
Wikipedia/Code/WMFProxyServer.h
|
#import <Foundation/Foundation.h>
@interface WMFProxyServer : NSObject
@property (nonatomic, readonly, getter=isRunning) BOOL running;
- (void)start;
+ (WMFProxyServer *)sharedProxyServer;
- (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's server
- (NSURL *)proxyURLForRelativeFilePath:(NSString *)relativeFilePath fragment:(NSString *)fragment; //returns the proxy url for a given relative path
- (NSURL *)proxyURLForWikipediaAPIHost:(NSString *)host;
- (NSString *)stringByReplacingImageURLsWithProxyURLsInHTMLString:(NSString *)HTMLString withBaseURL:(NSURL *)baseURL targetImageWidth:(NSUInteger)targetImageWidth; //replaces image URLs in an HTML string with URLs that will be routed through this proxy
- (void)setResponseData:(NSData *)data withContentType:(NSString *)contentType forPath:(NSString *)path;
@end
|
#import <Foundation/Foundation.h>
@interface WMFProxyServer : NSObject
@property (nonatomic, readonly, getter=isRunning) BOOL running;
- (void)start;
+ (WMFProxyServer *)sharedProxyServer;
- (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's server
- (NSURL *)proxyURLForRelativeFilePath:(NSString *)relativeFilePath fragment:(NSString *)fragment; //returns the proxy url for a given relative path
// Details: https://github.com/wikimedia/wikipedia-ios/pull/1334/commits/f2b2228e2c0fd852479464ec84e38183d1cf2922
- (NSURL *)proxyURLForWikipediaAPIHost:(NSString *)host;
- (NSString *)stringByReplacingImageURLsWithProxyURLsInHTMLString:(NSString *)HTMLString withBaseURL:(NSURL *)baseURL targetImageWidth:(NSUInteger)targetImageWidth; //replaces image URLs in an HTML string with URLs that will be routed through this proxy
- (void)setResponseData:(NSData *)data withContentType:(NSString *)contentType forPath:(NSString *)path;
@end
|
Add link to comment for api proxy method.
|
Add link to comment for api proxy method.
|
C
|
mit
|
montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia
|
3f6c9bff6c30791a0c7188733658aaf879ab86a1
|
tests/full_semantic_errors.c
|
tests/full_semantic_errors.c
|
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
float test_array[10];
b = c;
b = c * d + 6 * 7.0;
// undefined variable 'h'
h = !f;
// '[]' used on non-array variable
b[1] = 2;
// undefine variable 'nono'
nono[0] = 3;
return c * d;
}
// redefinition of func
int func()
{
return 1;
}
void main()
{
int aaa[10];
// redefinition of 'duplicate'
int duplicate[1];
int duplicate;
struct foo bar;
// incomplete type
struct b incomplete_type;
bar.a = 1;
// '.' used on non-struct variables
aaa.abc = 2;
// undefined variable 'a'
func(2.5, a, aaa[0]);
return;
}
|
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
float test_array[10];
b = c;
b = c * d + 6 * 7.0;
// undefined variable 'h'
h = !f;
// '[]' used on non-array variable
b[1] = 2;
// undefine variable 'nono'
nono[0] = 3;
return c * d;
}
// redefinition of func
int func()
{
return 1;
}
void main()
{
int aaa[10];
// redefinition of 'duplicate'
int duplicate[1];
int duplicate;
struct foo bar;
// incomplete type
struct b incomplete_type;
bar.a = 1;
// illegal member access
bar.abc = 2;
// '.' used on non-struct variables
aaa.abc = 2;
// undefined variable 'a'
func(2.5, a, aaa[0]);
// undefined function name
b_func(1);
// '()' used on non-function
aaa(2);
return;
}
|
Add illegal member access and undefined function name error.
|
Add illegal member access and undefined function name error.
|
C
|
mit
|
RyanWangGit/scc
|
42f0093f5f5ed7d30b77b927966cb64025889811
|
config.h
|
config.h
|
#ifndef CONFIG
#define CONFIG
#define VERSION 179
//try to keep this in sync.
//SavvyCAN will complain if you connect a GVRET board with a revision
//less than this number.
#define CURRENT_GVRET_VER 334
#endif // CONFIG
|
#ifndef CONFIG
#define CONFIG
#define VERSION 180
//try to keep this in sync.
//SavvyCAN will complain if you connect a GVRET board with a revision
//less than this number.
#define CURRENT_GVRET_VER 343
#endif // CONFIG
|
Update requested GVRET version to 343 which is where stable support for M2 and CANDue2.2 are found.
|
Update requested GVRET version to 343 which is where stable support
for M2 and CANDue2.2 are found.
|
C
|
mit
|
collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN
|
7711fe4d9cfcb73bc5b4b58ec2120f1863400f6b
|
test2/casts/rm_qual.c
|
test2/casts/rm_qual.c
|
// RUN: %check %s
struct A
{
int i;
};
int f(const void *p)
{
struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const)
struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/
(void)a;
(void)b;
}
|
// RUN: %check %s
struct A
{
int i;
};
void take(void *);
int f(const void *p)
{
struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const)
struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/
(void)a;
(void)b;
const char c = 5;
take(&c); // CHECK: warning: implicit cast removes qualifiers (const)
}
|
Add another case to qualifier-removal test
|
Add another case to qualifier-removal test
|
C
|
mit
|
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
|
f1dc5b21241d0b16bb62f8ede6990476f87466d9
|
src/main.h
|
src/main.h
|
#pragma once
#include <unistd.h>
#include <algorithm>
#include <cstdarg>
#include <exception>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <thread>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>
const std::string BotVersion ("3.0.0-devel");
const unsigned int BotVersionNum = 2800;
|
#pragma once
#include <unistd.h>
#include <algorithm>
#include <cstdarg>
#include <exception>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <mutex>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <thread>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>
const std::string BotVersion ("3.0.0-devel");
const unsigned int BotVersionNum = 2800;
|
Add <mutex> to the list of includes
|
Add <mutex> to the list of includes
|
C
|
mit
|
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
|
4be94c72d54a91d5b47b8b7fc5949160fd78c9d2
|
src/clientversion.h
|
src/clientversion.h
|
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_BUILD 0
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
|
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 2
#define CLIENT_VERSION_BUILD 0
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
|
Set version for upcoming bugfix release
|
Set version for upcoming bugfix release
|
C
|
mit
|
spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre
|
f6890fe5dbf709d7edc28413f8250f0077d2f006
|
RISCOS/Modules/getpath_riscos.c
|
RISCOS/Modules/getpath_riscos.c
|
#include "Python.h"
#include "osdefs.h"
static char *prefix,*exec_prefix,*progpath,*module_search_path=0;
static void
calculate_path()
{ char *pypath=getenv("Python$Path");
if(pypath)
{ module_search_path=malloc(strlen(pypath)+1);
if (module_search_path) sprintf(module_search_path,"%s",pypath);
else
{ /* We can't exit, so print a warning and limp along */
fprintf(stderr, "Not enough memory for dynamic PYTHONPATH.\n");
fprintf(stderr, "Using default static PYTHONPATH.\n");
}
}
if(!module_search_path) module_search_path = "<Python$Dir>.Lib";
prefix="<Python$Dir>";
exec_prefix=prefix;
progpath=Py_GetProgramName();
}
/* External interface */
char *
Py_GetPath()
{
if (!module_search_path)
calculate_path();
return module_search_path;
}
char *
Py_GetPrefix()
{
if (!module_search_path)
calculate_path();
return prefix;
}
char *
Py_GetExecPrefix()
{
if (!module_search_path)
calculate_path();
return exec_prefix;
}
char *
Py_GetProgramFullPath()
{
if (!module_search_path)
calculate_path();
return progpath;
}
|
#include "Python.h"
#include "osdefs.h"
static char *prefix, *exec_prefix, *progpath, *module_search_path=NULL;
static void
calculate_path()
{
char *pypath = getenv("Python$Path");
if (pypath) {
int pathlen = strlen(pypath);
module_search_path = malloc(pathlen + 1);
if (module_search_path)
strncpy(module_search_path, pypath, pathlen);
else {
fprintf(stderr,
"Not enough memory for dynamic PYTHONPATH.\n"
"Using default static PYTHONPATH.\n");
}
}
if (!module_search_path)
module_search_path = "<Python$Dir>.Lib";
prefix = "<Python$Dir>";
exec_prefix = prefix;
progpath = Py_GetProgramName();
}
/* External interface */
char *
Py_GetPath()
{
if (!module_search_path)
calculate_path();
return module_search_path;
}
char *
Py_GetPrefix()
{
if (!module_search_path)
calculate_path();
return prefix;
}
char *
Py_GetExecPrefix()
{
if (!module_search_path)
calculate_path();
return exec_prefix;
}
char *
Py_GetProgramFullPath()
{
if (!module_search_path)
calculate_path();
return progpath;
}
|
Use strncpy() instead of sprintf() in calculate_path().
|
Use strncpy() instead of sprintf() in calculate_path().
Also reformat calculate_path() using the standard format.
|
C
|
mit
|
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
|
2855f6de3836d6e6c1ee7846851bc27930824d2b
|
src/event.h
|
src/event.h
|
#define JLOG LOG
#define HLOG(D_msg) JLOG("HNDL: " << D_msg)
enum class EventType
{
Trigger,
Disconnect
};
inline std::string toString(EventType type)
{
switch (type)
{
case EventType::Trigger:
return "trigger";
case EventType::Disconnect:
return "disconnect";
default:
RAISE("Unknown event type");
}
}
inline std::ostream& operator<<(std::ostream& o, EventType type)
{
return o << toString(type);
}
struct NodeHandler : Handler
{
using Handler::Handler;
// FIX: workaround GCC 4.9
NodeHandler(Handler&& h) : Handler(std::move(h)) {}
std::string name;
EventType type;
// container section
ListHook queue; // list of scheduled handlers
//ListHook front; // list of available handlers
void invoke()
{
HLOG("invoking: " << name << " [" << type << "]");
(*this)();
delete this;
}
static NodeHandler& create(Handler handler, std::string name, EventType type)
{
HLOG("creating: " << name);
auto* h = new NodeHandler(std::move(handler));
h->name = std::move(name);
h->type = type;
return *h;
}
};
|
#define JLOG LOG
#define HLOG(D_msg) JLOG("HNDL: " << D_msg)
enum class EventType
{
Trigger,
Disconnect
};
inline std::string toString(EventType type)
{
switch (type)
{
case EventType::Trigger:
return "trigger";
case EventType::Disconnect:
return "disconnect";
default:
RAISE("Unknown event type");
}
}
inline std::ostream& operator<<(std::ostream& o, EventType type)
{
return o << toString(type);
}
struct NodeHandler;
inline void attach(NodeHandler& h);
struct NodeHandler : Handler
{
using Handler::Handler;
// FIX: workaround GCC 4.9
NodeHandler(Handler&& h) : Handler(std::move(h)) {}
std::string name;
EventType type;
// container section
ListHook queue; // list of scheduled handlers
ListHook all; // list of all handlers
void invoke()
{
HLOG("invoking: " << name << " [" << type << "]");
(*this)();
delete this;
}
static NodeHandler& create(Handler handler, std::string name, EventType type)
{
HLOG("creating: " << name);
auto* h = new NodeHandler(std::move(handler));
attach(*h);
h->name = std::move(name);
h->type = type;
return *h;
}
};
using Handlers = List<NodeHandler, &NodeHandler::all>;
inline void attach(NodeHandler& h)
{
An<Handlers>()->push_back(h);
}
|
Add handlers to the common list
|
Add handlers to the common list
|
C
|
apache-2.0
|
gridem/DAVE
|
db02329581ccd65614b1d81c9b121debb1e8e22e
|
src/fake-lock-screen-pattern.h
|
src/fake-lock-screen-pattern.h
|
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
typedef struct _FakeLockOption {
void *module;
gchar *real;
gchar *dummy;
} FakeLockOption;
typedef struct {
gboolean marked;
gint value;
GdkPoint top_left;
GdkPoint bottom_right;
} FakeLockPatternPoint;
void flsp_draw_circle(cairo_t *context,
gint x, gint y, gint radius,
GdkRGBA circle, GdkRGBA border);
gboolean is_marked(gint x, gint y,
gint *marked, void *user_data);
#endif
|
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
typedef struct _FakeLockOption {
void *module;
gchar *real;
gchar *dummy;
} FakeLockOption;
typedef struct {
gboolean marked;
gint value;
GdkPoint top_left;
GdkPoint bottom_right;
} FakeLockPatternPoint;
typedef enum {
FLSP_ONE_STROKE,
FLSP_ON_BOARD,
FLSP_N_PATTERN,
} FakeLockScreenPattern;
void flsp_draw_circle(cairo_t *context,
gint x, gint y, gint radius,
GdkRGBA circle, GdkRGBA border);
gboolean is_marked(gint x, gint y,
gint *marked, void *user_data);
#endif
|
Add enum to distinct pattern
|
Add enum to distinct pattern
|
C
|
mit
|
kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern
|
11c7bdb4e410102af298943526a48fffa9a9eb19
|
src/include/strdup.h
|
src/include/strdup.h
|
/* This is the prototype for the strdup() function which is distributed
with Postgres. That strdup() is only needed on those systems that
don't already have strdup() in their system libraries.
The Postgres strdup() is in src/utils/strdup.c.
*/
extern char *strdup(char const *);
|
/* This is the prototype for the strdup() function which is distributed
with Postgres. That strdup() is only needed on those systems that
don't already have strdup() in their system libraries.
The Postgres strdup() is in src/port/strdup.c.
*/
extern char *strdup(char const *);
|
Fix an obsolete file path mentioned in a comment.
|
Fix an obsolete file path mentioned in a comment.
|
C
|
mpl-2.0
|
techdragon/Postgres-XL,ovr/postgres-xl,kmjungersen/PostgresXL,techdragon/Postgres-XL,adam8157/gpdb,zeroae/postgres-xl,oberstet/postgres-xl,rubikloud/gpdb,yazun/postgres-xl,janebeckman/gpdb,lintzc/gpdb,edespino/gpdb,cjcjameson/gpdb,chrishajas/gpdb,edespino/gpdb,royc1/gpdb,rvs/gpdb,snaga/postgres-xl,lisakowen/gpdb,CraigHarris/gpdb,Quikling/gpdb,adam8157/gpdb,rubikloud/gpdb,jmcatamney/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,edespino/gpdb,tpostgres-projects/tPostgres,Quikling/gpdb,rvs/gpdb,royc1/gpdb,cjcjameson/gpdb,rubikloud/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,snaga/postgres-xl,tangp3/gpdb,jmcatamney/gpdb,zeroae/postgres-xl,janebeckman/gpdb,edespino/gpdb,Chibin/gpdb,tpostgres-projects/tPostgres,atris/gpdb,randomtask1155/gpdb,zeroae/postgres-xl,zaksoup/gpdb,kmjungersen/PostgresXL,ahachete/gpdb,rvs/gpdb,edespino/gpdb,lisakowen/gpdb,Quikling/gpdb,randomtask1155/gpdb,atris/gpdb,edespino/gpdb,jmcatamney/gpdb,rubikloud/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,foyzur/gpdb,atris/gpdb,adam8157/gpdb,postmind-net/postgres-xl,zaksoup/gpdb,ashwinstar/gpdb,xuegang/gpdb,rubikloud/gpdb,oberstet/postgres-xl,rvs/gpdb,royc1/gpdb,pavanvd/postgres-xl,postmind-net/postgres-xl,techdragon/Postgres-XL,techdragon/Postgres-XL,randomtask1155/gpdb,greenplum-db/gpdb,royc1/gpdb,chrishajas/gpdb,randomtask1155/gpdb,lpetrov-pivotal/gpdb,xuegang/gpdb,jmcatamney/gpdb,zaksoup/gpdb,tpostgres-projects/tPostgres,kaknikhil/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,snaga/postgres-xl,rubikloud/gpdb,50wu/gpdb,ahachete/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,50wu/gpdb,chrishajas/gpdb,rvs/gpdb,xuegang/gpdb,xuegang/gpdb,edespino/gpdb,yuanzhao/gpdb,oberstet/postgres-xl,50wu/gpdb,arcivanov/postgres-xl,royc1/gpdb,ashwinstar/gpdb,janebeckman/gpdb,ahachete/gpdb,zaksoup/gpdb,arcivanov/postgres-xl,adam8157/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,tangp3/gpdb,kaknikhil/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,Chibin/gpdb,royc1/gpdb,rvs/gpdb,techdragon/Postgres-XL,rvs/gpdb,ahachete/gpdb,Chibin/gpdb,atris/gpdb,ahachete/gpdb,kmjungersen/PostgresXL,greenplum-db/gpdb,Chibin/gpdb,yazun/postgres-xl,kaknikhil/gpdb,pavanvd/postgres-xl,janebeckman/gpdb,Chibin/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,foyzur/gpdb,0x0FFF/gpdb,xinzweb/gpdb,tangp3/gpdb,rvs/gpdb,yuanzhao/gpdb,lisakowen/gpdb,xinzweb/gpdb,lintzc/gpdb,yuanzhao/gpdb,foyzur/gpdb,50wu/gpdb,lisakowen/gpdb,ahachete/gpdb,xinzweb/gpdb,tangp3/gpdb,CraigHarris/gpdb,ovr/postgres-xl,zaksoup/gpdb,Quikling/gpdb,tpostgres-projects/tPostgres,rubikloud/gpdb,chrishajas/gpdb,janebeckman/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,Chibin/gpdb,janebeckman/gpdb,Chibin/gpdb,zaksoup/gpdb,ahachete/gpdb,yuanzhao/gpdb,lintzc/gpdb,randomtask1155/gpdb,zeroae/postgres-xl,foyzur/gpdb,postmind-net/postgres-xl,lintzc/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,50wu/gpdb,tpostgres-projects/tPostgres,royc1/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,lintzc/gpdb,lisakowen/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,zeroae/postgres-xl,edespino/gpdb,janebeckman/gpdb,tangp3/gpdb,50wu/gpdb,cjcjameson/gpdb,atris/gpdb,Quikling/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,rvs/gpdb,adam8157/gpdb,xuegang/gpdb,edespino/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,janebeckman/gpdb,zaksoup/gpdb,ashwinstar/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,chrishajas/gpdb,ashwinstar/gpdb,kmjungersen/PostgresXL,Quikling/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,rvs/gpdb,arcivanov/postgres-xl,lintzc/gpdb,janebeckman/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,chrishajas/gpdb,50wu/gpdb,chrishajas/gpdb,ovr/postgres-xl,ashwinstar/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,0x0FFF/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,lisakowen/gpdb,snaga/postgres-xl,Quikling/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,tangp3/gpdb,foyzur/gpdb,snaga/postgres-xl,atris/gpdb,Quikling/gpdb,xuegang/gpdb,yazun/postgres-xl,50wu/gpdb,lintzc/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,royc1/gpdb,Quikling/gpdb,CraigHarris/gpdb,lpetrov-pivotal/gpdb,CraigHarris/gpdb,Chibin/gpdb,kaknikhil/gpdb,oberstet/postgres-xl,arcivanov/postgres-xl,adam8157/gpdb,CraigHarris/gpdb,ovr/postgres-xl,Postgres-XL/Postgres-XL,zaksoup/gpdb,Chibin/gpdb,CraigHarris/gpdb,lisakowen/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,foyzur/gpdb,arcivanov/postgres-xl,tangp3/gpdb,yuanzhao/gpdb,xinzweb/gpdb,adam8157/gpdb,cjcjameson/gpdb,adam8157/gpdb,ashwinstar/gpdb,xuegang/gpdb,chrishajas/gpdb,edespino/gpdb,xinzweb/gpdb,foyzur/gpdb,0x0FFF/gpdb,greenplum-db/gpdb,xuegang/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,Quikling/gpdb,CraigHarris/gpdb,postmind-net/postgres-xl,rubikloud/gpdb,ashwinstar/gpdb,ahachete/gpdb,janebeckman/gpdb,pavanvd/postgres-xl,kaknikhil/gpdb,atris/gpdb,yazun/postgres-xl
|
5a3d7873993eb4c6f4e4d650e2b46b0d403fecd3
|
kernel/core/main.c
|
kernel/core/main.c
|
#include <truth/panic.h>
#include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#include <truth/slab.h>
#include <truth/heap.h>
#include <truth/physical_allocator.h>
string Logo = str("\n"
" _.-.\n"
" .-. `) | .-.\n"
" _.'`. .~./ \\.~. .`'._\n"
" .-' .'.'.'.-| |-.'.'.'. '-.\n"
" `'`'`'`'` \\ / `'`'`'`'`\n"
" /||\\\n"
" //||\\\\\n"
"\n"
" The Kernel of Truth\n");
void kernel_main(void *multiboot_tables) {
enum status status = init_log("log");
assert(status == Ok);
log(Logo);
logf("\tVersion %d.%d.%d\n\tCommit %s\n\t%s\n",
kernel_major, kernel_minor, kernel_patch, vcs_version,
project_website);
init_interrupts();
init_physical_allocator(multiboot_tables);
init_slab();
status = init_heap();
assert(status == Ok);
halt();
}
|
#include <truth/panic.h>
#include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#include <truth/slab.h>
#include <truth/heap.h>
#include <truth/physical_allocator.h>
string Logo = str("\n"
" _.-.\n"
" .-. `) | .-.\n"
" _.'`. .~./ \\.~. .`'._\n"
" .-' .'.'.'.-| |-.'.'.'. '-.\n"
" `'`'`'`'` \\ / `'`'`'`'`\n"
" /||\\\n"
" //||\\\\\n"
"\n"
" The Kernel of Truth\n");
void kernel_main(void *multiboot_tables) {
enum status status = init_log("log");
assert(status == Ok);
log(Logo);
logf("\tVersion %d.%d.%d\n\tCommit %s\n\t%s\n\tCPU Time %ld\n",
kernel_major, kernel_minor, kernel_patch, vcs_version,
project_website, cpu_time());
init_interrupts();
init_physical_allocator(multiboot_tables);
init_slab();
status = init_heap();
assert(status == Ok);
halt();
}
|
Print CPU time in splash screen
|
Print CPU time in splash screen
|
C
|
mit
|
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
|
6aba02ecbbacb85918853ed86fea114138945643
|
atom/common/common_message_generator.h
|
atom/common/common_message_generator.h
|
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Multiply-included file, no traditional include guard.
#include "atom/common/api/api_messages.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/tts_messages.h"
#include "chrome/common/widevine_cdm_messages.h"
|
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Multiply-included file, no traditional include guard.
#include "atom/common/api/api_messages.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/tts_messages.h"
#include "chrome/common/widevine_cdm_messages.h"
#include "chrome/common/chrome_utility_messages.h"
|
Fix linking problem with IPC::MessageT
|
Fix linking problem with IPC::MessageT
IPC::MessageT<ChromeUtilityHostMsg_ProcessStarted_Meta, std::__1::tuple<>, void>::MessageT(IPC::Routing)
|
C
|
mit
|
Floato/electron,Floato/electron,Floato/electron,Floato/electron,Floato/electron,Floato/electron
|
8c39774323a9f462dd513032c5d84a43af3d5a89
|
ActionLog/scripts/specific-action-log/newIssueGroup.c
|
ActionLog/scripts/specific-action-log/newIssueGroup.c
|
specific action log: newIssueGroup
#
Set Variable [ $brainstate; Value:brainstate::_lockBrainstateID ]
#
Go to Layout [ “IssuesAndObservations Copy” (issue) ]
#
New Record/Request
Set Field [ issue::lock; "location" ]
Set Field [ issue::_keyBrainstate; $brainstate ]
#
Set Variable [ $group; Value:issue::_LockList ]
#
Go to Layout [ original layout ]
#
Go to Object [ Object Name: "group" ]
#
Go to Portal Row
[ First ]
Loop
Exit Loop If [ $group = category::_LockList ]
Go to Portal Row
[ Select; Next ]
End Loop
#
Go to Field [ category::text ]
January 6, 平成26 11:15:58 ActionLog.fp7 - newIssueGroup -1-
|
specific action log: newIssueGroup
#
Set Variable [ $brainstate; Value:brainstate::_lockBrainstateID ]
#
Go to Layout [ “IssuesAndObservations Copy” (issue) ]
#
New Record/Request
Set Field [ issue::lock; "location" ]
Set Field [ issue::_keyBrainstate; $brainstate ]
#
Set Variable [ $group; Value:issue::_LockList ]
#
Go to Layout [ original layout ]
#
Go to Object [ Object Name: "group" ]
#
Go to Portal Row
[ First ]
Loop
Exit Loop If [ $group = category::_LockList ]
Go to Portal Row
[ Select; Next; Exit after last ]
End Loop
#
Go to Field [ category::text ]
February 24, 平成26 15:13:03 ActionLog.fp7 - newIssueGroup -1-
|
Fix logic loop in script
|
Fix logic loop in script
Fix logic loop in script attached to button [Specific Action Tag 47] so
it exists after reaching last item.
|
C
|
apache-2.0
|
HelpGiveThanks/ActionLog,HelpGiveThanks/ActionLog
|
81ce26a410a2bcd751f40022d78e20c95bf7b60e
|
test/FrontendC/ARM/inline-asm-multichar.c
|
test/FrontendC/ARM/inline-asm-multichar.c
|
// RUN: %llvmgcc -S -march=armv7a %s
// XFAIL: *
// XTARGET: arm
int t1() {
static float k = 1.0f;
CHECK: call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"
__asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15");
return 0;
}
|
// RUN: %llvmgcc -S -march=armv7a %s | FileCheck %s
// XFAIL: *
// XTARGET: arm
int t1() {
static float k = 1.0f;
// CHECK: "flds s15, $0 \0A", "*^Uv,~{s15}"
__asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15");
return 0;
}
|
Fix this test to actually check something and be able to be compiled.
|
Fix this test to actually check something and be able to be compiled.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@133952 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm
|
9eb00b97c35261d4bcd2f0a6ec66c0ac2cc4d196
|
compat/compat.h
|
compat/compat.h
|
#ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
#ifndef HAVE_STRTONUM
#include "strtonum.h"
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
if ((vsp)->tv_nsec < 0) { \
(vsp)->tv_sec--; \
(vsp)->tv_nsec += 1000000000L; \
} \
} while (0)
#endif
#endif /* COMPAT_H */
|
#ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
#ifndef HAVE_STRTONUM
#include "strtonum.h"
#endif
/* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
if ((vsp)->tv_nsec < 0) { \
(vsp)->tv_sec--; \
(vsp)->tv_nsec += 1000000000L; \
} \
} while (0)
#endif
#endif /* COMPAT_H */
|
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
|
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
|
C
|
bsd-2-clause
|
fcambus/logswan,fcambus/logswan
|
1a8820a34f7405743ce0376d63a66694bfd533af
|
ports/gtk-webkit/next-gtk-webkit.c
|
ports/gtk-webkit/next-gtk-webkit.c
|
/*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "server.h"
static void on_name_acquired(GDBusConnection *connection,
const gchar *name,
gpointer user_data) {
g_message("Starting platform port");
}
static void on_name_lost(GDBusConnection *_connection,
const gchar *_name,
gpointer _user_data) {
g_message("Platform port disconnected");
// TODO: Call stop_server here?
exit(1);
}
int main(int argc, char *argv[]) {
// TODO: Use GtkApplication?
guint owner_id = g_bus_own_name(G_BUS_TYPE_SESSION,
PLATFORM_PORT_NAME,
G_BUS_NAME_OWNER_FLAGS_NONE,
start_server,
on_name_acquired,
on_name_lost,
NULL,
NULL);
// TODO: Start the RPC server first? If GUI is started, then we can
// report RPC startup issues graphically.
gtk_main();
stop_server();
g_bus_unown_name(owner_id);
return EXIT_SUCCESS;
}
|
/*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "server.h"
static void on_name_acquired(GDBusConnection *connection,
const gchar *name,
gpointer user_data) {
g_message("Starting platform port");
}
static void on_name_lost(GDBusConnection *_connection,
const gchar *_name,
gpointer _user_data) {
g_message("Platform port disconnected");
// TODO: Call stop_server here?
exit(1);
}
int main(int argc, char *argv[]) {
// It's safer to initialize GTK before the server is started. In particular,
// without it the program would crash if hardware acceleration is disabled
// (e.g. with the WEBKIT_DISABLE_COMPOSITING_MODE=1 environment variable).
gtk_init(NULL, NULL);
// TODO: Use GtkApplication?
guint owner_id = g_bus_own_name(G_BUS_TYPE_SESSION,
PLATFORM_PORT_NAME,
G_BUS_NAME_OWNER_FLAGS_NONE,
start_server,
on_name_acquired,
on_name_lost,
NULL,
NULL);
// TODO: Start the RPC server first? If GUI is started, then we can
// report RPC startup issues graphically.
gtk_main();
stop_server();
g_bus_unown_name(owner_id);
return EXIT_SUCCESS;
}
|
Fix crash when hardware acceleration is disabled.
|
ports/gtk-webkit: Fix crash when hardware acceleration is disabled.
|
C
|
bsd-3-clause
|
jmercouris/NeXT,jmercouris/NeXT
|
ec2da88354ef61aa2020c666cf6ccf72ac3e619a
|
JPEGReadWriter2Plugin/Error.c
|
JPEGReadWriter2Plugin/Error.c
|
#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>
struct error_mgr2 {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct error_mgr2 * error_ptr2;
/*
* Here's the routine that will replace the standard error_exit method:
*/
void error_exit (j_common_ptr cinfo)
{
/* cinfo->err really points to a error_mgr2 struct, so coerce pointer */
error_ptr2 myerr = (error_ptr2) cinfo->err;
/* Return control to the setjmp point */
longjmp(myerr->setjmp_buffer, 1);
}
|
#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>
struct error_mgr2 {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct error_mgr2 * error_ptr2;
/*
* Here's the routine that will replace the standard error_exit method:
*/
void error_exit (j_common_ptr cinfo)
{
/* cinfo->err really points to a error_mgr2 struct, so coerce pointer */
error_ptr2 myerr = (error_ptr2) cinfo->err;
/* Return control to the setjmp point */
longjmp(myerr->setjmp_buffer, 1);
}
|
Remove nasty character at end of file that prevents compiles
|
Remove nasty character at end of file that prevents compiles
git-svn-id: 5c8b60fcb9320cccfd2f497bdea85b37ac3f2028@72 fa1542d4-bde8-0310-ad64-8ed1123d492a
|
C
|
mit
|
bencoman/pharo-vm,guillep/OzVM,ronsaldo/pharo-vm-lowcode,ronsaldo/pharo-raspberry,peteruhnak/pharo-vm,zecke/old-pharo-vm-sctp,ronsaldo/pharo-raspberry,takano32/pharo-vm,takano32/pharo-vm,ronsaldo/pharo-vm-lowcode,zecke/old-pharo-vm-sctp,philippeback/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,takano32/pharo-vm,zecke/old-pharo-vm-sctp,zecke/old-pharo-vm-sctp,philippeback/pharo-vm,ronsaldo/pharo-vm-lowcode,ronsaldo/pharo-raspberry,peteruhnak/pharo-vm,ronsaldo/pharo-vm-lowcode,theseion/pharo-vm,takano32/pharo-vm,theseion/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,philippeback/pharo-vm,theseion/pharo-vm,zecke/old-pharo-vm-sctp,guillep/OzVM,zecke/old-pharo-vm-sctp,takano32/pharo-vm,theseion/pharo-vm,theseion/pharo-vm,ronsaldo/pharo-raspberry,ronsaldo/pharo-raspberry,philippeback/pharo-vm,guillep/OzVM,ronsaldo/pharo-vm-lowcode,theseion/pharo-vm,peteruhnak/pharo-vm,guillep/OzVM,peteruhnak/pharo-vm,ronsaldo/pharo-vm-lowcode,ronsaldo/pharo-raspberry,philippeback/pharo-vm,bencoman/pharo-vm,theseion/pharo-vm,takano32/pharo-vm,guillep/OzVM,ronsaldo/pharo-vm-lowcode,ronsaldo/pharo-raspberry,theseion/pharo-vm,philippeback/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,philippeback/pharo-vm,guillep/OzVM,guillep/OzVM,theseion/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,guillep/OzVM,takano32/pharo-vm,peteruhnak/pharo-vm,ronsaldo/pharo-vm-lowcode,zecke/old-pharo-vm-sctp,takano32/pharo-vm,guillep/OzVM,philippeback/pharo-vm,ronsaldo/pharo-vm-lowcode,bencoman/pharo-vm,zecke/old-pharo-vm-sctp,ronsaldo/pharo-raspberry,peteruhnak/pharo-vm
|
e4d0eac063b91386fc309c1766149aadaa940449
|
MKCommons/MKUIThemeProtocol.h
|
MKCommons/MKUIThemeProtocol.h
|
//
// Created by Michael Kuck on 8/20/14.
// Copyright (c) 2014 Michael Kuck. All rights reserved.
//
#import <Foundation/Foundation.h>
//============================================================
//== MKUITheme protocol
//============================================================
@protocol MKUIThemeProtocol<NSObject>
+ (UIColor *)lightThemeColor;
+ (UIColor *)normalThemeColor;
+ (UIColor *)darkThemeColor;
+ (UIStatusBarStyle)statusBarStyle;
+ (UIColor *)navigationBarContentColor;
+ (void)configureApplication;
@end
|
//
// Created by Michael Kuck on 8/20/14.
// Copyright (c) 2014 Michael Kuck. All rights reserved.
//
#import <Foundation/Foundation.h>
//============================================================
//== MKUITheme protocol
//============================================================
@protocol MKUIThemeProtocol<NSObject>
+ (UIColor *)lightThemeColor;
+ (UIColor *)normalThemeColor;
+ (UIColor *)darkThemeColor;
+ (UIStatusBarStyle)statusBarStyle;
+ (UIColor *)navigationBarContentColor;
+ (CGFloat)bigViewPadding;
+ (CGFloat)defaultViewPadding;
+ (void)configureApplication;
@end
|
Extend UIThemeProtocol with padding/inset sizes
|
Extend UIThemeProtocol with padding/inset sizes
|
C
|
mit
|
mikumi/mkcommons-obj
|
7ea1cb0d03e30bf5fc0880fe2c10ca9f9bd766be
|
src/flags.c
|
src/flags.c
|
#include "flags.h"
#include <stdio.h>
#include "laco.h"
#include "util.h"
static const char* version_matches[] = {"-v", "--version", NULL};
static const char* help_matches[] = {"-h", "--help", NULL};
/* Print off the current version of laco */
static void handle_version(LacoState* laco, const char** arguments) {
const char* version = laco_get_laco_version(laco);
printf("laco version %s\n", version);
laco_kill(laco, 0, NULL);
}
/* Print off the help screen */
static void handle_help(LacoState* laco, const char** arguments) {
puts("A better REPL for Lua.\n");
puts("Usage: laco [options]\n");
puts("-h | --help Print this help screen");
puts("-v | --version Print current version");
laco_kill(laco, 0, NULL);
}
static const LacoCommand flag_commands[] = {
{ version_matches, handle_version },
{ help_matches, handle_help },
{ NULL, NULL }
};
/* External API */
void laco_handle_flag(LacoState* laco) {
const char* command = laco_get_laco_args(laco)[1];
laco_dispatch(flag_commands, laco, command, NULL);
}
|
#include "flags.h"
#include <stdio.h>
#include "laco.h"
#include "util.h"
static const char* version_matches[] = {"-v", "--version", NULL};
static const char* help_matches[] = {"-h", "--help", NULL};
/* Print off the current version of laco */
static void handle_version(LacoState* laco, const char** arguments) {
const char* version = laco_get_laco_version(laco);
printf("laco version %s\n", version);
laco_kill(laco, 0, NULL);
}
/* Print off the help screen */
static void handle_help(LacoState* laco, const char** arguments) {
puts("A better REPL for Lua.\n");
puts("Usage: laco [options]\n");
puts("-h, --help Print this help screen");
puts("-v, --version Print current version");
laco_kill(laco, 0, NULL);
}
static const LacoCommand flag_commands[] = {
{ version_matches, handle_version },
{ help_matches, handle_help },
{ NULL, NULL }
};
/* External API */
void laco_handle_flag(LacoState* laco) {
const char* command = laco_get_laco_args(laco)[1];
laco_dispatch(flag_commands, laco, command, NULL);
}
|
Change flag separation from `|` to `,`
|
Change flag separation from `|` to `,`
|
C
|
bsd-2-clause
|
sourrust/laco
|
f79ad5f49198dd251501dae66fe5c594842583e8
|
test/PCH/reloc.c
|
test/PCH/reloc.c
|
// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot `pwd`/libroot `pwd`/libroot/usr/include/reloc.h &&
// RUN: clang-cc -include-pch %t -isysroot `pwd`/libroot %s -verify
// FIXME (test harness can't do this?): not clang-cc -include-pch %t %s
#include <reloc.h>
int x = 2; // expected-error{{redefinition}}
int y = 5; // expected-error{{redefinition}}
// expected-note{{previous definition}}
// expected-note{{previous definition}}
|
// RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h &&
// RUN: clang-cc -include-pch %t -isysroot %S/libroot %s -verify &&
// RUN: not clang-cc -include-pch %t %s
#include <reloc.h>
int x = 2; // expected-error{{redefinition}}
int y = 5; // expected-error{{redefinition}}
// expected-note{{previous definition}}
// expected-note{{previous definition}}
|
Use %S, not `pwd`, and enable a line that *does* work. - Doug, please check.
|
Use %S, not `pwd`, and enable a line that *does* work.
- Doug, please check.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@77778 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
|
c5f766b9b116c7bcdb2e7ece1ca1802327376778
|
src/zcash/Zcash.h
|
src/zcash/Zcash.h
|
#ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 20
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 128
#define ZKSNARK_PROOF_SIZE 584
#endif // _ZCCONSTANTS_H_
|
#ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 128
#define ZKSNARK_PROOF_SIZE 584
#endif // _ZCCONSTANTS_H_
|
Change merkle tree depth to 29.
|
Change merkle tree depth to 29.
|
C
|
mit
|
bitcoinsSG/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash
|
b608152c41f235a0bf4ffd9db21d954bada3ceea
|
atom/common/chrome_version.h
|
atom/common/chrome_version.h
|
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// This file is generated by script/bootstrap.py, you should never modify it
// by hand.
#ifndef ATOM_COMMON_CHROME_VERSION_H_
#define ATOM_COMMON_CHROME_VERSION_H_
#define CHROME_VERSION_STRING "62.0.3202.94"
#define CHROME_VERSION "v" CHROME_VERSION_STRING
#endif // ATOM_COMMON_CHROME_VERSION_H_
|
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// This file is generated by script/bootstrap.py, you should never modify it
// by hand.
#ifndef ATOM_COMMON_CHROME_VERSION_H_
#define ATOM_COMMON_CHROME_VERSION_H_
#define CHROME_VERSION_STRING "63.0.3239.84"
#define CHROME_VERSION "v" CHROME_VERSION_STRING
#endif // ATOM_COMMON_CHROME_VERSION_H_
|
Update Chrome version to 63.0.3239.84
|
Update Chrome version to 63.0.3239.84
|
C
|
mit
|
bpasero/electron,electron/electron,shiftkey/electron,shiftkey/electron,gerhardberger/electron,shiftkey/electron,bpasero/electron,bpasero/electron,gerhardberger/electron,shiftkey/electron,bpasero/electron,electron/electron,electron/electron,seanchas116/electron,seanchas116/electron,the-ress/electron,gerhardberger/electron,the-ress/electron,shiftkey/electron,the-ress/electron,electron/electron,bpasero/electron,gerhardberger/electron,the-ress/electron,the-ress/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,seanchas116/electron,shiftkey/electron,gerhardberger/electron,gerhardberger/electron,gerhardberger/electron,the-ress/electron,bpasero/electron,electron/electron,the-ress/electron,electron/electron,electron/electron,seanchas116/electron
|
efbf667dd43005cc46c83097ee19499f57be14af
|
src/lib/blockdev.h
|
src/lib/blockdev.h
|
#include <glib.h>
#ifndef BD_LIB
#define BD_LIB
#include "plugins.h"
gboolean bd_init (BDPluginSpec *force_plugins);
gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace);
gchar** bd_get_available_plugin_names ();
gboolean bd_is_plugin_available (BDPlugin plugin);
#endif /* BD_LIB */
|
#include <glib.h>
#ifndef BD_LIB
#define BD_LIB
#include "plugins.h"
gboolean bd_init (BDPluginSpec *force_plugins);
gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean reload);
gchar** bd_get_available_plugin_names ();
gboolean bd_is_plugin_available (BDPlugin plugin);
#endif /* BD_LIB */
|
Fix name of the paramenter for requesting plugin reload
|
Fix name of the paramenter for requesting plugin reload
'reload' better explains what happens than 'replace'.
|
C
|
lgpl-2.1
|
vpodzime/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,dashea/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,atodorov/libblockdev,rhinstaller/libblockdev,dashea/libblockdev,atodorov/libblockdev,snbueno/libblockdev,atodorov/libblockdev
|
7d95d1ae451ed247f4c25f2b21cd2d5ff37046c9
|
Sources/Rumia/Iterator.h
|
Sources/Rumia/Iterator.h
|
#pragma once
namespace Rumia
{
template<typename Ty, typename ContainerTy>
class Iterator
{
public:
using DataType = Ty;
using ContainerType = ContainerTy;
public:
Iterator( ContainerType& container ) : m_container( container )
{
}
virtual ~Iterator( ) { }
virtual Ty& operator*( ) = 0;
virtual Ty& operator*( ) const = 0;
protected:
ContainerType& m_container;
};
}
|
#pragma once
namespace Rumia
{
template<typename Ty, typename ContainerTy>
class Iterator
{
public:
using DataType = Ty;
using ContainerType = ContainerTy;
public:
Iterator( ContainerType& container ) : m_container( container )
{
}
virtual ~Iterator( ) { }
virtual Ty& operator*( ) const = 0;
protected:
ContainerType& m_container;
};
}
|
Delete non-const reference operator pure virtual function
|
Delete non-const reference operator pure virtual function
|
C
|
mit
|
HoRangDev/Rumia,HoRangDev/Rumia
|
bb072543fdf3b2954715351399ad29ff5c4d74d0
|
hw3/syscall/accomodate_space.c
|
hw3/syscall/accomodate_space.c
|
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main( int argc, char *argv[] ){
int *pointer;
int i;
pointer = (int*)malloc(sizeof(int)*1337);
//Declare 5 arrays of 'char' variables
char *space0, *space1, *space2, *space3, *space4;
//Accomodate some (random) space for them
space0 = (char*) malloc (sizeof(char) *333333);
space1 = (char*) malloc (sizeof(char) *44444);
space2 = (char*) malloc (sizeof(char) *3214);
space3 = (char*) malloc (sizeof(char) *10000000);
space4 = (char*) malloc (sizeof(char) *55630);
//Do this 100 times
for(i=0; i < 100; i++){
//Attempt to resize the memory block pointed to by 'pointer' for i*1337 bytes
pointer = (int*)realloc(pointer,(i*1337) );
sleep(2); // not needed
}
return 0;
}
|
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<time.h>
int main( int argc, char *argv[] ){
int *pointer;
int i;
pointer = (int*)malloc(sizeof(int)*1337);
//Declare 5 arrays of 'char' variables
char *space0, *space1, *space2, *space3, *space4;
clock_t begin = clock();
//Accomodate some (random) space for them
space0 = (char*) malloc (sizeof(char) *333333);
space1 = (char*) malloc (sizeof(char) *44444);
space2 = (char*) malloc (sizeof(char) *3214);
space3 = (char*) malloc (sizeof(char) *10000000);
space4 = (char*) malloc (sizeof(char) *55630);
//Do this 100 times
for(i=0; i < 100; i++){
//Attempt to resize the memory block pointed to by 'pointer' for i*1337 bytes - big size
pointer = (int*)realloc(pointer,(i*1337) );
sleep(2); // not needed
}
clock_t end = clock();
//return time in an internal scale called "clocks"
double time_spent = (double)(end-begin) * 1000.0 / CLOCKS_PER_SEC;
printf("%Time elapsed with the current algorithm is %f ", time_spent);
return 0;
}
|
Test Program that accomodates space now returns the time spent
|
Test Program that accomodates space now returns the time spent
|
C
|
mit
|
eloukas/Operating-Systems,eloukas/Operating-Systems,eloukas/Operating-Systems,eloukas/Operating-Systems
|
526d5c80f57093bcfe5d294c3b48e7fd395b272b
|
timeout_getaline.c
|
timeout_getaline.c
|
#include "leafnode.h"
#include "ln_log.h"
#include <signal.h>
#include <setjmp.h>
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif
#include <unistd.h>
static jmp_buf to;
static RETSIGTYPE
timer(int sig)
{
(void)sig;
siglongjmp(to, 1);
}
/*
* call getaline with timeout
*/
char *
timeout_getaline(FILE * f, unsigned int timeout)
{
char *l;
struct sigaction sa;
if (sigsetjmp(to, 1)) {
ln_log(LNLOG_SERR, LNLOG_CTOP, "timeout reading.");
return NULL;
}
sa.sa_handler = timer;
sa.sa_flags = SA_NOCLDSTOP | SA_RESTART;
sigemptyset(&sa.sa_mask);
(void)sigaction(SIGALRM, &sa, NULL);
(void)alarm(timeout);
l = getaline(f);
(void)alarm(0U);
return l;
}
char *
mgetaline(FILE * f)
{
return timeout_getaline(f, timeout_client);
}
|
#include "leafnode.h"
#include "ln_log.h"
#include <signal.h>
#include <setjmp.h>
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif
#include <unistd.h>
static sigjmp_buf to;
static RETSIGTYPE
timer(int sig)
{
(void)sig;
siglongjmp(to, 1);
}
/*
* call getaline with timeout
*/
char *
timeout_getaline(FILE * f, unsigned int timeout)
{
char *l;
struct sigaction sa;
if (sigsetjmp(to, 1)) {
ln_log(LNLOG_SERR, LNLOG_CTOP, "timeout reading.");
return NULL;
}
sa.sa_handler = timer;
sa.sa_flags = SA_NOCLDSTOP | SA_RESTART;
sigemptyset(&sa.sa_mask);
(void)sigaction(SIGALRM, &sa, NULL);
(void)alarm(timeout);
l = getaline(f);
(void)alarm(0U);
return l;
}
char *
mgetaline(FILE * f)
{
return timeout_getaline(f, timeout_client);
}
|
Fix type: jmp_buf -> sigjmp_buf.
|
Fix type: jmp_buf -> sigjmp_buf.
|
C
|
lgpl-2.1
|
BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode
|
112bb84c8ea50a4e5a415723906ea314a4cd374a
|
transmitter/comm.h
|
transmitter/comm.h
|
#ifndef COMM_H_
#define COMM_H_
#define COMM_BUFFER_LEN 3
typedef struct{
uint8_t key;
uint16_t val;
}
comm_t;
// Buffer messages to sent to the monitor
comm_t comm_buffer[COMM_BUFFER_LEN];
unsigned char comm_head;
unsigned char comm_tail;
/**
* Push an element onto the end of the buffer.
*/
void comm_push(comm_t d)
{
// Add to the buffer
comm_buffer[comm_head] = d;
// Increment the index
comm_head++;
if (comm_head >= COMM_BUFFER_LEN) {
comm_head = 0;
}
}
/**
* Shift an element off the beginning of the buffer.
*/
comm_t comm_shift()
{
comm_t d = comm_buffer[comm_tail];
// Increase the processed index
comm_tail++;
if (comm_tail >= COMM_BUFFER_LEN) {
comm_tail = 0;
}
return d;
}
/**
* Determine whether the buffer is empty.
*/
uint8_t comm_empty()
{
if (comm_head == comm_tail) {
return 1;
}
return 0;
}
#endif
|
#ifndef COMM_H_
#define COMM_H_
#define COMM_BUFFER_LEN 4
typedef struct{
uint8_t key;
uint16_t val;
}
comm_t;
// Buffer messages to sent to the monitor
comm_t comm_buffer[COMM_BUFFER_LEN];
unsigned char comm_head;
unsigned char comm_tail;
/**
* Push an element onto the end of the buffer.
*/
void comm_push(comm_t d)
{
// Add to the buffer
comm_buffer[comm_head] = d;
// Increment the index
comm_head++;
if (comm_head >= COMM_BUFFER_LEN) {
comm_head = 0;
}
}
/**
* Shift an element off the beginning of the buffer.
*/
comm_t comm_shift()
{
comm_t d = comm_buffer[comm_tail];
// Increase the processed index
comm_tail++;
if (comm_tail >= COMM_BUFFER_LEN) {
comm_tail = 0;
}
return d;
}
/**
* Determine whether the buffer is empty.
*/
uint8_t comm_empty()
{
if (comm_head == comm_tail) {
return 1;
}
return 0;
}
#endif
|
Make the buffer a little larger
|
Make the buffer a little larger
|
C
|
mit
|
theapi/quadcopter
|
2ee6ed64ebc9875b2aa143b52a6dac2590cbe569
|
src/zcash/Zcash.h
|
src/zcash/Zcash.h
|
#ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 512
#define ZC_NOTEPLAINTEXT_SIZE ZC_NOTEPLAINTEXT_LEADING + ZC_V_SIZE + ZC_RHO_SIZE + ZC_R_SIZE + ZC_MEMO_SIZE
#define ZKSNARK_PROOF_SIZE 584
#endif // _ZCCONSTANTS_H_
|
#ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 512
#define ZC_NOTEPLAINTEXT_SIZE (ZC_NOTEPLAINTEXT_LEADING + ZC_V_SIZE + ZC_RHO_SIZE + ZC_R_SIZE + ZC_MEMO_SIZE)
#define ZKSNARK_PROOF_SIZE 584
#endif // _ZCCONSTANTS_H_
|
Add parenthesis around macro value definition
|
Add parenthesis around macro value definition
|
C
|
mit
|
bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash
|
9d91e7e87b791e281f07d5a19117b1ebc7a6ec73
|
compat/compat.h
|
compat/compat.h
|
#ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
if ((vsp)->tv_nsec < 0) { \
(vsp)->tv_sec--; \
(vsp)->tv_nsec += 1000000000L; \
} \
} while (0)
#endif
#endif /* COMPAT_H */
|
#ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
/* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
if ((vsp)->tv_nsec < 0) { \
(vsp)->tv_sec--; \
(vsp)->tv_nsec += 1000000000L; \
} \
} while (0)
#endif
#endif /* COMPAT_H */
|
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
|
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
|
C
|
bsd-2-clause
|
fcambus/statzone
|
495efcbb59a71a305b9036da895b4651f6b3d72c
|
cpp/EXGL.h
|
cpp/EXGL.h
|
#ifndef __EXGL_H__
#define __EXGL_H__
#include <OpenGLES/ES2/gl.h>
#include <JavaScriptCore/JSBase.h>
#ifdef __cplusplus
extern "C" {
#endif
// Identifies an EXGL context. No EXGL context has the id 0, so that can be
// used as a 'null' value.
typedef unsigned int EXGLContextId;
// [JS thread] Create an EXGL context and return its id number. Saves the
// JavaScript interface object (has a WebGLRenderingContext-style API) at
// `global.__EXGLContexts[id]` in JavaScript.
EXGLContextId EXGLContextCreate(JSGlobalContextRef jsCtx);
// [Any thread] Release the resources for an EXGL context. The same id is never
// reused.
void EXGLContextDestroy(EXGLContextId exglCtxId);
// [GL thread] Perform one frame's worth of queued up GL work
void EXGLContextFlush(EXGLContextId exglCtxId);
// [GL thread] Set the default framebuffer (used when binding 0)
void EXGLContextSetDefaultFramebuffer(EXGLContextId exglCtxId, GLint framebuffer);
#ifdef __cplusplus
}
#endif
#endif
|
#ifndef __EXGL_H__
#define __EXGL_H__
#include <OpenGLES/ES2/gl.h>
#include <JavaScriptCore/JSBase.h>
#ifdef __cplusplus
extern "C" {
#endif
// Identifies an EXGL context. No EXGL context has the id 0, so that can be
// used as a 'null' value.
typedef unsigned int EXGLContextId;
// [JS thread] Create an EXGL context and return its id number. Saves the
// JavaScript interface object (has a WebGLRenderingContext-style API) at
// `global.__EXGLContexts[id]` in JavaScript.
EXGLContextId EXGLContextCreate(JSGlobalContextRef jsCtx);
// [Any thread] Release the resources for an EXGL context. The same id is never
// reused.
void EXGLContextDestroy(EXGLContextId exglCtxId);
// [GL thread] Perform one frame's worth of queued up GL work
void EXGLContextFlush(EXGLContextId exglCtxId);
// [GL thread] Set the default framebuffer (used when binding 0). Allows using
// platform-specific extensions on the default framebuffer, such as MSAA.
void EXGLContextSetDefaultFramebuffer(EXGLContextId exglCtxId, GLint framebuffer);
#ifdef __cplusplus
}
#endif
#endif
|
Clarify need for custom default framebuffer
|
Clarify need for custom default framebuffer
fbshipit-source-id: 40e157b
|
C
|
bsd-3-clause
|
exponentjs/exponent,exponentjs/exponent,exponent/exponent,jolicloud/exponent,jolicloud/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,jolicloud/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,exponent/exponent,jolicloud/exponent,jolicloud/exponent,exponent/exponent,exponentjs/exponent,jolicloud/exponent,exponentjs/exponent,jolicloud/exponent,exponent/exponent,exponent/exponent,exponent/exponent
|
51f20f3dfcb48b12e1b20737e40ef035076f9461
|
WordPerfectIndexer/stdafx.h
|
WordPerfectIndexer/stdafx.h
|
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
#ifndef STRICT
#define STRICT
#endif
#include "targetver.h"
#define _CRT_SECURE_NO_WARNINGS
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW
#include "resource.h"
#include <atlbase.h>
#include <atlcom.h>
#include <atlctl.h>
|
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
#ifndef STRICT
#define STRICT
#endif
#include "targetver.h"
#define _CRT_SECURE_NO_WARNINGS
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW
#include "resource.h"
#include <atlbase.h>
#include <atlcom.h>
#include <atlstr.h>
|
Swap out header in precompiled header file
|
Swap out header in precompiled header file
|
C
|
mpl-2.0
|
SunburstApps/WordPerfectIndexer,SunburstApps/WordPerfectIndexer
|
1798b679e24088f17763729158cfd103e0270a06
|
lib/libgnumalloc/cfree.c
|
lib/libgnumalloc/cfree.c
|
void
cfree(void *foo)
{
free(foo);
}
|
/*
* cfree.c
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
void
cfree(void *foo)
{
free(foo);
}
|
Add __FBSDID()s to internal libgnumalloc()
|
Add __FBSDID()s to internal libgnumalloc()
|
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
|
06e77b29734b000098ec29bf642a15bb523e180e
|
psimpl-c.h
|
psimpl-c.h
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
psimpl-c
Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com>
Based on psimpl
Copyright (c) 2010-2011 Elmar de Koning <edekoning@gmail.com>
*/
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
double *psimpl_simplify_douglas_peucker(
uint8_t dimensions,
double tolerance,
double *original_points,
double *simplified_points
);
#ifdef __cplusplus
}
#endif
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
psimpl-c
Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com>
Based on psimpl
Copyright (c) 2010-2011 Elmar de Koning <edekoning@gmail.com>
*/
#ifndef PSIMPL_C
#include <stdint.h>
typedef enum psimpl_LineDimension_
{
psimpl_LineDimension_1D = 1,
psimpl_LineDimension_2D,
psimpl_LineDimension_3D
}
psimpl_LineDimension;
#ifdef __cplusplus
extern "C" {
#endif
double *psimpl_simplify_douglas_peucker(
psimpl_LineDimension dimensions,
uint64_t points,
double tolerance,
double *original_points,
double *simplified_points
);
#ifdef __cplusplus
}
#endif
#endif // #ifdef PSIMPL_C
|
Update API to only support 1, 2 or 3 dimensional lines
|
Update API to only support 1, 2 or 3 dimensional lines
|
C
|
mpl-2.0
|
jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c
|
5e35dc73b64ddcb393f291139a394007f6ebb166
|
include/ATM.h
|
include/ATM.h
|
#pragma once
/* Customer Structure */
typedef struct customer {
char name[25]; // Customer's name
long int accnum; // Customer's Account Number
long int balance; // Customer's Balance
long long int ccn; // Customer's CCN
short int pin; // Customer's PIN
} customer;
/* Current Logged In Customer */
long int currentUserLoggedIn = 0L;
bool Login_Menu();
int CCN_VALIDATE(long long CCN);
int CCNLength(long long cardNumber);
bool CCNCheckLuhn(long long cardNumber, int digits);
int getDigit(long long cardNumber, int location);
void Show_Stats(long currentUserLoggedIn);
bool CCN_OwnerExists(long long CCN);
bool PIN_Validate(long long CCN, short int PIN);
void LoginUser(long long CCN, short PIN);
string GetAccNum(long long CCN);
string CCN_GetOwner(long long CCN);
void ATMMenu(long accnum);
void cash_withdraw(long accnum);
void pay_utilitybill(long accnum);
void credit_transfer(long accnum);
void acc_update(long accnum);
void add_funds(long accnum);
customer customers[5];
char char* welcome_message = "********************************\
*-->Welcome to Bahria Bank!<---*\
********************************\n";
|
#pragma once
/* Customer Structure */
typedef struct customer {
char name[25]; // Customer's name
long int accnum; // Customer's Account Number
long int balance; // Customer's Balance
long long int ccn; // Customer's CCN
short int pin; // Customer's PIN
} customer;
/* Current Logged In Customer */
long int currentUserLoggedIn = 0L;
bool Login_Menu();
int CCN_VALIDATE(long long CCN);
int CCNLength(long long cardNumber);
bool CCNCheckLuhn(long long cardNumber, int digits);
int getDigit(long long cardNumber, int location);
void Show_Stats(long currentUserLoggedIn);
bool CCN_OwnerExists(long long CCN);
bool PIN_Validate(long long CCN, short int PIN);
void LoginUser(long long CCN, short PIN);
string GetAccNum(long long CCN);
string CCN_GetOwner(long long CCN);
void ATMMenu(long accnum);
void cash_withdraw(long accnum);
void pay_utilitybill(long accnum);
void credit_transfer(long accnum);
void acc_update(long accnum);
void add_funds(long accnum);
customer customers[5];
const char* welcome_message = "********************************\
*-->Welcome to Bahria Bank!<---*\
********************************\n";
|
Fix declaration of welcome message!
|
Fix declaration of welcome message!
|
C
|
mit
|
saifali96/ATM-Simulator,saifali96/ATM-Simulator
|
d7bcc60432296b0b573194926f8a7d4164517b02
|
imageprocessingstrategy.h
|
imageprocessingstrategy.h
|
#ifndef IMAGEPROCESSINGSTRATEGY_H
#define IMAGEPROCESSINGSTRATEGY_H
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/ocl/ocl.hpp"
#include "constants.h"
#include "qdebug.h"
using namespace std;
using namespace cv;
class ImageProcessingStrategy
{
public:
ImageProcessingStrategy();
Mat applyBlur(Mat src);
Mat applyLaplacian(Mat src);
Mat applyEdge(Mat src);
Mat applySubs(Mat raw_src, Mat ref_src);
Mat applyContourns(Mat src);
int processBlur();
int processLaplacian();
int processEdge();
int processSubs();
int processContourns();
};
#endif // IMAGEPROCESSINGSTRATEGY_H
|
#ifndef IMAGEPROCESSINGSTRATEGY_H
#define IMAGEPROCESSINGSTRATEGY_H
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/gpu/gpu.hpp"
#include "constants.h"
#include "qdebug.h"
using namespace std;
using namespace cv;
class ImageProcessingStrategy
{
public:
ImageProcessingStrategy();
Mat applyBlur(Mat src);
Mat applyLaplacian(Mat src);
Mat applyEdge(Mat src);
Mat applySubs(Mat raw_src, Mat ref_src);
Mat applyContourns(Mat src);
int processBlur();
int processLaplacian();
int processEdge();
int processSubs();
int processContourns();
};
#endif // IMAGEPROCESSINGSTRATEGY_H
|
Fix cuda incomplete type issue
|
Fix cuda incomplete type issue
|
C
|
mit
|
emmamm05/parkeye,emmamm05/parkeye,emmamm05/parkeye
|
2ddb08c1f7f69a3d7da1820d40fd32910a37c617
|
include/timers.h
|
include/timers.h
|
/*************************************************
* Timestamp Functions Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_TIMERS_H__
#define BOTAN_TIMERS_H__
#include <botan/base.h>
namespace Botan {
/*************************************************
* Timer Interface *
*************************************************/
class Timer : public EntropySource
{
public:
virtual u64bit clock() const;
u32bit slow_poll(byte[], u32bit);
virtual ~Timer() {}
protected:
static u64bit combine_timers(u32bit, u32bit, u32bit);
};
}
#endif
|
/*************************************************
* Timestamp Functions Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_TIMERS_H__
#define BOTAN_TIMERS_H__
#include <botan/base.h>
namespace Botan {
/*************************************************
* Timer Interface *
*************************************************/
class BOTAN_DLL Timer : public EntropySource
{
public:
virtual u64bit clock() const;
u32bit slow_poll(byte[], u32bit);
virtual ~Timer() {}
protected:
static u64bit combine_timers(u32bit, u32bit, u32bit);
};
}
#endif
|
Add BOTAN_DLL to Timer class declaration
|
Add BOTAN_DLL to Timer class declaration
|
C
|
bsd-2-clause
|
Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan
|
afca1b7a6a332d667bf9f92a0402a51af1a51ff6
|
test/tests.c
|
test/tests.c
|
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "../src/rootdb.h"
int main(void)
{
MDB_env *env;
MDB_dbi dbi;
int status;
status = rootdb_open(&env, &dbi, "./testingdb");
assert(status == 0);
char key_char[] = "hello";
char value_char[] = "world";
MDB_val key;
MDB_val value;
key.mv_size = sizeof(key_char);
key.mv_data = key_char;
value.mv_size = sizeof(value_char);
value.mv_data = value_char;
printf("key: %p %.*s, data: %p %.*s\n",
key.mv_data, (int) key.mv_size, (char *) key.mv_data,
value.mv_data, (int) value.mv_size, (char *) value.mv_data);
status = rootdb_put(&env, dbi, &key, &value);
assert(status == 0);
MDB_val rvalue;
status = rootdb_get(&env, dbi, &key, &rvalue);
assert(status == 0);
printf("key: %p %.*s, data: %p %.*s\n",
key.mv_data, (int) key.mv_size, (char *) key.mv_data,
rvalue.mv_data, (int) rvalue.mv_size, (char *) rvalue.mv_data);
rootdb_close(&env, dbi);
return 0;
}
|
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "../src/rootdb.h"
int main(void)
{
MDB_env *env;
MDB_dbi dbi;
int status;
status = rootdb_open(&env, &dbi, "./testingdb");
assert(status == 0);
char key_char[] = "hello";
char value_char[] = "world";
MDB_val key;
MDB_val value;
key.mv_size = sizeof(key_char);
key.mv_data = key_char;
value.mv_size = sizeof(value_char);
value.mv_data = value_char;
status = rootdb_put(&env, dbi, &key, &value);
assert(status == 0);
MDB_val rvalue;
status = rootdb_get(&env, dbi, &key, &rvalue);
assert(status == 0);
assert(strcmp(rvalue.mv_data, value.mv_data) == 0);
rootdb_close(&env, dbi);
return 0;
}
|
Add assertion for value in get/put test
|
Add assertion for value in get/put test
|
C
|
mit
|
braydonf/rootdb,braydonf/rootdb,braydonf/rootdb
|
509a2f29b962ea555660743a485f97b1dacbaf1d
|
tmcd/decls.h
|
tmcd/decls.h
|
/*
* Insert Copyright Here.
*/
#ifdef LBS
#define MASTERNODE "206.163.153.25"
#else
#define MASTERNODE "boss.emulab.net"
#endif
#define TBSERVER_PORT 7777
#define MYBUFSIZE 1024
|
/*
* Insert Copyright Here.
*/
#ifdef LBS
#define MASTERNODE "192.168.1.25"
#else
#define MASTERNODE "boss.emulab.net"
#endif
#define TBSERVER_PORT 7777
#define MYBUFSIZE 1024
|
Change the IP of my home machine for testing.
|
Change the IP of my home machine for testing.
|
C
|
agpl-3.0
|
nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome
|
521c91c3b5ec34462ae0202d61ab029a86d5bca8
|
lib/uart.h
|
lib/uart.h
|
/**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBRR0L = BAUDRATE;
// Set RX/TN enabled
UCSR0B |= _BV(TXEN0) | _BV(RXEN0);
// Set asynchronous USART
// Set frame format: 8-bit data, 2-stop bit
UCSR0C |= _BV(USBS0) | _BV(UCSZ01) | _BV(UCSZ00);
}
static inline void uart_transmit(unsigned char data) {
while (!(UCSR0A & _BV(UDRE0)));
UDR0 = data;
}
static inline unsigned char uart_receive(void) {
while (!(UCSR0A & _BV(RXC0)));
return UDR0;
}
|
/**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
/**
* @brief Enables the UART device for 8-bit data at
* the specified {@see BAUDRATE}.
*/
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBRR0L = BAUDRATE;
// Set RX/TN enabled
UCSR0B |= _BV(TXEN0) | _BV(RXEN0);
// Set asynchronous USART
// Set frame format: 8-bit data, 2-stop bit
UCSR0C |= _BV(USBS0) | _BV(UCSZ01) | _BV(UCSZ00);
}
/**
* @brief Transmits a character through the UART device.
* @param data The data to be sent.
*/
static inline void uart_transmit(unsigned char data) {
while (!(UCSR0A & _BV(UDRE0)));
UDR0 = data;
}
/**
* @brief Receives a character from the UART device.
* @return Received character from the UART.
*/
static inline unsigned char uart_receive(void) {
while (!(UCSR0A & _BV(RXC0)));
return UDR0;
}
#ifdef __cplusplus
} // extern "C"
#endif
|
Add some comments, clean up the code, and add extern "C".
|
Add some comments, clean up the code, and add extern "C".
|
C
|
mpl-2.0
|
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
|
584110ed44810e40f029e985612acdb421d504b3
|
LYPopView/Classes/PopView.h
|
LYPopView/Classes/PopView.h
|
//
// PopView.h
// LYPOPVIEW
//
// CREATED BY LUO YU ON 19/12/2016.
// COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED.
//
#ifndef PopView_h
#define PopView_h
#import <LYPopView/LYPopView.h>
#import <LYPopView/LYPopMessage.h>
#import <LYPopView/LYPopTable.h>
#import <LYPopView/LYPopActionView.h>
#endif /* PopView_h */
|
//
// PopView.h
// LYPOPVIEW
//
// CREATED BY LUO YU ON 19/12/2016.
// COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED.
//
#ifndef PopView_h
#define PopView_h
#import <LYPopView/LYPopView.h>
#import <LYPopView/LYPopMessage.h>
#import <LYPopView/LYPopTable.h>
#import <LYPopView/LYPopDate.h>
#import <LYPopView/LYPopActionView.h>
#endif /* PopView_h */
|
Add : date picker pop view importer
|
Add : date picker pop view importer
|
C
|
mit
|
blodely/LYPopView,blodely/LYPopView
|
41e95da32afb7457e28427975e4fc07ca218ddc1
|
src/laco.h
|
src/laco.h
|
#ifndef __LACO_H
#define __LACO_H
struct lua_State;
/* State of laco REPL */
struct LacoState {
struct lua_State* L;
const char* version;
int argc;
const char** argv;
int status;
};
/**
* Initilazation of laco's state
*
* param pointer to LacoState
* param argument count (argc)
* param arguments (argv)
*/
void laco_initLacoState(struct LacoState*, int, const char**);
/**
* Destroys the internal variable, but doesn't try to free the LacoState
* pointer itself.
*
* param pointer to LacoState
*
* return 1 if pointer isn't NULL
*/
int laco_destroyLacoState(struct LacoState*);
#endif /* __LACO_H */
|
#ifndef __LACO_H
#define __LACO_H
struct lua_State;
/* State of laco REPL */
struct LacoState {
struct lua_State* L;
const char* version;
int argc;
const char** argv;
int status;
};
typedef struct LacoState LacoState;
/**
* Initilazation of laco's state
*
* param pointer to LacoState
* param argument count (argc)
* param arguments (argv)
*/
void laco_initLacoState(struct LacoState*, int, const char**);
/**
* Destroys the internal variable, but doesn't try to free the LacoState
* pointer itself.
*
* param pointer to LacoState
*
* return 1 if pointer isn't NULL
*/
int laco_destroyLacoState(struct LacoState*);
#endif /* __LACO_H */
|
Add typedef of LacoState in header
|
Add typedef of LacoState in header
This is so the code base isn't littered with `typedef struct LacoState
LacoState`.
|
C
|
bsd-2-clause
|
sourrust/laco
|
7fc441ff876199bae81d250f10f931138f9be1bf
|
7segments.c
|
7segments.c
|
main(int u,char**a){for(;u<129;u*=8)for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);}
|
main(int u,char**a){for(char*c,y;y=u;u*=8)for(c=a[1];*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);}
|
Save one more byte by casting loop counter u to a char
|
Save one more byte by casting loop counter u to a char
|
C
|
mit
|
McZonk/7segements,McZonk/7segements
|
176b88ed92daa22bd561e61a53f5a7a4866ca81e
|
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;
int chute;
printf("Qual é o seu chute? ");
scanf("%d", &chute);
printf("Seu chute foi %d\n", chute);
if(chute == numerosecreto) {
printf("Parabéns! Você acertou!\n");
printf("Jogue de novo, você é um bom jogador!\n");
}
else {
if(chute > numerosecreto) {
printf("Seu chute foi maior que o número secreto\n");
}
if(chute < numerosecreto) {
printf("Seu chute foi menor que o número secreto\n");
}
printf("Você errou!\n");
printf("Mas não desanime, tente de novo!\n");
}
}
|
#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? ");
scanf("%d", &chute);
printf("Seu chute foi %d\n", chute);
int acertou = chute == numerosecreto;
if(acertou) {
printf("Parabéns! Você acertou!\n");
printf("Jogue de novo, você é um bom jogador!\n");
} else {
int maior = chute > numerosecreto;
if(maior) {
printf("Seu chute foi maior que o número secreto\n");
} else {
printf("Seu chute foi menor que o número secreto\n");
}
printf("Você errou!\n");
printf("Mas não desanime, tente de novo!\n");
}
}
|
Update files, Alura, Introdução a C, Aula 2.3
|
Update files, Alura, Introdução a C, Aula 2.3
|
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
|
fac6dbb6292944a258dee1b726df16c78c2d0c90
|
src/lib/utils/rounding.h
|
src/lib/utils/rounding.h
|
/*
* Integer Rounding Functions
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_ROUNDING_H_
#define BOTAN_ROUNDING_H_
#include <botan/types.h>
namespace Botan {
/**
* Round up
* @param n a non-negative integer
* @param align_to the alignment boundary
* @return n rounded up to a multiple of align_to
*/
inline size_t round_up(size_t n, size_t align_to)
{
BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
if(n % align_to)
n += align_to - (n % align_to);
return n;
}
/**
* Round down
* @param n an integer
* @param align_to the alignment boundary
* @return n rounded down to a multiple of align_to
*/
template<typename T>
inline constexpr T round_down(T n, T align_to)
{
return (align_to == 0) ? n : (n - (n % align_to));
}
/**
* Clamp
*/
inline size_t clamp(size_t n, size_t lower_bound, size_t upper_bound)
{
if(n < lower_bound)
return lower_bound;
if(n > upper_bound)
return upper_bound;
return n;
}
}
#endif
|
/*
* Integer Rounding Functions
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_ROUNDING_H_
#define BOTAN_ROUNDING_H_
#include <botan/types.h>
namespace Botan {
/**
* Round up
* @param n a non-negative integer
* @param align_to the alignment boundary
* @return n rounded up to a multiple of align_to
*/
inline size_t round_up(size_t n, size_t align_to)
{
BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
if(n % align_to)
n += align_to - (n % align_to);
return n;
}
/**
* Round down
* @param n an integer
* @param align_to the alignment boundary
* @return n rounded down to a multiple of align_to
*/
template<typename T>
inline constexpr T round_down(T n, T align_to)
{
return (align_to == 0) ? n : (n - (n % align_to));
}
}
#endif
|
Remove clamp, which was unused
|
Remove clamp, which was unused
(And replaced by the std:: version in C++17 if we did need it)
|
C
|
bsd-2-clause
|
randombit/botan,randombit/botan,randombit/botan,randombit/botan,randombit/botan
|
0e3d9a4ce3640f5935e3f17b043497fdaf305c01
|
Braintree/3D-Secure/@Public/Braintree-3D-Secure.h
|
Braintree/3D-Secure/@Public/Braintree-3D-Secure.h
|
// All-in-one import for Braintree 3D Secure
#import <Braintree/BTThreeDSecure.h>
|
// All-in-one import for Braintree 3D Secure
#import <Braintree/BTThreeDSecure.h>
|
Add a new line to end of file
|
Add a new line to end of file
|
C
|
mit
|
bytemarkinc/braintree_ios,bytemarkinc/braintree_ios,Feverup/braintree_ios,apascual/braintree_ios,apascual/braintree_ios,TeachersPayTeachers/braintree_ios,TeachersPayTeachers/braintree_ios,billCTG/braintree_ios,TeachersPayTeachers/braintree_ios,EverettQuebral/braintree_ios,Feverup/braintree_ios,billCTG/braintree_ios,EverettQuebral/braintree_ios,Feverup/braintree_ios,Feverup/braintree_ios,apascual/braintree_ios,bytemarkinc/braintree_ios,braintree/braintree_ios,bytemarkinc/braintree_ios,EverettQuebral/braintree_ios,billCTG/braintree_ios,billCTG/braintree_ios,braintree/braintree_ios,braintree/braintree_ios,billCTG/braintree_ios,apascual/braintree_ios,bytemarkinc/braintree_ios,TeachersPayTeachers/braintree_ios,braintree/braintree_ios,EverettQuebral/braintree_ios,EverettQuebral/braintree_ios,TeachersPayTeachers/braintree_ios
|
ee5bc070ec0ce0f231cd1cf9728d83f80c076ff7
|
CocoaControls/CocoaControls/RSCCControlCellView.h
|
CocoaControls/CocoaControls/RSCCControlCellView.h
|
//
// RSCCControlCellView.h
// CocoaControls
//
// Created by R0CKSTAR on 14-5-5.
// Copyright (c) 2014年 P.D.Q. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern int const RSCCControlCellViewImageButtonTagBase;
extern int const RSCCControlCellViewCocoaPodsButtonTagBase;
extern int const RSCCControlCellViewCloneButtonTagBase;
@class RSCCControlCellViewBackgroundView;
@interface RSCCControlCellView : NSTableCellView
@property (nonatomic, weak) IBOutlet RSCCControlCellViewBackgroundView *backgroundView;
@property (nonatomic, weak) IBOutlet NSButton *imageButton;
@property (nonatomic, weak) IBOutlet NSTextField *titleField;
@property (nonatomic, weak) IBOutlet NSTextField *dateField;
@property (nonatomic, weak) IBOutlet NSTextField *licenseField;
@property (nonatomic, weak) IBOutlet NSButton *cocoaPodsButton;
@property (nonatomic, weak) IBOutlet NSButton *cloneButton;
@property (nonatomic, weak) IBOutlet NSImageView *star0;
@property (nonatomic, weak) IBOutlet NSImageView *star1;
@property (nonatomic, weak) IBOutlet NSImageView *star2;
@property (nonatomic, weak) IBOutlet NSImageView *star3;
@property (nonatomic, weak) IBOutlet NSImageView *star4;
@property (nonatomic, strong) NSArray *stars;
@end
|
//
// RSCCControlCellView.h
// CocoaControls
//
// Created by R0CKSTAR on 14-5-5.
// Copyright (c) 2014年 P.D.Q. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern int const RSCCControlCellViewImageButtonTagBase;
extern int const RSCCControlCellViewCocoaPodsButtonTagBase;
extern int const RSCCControlCellViewCloneButtonTagBase;
@class RSCCControlCellViewBackgroundView;
@interface RSCCControlCellView : NSTableCellView
@property (assign) IBOutlet RSCCControlCellViewBackgroundView *backgroundView;
@property (assign) IBOutlet NSButton *imageButton;
@property (assign) IBOutlet NSTextField *titleField;
@property (assign) IBOutlet NSTextField *dateField;
@property (assign) IBOutlet NSTextField *licenseField;
@property (assign) IBOutlet NSButton *cocoaPodsButton;
@property (assign) IBOutlet NSButton *cloneButton;
@property (assign) IBOutlet NSImageView *star0;
@property (assign) IBOutlet NSImageView *star1;
@property (assign) IBOutlet NSImageView *star2;
@property (assign) IBOutlet NSImageView *star3;
@property (assign) IBOutlet NSImageView *star4;
@property (nonatomic, strong) NSArray *stars;
@end
|
Change nonatomic, weak to assign for all IBOutlets
|
Change nonatomic, weak to assign for all IBOutlets
|
C
|
mit
|
yeahdongcn/CocoaControlsPlugin
|
fef701f7b0975c523cbe5a2e8e9730328a9f071a
|
core/base/inc/TThreadSlots.h
|
core/base/inc/TThreadSlots.h
|
// @(#)root/thread:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TThreadSlots
#define ROOT_TThreadSlots
namespace ROOT {
enum EThreadSlotReservation {
// Describe the system wide slot pre-allocation in the TThread
// 'special data' storage array ; meant to be used as thread local
// storage. (See TThread::Tsd)
//
// Slot 0 through 19 can be used for user application
// Slot 20 and above are reserved for the global system
kMaxUserThreadSlot = 20,
// Slot reserved by ROOT's packages.
kPadThreadSlot = 20,
kClassThreadSlot = 21,
kDirectoryThreadSlot = 22,
kFileThreadSlot = 23,
kMaxThreadSlot = 24 // Size of the array of thread local slots in TThread
};
}
#ifndef __CINT__
R__EXTERN void **(*gThreadTsd)(void*,Int_t);
#endif
#endif // ROOT_TThreadSlots
|
// @(#)root/base:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TThreadSlots
#define ROOT_TThreadSlots
namespace ROOT {
enum EThreadSlotReservation {
// Describe the system wide slot pre-allocation in the TThread
// 'special data' storage array ; meant to be used as thread local
// storage. (See TThread::Tsd)
//
// Slot 0 through 19 can be used for user application
// Slot 20 and above are reserved for the global system
kMaxUserThreadSlot = 20,
// Slot reserved by ROOT's packages.
kPadThreadSlot = 20,
kClassThreadSlot = 21,
kDirectoryThreadSlot = 22,
kFileThreadSlot = 23,
kMaxThreadSlot = 24 // Size of the array of thread local slots in TThread
};
}
#ifndef __CINT__
R__EXTERN void **(*gThreadTsd)(void*,Int_t);
#endif
#endif // ROOT_TThreadSlots
|
Fix module loc. Add missing final newline.
|
Fix module loc.
Add missing final newline.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@41534 27541ba8-7e3a-0410-8455-c3a389f83636
|
C
|
lgpl-2.1
|
esakellari/my_root_for_test,krafczyk/root,buuck/root,sbinet/cxx-root,vukasinmilosevic/root,esakellari/my_root_for_test,sawenzel/root,Duraznos/root,gganis/root,sawenzel/root,CristinaCristescu/root,agarciamontoro/root,esakellari/my_root_for_test,dfunke/root,arch1tect0r/root,davidlt/root,abhinavmoudgil95/root,krafczyk/root,satyarth934/root,zzxuanyuan/root,lgiommi/root,olifre/root,tc3t/qoot,arch1tect0r/root,omazapa/root,gbitzes/root,cxx-hep/root-cern,CristinaCristescu/root,zzxuanyuan/root,Y--/root,Dr15Jones/root,gganis/root,vukasinmilosevic/root,vukasinmilosevic/root,Duraznos/root,zzxuanyuan/root,sbinet/cxx-root,karies/root,sawenzel/root,dfunke/root,sawenzel/root,georgtroska/root,BerserkerTroll/root,Duraznos/root,abhinavmoudgil95/root,buuck/root,abhinavmoudgil95/root,cxx-hep/root-cern,davidlt/root,bbockelm/root,thomaskeck/root,lgiommi/root,cxx-hep/root-cern,Duraznos/root,sirinath/root,cxx-hep/root-cern,ffurano/root5,mattkretz/root,cxx-hep/root-cern,omazapa/root-old,lgiommi/root,pspe/root,arch1tect0r/root,alexschlueter/cern-root,dfunke/root,karies/root,omazapa/root,georgtroska/root,veprbl/root,georgtroska/root,olifre/root,root-mirror/root,esakellari/my_root_for_test,gbitzes/root,mattkretz/root,Dr15Jones/root,mkret2/root,sirinath/root,zzxuanyuan/root-compressor-dummy,perovic/root,pspe/root,pspe/root,kirbyherm/root-r-tools,karies/root,strykejern/TTreeReader,olifre/root,kirbyherm/root-r-tools,esakellari/root,0x0all/ROOT,tc3t/qoot,abhinavmoudgil95/root,esakellari/root,BerserkerTroll/root,nilqed/root,esakellari/my_root_for_test,dfunke/root,alexschlueter/cern-root,strykejern/TTreeReader,sirinath/root,mattkretz/root,Y--/root,Y--/root,pspe/root,davidlt/root,smarinac/root,abhinavmoudgil95/root,root-mirror/root,krafczyk/root,buuck/root,thomaskeck/root,agarciamontoro/root,abhinavmoudgil95/root,mkret2/root,simonpf/root,thomaskeck/root,buuck/root,zzxuanyuan/root-compressor-dummy,mkret2/root,thomaskeck/root,jrtomps/root,pspe/root,lgiommi/root,agarciamontoro/root,jrtomps/root,jrtomps/root,veprbl/root,abhinavmoudgil95/root,thomaskeck/root,mhuwiler/rootauto,perovic/root,cxx-hep/root-cern,jrtomps/root,esakellari/root,jrtomps/root,satyarth934/root,omazapa/root,arch1tect0r/root,tc3t/qoot,georgtroska/root,veprbl/root,omazapa/root,veprbl/root,gbitzes/root,zzxuanyuan/root,sawenzel/root,arch1tect0r/root,zzxuanyuan/root,vukasinmilosevic/root,nilqed/root,olifre/root,bbockelm/root,Y--/root,mattkretz/root,karies/root,omazapa/root-old,abhinavmoudgil95/root,agarciamontoro/root,evgeny-boger/root,mkret2/root,karies/root,dfunke/root,strykejern/TTreeReader,mkret2/root,kirbyherm/root-r-tools,sawenzel/root,sbinet/cxx-root,BerserkerTroll/root,perovic/root,mhuwiler/rootauto,mkret2/root,perovic/root,BerserkerTroll/root,agarciamontoro/root,vukasinmilosevic/root,bbockelm/root,satyarth934/root,mattkretz/root,vukasinmilosevic/root,perovic/root,evgeny-boger/root,satyarth934/root,evgeny-boger/root,vukasinmilosevic/root,Duraznos/root,sirinath/root,krafczyk/root,cxx-hep/root-cern,sirinath/root,thomaskeck/root,kirbyherm/root-r-tools,satyarth934/root,mkret2/root,buuck/root,georgtroska/root,satyarth934/root,simonpf/root,pspe/root,zzxuanyuan/root,davidlt/root,karies/root,veprbl/root,0x0all/ROOT,davidlt/root,mhuwiler/rootauto,mkret2/root,mattkretz/root,davidlt/root,agarciamontoro/root,esakellari/root,davidlt/root,evgeny-boger/root,omazapa/root,georgtroska/root,pspe/root,omazapa/root,nilqed/root,agarciamontoro/root,mhuwiler/rootauto,abhinavmoudgil95/root,zzxuanyuan/root,sirinath/root,omazapa/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,Y--/root,vukasinmilosevic/root,buuck/root,omazapa/root,thomaskeck/root,perovic/root,simonpf/root,beniz/root,simonpf/root,tc3t/qoot,olifre/root,esakellari/root,omazapa/root-old,tc3t/qoot,mattkretz/root,root-mirror/root,gbitzes/root,gganis/root,Duraznos/root,kirbyherm/root-r-tools,mattkretz/root,beniz/root,agarciamontoro/root,tc3t/qoot,esakellari/my_root_for_test,BerserkerTroll/root,lgiommi/root,ffurano/root5,thomaskeck/root,satyarth934/root,nilqed/root,smarinac/root,smarinac/root,zzxuanyuan/root,thomaskeck/root,smarinac/root,pspe/root,ffurano/root5,gbitzes/root,georgtroska/root,esakellari/my_root_for_test,gbitzes/root,bbockelm/root,georgtroska/root,arch1tect0r/root,BerserkerTroll/root,beniz/root,smarinac/root,Duraznos/root,dfunke/root,arch1tect0r/root,esakellari/my_root_for_test,zzxuanyuan/root,CristinaCristescu/root,simonpf/root,sirinath/root,nilqed/root,smarinac/root,veprbl/root,satyarth934/root,sbinet/cxx-root,krafczyk/root,sirinath/root,omazapa/root-old,evgeny-boger/root,BerserkerTroll/root,smarinac/root,evgeny-boger/root,mhuwiler/rootauto,bbockelm/root,omazapa/root-old,olifre/root,Y--/root,Dr15Jones/root,Duraznos/root,veprbl/root,root-mirror/root,sawenzel/root,CristinaCristescu/root,perovic/root,pspe/root,davidlt/root,esakellari/root,root-mirror/root,gbitzes/root,root-mirror/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,simonpf/root,karies/root,smarinac/root,lgiommi/root,esakellari/root,olifre/root,lgiommi/root,0x0all/ROOT,Dr15Jones/root,esakellari/my_root_for_test,beniz/root,beniz/root,dfunke/root,sbinet/cxx-root,0x0all/ROOT,CristinaCristescu/root,Dr15Jones/root,evgeny-boger/root,simonpf/root,veprbl/root,bbockelm/root,veprbl/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,gganis/root,sirinath/root,mhuwiler/rootauto,Y--/root,omazapa/root-old,satyarth934/root,alexschlueter/cern-root,CristinaCristescu/root,esakellari/root,gbitzes/root,jrtomps/root,omazapa/root-old,nilqed/root,0x0all/ROOT,buuck/root,simonpf/root,strykejern/TTreeReader,Dr15Jones/root,gbitzes/root,root-mirror/root,beniz/root,BerserkerTroll/root,beniz/root,vukasinmilosevic/root,sawenzel/root,karies/root,jrtomps/root,strykejern/TTreeReader,gbitzes/root,nilqed/root,Y--/root,Duraznos/root,krafczyk/root,ffurano/root5,simonpf/root,CristinaCristescu/root,gganis/root,veprbl/root,davidlt/root,gganis/root,arch1tect0r/root,zzxuanyuan/root,dfunke/root,sawenzel/root,sbinet/cxx-root,0x0all/ROOT,pspe/root,omazapa/root-old,tc3t/qoot,omazapa/root-old,smarinac/root,cxx-hep/root-cern,sirinath/root,root-mirror/root,root-mirror/root,mhuwiler/rootauto,ffurano/root5,alexschlueter/cern-root,esakellari/root,mhuwiler/rootauto,root-mirror/root,krafczyk/root,zzxuanyuan/root,Duraznos/root,mkret2/root,karies/root,olifre/root,buuck/root,0x0all/ROOT,kirbyherm/root-r-tools,lgiommi/root,sbinet/cxx-root,gbitzes/root,arch1tect0r/root,sbinet/cxx-root,omazapa/root,mattkretz/root,ffurano/root5,arch1tect0r/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,olifre/root,buuck/root,alexschlueter/cern-root,jrtomps/root,karies/root,esakellari/my_root_for_test,Y--/root,mattkretz/root,georgtroska/root,nilqed/root,agarciamontoro/root,abhinavmoudgil95/root,nilqed/root,mattkretz/root,alexschlueter/cern-root,strykejern/TTreeReader,satyarth934/root,georgtroska/root,krafczyk/root,karies/root,CristinaCristescu/root,vukasinmilosevic/root,davidlt/root,tc3t/qoot,smarinac/root,mhuwiler/rootauto,olifre/root,perovic/root,satyarth934/root,strykejern/TTreeReader,simonpf/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,gganis/root,beniz/root,perovic/root,Y--/root,lgiommi/root,krafczyk/root,gganis/root,Dr15Jones/root,buuck/root,esakellari/root,dfunke/root,alexschlueter/cern-root,bbockelm/root,vukasinmilosevic/root,dfunke/root,omazapa/root-old,omazapa/root,agarciamontoro/root,evgeny-boger/root,CristinaCristescu/root,zzxuanyuan/root-compressor-dummy,krafczyk/root,pspe/root,Duraznos/root,bbockelm/root,mhuwiler/rootauto,sbinet/cxx-root,beniz/root,CristinaCristescu/root,esakellari/root,krafczyk/root,evgeny-boger/root,jrtomps/root,gganis/root,zzxuanyuan/root-compressor-dummy,nilqed/root,nilqed/root,dfunke/root,beniz/root,jrtomps/root,perovic/root,kirbyherm/root-r-tools,beniz/root,lgiommi/root,perovic/root,evgeny-boger/root,tc3t/qoot,abhinavmoudgil95/root,mkret2/root,bbockelm/root,BerserkerTroll/root,omazapa/root,Y--/root,zzxuanyuan/root-compressor-dummy,buuck/root,0x0all/ROOT,0x0all/ROOT,BerserkerTroll/root,gganis/root,CristinaCristescu/root,zzxuanyuan/root-compressor-dummy,davidlt/root,ffurano/root5,tc3t/qoot,mkret2/root,sbinet/cxx-root,gganis/root,lgiommi/root,sirinath/root,evgeny-boger/root,georgtroska/root,root-mirror/root,arch1tect0r/root,sawenzel/root,bbockelm/root,BerserkerTroll/root,mhuwiler/rootauto,thomaskeck/root,olifre/root,simonpf/root,omazapa/root-old,sawenzel/root,veprbl/root
|
37fb2148f2634989191e5770f3a2eabd93d3a3c7
|
lilthumb.h
|
lilthumb.h
|
#ifndef lilthumb
#define lilthumb
#include <ctime>
#include <ostream>
namespace lilthumb{
std::string timeString()
{
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo);
std::string str(buffer);
return str;
}
void stone( std::ostream& stream, std::string message )
{
stream << timeString() << " | " << message << std::endl;
}
}
#endif
|
#ifndef lilthumb
#define lilthumb
#include <ctime>
#include <ostream>
namespace lilthumb{
std::string timeString()
{
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo);
std::string str(buffer);
return str;
}
void stone( std::ostream& stream, double* c_array, int n_values = 0 )
{
stream << timeString() << " | ";
if( n_values == 0 )
{
stream << c_array << std::endl;
}
else
{
for( int i = 0; i < n_values - 1; i++ )
{
stream << c_array[i] << "/";
}
stream << c_array[n_values - 1] << std::endl;
}
}
void stone( std::ostream& stream, std::string message )
{
stream << timeString() << " | " << message << std::endl;
}
}
#endif
|
Add a n-tuple vector logging function
|
Add a n-tuple vector logging function
|
C
|
apache-2.0
|
jeromevelut/lilthumb
|
b5f6cbbacfbb7a24599912e77c349f4ac1101c8f
|
High_Temp.h
|
High_Temp.h
|
/*
High_Temp.h
2014 Copyright (c) Seeed Technology Inc. All right reserved.
Loovee
2013-4-14
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __HIGH_TEMP_H__
#define __HIGH_TEMP_H__
class HighTemp{
public:
HighTemp(int _pinTmp, int _pinThmc);
float getRoomTmp(); //
float getThmc();
void begin();
private
float tempRoom; // room temperature
float tempThmc; // thermocouple temperature
int pinRoomTmp; // pin of temperature sensor
int pinThmc; // pin of thermocouple
public:
int getAnalog(int pin);
float K_VtoT(float mV); // K type thermocouple, mv->oC
float getThmcVol(); // get voltage of thmc in mV
};
#endif
|
/*
High_Temp.h
2014 Copyright (c) Seeed Technology Inc. All right reserved.
Loovee
2013-4-14
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __HIGH_TEMP_H__
#define __HIGH_TEMP_H__
class HighTemp{
public:
HighTemp(int _pinTmp, int _pinThmc);
float getRoomTmp(); //
float getThmc();
void begin();
private:
float tempRoom; // room temperature
float tempThmc; // thermocouple temperature
int pinRoomTmp; // pin of temperature sensor
int pinThmc; // pin of thermocouple
public:
virtual int getAnalog(int pin);
float K_VtoT(float mV); // K type thermocouple, mv->oC
float getThmcVol(); // get voltage of thmc in mV
};
#endif
|
Add virtual decl to getAnalog to enable overloading
|
Add virtual decl to getAnalog to enable overloading
|
C
|
mit
|
mhaas/Grove_HighTemp_Sensor
|
0c15a524c532c1006a7bd36d3a680f8e8b8db9fc
|
src/include/pg_getopt.h
|
src/include/pg_getopt.h
|
/*
* Portions Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Portions Copyright (c) 2003-2014, PostgreSQL Global Development Group
*
* src/include/pg_getopt.h
*/
#ifndef PG_GETOPT_H
#define PG_GETOPT_H
/* POSIX says getopt() is provided by unistd.h */
#include <unistd.h>
/* rely on the system's getopt.h if present */
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
/*
* If we have <getopt.h>, assume it declares these variables, else do that
* ourselves. (We used to just declare them unconditionally, but Cygwin
* doesn't like that.)
*/
#ifndef HAVE_GETOPT_H
extern char *optarg;
extern int optind;
extern int opterr;
extern int optopt;
#ifdef HAVE_INT_OPTRESET
extern int optreset;
#endif
#endif /* HAVE_GETOPT_H */
#ifndef HAVE_GETOPT
extern int getopt(int nargc, char *const * nargv, const char *ostr);
#endif
#endif /* PG_GETOPT_H */
|
/*
* Portions Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Portions Copyright (c) 2003-2014, PostgreSQL Global Development Group
*
* src/include/pg_getopt.h
*/
#ifndef PG_GETOPT_H
#define PG_GETOPT_H
/* POSIX says getopt() is provided by unistd.h */
#include <unistd.h>
/* rely on the system's getopt.h if present */
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
/*
* If we have <getopt.h>, assume it declares these variables, else do that
* ourselves. (We used to just declare them unconditionally, but Cygwin
* doesn't like that.)
*/
#ifndef HAVE_GETOPT_H
extern char *optarg;
extern int optind;
extern int opterr;
extern int optopt;
#endif /* HAVE_GETOPT_H */
/*
* Some platforms have optreset but not <getopt.h>. Cygwin, however,
* doesn't like this either.
*/
#if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__)
extern int optreset;
#endif
#ifndef HAVE_GETOPT
extern int getopt(int nargc, char *const * nargv, const char *ostr);
#endif
#endif /* PG_GETOPT_H */
|
Allow for platforms that have optreset but not <getopt.h>.
|
Allow for platforms that have optreset but not <getopt.h>.
Reportedly, some versions of mingw are like that, and it seems plausible
in general that older platforms might be that way. However, we'd
determined experimentally that just doing "extern int" conflicts with
the way Cygwin declares these variables, so explicitly exclude Cygwin.
Michael Paquier, tweaked by me to hopefully not break Cygwin
|
C
|
mpl-2.0
|
Postgres-XL/Postgres-XL,yazun/postgres-xl,techdragon/Postgres-XL,50wu/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,xinzweb/gpdb,50wu/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,50wu/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,zeroae/postgres-xl,ashwinstar/gpdb,yazun/postgres-xl,pavanvd/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,xinzweb/gpdb,adam8157/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,xinzweb/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,zeroae/postgres-xl,jmcatamney/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,adam8157/gpdb,ovr/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,50wu/gpdb,yazun/postgres-xl,jmcatamney/gpdb,lisakowen/gpdb,lisakowen/gpdb,ashwinstar/gpdb,xinzweb/gpdb,ovr/postgres-xl,greenplum-db/gpdb,ashwinstar/gpdb,50wu/gpdb,xinzweb/gpdb,adam8157/gpdb,greenplum-db/gpdb,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,ovr/postgres-xl,Postgres-XL/Postgres-XL,ashwinstar/gpdb,yazun/postgres-xl,lisakowen/gpdb,oberstet/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,lisakowen/gpdb,oberstet/postgres-xl,yazun/postgres-xl,ashwinstar/gpdb,ovr/postgres-xl,50wu/gpdb,xinzweb/gpdb,zeroae/postgres-xl,50wu/gpdb,adam8157/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,50wu/gpdb
|
a15f0d5910d660ab8cd5c9d98316115c88e16713
|
Classes/Core/KWMatching.h
|
Classes/Core/KWMatching.h
|
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
@protocol KWMatching<NSObject>
#pragma mark - Initializing
- (id)initWithSubject:(id)anObject;
#pragma mark - Getting Matcher Strings
+ (NSArray *)matcherStrings;
#pragma mark - Getting Matcher Compatability
+ (BOOL)canMatchSubject:(id)anObject;
#pragma mark - Matching
@optional
@property (nonatomic, readonly) BOOL isNilMatcher;
- (BOOL)shouldBeEvaluatedAtEndOfExample;
- (BOOL)willEvaluateMultipleTimes;
- (void)setWillEvaluateMultipleTimes:(BOOL)shouldEvaluateMultipleTimes;
@required
- (BOOL)evaluate;
#pragma mark - Getting Failure Messages
- (NSString *)failureMessageForShould;
- (NSString *)failureMessageForShouldNot;
@end
|
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
@protocol KWMatching<NSObject>
#pragma mark - Initializing
- (id)initWithSubject:(id)anObject;
#pragma mark - Getting Matcher Strings
+ (NSArray *)matcherStrings;
#pragma mark - Getting Matcher Compatability
+ (BOOL)canMatchSubject:(id)anObject;
#pragma mark - Matching
@optional
- (BOOL)isNilMatcher;
- (BOOL)shouldBeEvaluatedAtEndOfExample;
- (BOOL)willEvaluateMultipleTimes;
- (void)setWillEvaluateMultipleTimes:(BOOL)shouldEvaluateMultipleTimes;
@required
- (BOOL)evaluate;
#pragma mark - Getting Failure Messages
- (NSString *)failureMessageForShould;
- (NSString *)failureMessageForShouldNot;
@end
|
Use method declaration instead of property
|
Use method declaration instead of property
|
C
|
bsd-3-clause
|
carezone/Kiwi,tangwei6423471/Kiwi,emodeqidao/Kiwi,weslindsay/Kiwi,tcirwin/Kiwi,LiuShulong/Kiwi,weslindsay/Kiwi,JoistApp/Kiwi,tcirwin/Kiwi,howandhao/Kiwi,iosRookie/Kiwi,weslindsay/Kiwi,tonyarnold/Kiwi,iosRookie/Kiwi,allending/Kiwi,tcirwin/Kiwi,ecaselles/Kiwi,PaulTaykalo/Kiwi,ecaselles/Kiwi,ecaselles/Kiwi,indiegogo/Kiwi,JoistApp/Kiwi,tcirwin/Kiwi,depop/Kiwi,PaulTaykalo/Kiwi,tangwei6423471/Kiwi,LiuShulong/Kiwi,samkrishna/Kiwi,carezone/Kiwi,hyperoslo/Tusen,JoistApp/Kiwi,iosRookie/Kiwi,PaulTaykalo/Kiwi,samkrishna/Kiwi,cookov/Kiwi,unisontech/Kiwi,tangwei6423471/Kiwi,indiegogo/Kiwi,hyperoslo/Tusen,LiuShulong/Kiwi,depop/Kiwi,weslindsay/Kiwi,carezone/Kiwi,LiuShulong/Kiwi,allending/Kiwi,carezone/Kiwi,cookov/Kiwi,unisontech/Kiwi,TaemoonCho/Kiwi,unisontech/Kiwi,emodeqidao/Kiwi,samkrishna/Kiwi,emodeqidao/Kiwi,howandhao/Kiwi,indiegogo/Kiwi,tangwei6423471/Kiwi,hyperoslo/Tusen,PaulTaykalo/Kiwi,unisontech/Kiwi,allending/Kiwi,howandhao/Kiwi,howandhao/Kiwi,iosRookie/Kiwi,tonyarnold/Kiwi,emodeqidao/Kiwi,tonyarnold/Kiwi,tonyarnold/Kiwi,JoistApp/Kiwi,ecaselles/Kiwi,indiegogo/Kiwi,cookov/Kiwi,TaemoonCho/Kiwi,TaemoonCho/Kiwi,depop/Kiwi,depop/Kiwi,samkrishna/Kiwi,cookov/Kiwi,allending/Kiwi,TaemoonCho/Kiwi,hyperoslo/Tusen
|
a48ecd50079818e7a4d1444a1d14aebefb9cbb67
|
FringeFM/FFMSongUpdater.h
|
FringeFM/FFMSongUpdater.h
|
//
// FFMSongUpdater.h
// FringeFM
//
// Created by John Sheets on 6/10/12.
// Copyright (c) 2012 John Sheets. All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
@class FFMSong;
@interface FFMSongUpdater : NSObject
@property (nonatomic, strong) NSImage *icon;
@property (nonatomic) NSTimeInterval updateFrequency;
- (FFMSong *)fetchCurrentSong;
- (BOOL)isServiceAvailable;
- (BOOL)isServicePlaying;
@end
|
//
// FFMSongUpdater.h
// FringeFM
//
// Created by John Sheets on 6/10/12.
// Copyright (c) 2012 John Sheets. All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
@class FFMSong;
@interface FFMSongUpdater : NSObject
@property (nonatomic, strong) NSImage *icon;
@property (nonatomic) NSUInteger updateFrequency;
- (FFMSong *)fetchCurrentSong;
- (BOOL)isServiceAvailable;
- (BOOL)isServicePlaying;
@end
|
Switch song updater updateFrequency from NSTimeInterval (length of time) to NSUInteger (number of counter seconds to skip).
|
Switch song updater updateFrequency from NSTimeInterval (length of time) to NSUInteger (number of counter seconds to skip).
|
C
|
mit
|
jsheets/FringeFM
|
5e55843bb8ed1ec7d134a759c53e34beb1618952
|
include/asm-mn10300/ipcbuf.h
|
include/asm-mn10300/ipcbuf.h
|
#ifndef _ASM_IPCBUF_H_
#define _ASM_IPCBUF_H
/*
* The ipc64_perm structure for MN10300 architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 32-bit mode_t and seq
* - 2 miscellaneous 32-bit values
*/
struct ipc64_perm
{
__kernel_key_t key;
__kernel_uid32_t uid;
__kernel_gid32_t gid;
__kernel_uid32_t cuid;
__kernel_gid32_t cgid;
__kernel_mode_t mode;
unsigned short __pad1;
unsigned short seq;
unsigned short __pad2;
unsigned long __unused1;
unsigned long __unused2;
};
#endif /* _ASM_IPCBUF_H */
|
#ifndef _ASM_IPCBUF_H
#define _ASM_IPCBUF_H
/*
* The ipc64_perm structure for MN10300 architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 32-bit mode_t and seq
* - 2 miscellaneous 32-bit values
*/
struct ipc64_perm
{
__kernel_key_t key;
__kernel_uid32_t uid;
__kernel_gid32_t gid;
__kernel_uid32_t cuid;
__kernel_gid32_t cgid;
__kernel_mode_t mode;
unsigned short __pad1;
unsigned short seq;
unsigned short __pad2;
unsigned long __unused1;
unsigned long __unused2;
};
#endif /* _ASM_IPCBUF_H */
|
Fix typo in header guard
|
MN10300: Fix typo in header guard
Fix a typo in the header guard of asm/ipc.h.
Signed-off-by: Vegard Nossum <c9abf7248a519119ccb31f4fd3c3a4e0b6ebd20b@gmail.com>
Signed-off-by: David Howells <ebac1d06c1688626821bb0e574a037a7a5354e49@redhat.com>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
|
C
|
apache-2.0
|
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/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs
|
da16baebce5c500fa77b346e18a68e0e31c453f4
|
set/prod.c
|
set/prod.c
|
int set_empty(void)
{
return 0;
}
int set_size(int set)
{
int size = 0;
while (set)
{
size += set & 1;
set >>= 1;
}
return size;
}
int set_add(int set, int element)
{
return set | (1 << element);
}
|
int set_empty(void)
{
return 0;
}
int set_size(int set)
{
/* Bit-Twiddling Hacks */
/* TODO: shall export to bits module to provide more robust solutions
* based on hardware capabilities (eg. popcount instruction) */
set = set - ((set >> 1) & ~(unsigned int)0/3);
set = (set & ~(unsigned int)0/15*3) + ((set >> 2) & ~(unsigned int)0/15*3);
set = (set + (set >> 4)) & ~(unsigned int)0/255*15;
return (set * (~(unsigned int)0/255)) >> (sizeof(int) - 1) * 8;
}
int set_add(int set, int element)
{
return set | (1 << element);
}
|
Optimize counting size of larger sets
|
[SET] REFACTOR: Optimize counting size of larger sets
|
C
|
mit
|
w3ln4/open
|
78207b6e00ed9a4d296bbfce43da63b1e034a84e
|
spinlock.h
|
spinlock.h
|
#pragma once
#define SPINLOCK_DEBUG 1
// Mutual exclusion lock.
struct spinlock {
u32 locked; // Is the lock held?
#if SPINLOCK_DEBUG
// For debugging:
char *name; // Name of lock.
struct cpu *cpu; // The cpu holding the lock.
uptr pcs[10]; // The call stack (an array of program counters)
// that locked the lock.
#endif
};
static inline const char *lockname(struct spinlock *s)
{
#if SPINLOCK_DEBUG
return s->name ?: "null";
#else
return "unknown";
#endif
}
|
#pragma once
#define SPINLOCK_DEBUG 1
// Mutual exclusion lock.
struct spinlock {
u32 locked; // Is the lock held?
#if SPINLOCK_DEBUG
// For debugging:
char *name; // Name of lock.
struct cpu *cpu; // The cpu holding the lock.
uptr pcs[10]; // The call stack (an array of program counters)
// that locked the lock.
#endif
};
#if SPINLOCK_DEBUG
#define lockname(s) ((s)->name ?: "null")
#else
#define lockname(s) ("unknown")
#endif
|
Make lockname(s) a macro instead of a inline.
|
Make lockname(s) a macro instead of a inline.
|
C
|
mit
|
aclements/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6,bowlofstew/sv6,bowlofstew/sv6,bowlofstew/sv6
|
4705e8ddf88e130ce1899366e2647176ce6d9407
|
src/main.c
|
src/main.c
|
#include "backend.h"
#include "frontend.h"
#include <ncurses.h>
int main() {
initscr();
cbreak();
noecho();
keypad(stdscr, TRUE); // make keys work
curs_set(0); // hide cursor
timeout(100);
int xmax;
int ymax;
getmaxyx(stdscr, ymax, xmax);
enum Direction dir = RIGHT;
Board* board = create_board(create_snake(), NULL, xmax, ymax);
int i;
for (i = 0; i < 6; i++) {
add_new_food(board);
}
while(true) {
erase();
display_points(board->snake, ACS_BLOCK);
display_points(board->foods, ACS_DIAMOND);
dir = get_next_move(dir);
enum Status status = move_snake(board, dir);
if (status == FAILURE) break;
}
endwin();
return 0;
}
|
#include "backend.h"
#include "frontend.h"
#include <ncurses.h>
int main() {
initscr();
cbreak();
noecho();
keypad(stdscr, TRUE); // make keys work
curs_set(0); // hide cursor
timeout(100);
int xmax;
int ymax;
getmaxyx(stdscr, ymax, xmax);
enum Direction dir = RIGHT;
Board* board = create_board(create_snake(), NULL, xmax, ymax);
int i;
for (i = 0; i < 6; i++) {
add_new_food(board);
}
while(true) {
clear();
display_points(board->snake, ACS_BLOCK);
display_points(board->foods, ACS_DIAMOND);
refresh();
dir = get_next_move(dir);
enum Status status = move_snake(board, dir);
if (status == FAILURE) break;
}
endwin();
return 0;
}
|
Call `clear` and `refresh` to update screen
|
Call `clear` and `refresh` to update screen
|
C
|
mit
|
jvns/snake,jvns/snake
|
fcd34497864825e90f2c0331278142e10dec2ae0
|
src/main.h
|
src/main.h
|
// Copyright (c) 2016 Brian Barto
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the MIT License. See LICENSE for more details.
#ifndef MAIN_H
#define MAIN_H 1
#define VERSION "0.1.0"
#define DEFAULT_KEY_NAME "default"
#define DEFAULT_KEY_PATH ".config/mirrorcrypt/"
#define GRID_SIZE 24
#define SUPPORTED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_=+{}[]|\\:; \n\t\"'<>,.?/~"
#endif
|
// Copyright (c) 2016 Brian Barto
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the MIT License. See LICENSE for more details.
#ifndef MAIN_H
#define MAIN_H 1
#define VERSION "0.1.0"
#define DEFAULT_KEY_NAME "default"
#define DEFAULT_KEY_PATH ".config/mrrcrypt/"
#define GRID_SIZE 24
#define SUPPORTED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_=+{}[]|\\:; \n\t\"'<>,.?/~"
#endif
|
Change config dir name to mrrcrypt
|
Change config dir name to mrrcrypt
modified: src/main.h
|
C
|
mit
|
bartobri/mirror-crypt
|
d257a1c2e1d577e7902d47696b9f98ece299e7dd
|
src/dnscap_common.h
|
src/dnscap_common.h
|
/*
* setup MY_BPFTIMEVAL as the timeval structure that bpf packets
* will be assoicated with packets from libpcap
*/
#ifdef __OpenBSD__
# define MY_BPFTIMEVAL bpf_timeval
#endif
#ifndef MY_BPFTIMEVAL
# define MY_BPFTIMEVAL timeval
#endif
typedef struct MY_BPFTIMEVAL my_bpftimeval;
/*
* Structure to contain IP addresses
*/
typedef struct {
int af;
union {
struct in_addr a4;
struct in6_addr a6;
} u;
} iaddr;
/*
* plugins can call the logerr() function in the main dnscap
* process.
*/
typedef int logerr_t(const char *fmt, ...);
/*
* Prototype for the plugin "output" function
*/
typedef void output_t(const char *descr,
iaddr from,
iaddr to,
uint8_t proto,
int isfrag,
unsigned sport,
unsigned dport,
my_bpftimeval ts,
const u_char *pkt_copy,
unsigned olen,
const u_char *dnspkt,
unsigned dnslen);
#define DIR_INITIATE 0x0001
#define DIR_RESPONSE 0x0002
|
#include <netinet/in.h>
/*
* setup MY_BPFTIMEVAL as the timeval structure that bpf packets
* will be assoicated with packets from libpcap
*/
#ifndef MY_BPFTIMEVAL
# define MY_BPFTIMEVAL timeval
#endif
typedef struct MY_BPFTIMEVAL my_bpftimeval;
/*
* Structure to contain IP addresses
*/
typedef struct {
int af;
union {
struct in_addr a4;
struct in6_addr a6;
} u;
} iaddr;
/*
* plugins can call the logerr() function in the main dnscap
* process.
*/
typedef int logerr_t(const char *fmt, ...);
/*
* Prototype for the plugin "output" function
*/
typedef void output_t(const char *descr,
iaddr from,
iaddr to,
uint8_t proto,
int isfrag,
unsigned sport,
unsigned dport,
my_bpftimeval ts,
const u_char *pkt_copy,
unsigned olen,
const u_char *dnspkt,
unsigned dnslen);
#define DIR_INITIATE 0x0001
#define DIR_RESPONSE 0x0002
|
Fix compilation on FreeBSD and OpenBSD
|
Fix compilation on FreeBSD and OpenBSD
|
C
|
isc
|
verisign/dnscap,verisign/dnscap
|
39878a58e58dfa4029c0ddfc2f3c45098fe06466
|
libgdi/gdi_shape.h
|
libgdi/gdi_shape.h
|
/*
FreeRDP: A Remote Desktop Protocol client.
GDI Shape Functions
Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef __GDI_SHAPE_H
#define __GDI_SHAPE_H
#include "gdi.h"
int Ellipse(HDC hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
int Polygon(HDC hdc, POINT *lpPoints, int nCount);
int FillRect(HDC hdc, HRECT rect, HBRUSH hbr);
#endif /* __GDI_SHAPE_H */
|
/*
FreeRDP: A Remote Desktop Protocol client.
GDI Shape Functions
Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef __GDI_SHAPE_H
#define __GDI_SHAPE_H
#include "gdi.h"
void ShapeInit();
int Ellipse(HDC hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
int Polygon(HDC hdc, POINT *lpPoints, int nCount);
int FillRect(HDC hdc, HRECT rect, HBRUSH hbr);
#endif /* __GDI_SHAPE_H */
|
Fix missing declaration for ShapeInit()
|
Fix missing declaration for ShapeInit()
|
C
|
apache-2.0
|
FreeRDP/FreeRDP-old,FreeRDP/FreeRDP-old,FreeRDP/FreeRDP-old
|
cb14a9aaa5fa50b22982f14aeab7d9f2f634ea3d
|
tests/vio_tests/check_vio_file_stat.c
|
tests/vio_tests/check_vio_file_stat.c
|
#include "support.h"
#include "vio/csync_vio_file_stat.h"
START_TEST (check_csync_vio_file_stat_new)
{
csync_vio_file_stat_t *stat = NULL;
stat = csync_vio_file_stat_new();
fail_if(stat == NULL, NULL);
csync_vio_file_stat_destroy(stat);
}
END_TEST
static Suite *csync_vio_suite(void) {
Suite *s = suite_create("csync_vio_file_stat");
create_case(s, "check_csync_vio_file_stat_new", check_csync_vio_file_stat_new);
return s;
}
int main(void) {
int nf;
Suite *s = csync_vio_suite();
SRunner *sr;
sr = srunner_create(s);
#if 0
srunner_set_fork_status(sr, CK_NOFORK);
#endif
srunner_run_all(sr, CK_VERBOSE);
nf = srunner_ntests_failed(sr);
srunner_free(sr);
return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
|
#include "support.h"
#include "vio/csync_vio_file_stat.h"
START_TEST (check_csync_vio_file_stat_new)
{
csync_vio_file_stat_t *tstat = NULL;
tstat = csync_vio_file_stat_new();
fail_if(tstat == NULL, NULL);
csync_vio_file_stat_destroy(tstat);
}
END_TEST
static Suite *csync_vio_suite(void) {
Suite *s = suite_create("csync_vio_file_stat");
create_case(s, "check_csync_vio_file_stat_new", check_csync_vio_file_stat_new);
return s;
}
int main(void) {
int nf;
Suite *s = csync_vio_suite();
SRunner *sr;
sr = srunner_create(s);
#if 0
srunner_set_fork_status(sr, CK_NOFORK);
#endif
srunner_run_all(sr, CK_VERBOSE);
nf = srunner_ntests_failed(sr);
srunner_free(sr);
return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
|
Fix build warning for shadowed variable.
|
Fix build warning for shadowed variable.
|
C
|
lgpl-2.1
|
meeh420/csync,gco/csync,meeh420/csync,gco/csync,meeh420/csync,gco/csync,gco/csync
|
bef527848955070cab42bcc1f42799656e8da0a6
|
src/hostnet/stubs_utils.c
|
src/hostnet/stubs_utils.c
|
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <caml/callback.h>
#include <caml/alloc.h>
#include <stdio.h>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif
CAMLprim value stub_get_SOMAXCONN(){
fprintf(stderr, "SOMAXCONN = %d\n", SOMAXCONN);
return (Val_int (SOMAXCONN));
}
|
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <caml/callback.h>
#include <caml/alloc.h>
#include <stdio.h>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif
CAMLprim value stub_get_SOMAXCONN(value unit){
fprintf(stderr, "SOMAXCONN = %d\n", SOMAXCONN);
return (Val_int (SOMAXCONN));
}
|
Add `value` parameter to SOMAXCONN binding
|
Add `value` parameter to SOMAXCONN binding
Problem spotted by yallop in
https://github.com/moby/vpnkit/commit/8d718125a66fbe746ba17ad3e85b7924ac0ed9a4#commitcomment-21930309
Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@docker.com>
|
C
|
apache-2.0
|
djs55/vpnkit,djs55/vpnkit,djs55/vpnkit
|
c03dcdf5e249ac87c917f3b57f2f532be7fa3aa1
|
iOS/AIBHTMLWebView.h
|
iOS/AIBHTMLWebView.h
|
//
// AIBHTMLWebView.h
// AIBHTMLWebView
//
// Created by Thomas Parslow on 05/04/2015.
// Copyright (c) 2015 Thomas Parslow. MIT License.
//
#import "RCTView.h"
@class RCTEventDispatcher;
@interface AIBHTMLWebView : RCTView
@property (nonatomic, strong) NSString *HTML;
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
@end
|
//
// AIBHTMLWebView.h
// AIBHTMLWebView
//
// Created by Thomas Parslow on 05/04/2015.
// Copyright (c) 2015 Thomas Parslow. MIT License.
//
#import "RCTView.h"
@class RCTEventDispatcher;
@interface AIBHTMLWebView : RCTView
@property (nonatomic, strong) NSString *HTML;
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
@end
|
Remove designated initializer compiler warnings
|
Remove designated initializer compiler warnings
|
C
|
mit
|
almost/react-native-html-webview
|
aa470966fb84e16c92c210236cc5348a3e4c7bb7
|
Settings/Controls/Label.h
|
Settings/Controls/Label.h
|
#pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
virtual bool Text(std::wstring text) {
bool result = Control::Text(text);
if (result == false) {
return false;
}
/* Determine the width of the text */
HDC dc = GetDC(_hWnd);
SIZE sz = { 0 };
GetTextExtentPoint32(dc, &text[0], text.size(), &sz);
/* Update the window size based on the text size */
RECT r = Control::ScreenDimensions();
POINT pt = { r.left, r.top };
ScreenToClient(_parent, &pt);
MoveWindow(_hWnd, pt.x, pt.y, sz.cx, sz.cy, TRUE);
return true;
}
};
|
#pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
virtual bool Text(std::wstring text) {
bool result = Control::Text(text);
if (result == false) {
return false;
}
Width(TextDimensions().cx);
// /* Determine the width of the text */
// HDC dc = GetDC(_hWnd);
// SIZE sz = { 0 };
// GetTextExtentPoint32(dc, &text[0], text.size(), &sz);
// /* Update the window size based on the text size */
// RECT r = Control::ScreenDimensions();
// POINT pt = { r.left, r.top };
// ScreenToClient(_parent, &pt);
// MoveWindow(_hWnd, pt.x, pt.y, sz.cx, sz.cy, TRUE);
return true;
}
};
|
Test the new width functionality
|
Test the new width functionality
|
C
|
bsd-2-clause
|
Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.