commit
stringlengths 40
40
| old_file
stringlengths 4
112
| new_file
stringlengths 4
112
| old_contents
stringlengths 0
2.05k
| new_contents
stringlengths 28
3.9k
| subject
stringlengths 17
736
| message
stringlengths 18
4.78k
| lang
stringclasses 1
value | license
stringclasses 13
values | repos
stringlengths 7
111k
|
---|---|---|---|---|---|---|---|---|---|
fcd8f70a51147c0664e7a5e87fea0dbfa6c05247 | src/ui/UI.h | src/ui/UI.h | #pragma once
//------------------------------------------------------------------------------
/**
@class UI
@brief imgui-based debugger UI
*/
#include "yakc/KC85Oryol.h"
#include "ui/WindowBase.h"
#include "ui/FileLoader.h"
#include "Time/TimePoint.h"
#include "Core/Containers/Array.h"
#include "IMUI/IMUI.h"
class UI {
public:
/// setup the UI
void Setup(yakc::kc85& kc);
/// discard the UI
void Discard();
/// do one frame
void OnFrame(yakc::kc85& kc);
/// open a window
void OpenWindow(yakc::kc85& kc, const Oryol::Ptr<WindowBase>& window);
/// toggle the UI on/off
void Toggle();
static const ImVec4 ColorText;
static const ImVec4 ColorDetail;
static const ImVec4 ColorDetailBright;
static const ImVec4 ColorDetailDark;
static const ImVec4 ColorBackground;
static const ImVec4 ColorBackgroundLight;
struct settings {
bool crtEffect = true;
bool colorTV = true;
float crtWarp = 1.0f/64.0f;
int cpuSpeed = 1;
} Settings;
private:
FileLoader fileLoader;
Oryol::TimePoint curTime;
Oryol::Array<Oryol::Ptr<WindowBase>> windows;
bool uiEnabled = false;
bool helpOpen = true;
};
| #pragma once
//------------------------------------------------------------------------------
/**
@class UI
@brief imgui-based debugger UI
*/
#include "yakc/KC85Oryol.h"
#include "ui/WindowBase.h"
#include "ui/FileLoader.h"
#include "Time/TimePoint.h"
#include "Core/Containers/Array.h"
#include "IMUI/IMUI.h"
class UI {
public:
/// setup the UI
void Setup(yakc::kc85& kc);
/// discard the UI
void Discard();
/// do one frame
void OnFrame(yakc::kc85& kc);
/// open a window
void OpenWindow(yakc::kc85& kc, const Oryol::Ptr<WindowBase>& window);
/// toggle the UI on/off
void Toggle();
static const ImVec4 ColorText;
static const ImVec4 ColorDetail;
static const ImVec4 ColorDetailBright;
static const ImVec4 ColorDetailDark;
static const ImVec4 ColorBackground;
static const ImVec4 ColorBackgroundLight;
struct settings {
bool crtEffect = false;
bool colorTV = true;
float crtWarp = 1.0f/64.0f;
int cpuSpeed = 1;
} Settings;
private:
FileLoader fileLoader;
Oryol::TimePoint curTime;
Oryol::Array<Oryol::Ptr<WindowBase>> windows;
bool uiEnabled = false;
bool helpOpen = true;
};
| Switch off CRT-effect off by default (until fixed) | Switch off CRT-effect off by default (until fixed)
| C | mit | floooh/yakc,floooh/yakc,floooh/yakc,floooh/yakc,floooh/yakc |
23c59a06b001f447802f8a118203baca17ee2c5f | c/temperature.c | c/temperature.c | #include <stdio.h>
// k&r farenheit to celcius table
int main()
{
int fahr, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
fahr = lower;
while (fahr <= upper) {
celsius = 5 * (fahr - 32) / 9;
printf("%d\t%d\t\n", fahr, celsius);
fahr = fahr + step;
}
return 0;
}
| #include <stdio.h>
// k&r farenheit to celcius table
int main()
{
float fahr, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
// first print table header
printf("%s %s\n", "Fahr", "Cels");
// then calculate values and print them to table
fahr = lower;
while (fahr <= upper) {
celsius = (5.0 / 9.0) * (fahr - 32);
printf("%3.0f %6.1f\n", fahr, celsius);
fahr = fahr + step;
}
return 0;
}
| Use floats instead of ints, print table header | Use floats instead of ints, print table header
| C | mit | oldhill/halloween,oldhill/halloween,oldhill/halloween,oldhill/halloween |
2c3df4946ce8356a67acdeec9f084d2967f83cd8 | native/src/main/native/traildb-java-static.h | native/src/main/native/traildb-java-static.h |
typedef struct TrailDBMultiTrailFields {
long timestamp;
long num_items;
long items;
long db;
long multi_cur;
long cursor_idx;
} TrailDBMultiTrailFields;
typedef struct TrailDBTrailFields {
long timestamp;
long num_items;
long items;
long db;
long cur;
} TrailDBTrailFields;
| Add static header file for fiels struct | Add static header file for fiels struct
| C | mit | aholyoke/traildb-java,aholyoke/traildb-java |
|
e7bfdc05fa5ff3e35d8480d75d9e9061498875a1 | sdl2/libretro/libretro_params.h | sdl2/libretro/libretro_params.h | #ifndef LRPARAMS_
#define LRPARAMS_
#include "np2ver.h"
#define LR_SCREENWIDTH 640
#define LR_SCREENHEIGHT 480
#define LR_SCREENASPECT 4.0 / 3.0
#define LR_SCREENFPS 56.4
#define LR_SOUNDRATE 44100.0
//#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame)
#define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame)
#define LR_CORENAME "Neko Project II"
#define LR_LIBVERSION NP2VER_CORE
#define LR_VALIDFILEEXT "d88|88d|d98|98d|fdi|xdf|hdm|dup|2hd|tfd|nfd|hd4|hd5|hd9|fdd|h01|hdb|ddb|dd6|dcp|dcu|flp|bin|fim|thd|nhd|hdi|vhd|sln"
#define LR_NEEDFILEPATH true
#define LR_BLOCKARCEXTRACT false
#define LR_REQUIRESROM false
#endif
| #ifndef LRPARAMS_
#define LRPARAMS_
#include "np2ver.h"
#define LR_SCREENWIDTH 640
#define LR_SCREENHEIGHT 480
#define LR_SCREENASPECT 4.0 / 3.0
#define LR_SCREENFPS 56.4
#define LR_SOUNDRATE 44100.0
//#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame)
#define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame)
#define LR_CORENAME "Neko Project II kai"
#define LR_LIBVERSION NP2VER_CORE
#define LR_VALIDFILEEXT "d88|88d|d98|98d|fdi|xdf|hdm|dup|2hd|tfd|nfd|hd4|hd5|hd9|fdd|h01|hdb|ddb|dd6|dcp|dcu|flp|bin|fim|thd|nhd|hdi|vhd|sln"
#define LR_NEEDFILEPATH true
#define LR_BLOCKARCEXTRACT false
#define LR_REQUIRESROM false
#endif
| Add 'kai' to core name | Add 'kai' to core name
| C | mit | AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai |
a293b49d5c09b0e54d3a75c9141d78d5ed990f02 | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
// Modifying methods
bool post(TaskId, SerializedTask&);
bool put(TaskId, SerializedTask&);
bool erase(TaskId);
std::vector<SerializedTask> getAllTask();
private:
static DataStore& get();
bool isServing = false;
std::deque<Internal::IOperation> operationsQueue;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_DATASTORE_H_
| #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
class DataStore {
friend class UnitTests::DataStoreApiTest;
public:
Transaction && begin();
// Modifying methods
bool post(TaskId, SerializedTask&);
bool put(TaskId, SerializedTask&);
bool erase(TaskId);
std::vector<SerializedTask> getAllTask();
private:
static DataStore& get();
bool isServing = false;
std::deque<Internal::IOperation> operationsQueue;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_DATASTORE_H_
| Add unit test class declaration and friend class it in DataStore | Add unit test class declaration and friend class it in DataStore
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
8035865ed3eb0b6ef9842903887dc44d4d0e6310 | zLib/Find.h | zLib/Find.h | /*
* Copyright 2015 Samuel Ghineț
*
* 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.
*/
#pragma once
#include <vector>
#include <string>
#include "zLib.h"
namespace Zen
{
struct ZLIB_API ResultItem
{
/* fullName: default value - a) if result = not found / invalid; b) if filter, means 'any' */
std::tstring fullName;
};
typedef std::vector<ResultItem> Results;
class ZLIB_API Find
{
public:
Find() : m_dirPath(T(".")) {}
explicit Find(const std::tstring& path) : m_dirPath(path) {}
Results operator()();
private:
std::tstring m_dirPath;
};
}
| /*
* Copyright 2015 Samuel Ghineț
*
* 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.
*/
#pragma once
#include <vector>
#include <string>
#include "zLib.h"
namespace Zen
{
struct ZLIB_API ResultItem
{
/* fullName: default value - a) if result = not found / invalid; b) if filter, means 'any' */
std::tstring fullName;
};
typedef std::vector<ResultItem> Results;
class ZLIB_API IFind
{
public:
virtual ~IFind() {}
virtual Results operator()() = 0;
};
class ZLIB_API Find : public IFind
{
public:
Find() : m_dirPath(T(".")) {}
explicit Find(const std::tstring& path) : m_dirPath(path) {}
Results operator()();
private:
std::tstring m_dirPath;
};
}
| Use a mock for class ZSearch | Use a mock for class ZSearch
ZSearch now needs a ref to an interface, Zen::IFind&. The tests that check the functionality of ZSearch - ignoring of OS-specific issues - will need to provide a mock implementing IFind.
| C | apache-2.0 | Feoggou/zLib |
65e4c1a76b1d37248de01d6b482a7781612c0ca5 | stf/NBodylib/src/NBody/SwiftParticle.h | stf/NBodylib/src/NBody/SwiftParticle.h | /*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
#define SWIFT_STRUCT_ALIGNMENT 32
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT)))
namespace Swift
{
/* The different types of particles a #gpart can link to.
Note we use the historical values from Gadget for these fields. */
enum part_type {
swift_type_gas = 0,
swift_type_dark_matter = 1,
swift_type_star = 4,
swift_type_black_hole = 5,
swift_type_count
} __attribute__((packed));
typedef char timebin_t;
/* Gravity particle. */
struct gpart {
/* Particle ID. If negative, it is the negative offset of the #part with
which this gpart is linked. */
long long id_or_neg_offset;
/* Particle position. */
double x[3];
/* Offset between current position and position at last tree rebuild. */
float x_diff[3];
/* Particle velocity. */
float v_full[3];
/* Particle acceleration. */
float a_grav[3];
/* Particle mass. */
float mass;
/* Gravitational potential */
float potential;
/* Time-step length */
timebin_t time_bin;
/* Type of the #gpart (DM, gas, star, ...) */
enum part_type type;
//#ifdef SWIFT_DEBUG_CHECKS
//
// /* Numer of gparts this gpart interacted with */
// long long num_interacted;
//
// /* Time of the last drift */
// integertime_t ti_drift;
//
// /* Time of the last kick */
// integertime_t ti_kick;
//
//#endif
//
//#ifdef SWIFT_GRAVITY_FORCE_CHECKS
//
// /* Brute-force particle acceleration. */
// double a_grav_exact[3];
//
//#endif
} SWIFT_STRUCT_ALIGN;
extern "C" {
#include "hydro_part.h"
}
}
#endif
| /*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
namespace Swift
{
/* Include some struct definitions from SWIFT. */
extern "C" {
#include "align.h"
#include "timeline.h"
#include "part_type.h"
#include "gravity_part.h"
#include "hydro_part.h"
}
}
#endif
| Include SWIFT struct definitions directly from SWIFT. | Include SWIFT struct definitions directly from SWIFT.
| C | mit | pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF |
307fe534193aede6787f638e6c9c95f84cc30b15 | Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h | Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h | /*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Xerces" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache\@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation, and was
* originally based on software copyright (c) 2001, International
* Business Machines, Inc., http://www.ibm.com . For more information
* on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
/*
* $Id$
*/
// Objective C only
#if __OBJC__
#endif
// C++ only
#if defined(__cplusplus)
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <cstdio>
#include <memory>
#endif
// Standard C headers
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
// Carbon Headers
#include <Carbon/Carbon.h>
#include <CoreFoundation/CoreFoundation.h>
| Add prefix file for ProjectBuilder samples | Add prefix file for ProjectBuilder samples
git-svn-id: 3ec853389310512053d525963cab269c063bb453@174526 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | AaronNGray/xerces,AaronNGray/xerces,AaronNGray/xerces,AaronNGray/xerces |
|
69e291e4078480c133aa435394593e1ac37bc24c | include/features.h | include/features.h |
#ifndef __FEATURES_H
#define __FEATURES_H
/* Major and minor version number of the uCLibc library package. Use
these macros to test for features in specific releases. */
#define __UCLIBC__ 0
#define __UCLIBC_MAJOR__ 9
#define __UCLIBC_MINOR__ 1
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almost ansi */
#if __STDC__ != 1
#define const
#define volatile
#endif
#else /* K&R */
#define __P(x) ()
#define __const
#define const
#define volatile
#endif
/* No C++ */
#define __BEGIN_DECLS
#define __END_DECLS
/* GNUish things */
#define __CONSTVALUE
#define __CONSTVALUE2
#define __USE_BSD
#define __USE_MISC
#define __USE_POSIX
#define __USE_POSIX2
#define _POSIX_THREAD_SAFE_FUNCTIONS
#include <sys/cdefs.h>
#endif
|
#ifndef __FEATURES_H
#define __FEATURES_H
/* Major and minor version number of the uCLibc library package. Use
these macros to test for features in specific releases. */
#define __UCLIBC__ 0
#define __UCLIBC_MAJOR__ 9
#define __UCLIBC_MINOR__ 1
/* __restrict is known in EGCS 1.2 and above. */
#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ <
92)
# define __restrict /* Ignore */
#endif
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almost ansi */
#if __STDC__ != 1
#define const
#define volatile
#endif
#else /* K&R */
#define __P(x) ()
#define __const
#define const
#define volatile
#endif
/* No C++ */
#define __BEGIN_DECLS
#define __END_DECLS
/* GNUish things */
#define __CONSTVALUE
#define __CONSTVALUE2
#define __USE_BSD
#define __USE_MISC
#define __USE_POSIX
#define __USE_POSIX2
#define _POSIX_THREAD_SAFE_FUNCTIONS
#include <sys/cdefs.h>
#endif
| Remove __restrict when not supported -Erik | Remove __restrict when not supported
-Erik
| C | lgpl-2.1 | gittup/uClibc,ffainelli/uClibc,wbx-github/uclibc-ng,ndmsystems/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ChickenRunjyd/klee-uclibc,kraj/uClibc,hjl-tools/uClibc,hjl-tools/uClibc,wbx-github/uclibc-ng,hwoarang/uClibc,ysat0/uClibc,ndmsystems/uClibc,ffainelli/uClibc,skristiansson/uClibc-or1k,mephi42/uClibc,kraj/uclibc-ng,skristiansson/uClibc-or1k,wbx-github/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,wbx-github/uclibc-ng,majek/uclibc-vx32,OpenInkpot-archive/iplinux-uclibc,gittup/uClibc,klee/klee-uclibc,czankel/xtensa-uclibc,hwoarang/uClibc,klee/klee-uclibc,OpenInkpot-archive/iplinux-uclibc,brgl/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,klee/klee-uclibc,majek/uclibc-vx32,hjl-tools/uClibc,mephi42/uClibc,groundwater/uClibc,kraj/uclibc-ng,ysat0/uClibc,foss-xtensa/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,waweber/uclibc-clang,gittup/uClibc,waweber/uclibc-clang,ndmsystems/uClibc,brgl/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,kraj/uClibc,mephi42/uClibc,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,m-labs/uclibc-lm32,m-labs/uclibc-lm32,ChickenRunjyd/klee-uclibc,ffainelli/uClibc,atgreen/uClibc-moxie,hwoarang/uClibc,OpenInkpot-archive/iplinux-uclibc,klee/klee-uclibc,waweber/uclibc-clang,czankel/xtensa-uclibc,m-labs/uclibc-lm32,foss-for-synopsys-dwc-arc-processors/uClibc,groundwater/uClibc,majek/uclibc-vx32,groundwater/uClibc,waweber/uclibc-clang,mephi42/uClibc,majek/uclibc-vx32,groundwater/uClibc,ysat0/uClibc,ddcc/klee-uclibc-0.9.33.2,atgreen/uClibc-moxie,hjl-tools/uClibc,kraj/uClibc,atgreen/uClibc-moxie,hjl-tools/uClibc,skristiansson/uClibc-or1k,foss-for-synopsys-dwc-arc-processors/uClibc,ffainelli/uClibc,czankel/xtensa-uclibc,kraj/uClibc,foss-xtensa/uClibc,ChickenRunjyd/klee-uclibc,hwoarang/uClibc,ffainelli/uClibc,ndmsystems/uClibc,gittup/uClibc,brgl/uclibc-ng,kraj/uclibc-ng,groundwater/uClibc,czankel/xtensa-uclibc,ysat0/uClibc,m-labs/uclibc-lm32,kraj/uclibc-ng,foss-xtensa/uClibc,atgreen/uClibc-moxie,brgl/uclibc-ng,ChickenRunjyd/klee-uclibc,skristiansson/uClibc-or1k |
22bca278cabbaa9e873c5f40b16e094963e6b6c5 | src/gf/linear_equation_system.h | src/gf/linear_equation_system.h | #pragma once
#include "polynomial.h"
template <typename Polytype>
class linear_equation_system : public std::vector<Polytype> {
std::vector<Polytype> rows;
linear_equation_system reduced_echelon_form() const {
std::vector<Polytype> nrows(*this);
/* make sure rows are sorted with the left-most elements at the top */
std::sort(std::begin(nrows), std::end(nrows),
[](const Polytype &lhs,
const Polytype &rhs) { return lhs.degree() > rhs.degree(); });
for (auto first_row = nrows.begin(); first_row != nrows.end();
++first_row) {
(*first_row) *= first_row->at(first_row->degree()).inverse();
for (auto next_rows = first_row + 1; next_rows != nrows.end();
++next_rows) {
/* only add if not already zero */
if (next_rows->at(first_row->degree()))
(*next_rows) += (*first_row) * next_rows->at(next_rows->degree());
}
// std::cout << matrix(nrows) << std::endl;
}
for (auto modify = nrows.rbegin() + 1; modify != nrows.rend(); ++modify) {
for (auto row = nrows.crbegin(); row != modify; ++row) {
const size_t index = std::distance(std::crbegin(nrows), row) + 1;
auto factor = modify->at(index);
(*modify) += (*row) * factor;
}
}
return linear_equation_system(nrows);
}
public:
using std::vector<Polytype>::vector;
linear_equation_system() = default;
linear_equation_system(const std::vector<Polytype> &v)
: std::vector<Polytype>::vector(v) {}
linear_equation_system(std::vector<Polytype> &&v)
: std::vector<Polytype>::vector(std::move(v)) {}
Polytype solution() const {
linear_equation_system copy(reduced_echelon_form());
/*
* Matrix:
* x = 0 0 1
* y = 0 1 0
* z = 1 0 0
* ^ back()[1].
* Must be non-zero, otherwise the system is overdetermined.
* Since it is in row-echelon form, it must be one.
*/
if (copy.back()[1] != typename Polytype::element_type(1))
throw std::runtime_error("Linear equation system not solvable");
Polytype s;
for (const auto &row : copy) {
s.push_back(row[0]);
}
return s;
}
};
| Add linear equations system class template | Add linear equations system class template
| C | bsd-3-clause | hannesweisbach/channelcoding |
|
1efe7fa345f5ab9fb75ecf6f7109c2f1fd9ec4a0 | src/tests/graphene-test-compat.h | src/tests/graphene-test-compat.h | #include <glib.h>
#if !GLIB_CHECK_VERSION (2, 40, 0)
# define g_assert_true(expr) g_assert ((expr))
# define g_assert_false(expr) g_assert (!(expr))
# define g_assert_null(expr) g_assert ((expr) == NULL)
# define g_assert_nonnull(expr) g_assert ((expr) != NULL)
#endif
| #include <glib.h>
#if !GLIB_CHECK_VERSION (2, 40, 0)
# define g_assert_true(expr) g_assert ((expr))
# define g_assert_false(expr) g_assert (!(expr))
# define g_assert_null(expr) g_assert ((expr) == NULL)
# define g_assert_nonnull(expr) g_assert ((expr) != NULL)
#endif
#define graphene_assert_fuzzy_equals(n1,n2,epsilon) \
G_STMT_START { \
typeof ((n1)) __n1 = (n1); \
typeof ((n2)) __n2 = (n2); \
typeof ((epsilon)) __epsilon = (epsilon); \
if (__n1 > __n2) { \
if ((__n1 - __n2) < __epsilon) ; else { \
g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \
#n1 " == " #n2 " (+/- " #epsilon ")", \
__n1, "==", __n2, 'f'); \
} \
} else { \
if ((__n2 - __n1) < __epsilon) ; else { \
g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \
#n1 " == " #n2 " (+/- " #epsilon ")", \
__n1, "==", __n2, 'f'); \
} \
} \
} G_STMT_END
| Add a fuzzy comparison macro | tests: Add a fuzzy comparison macro
We use something like this in the matrix test suite, but it's useful for
other types.
| C | mit | criptych/graphene,criptych/graphene,criptych/graphene,ebassi/graphene,ebassi/graphene,criptych/graphene |
5582ce10e466a70c96b6c74288c07b54406c39c6 | bindings/tcl/matrixInit.c | bindings/tcl/matrixInit.c | #include "tclMatrix.h"
int Matrix_Init (Tcl_Interp*);
int Matrix_Init( Tcl_Interp *interp ) {
/* matrix -- matrix support command */
Tcl_CreateCommand(interp, "matrix", Tcl_MatrixCmd,
(ClientData) NULL, (void (*)(ClientData)) NULL);
Tcl_PkgProvide(interp, "Matrix", "0.1");
return TCL_OK;
} | #include "tclMatrix.h"
int Matrix_Init (Tcl_Interp*);
int Matrix_Init( Tcl_Interp *interp ) {
/* matrix -- matrix support command */
Tcl_CreateCommand(interp, "matrix", Tcl_MatrixCmd,
(ClientData) NULL, (void (*)(ClientData)) NULL);
Tcl_PkgProvide(interp, "Matrix", "0.1");
return TCL_OK;
}
| Add newline to make compiler happy. | Add newline to make compiler happy.
svn path=/trunk/; revision=2015
| C | lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot |
e1717bd771f51e3a2c370ffa64d50de6b8ee6ca6 | common/base_clusterinfo.h | common/base_clusterinfo.h | /*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2021 gatecat <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
#ifndef BASE_CLUSTERINFO_H
#define BASE_CLUSTERINFO_H
#include "idstring.h"
#include "nextpnr_namespaces.h"
NEXTPNR_NAMESPACE_BEGIN
struct CellInfo;
// The 'legacy' cluster data, used for existing arches and to provide a basic implementation for arches without complex
// clustering requirements
struct BaseClusterInfo
{
std::vector<CellInfo *> constr_children;
const int UNCONSTR = INT_MIN;
int constr_x = UNCONSTR; // this.x - parent.x
int constr_y = UNCONSTR; // this.y - parent.y
int constr_z = UNCONSTR; // this.z - parent.z
bool constr_abs_z = false; // parent.z := 0
};
NEXTPNR_NAMESPACE_END
#endif /* BASE_ARCH_H */
| Add BaseClusterInfo for base implementation | Add BaseClusterInfo for base implementation
Signed-off-by: gatecat <[email protected]>
| C | isc | SymbiFlow/nextpnr,SymbiFlow/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr |
|
570e125e5db1ec2bdf12c32b77f1169d2c6831e8 | tests/system_tests/test_cases/test_reduction_2d.c | tests/system_tests/test_cases/test_reduction_2d.c | /*
* TEST: Grid reduction OP=PS_SUM
* DIM: 2
* PRIORITY: 1
*/
#include <stdio.h>
#include <stdlib.h>
#include "physis/physis.h"
#define N 4
#define REAL double
#define PSGrid2D PSGrid2DDouble
#define PSGrid2DNew PSGrid2DDoubleNew
REAL reduce(REAL *g) {
REAL v = 0.0;
int i;
for (i = 0; i < N*N; ++i) {
v += g[i];
}
return v;
}
int main(int argc, char *argv[]) {
PSInit(&argc, &argv, 2, N, N);
PSGrid2D g1 = PSGrid2DNew(N, N);
size_t nelms = N*N;
REAL *indata = (REAL *)malloc(sizeof(REAL) * nelms);
int i;
for (i = 0; i < nelms; i++) {
indata[i] = i;
}
PSGridCopyin(g1, indata);
REAL v;
PSReduce(&v, PS_SUM, g1);
REAL v_ref = reduce(indata);
fprintf(stderr, "Reduction result: %f, reference: %f\n", v, v_ref);
if (v != v_ref) {
fprintf(stderr, "Error: Non matching result\n");
exit(1);
}
PSGridFree(g1);
PSFinalize();
free(indata);
return 0;
}
| Add a test case for reduction of 2D grids. | Add a test case for reduction of 2D grids.
| C | bsd-3-clause | naoyam/physis,naoyam/physis,naoyam/physis,naoyam/physis |
|
f2b83f08d3ed35fd4a119d40b554ad651e7c6f3d | src/server/shttpd/compat_unix.h | src/server/shttpd/compat_unix.h | /*
* Copyright (c) 2004-2007 Sergey Lyubka <[email protected]>
* All rights reserved
*
* "THE BEER-WARE LICENSE" (Revision 42):
* Sergey Lyubka wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
*/
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <pwd.h>
#include <unistd.h>
#include <dirent.h>
#include <dlfcn.h>
#define SSL_LIB "libssl.so"
#define DIRSEP '/'
#define IS_DIRSEP_CHAR(c) ((c) == '/')
#define O_BINARY 0
#define closesocket(a) close(a)
#define ERRNO errno
#define NO_GUI
#define InitializeCriticalSection(x) /* FIXME UNIX version is not MT safe */
#define EnterCriticalSection(x)
#define LeaveCriticalSection(x)
| /*
* Copyright (c) 2004-2007 Sergey Lyubka <[email protected]>
* All rights reserved
*
* "THE BEER-WARE LICENSE" (Revision 42):
* Sergey Lyubka wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
*/
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <pwd.h>
#include <unistd.h>
#include <dirent.h>
#include <dlfcn.h>
#ifndef SSL_LIB
#define SSL_LIB "libssl.so"
#endif
#define DIRSEP '/'
#define IS_DIRSEP_CHAR(c) ((c) == '/')
#define O_BINARY 0
#define closesocket(a) close(a)
#define ERRNO errno
#define NO_GUI
#define InitializeCriticalSection(x) /* FIXME UNIX version is not MT safe */
#define EnterCriticalSection(x)
#define LeaveCriticalSection(x)
| Allow to override SSL_LIB during build | Allow to override SSL_LIB during build
SSL_LIB defaults to libssl.so which is only provided by a -devel
package and hence not loadable dynamically during runtime.
| C | bsd-3-clause | photron/openwsman,vcrhonek/openwsman,vcrhonek/openwsman,photron/openwsman,kolbma/openwsman,Openwsman/openwsman,photron/openwsman,photron/openwsman,vcrhonek/openwsman,kkaempf/openwsman,kolbma/openwsman,kkaempf/openwsman,kkaempf/openwsman,Openwsman/openwsman,kolbma/openwsman,vcrhonek/openwsman,photron/openwsman,Openwsman/openwsman,kolbma/openwsman,photron/openwsman,Openwsman/openwsman,Openwsman/openwsman,Openwsman/openwsman,kolbma/openwsman,kkaempf/openwsman,vcrhonek/openwsman,vcrhonek/openwsman,vcrhonek/openwsman,Openwsman/openwsman,kkaempf/openwsman,kolbma/openwsman,kkaempf/openwsman,kolbma/openwsman,kkaempf/openwsman,photron/openwsman |
194ca80fdbb4e15db7527aaeff6ba1e36fd27fb0 | lib/System/Unix/Unix.h | lib/System/Unix/Unix.h | //===- llvm/System/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines things specific to Unix implementations.
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only generic UNIX code that
//=== is guaranteed to work on all UNIX variants.
//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h" // Get autoconf configuration settings
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <sys/types.h>
#include <sys/param.h>
#include <assert.h>
#include <string>
inline void ThrowErrno(const std::string& prefix) {
char buffer[MAXPATHLEN];
throw prefix + ": " + strerror(errno);
}
| //===- llvm/System/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines things specific to Unix implementations.
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only generic UNIX code that
//=== is guaranteed to work on all UNIX variants.
//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h" // Get autoconf configuration settings
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <sys/types.h>
#include <sys/param.h>
#include <assert.h>
#include <string>
#include <algorithm>
inline void ThrowErrno(const std::string& prefix) {
char buffer[MAXPATHLEN];
throw prefix + ": " + strerror(errno);
}
| Make this work with the ICC compiler, contributed by Bjørn Wennberg | Make this work with the ICC compiler, contributed by Bjørn Wennberg
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18626 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm |
c3de9524268cfcd2d04fbf464d3b1dafc20f3e7c | lib/System/Unix/Unix.h | lib/System/Unix/Unix.h | //===- llvm/System/Unix/Unix.h - Common Unix Include File -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines things specific to Unix implementations.
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only generic UNIX code that
//=== is guaranteed to work on all UNIX variants.
//===----------------------------------------------------------------------===//
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/param.h>
inline void ThrowErrno(const std::string& prefix) {
#if defined __USE_XOPEN2K || defined __USE_MISC
char buffer[MAXPATHLEN];
strerror_r(errno,buffer, MAXPATHLEN);
throw prefix + ": " + buffer;
#else
throw prefix + ": " + strerror(errno);
#endif
}
| //===- llvm/System/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines things specific to Unix implementations.
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only generic UNIX code that
//=== is guaranteed to work on all UNIX variants.
//===----------------------------------------------------------------------===//
#include "Config/config.h" // Get autoconf configuration settings
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <sys/types.h>
#include <sys/param.h>
inline void ThrowErrno(const std::string& prefix) {
#if defined __USE_XOPEN2K || defined __USE_MISC
char buffer[MAXPATHLEN];
strerror_r(errno,buffer, MAXPATHLEN);
throw prefix + ": " + buffer;
#else
throw prefix + ": " + strerror(errno);
#endif
}
| Include some additional header files. Fix the banner length. | Include some additional header files.
Fix the banner length.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16086 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm |
ad11589eed6c299b36bd335a5e72e029897b05e5 | test/Driver/integrated-as.c | test/Driver/integrated-as.c | // RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s
// CHECK: cc1as
// CHECK: -mrelax-all
// RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS
// FIAS: cc1as
// RUN: %clang -### -fno-integrated-as -S %s 2>&1 \
// RUN: | FileCheck %s -check-prefix NOFIAS
// NOFIAS-NOT: cc1as
// NOFIAS: -cc1
// NOFIAS: -no-integrated-as
| // RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s
// CHECK: cc1as
// CHECK: -mrelax-all
// RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS
// FIAS: cc1as
// RUN: %clang -target none -### -fno-integrated-as -S %s 2>&1 \
// RUN: | FileCheck %s -check-prefix NOFIAS
// NOFIAS-NOT: cc1as
// NOFIAS: -cc1
// NOFIAS: -no-integrated-as
| Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true | Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@338553 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
172803b3b0c2c1194d34f3c27b69604179b3fcb4 | Dev/Cpp/Effekseer/Effekseer/SIMD/Bridge_SSE.h | Dev/Cpp/Effekseer/Effekseer/SIMD/Bridge_SSE.h |
#ifndef __EFFEKSEER_SIMD_BRIDGE_SSE_H__
#define __EFFEKSEER_SIMD_BRIDGE_SSE_H__
#include "Float4_SSE.h"
#include "Int4_SSE.h"
#include "Base.h"
#if defined(EFK_SIMD_SSE2)
namespace Effekseer
{
namespace SIMD
{
inline Int4 Float4::Convert4i() const { return _mm_cvtps_epi32(s); }
inline Int4 Float4::Cast4i() const { return _mm_castps_si128(s); }
inline Float4 Int4::Convert4f() const { return _mm_cvtepi32_ps(s); }
inline Float4 Int4::Cast4f() const { return _mm_castsi128_ps(s); }
} // namespace SIMD
} // namespace Effekseer
#endif
#endif // __EFFEKSEER_SIMD_BRIDGE_SSE_H__ |
#ifndef __EFFEKSEER_SIMD_BRIDGE_SSE_H__
#define __EFFEKSEER_SIMD_BRIDGE_SSE_H__
#include "Float4_SSE.h"
#include "Int4_SSE.h"
#include "Base.h"
#if defined(EFK_SIMD_SSE2)
namespace Effekseer
{
namespace SIMD
{
inline Int4 Float4::Convert4i() const { return _mm_cvttps_epi32(s); }
inline Int4 Float4::Cast4i() const { return _mm_castps_si128(s); }
inline Float4 Int4::Convert4f() const { return _mm_cvtepi32_ps(s); }
inline Float4 Int4::Cast4f() const { return _mm_castsi128_ps(s); }
} // namespace SIMD
} // namespace Effekseer
#endif
#endif // __EFFEKSEER_SIMD_BRIDGE_SSE_H__ | Fix a SIMD instruction mistake that regarding integer rounding. | Fix a SIMD instruction mistake that regarding integer rounding.
| C | mit | effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer |
73e7f37d62c9e1ecbfba862effa1e5fd0d036f32 | esvg/lib/esvg_script_js_sm.c | esvg/lib/esvg_script_js_sm.c | /* Esvg - SVG
* Copyright (C) 2012 Jorge Luis Zapata
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#include <jsapi.h>
#include <stdlib.h>
/*============================================================================*
* Local *
*============================================================================*/
#if 0
int main(int argc, char **argv)
{
static JSClass global_class = {
"global", JSCLASS_GLOBAL_FLAGS,
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub,
JSCLASS_NO_OPTIONAL_MEMBERS
};
JSRuntime *rt;
JSContext *cx;
JSObject *global;
/* Create an instance of the engine */
rt = JS_NewRuntime(1024*1024);
if (!rt) {
exit(EXIT_FAILURE);
}
/* Create an execution context */
cx = JS_NewContext(rt, 8192);
if (!cx) {
exit(EXIT_FAILURE);
}
/* Create a global object and a set of standard objects */
global = JS_NewObject(cx, &global_class, NULL, NULL);
if (!global) {
exit(EXIT_FAILURE);
}
if (JS_InitStandardClasses(cx, global) != JS_TRUE) {
exit(EXIT_FAILURE);
}
/* Do something */
...
/* Cleanup */
JS_DestroyContext(cx);
JS_DestroyRuntime(rt);
JS_ShutDown();
exit(EXIT_SUCCESS);
}
#endif
/*----------------------------------------------------------------------------*
* The script interface *
*----------------------------------------------------------------------------*/
static Esvg_Script_Descriptor _descriptor = {
};
/*============================================================================*
* Global *
*============================================================================*/
void esvg_script_js_sm_init(void)
{
esvg_script_descriptor_register(&descriptor, "application/ecmascript");
}
void esvg_script_js_sm_shutdown(void)
{
esvg_script_descriptor_unregister(&descriptor, "application/ecmascript");
}
/*============================================================================*
* API *
*============================================================================*/
| Add the spidermonkey prototype We need to generate the bindings dynamically at least for the properties until ender have support for real functions. On spidermonkey the objects are created using a class and a prototype, we need to figure out how to match an idl interface with such scheme. Then wrapping ender properties and classes should be simple | Add the spidermonkey prototype
We need to generate the bindings dynamically at least for the properties
until ender have support for real functions. On spidermonkey the objects
are created using a class and a prototype, we need to figure out how
to match an idl interface with such scheme. Then wrapping ender properties
and classes should be simple
| C | lgpl-2.1 | turran/egueb,turran/egueb,turran/egueb |
|
f5166577a90e10c62d23623cb12d37cb8909872f | src/appc/schema/ac_name.h | src/appc/schema/ac_name.h | #pragma once
#include <regex>
#include "appc/schema/common.h"
namespace appc {
namespace schema {
const unsigned int max_ac_name_length = 512;
template<typename T>
struct ACName : StringType<T> {
explicit ACName<T>(const std::string& name)
: StringType<T>(name) {}
virtual Status validate() const {
if (this->value.empty()) {
return Invalid("ACName must not be empty.");
}
if (this->value.size() > max_ac_name_length) {
return Invalid("ACName must not be longer than " + max_ac_name_length);
}
const std::regex pattern("^[a-z0-9]+([a-z0-9-\\./]*[a-z0-9])*$",
std::regex::ECMAScript);
if (!std::regex_match(this->value, pattern)) {
return Invalid("ACName must comply with rfc1123 + allow '/'");
}
return Valid();
}
};
} // namespace schema
} // namespace appc
| #pragma once
#include <regex>
#include "appc/schema/common.h"
namespace appc {
namespace schema {
const unsigned int max_ac_name_length = 512;
template<typename T>
struct ACName : StringType<T> {
explicit ACName<T>(const std::string& name)
: StringType<T>(name) {}
virtual Status validate() const {
if (this->value.empty()) {
return Invalid("ACName must not be empty.");
}
if (this->value.size() > max_ac_name_length) {
return Invalid("ACName must not be longer than " + max_ac_name_length);
}
const std::regex pattern("^[A-Za-z0-9]+([\\-\\.\\/][A-Za-z0-9]+)*$",
std::regex::ECMAScript);
if (!std::regex_match(this->value, pattern)) {
return Invalid("ACName must comply with rfc1123 + allow '/'");
}
return Valid();
}
};
} // namespace schema
} // namespace appc
| Fix for AC Name type adherence to rfc1123 | schema: Fix for AC Name type adherence to rfc1123
| C | apache-2.0 | cdaylward/libappc,cdaylward/libappc |
ce8dca20b8c364fa079330d41a0daff6a8842e0c | ir/be/test/mux.c | ir/be/test/mux.c |
int f(int a, int b) {
return a && b ? 11 : 42;
}
int x = 2, y = 3;
int main(void) {
int ret = 23 < f(x,y);
printf("%d\n", ret);
return ret;
}
| /*$ -march=pentium3 $*/
int f(int a, int b) {
return a && b ? 11 : 42;
}
int x = 2, y = 3;
int main(void) {
int ret = 23 < f(x,y);
printf("%d\n", ret);
return ret;
}
| Use march=pentium3 to use if-conv | Use march=pentium3 to use if-conv
[r21671]
| C | lgpl-2.1 | davidgiven/libfirm,jonashaag/libfirm,killbug2004/libfirm,killbug2004/libfirm,8l/libfirm,libfirm/libfirm,8l/libfirm,MatzeB/libfirm,8l/libfirm,libfirm/libfirm,MatzeB/libfirm,MatzeB/libfirm,8l/libfirm,davidgiven/libfirm,libfirm/libfirm,killbug2004/libfirm,davidgiven/libfirm,8l/libfirm,jonashaag/libfirm,MatzeB/libfirm,killbug2004/libfirm,8l/libfirm,killbug2004/libfirm,davidgiven/libfirm,jonashaag/libfirm,killbug2004/libfirm,killbug2004/libfirm,jonashaag/libfirm,jonashaag/libfirm,jonashaag/libfirm,MatzeB/libfirm,8l/libfirm,davidgiven/libfirm,davidgiven/libfirm,davidgiven/libfirm,libfirm/libfirm,jonashaag/libfirm,MatzeB/libfirm,libfirm/libfirm,MatzeB/libfirm |
4491b8b434bf56b9ec3008aae2c2f3564443faa4 | OctoKit/OCTDirectoryContent.h | OctoKit/OCTDirectoryContent.h | //
// OCTDirectoryContent.h
// OctoKit
//
// Created by Aron Cedercrantz on 14-07-2013.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import "OCTContent.h"
//{
// "type": "dir",
// "size": 0,
// "name": "octokit",
// "path": "lib/octokit",
// "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
// "url": "https://api.github.com/repos/pengwynn/octokit/contents/lib/octokit",
// "git_url": "https://api.github.com/repos/pengwynn/octokit/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
// "html_url": "https://github.com/pengwynn/octokit/tree/master/lib/octokit",
// "_links": {
// "self": "https://api.github.com/repos/pengwynn/octokit/contents/lib/octokit",
// "git": "https://api.github.com/repos/pengwynn/octokit/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
// "html": "https://github.com/pengwynn/octokit/tree/master/lib/octokit"
// }
// }
// A directory in a git repository.
@interface OCTDirectoryContent : OCTContent
@end
| //
// OCTDirectoryContent.h
// OctoKit
//
// Created by Aron Cedercrantz on 14-07-2013.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import "OCTContent.h"
// A directory in a git repository.
@interface OCTDirectoryContent : OCTContent
@end
| Remove comment on JSON structure. | Remove comment on JSON structure.
- Not sure how I missed that while looking through the code… :)
Signed-off-by: Aron Cedercrantz <[email protected]> | C | mit | daemonchen/octokit.objc,Acidburn0zzz/octokit.objc,GroundControl-Solutions/octokit.objc,Acidburn0zzz/octokit.objc,CHNLiPeng/octokit.objc,phatblat/octokit.objc,daukantas/octokit.objc,phatblat/octokit.objc,CleanShavenApps/octokit.objc,xantage/octokit.objc,yeahdongcn/octokit.objc,Palleas/octokit.objc,wrcj12138aaa/octokit.objc,jonesgithub/octokit.objc,xantage/octokit.objc,CHNLiPeng/octokit.objc,Palleas/octokit.objc,cnbin/octokit.objc,cnbin/octokit.objc,leichunfeng/octokit.objc,wrcj12138aaa/octokit.objc,daemonchen/octokit.objc,leichunfeng/octokit.objc,jonesgithub/octokit.objc,daukantas/octokit.objc,GroundControl-Solutions/octokit.objc |
07ac2e2da98d79627823747273bb609a0d5ddbf3 | include/llvm/Linker/Linker.h | include/llvm/Linker/Linker.h | //===- Linker.h - Module Linker Interface -----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LINKER_LINKER_H
#define LLVM_LINKER_LINKER_H
#include "llvm/ADT/SmallPtrSet.h"
#include <functional>
namespace llvm {
class DiagnosticInfo;
class Module;
class StructType;
/// This class provides the core functionality of linking in LLVM. It keeps a
/// pointer to the merged module so far. It doesn't take ownership of the
/// module since it is assumed that the user of this class will want to do
/// something with it after the linking.
class Linker {
public:
typedef std::function<void(const DiagnosticInfo &)>
DiagnosticHandlerFunction;
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);
Linker(Module *M);
~Linker();
Module *getModule() const { return Composite; }
void deleteModule();
/// \brief Link \p Src into the composite. The source is destroyed.
/// Returns true on error.
bool linkInModule(Module *Src);
static bool LinkModules(Module *Dest, Module *Src,
DiagnosticHandlerFunction DiagnosticHandler);
static bool LinkModules(Module *Dest, Module *Src);
private:
Module *Composite;
SmallPtrSet<StructType*, 32> IdentifiedStructTypes;
DiagnosticHandlerFunction DiagnosticHandler;
};
} // End llvm namespace
#endif
| //===- Linker.h - Module Linker Interface -----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LINKER_LINKER_H
#define LLVM_LINKER_LINKER_H
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/STLExtras.h"
namespace llvm {
class DiagnosticInfo;
class Module;
class StructType;
/// This class provides the core functionality of linking in LLVM. It keeps a
/// pointer to the merged module so far. It doesn't take ownership of the
/// module since it is assumed that the user of this class will want to do
/// something with it after the linking.
class Linker {
public:
typedef function_ref<void(const DiagnosticInfo &)>
DiagnosticHandlerFunction;
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);
Linker(Module *M);
~Linker();
Module *getModule() const { return Composite; }
void deleteModule();
/// \brief Link \p Src into the composite. The source is destroyed.
/// Returns true on error.
bool linkInModule(Module *Src);
static bool LinkModules(Module *Dest, Module *Src,
DiagnosticHandlerFunction DiagnosticHandler);
static bool LinkModules(Module *Dest, Module *Src);
private:
Module *Composite;
SmallPtrSet<StructType*, 32> IdentifiedStructTypes;
DiagnosticHandlerFunction DiagnosticHandler;
};
} // End llvm namespace
#endif
| Use a function_ref now that it works (r221753). | Use a function_ref now that it works (r221753).
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@221756 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm |
ea22520461e13c180f7e96144c7245a023e8e3f0 | network/server.h | network/server.h | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
int server_init(DBusConnection *conn, gboolean secure);
void server_exit(void);
int server_register(struct btd_adapter *adapter);
int server_unregister(struct btd_adapter *adapter);
int server_find_data(const char *path, const char *pattern);
| /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>
*
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
int server_init(DBusConnection *conn, gboolean secure);
void server_exit(void);
int server_register(struct btd_adapter *adapter);
int server_unregister(struct btd_adapter *adapter);
| Remove header declared but not defined | network: Remove header declared but not defined
| C | lgpl-2.1 | pstglia/external-bluetooth-bluez,ComputeCycles/bluez,pkarasev3/bluez,pkarasev3/bluez,ComputeCycles/bluez,mapfau/bluez,ComputeCycles/bluez,silent-snowman/bluez,mapfau/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez |
c3b3eaac75219682541c4a3100c692d9abae535b | ios/Exponent/Errors/EXLog.h | ios/Exponent/Errors/EXLog.h | // Copyright 2015-present 650 Industries. All rights reserved.
#import "RCTLog.h"
RCTLogFunction EXDefaultRCTLogFunction;
// EXFrame will use this when the manifest indicates we should enable developer debugging
// Kernel will use this when (DEBUG == 1)
RCTLogFunction EXDeveloperRCTLogFunction;
RCTLogFunction EXGetKernelRCTLogFunction(void);
| // Copyright 2015-present 650 Industries. All rights reserved.
#import "RCTLog.h"
extern RCTLogFunction EXDefaultRCTLogFunction;
// EXFrame will use this when the manifest indicates we should enable developer debugging
// Kernel will use this when (DEBUG == 1)
extern RCTLogFunction EXDeveloperRCTLogFunction;
extern RCTLogFunction EXGetKernelRCTLogFunction(void);
| Make the linker happy about these functions | Make the linker happy about these functions
fbshipit-source-id: 8476c5d
| C | bsd-3-clause | exponent/exponent,jolicloud/exponent,jolicloud/exponent,jolicloud/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,jolicloud/exponent,jolicloud/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,jolicloud/exponent,jolicloud/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,jolicloud/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent |
3b8af53b9903509b003c974c99d8284389dfb4dd | lily_value.h | lily_value.h | #ifndef LILY_VALUE_H
# define LILY_VALUE_H
# include "lily_syminfo.h"
lily_method_val *lily_try_new_method_val();
lily_object_val *lily_try_new_object_val();
lily_hash_val *lily_try_new_hash_val();
lily_hash_elem *lily_try_new_hash_elem();
void lily_deref_method_val(lily_method_val *);
void lily_deref_str_val(lily_str_val *);
void lily_deref_object_val(lily_object_val *);
void lily_deref_list_val_by(lily_sig *, lily_list_val *, int);
void lily_deref_list_val(lily_sig *, lily_list_val *);
void lily_deref_hash_val(lily_sig *, lily_hash_val *);
void lily_deref_unknown_val(lily_value *);
void lily_deref_unknown_raw_val(lily_sig *, lily_raw_value);
#endif | #ifndef LILY_VALUE_H
# define LILY_VALUE_H
# include "lily_syminfo.h"
lily_method_val *lily_try_new_method_val();
lily_object_val *lily_try_new_object_val();
lily_hash_val *lily_try_new_hash_val();
lily_hash_elem *lily_try_new_hash_elem();
void lily_deref_method_val(lily_method_val *);
void lily_deref_str_val(lily_str_val *);
void lily_deref_object_val(lily_object_val *);
void lily_deref_list_val(lily_sig *, lily_list_val *);
void lily_deref_hash_val(lily_sig *, lily_hash_val *);
void lily_deref_unknown_val(lily_value *);
void lily_deref_unknown_raw_val(lily_sig *, lily_raw_value);
#endif | Remove lily_deref_list_val_by. This is a relic from the circle_buster era. | Remove lily_deref_list_val_by. This is a relic from the circle_buster era.
| C | mit | boardwalk/lily,boardwalk/lily,crasm/lily,crasm/lily,crasm/lily |
248440e14b763404fc4ef20e09cb236d8edac73f | ui/views/controls/button/menu_button_delegate.h | ui/views/controls/button/menu_button_delegate.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#pragma once
namespace gfx {
class Point;
}
namespace views {
class View;
////////////////////////////////////////////////////////////////////////////////
//
// MenuButtonDelegate
//
// An interface that allows a component to tell a View about a menu that it
// has constructed that the view can show (e.g. for MenuButton views, or as a
// context menu.)
//
////////////////////////////////////////////////////////////////////////////////
class MenuButtonDelegate {
public:
// Creates and shows a menu at the specified position. |source| is the view
// the MenuButtonDelegate was set on.
virtual void RunMenu(View* source, const gfx::Point& point) = 0;
protected:
virtual ~MenuButtonDelegate() {}
};
} // namespace views
#endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
| // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#pragma once
#include "ui/views/views_export.h"
namespace gfx {
class Point;
}
namespace views {
class View;
////////////////////////////////////////////////////////////////////////////////
//
// MenuButtonDelegate
//
// An interface that allows a component to tell a View about a menu that it
// has constructed that the view can show (e.g. for MenuButton views, or as a
// context menu.)
//
////////////////////////////////////////////////////////////////////////////////
class VIEWS_EXPORT MenuButtonDelegate {
public:
// Creates and shows a menu at the specified position. |source| is the view
// the MenuButtonDelegate was set on.
virtual void RunMenu(View* source, const gfx::Point& point) = 0;
protected:
virtual ~MenuButtonDelegate() {}
};
} // namespace views
#endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
| Fix win builder by tagging MenuButtonDelegate with VIEWS_EXPORT. | views: Fix win builder by tagging MenuButtonDelegate with VIEWS_EXPORT.
BUG=117092
[email protected]
Review URL: https://chromiumcodereview.appspot.com/9647003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125656 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | axinging/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,Chilledheart/chromium,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,ltilve/chromium,markYoungH/chromium.src,zcbenz/cefode-chromium,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,M4sse/chromium.src,Just-D/chromium-1,dushu1203/chromium.src,Fireblend/chromium-crosswalk,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,Just-D/chromium-1,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,ltilve/chromium,robclark/chromium,ltilve/chromium,anirudhSK/chromium,Jonekee/chromium.src,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,jaruba/chromium.src,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,dushu1203/chromium.src,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,Jonekee/chromium.src,robclark/chromium,robclark/chromium,rogerwang/chromium,axinging/chromium-crosswalk,dednal/chromium.src,nacl-webkit/chrome_deps,Jonekee/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,patrickm/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,anirudhSK/chromium,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,dushu1203/chromium.src,rogerwang/chromium,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,rogerwang/chromium,axinging/chromium-crosswalk,littlstar/chromium.src,axinging/chromium-crosswalk,robclark/chromium,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,markYoungH/chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,ltilve/chromium,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,ltilve/chromium,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,M4sse/chromium.src,rogerwang/chromium,Jonekee/chromium.src,jaruba/chromium.src,ltilve/chromium,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,keishi/chromium,dednal/chromium.src,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dednal/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,robclark/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,M4sse/chromium.src,Just-D/chromium-1,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,M4sse/chromium.src,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,keishi/chromium,Fireblend/chromium-crosswalk,jaruba/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,dushu1203/chromium.src,dednal/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,anirudhSK/chromium,axinging/chromium-crosswalk,Just-D/chromium-1,krieger-od/nwjs_chromium.src,Chilledheart/chromium,rogerwang/chromium,keishi/chromium,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,keishi/chromium,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,anirudhSK/chromium,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,Just-D/chromium-1,markYoungH/chromium.src,anirudhSK/chromium,ChromiumWebApps/chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,Chilledheart/chromium,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,keishi/chromium,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,keishi/chromium,patrickm/chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,Just-D/chromium-1,robclark/chromium,dednal/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,anirudhSK/chromium,ondra-novak/chromium.src,ltilve/chromium,keishi/chromium,hgl888/chromium-crosswalk,keishi/chromium,keishi/chromium,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,patrickm/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,patrickm/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,markYoungH/chromium.src,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,littlstar/chromium.src,zcbenz/cefode-chromium,rogerwang/chromium,ChromiumWebApps/chromium,dednal/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,dushu1203/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,fujunwei/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,ChromiumWebApps/chromium,jaruba/chromium.src,keishi/chromium,fujunwei/chromium-crosswalk,dushu1203/chromium.src,robclark/chromium,robclark/chromium,Jonekee/chromium.src,patrickm/chromium.src,dednal/chromium.src,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,anirudhSK/chromium,M4sse/chromium.src,Jonekee/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,rogerwang/chromium,robclark/chromium,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,rogerwang/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk |
021acd29cee735d3c314445bfac588d3eec2e4f1 | src/lib/llist.h | src/lib/llist.h | #ifndef LLIST_H
#define LLIST_H
/* Doubly linked list */
#define DLLIST_PREPEND(list, item) STMT_START { \
(item)->prev = NULL; \
(item)->next = *(list); \
if (*(list) != NULL) (*(list))->prev = (item); \
*(list) = (item); \
} STMT_END
#define DLLIST_REMOVE(list, item) STMT_START { \
if ((item)->prev == NULL) \
*(list) = (item)->next; \
else \
(item)->prev->next = (item)->next; \
if ((item)->next != NULL) \
(item)->next->prev = (item)->prev; \
} STMT_END
#endif
| #ifndef LLIST_H
#define LLIST_H
/* Doubly linked list */
#define DLLIST_PREPEND(list, item) STMT_START { \
(item)->prev = NULL; \
(item)->next = *(list); \
if (*(list) != NULL) (*(list))->prev = (item); \
*(list) = (item); \
} STMT_END
#define DLLIST_REMOVE(list, item) STMT_START { \
if ((item)->prev == NULL) \
*(list) = (item)->next; \
else \
(item)->prev->next = (item)->next; \
if ((item)->next != NULL) { \
(item)->next->prev = (item)->prev; \
(item)->next = NULL; \
} \
(item)->prev = NULL; \
} STMT_END
#endif
| Set removed item's prev/next pointers to NULL. | DLLIST_REMOVE(): Set removed item's prev/next pointers to NULL.
| C | mit | damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot |
1bf18c373e240b9a3f00e48084796a131171d19f | tests/addition_tests.c | tests/addition_tests.c | #include <stdlib.h>
#include <check.h>
#include "../src/roman_calculator.h"
void verify_addition(const char *left, const char *right, const char *expected_result) {
char *actual_result = roman_calculator_add(left, right);
ck_assert_msg(
strcmp(expected_result, actual_result) == 0,
"%s + %s: expected %s, but was %s",
left, right, expected_result, actual_result);
free(actual_result);
}
START_TEST(can_add_by_simple_repetition)
{
verify_addition("I", "I", "II");
verify_addition("I", "II", "III");
verify_addition("XX", "X", "XXX");
verify_addition("C", "C", "CC");
verify_addition("M", "MM", "MMM");
}
END_TEST
TCase *addition_tests()
{
TCase *test_case = tcase_create("addition tests");
tcase_add_test(test_case, can_add_by_simple_repetition);
return test_case;
}
| #include <stdlib.h>
#include <check.h>
#include "../src/roman_calculator.h"
void verify_addition(const char *left, const char *right, const char *expected_result) {
char *actual_result = roman_calculator_add(left, right);
ck_assert_msg(
strcmp(expected_result, actual_result) == 0,
"%s + %s: expected %s, but was %s",
left, right, expected_result, actual_result);
free(actual_result);
}
START_TEST(can_add_by_simple_repetition)
{
verify_addition("I", "I", "II");
verify_addition("I", "II", "III");
verify_addition("XX", "X", "XXX");
verify_addition("C", "C", "CC");
verify_addition("M", "MM", "MMM");
}
END_TEST
START_TEST(can_add_by_concatenation)
{
verify_addition("X", "I", "XI");
verify_addition("MCX", "XV", "MCXXV");
verify_addition("DCI", "II", "DCIII");
verify_addition("LX", "XVI", "LXXVI");
}
END_TEST
TCase *addition_tests()
{
TCase *test_case = tcase_create("addition tests");
tcase_add_test(test_case, can_add_by_simple_repetition);
tcase_add_test(test_case, can_add_by_concatenation);
return test_case;
}
| Add clarifying test about addition by concatenation | Add clarifying test about addition by concatenation
It doesn't just apply to repeating the same numeral.
| C | mit | greghaskins/roman-calculator.c |
db2ec1268a0a36527e74891e6da44c9f34e155e8 | mudlib/mud/home/System/lib/auto/second_auto.c | mudlib/mud/home/System/lib/auto/second_auto.c | #include <kotaka/privilege.h>
#include <kotaka/paths.h>
#include <kotaka/log.h>
#include <trace.h>
#include <type.h>
#include <status.h>
inherit "call_guard";
inherit "callout_guard";
inherit "touch";
inherit "object";
object objd_canary;
/**********/
/* status */
/**********/
nomask void _F_dummy()
{
}
| #include <kotaka/privilege.h>
#include <kotaka/paths.h>
#include <kotaka/log.h>
#include <trace.h>
#include <type.h>
#include <status.h>
inherit "call_guard";
inherit "callout_guard";
inherit "touch";
inherit "object";
object canary;
/**********/
/* status */
/**********/
void set_canary(object new_canary)
{
ACCESS_CHECK(SYSTEM());
canary = new_canary;
}
object query_canary()
{
ACCESS_CHECK(SYSTEM());
return canary;
}
nomask void _F_dummy()
{
}
| Allow objects to be tagged with canaries that can be destructed globally | Allow objects to be tagged with canaries that can be destructed globally
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
e18b9288fec1d60d1744e98b47dfabaf1cd816fc | libpkg/pkg_delete.c | libpkg/pkg_delete.c | #include <err.h>
#include <unistd.h>
#include "pkg.h"
int
pkg_delete(struct pkg *pkg, struct pkgdb *db, int force)
{
struct pkg **rdeps;
struct pkg_file **files;
if (pkg == NULL || db == NULL)
return (-1);
rdeps = pkg_rdeps(pkg);
files = pkg_files(pkg);
if (rdeps == NULL || files == NULL)
return (-1);
if (rdeps[0] != NULL && force == 0) {
warnx("%s is required by other packages", pkg_get(pkg, PKG_ORIGIN));
return (-1); /* TODO: special return code */
}
for (int i = 0; files[i] != NULL; i++) {
if (unlink(pkg_file_path(files[i])) == -1) {
warn("unlink(%s)", pkg_file_path(files[i]));
continue;
}
}
return (pkgdb_unregister_pkg(db, pkg_get(pkg, PKG_ORIGIN)));
}
| #include <string.h>
#include <err.h>
#include <unistd.h>
#include <sha256.h>
#include <sys/stat.h>
#include "pkg.h"
int
pkg_delete(struct pkg *pkg, struct pkgdb *db, int force)
{
struct pkg **rdeps;
struct pkg_file **files;
char sha256[65], *sha256_ptr;
struct stat st;
if (pkg == NULL || db == NULL)
return (-1);
rdeps = pkg_rdeps(pkg);
files = pkg_files(pkg);
if (rdeps == NULL || files == NULL)
return (-1);
if (rdeps[0] != NULL && force == 0) {
warnx("%s is required by other packages", pkg_get(pkg, PKG_ORIGIN));
return (-1); /* TODO: special return code */
}
for (int i = 0; files[i] != NULL; i++) {
/* check sha256 */
if (lstat(pkg_file_path(files[i]), &st) != -1 && !S_ISLNK(st.st_mode) &&
((sha256_ptr = SHA256_File(pkg_file_path(files[i]), sha256)) == NULL ||
strcmp(sha256_ptr, pkg_file_sha256(files[i])) != 0))
warnx("%s fails original SHA256 checksum, not removed",
pkg_file_path(files[i]));
else if (unlink(pkg_file_path(files[i])) == -1) {
warn("unlink(%s)", pkg_file_path(files[i]));
continue;
}
}
return (pkgdb_unregister_pkg(db, pkg_get(pkg, PKG_ORIGIN)));
}
| Check files sha256 when delete pkg | Check files sha256 when delete pkg
| C | bsd-2-clause | skoef/pkg,skoef/pkg,khorben/pkg,khorben/pkg,Open343/pkg,junovitch/pkg,Open343/pkg,khorben/pkg,junovitch/pkg,en90/pkg,en90/pkg |
dc8d77d0ff0d388cab96a78fe91f13e06c670fd9 | src/buffer.h | src/buffer.h | #ifndef BUFFER_H
#define BUFFER_H
#include <stdio.h>
struct Buffer {
char *buffer;
size_t size;
size_t head;
size_t len;
};
struct Buffer *new_buffer();
void free_buffer(struct Buffer *);
ssize_t buffer_recv(struct Buffer *, int, int);
ssize_t buffer_send(struct Buffer *, int, int);
ssize_t buffer_read(struct Buffer *, int);
ssize_t buffer_write(struct Buffer *, int);
size_t buffer_peek(const struct Buffer *, void *, size_t);
size_t buffer_pop(struct Buffer *, void *, size_t);
size_t buffer_push(struct Buffer *, const void *, size_t);
inline size_t buffer_len(const struct Buffer *b) {
return b->len;
}
inline size_t buffer_room(const struct Buffer *b) {
return b->size - b->len;
}
#endif
| #ifndef BUFFER_H
#define BUFFER_H
#include <stdio.h>
struct Buffer {
char *buffer;
size_t size;
size_t head;
size_t len;
};
struct Buffer *new_buffer();
void free_buffer(struct Buffer *);
ssize_t buffer_recv(struct Buffer *, int, int);
ssize_t buffer_send(struct Buffer *, int, int);
ssize_t buffer_read(struct Buffer *, int);
ssize_t buffer_write(struct Buffer *, int);
size_t buffer_peek(const struct Buffer *, void *, size_t);
size_t buffer_pop(struct Buffer *, void *, size_t);
size_t buffer_push(struct Buffer *, const void *, size_t);
static inline size_t buffer_len(const struct Buffer *b) {
return b->len;
}
static inline size_t buffer_room(const struct Buffer *b) {
return b->size - b->len;
}
#endif
| Use static for inline methods in headers | Use static for inline methods in headers
| C | bsd-2-clause | balyanrobin/sniproxy,txt3rob/sniproxy,0xa/sniproxy,balyanrobin/sniproxy,dlundquist/sniproxy,dlundquist/sniproxy,balyanrobin/sniproxy,txt3rob/sniproxy,balyanrobin/sniproxy,txt3rob/sniproxy,0xa/sniproxy,dlundquist/sniproxy,0xa/sniproxy,deeper-think/sniproxy,dlundquist/sniproxy,deeper-think/sniproxy,deeper-think/sniproxy,0xa/sniproxy |
1e30ca0b2926f671dec192f358b8739e63a450c2 | include/screenshot.h | include/screenshot.h | #ifndef SCREENSHOT_H_INCLUDED_
#define SCREENSHOT_H_INCLUDED_
#include <vector>
#include <string>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/X.h>
using namespace std;
class X11Screenshot {
public:
X11Screenshot(XImage * image);
bool save_to_png(const char * path);
bool save_to_jpeg(const char * path, int quality);
int get_width(void);
int get_height(void);
private:
int width = 0;
int height = 0;
vector<vector<unsigned char>> image_data;
vector<vector<unsigned char>> process_rgb_image(XImage * image);
};
#endif
| #ifndef SCREENSHOT_H_INCLUDED_
#define SCREENSHOT_H_INCLUDED_
#include <vector>
#include <string>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/X.h>
using namespace std;
class X11Screenshot {
public:
X11Screenshot(XImage * image, int new_width=0, int new_height=0, string downscale_type="lineral");
bool save_to_png(const char * path);
bool save_to_jpeg(const char * path, int quality);
int get_width(void);
int get_height(void);
private:
int width = 0;
int height = 0;
vector<vector<unsigned char>> image_data = vector<vector<unsigned char>>();
vector<vector<unsigned char>> process_original(XImage * image);
vector<vector<unsigned char>> process_downscale_lineral(XImage * image, int new_width=0, int new_height=0);
vector<vector<unsigned char>> process_downscale_bilineral(XImage * image, int new_width=0, int new_height=0);
};
#endif
| Change X11Screenshot structure, add downscale options | Change X11Screenshot structure, add downscale options
| C | mit | Butataki/cpp-x11-make-screenshot |
0356aa6bb3f791e5fee71ebfc4e9509f4a2e550d | ios/Exponent/Versioned/Core/Api/Cognito/RNAWSCognito.h | ios/Exponent/Versioned/Core/Api/Cognito/RNAWSCognito.h | #if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#if __has_include("RCTLog.h")
#import "RCTLog.h"
#else
#import <React/RCTLog.h>
#endif
#if __has_include("RCTUtils.h")
#import "RCTUtils.h"
#else
#import <React/RCTUtils.h>
#endif
#import "JKBigInteger.h"
@interface RNAWSCognito : NSObject <RCTBridgeModule>
@end
| #if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#if __has_include("RCTLog.h")
#import "RCTLog.h"
#else
#import <React/RCTLog.h>
#endif
#if __has_include("RCTUtils.h")
#import "RCTUtils.h"
#else
#import <React/RCTUtils.h>
#endif
#import <JKBigInteger.h>
@interface RNAWSCognito : NSObject <RCTBridgeModule>
@end
| Fix Cognito BigInteger import for versioning | Fix Cognito BigInteger import for versioning
fbshipit-source-id: ae0433a
| C | bsd-3-clause | exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent |
decd02a67002542282474f527030e168725e5dbc | PWGCF/PWGCFESELinkDef.h | PWGCF/PWGCFESELinkDef.h | #pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class AliAnalysisTaskFemtoESE+;
#pragma link C++ class AliFemtoESEBasicParticle+;
| Add Event-Shape-Engineering code for Femtoscopy | Add Event-Shape-Engineering code for Femtoscopy
| C | bsd-3-clause | pbuehler/AliPhysics,pbuehler/AliPhysics,AMechler/AliPhysics,fcolamar/AliPhysics,pchrista/AliPhysics,kreisl/AliPhysics,pchrista/AliPhysics,preghenella/AliPhysics,ALICEHLT/AliPhysics,mvala/AliPhysics,hzanoli/AliPhysics,preghenella/AliPhysics,aaniin/AliPhysics,btrzecia/AliPhysics,dlodato/AliPhysics,dlodato/AliPhysics,lfeldkam/AliPhysics,alisw/AliPhysics,mpuccio/AliPhysics,mazimm/AliPhysics,akubera/AliPhysics,jgronefe/AliPhysics,mkrzewic/AliPhysics,victor-gonzalez/AliPhysics,rbailhac/AliPhysics,amatyja/AliPhysics,lcunquei/AliPhysics,AMechler/AliPhysics,kreisl/AliPhysics,amaringarcia/AliPhysics,mazimm/AliPhysics,nschmidtALICE/AliPhysics,dstocco/AliPhysics,rbailhac/AliPhysics,amatyja/AliPhysics,pchrista/AliPhysics,lcunquei/AliPhysics,dstocco/AliPhysics,ALICEHLT/AliPhysics,mbjadhav/AliPhysics,pchrista/AliPhysics,SHornung1/AliPhysics,kreisl/AliPhysics,alisw/AliPhysics,lcunquei/AliPhysics,preghenella/AliPhysics,AudreyFrancisco/AliPhysics,SHornung1/AliPhysics,aaniin/AliPhysics,SHornung1/AliPhysics,rbailhac/AliPhysics,mkrzewic/AliPhysics,hcab14/AliPhysics,preghenella/AliPhysics,sebaleh/AliPhysics,adriansev/AliPhysics,ppribeli/AliPhysics,lfeldkam/AliPhysics,amaringarcia/AliPhysics,jgronefe/AliPhysics,mazimm/AliPhysics,dmuhlhei/AliPhysics,victor-gonzalez/AliPhysics,pbuehler/AliPhysics,fbellini/AliPhysics,mvala/AliPhysics,amatyja/AliPhysics,amaringarcia/AliPhysics,mpuccio/AliPhysics,rderradi/AliPhysics,yowatana/AliPhysics,hzanoli/AliPhysics,hzanoli/AliPhysics,alisw/AliPhysics,fbellini/AliPhysics,amaringarcia/AliPhysics,aaniin/AliPhysics,dmuhlhei/AliPhysics,pbatzing/AliPhysics,hcab14/AliPhysics,victor-gonzalez/AliPhysics,nschmidtALICE/AliPhysics,lfeldkam/AliPhysics,sebaleh/AliPhysics,rderradi/AliPhysics,nschmidtALICE/AliPhysics,SHornung1/AliPhysics,yowatana/AliPhysics,mbjadhav/AliPhysics,alisw/AliPhysics,AMechler/AliPhysics,sebaleh/AliPhysics,pbuehler/AliPhysics,akubera/AliPhysics,adriansev/AliPhysics,pchrista/AliPhysics,hcab14/AliPhysics,dmuhlhei/AliPhysics,btrzecia/AliPhysics,nschmidtALICE/AliPhysics,mvala/AliPhysics,mazimm/AliPhysics,ppribeli/AliPhysics,sebaleh/AliPhysics,dlodato/AliPhysics,akubera/AliPhysics,yowatana/AliPhysics,btrzecia/AliPhysics,yowatana/AliPhysics,fbellini/AliPhysics,rderradi/AliPhysics,preghenella/AliPhysics,amatyja/AliPhysics,mbjadhav/AliPhysics,jmargutt/AliPhysics,carstooon/AliPhysics,mvala/AliPhysics,lcunquei/AliPhysics,victor-gonzalez/AliPhysics,adriansev/AliPhysics,amaringarcia/AliPhysics,kreisl/AliPhysics,AudreyFrancisco/AliPhysics,ppribeli/AliPhysics,lfeldkam/AliPhysics,rbailhac/AliPhysics,lcunquei/AliPhysics,jgronefe/AliPhysics,fbellini/AliPhysics,dlodato/AliPhysics,dstocco/AliPhysics,sebaleh/AliPhysics,alisw/AliPhysics,amatyja/AliPhysics,mbjadhav/AliPhysics,dlodato/AliPhysics,dstocco/AliPhysics,pbuehler/AliPhysics,kreisl/AliPhysics,fbellini/AliPhysics,ALICEHLT/AliPhysics,pchrista/AliPhysics,mvala/AliPhysics,alisw/AliPhysics,hcab14/AliPhysics,fcolamar/AliPhysics,rihanphys/AliPhysics,jmargutt/AliPhysics,jmargutt/AliPhysics,rderradi/AliPhysics,btrzecia/AliPhysics,jmargutt/AliPhysics,mkrzewic/AliPhysics,dstocco/AliPhysics,yowatana/AliPhysics,btrzecia/AliPhysics,ppribeli/AliPhysics,jmargutt/AliPhysics,hcab14/AliPhysics,hzanoli/AliPhysics,rderradi/AliPhysics,mpuccio/AliPhysics,sebaleh/AliPhysics,rbailhac/AliPhysics,dmuhlhei/AliPhysics,mkrzewic/AliPhysics,rihanphys/AliPhysics,mpuccio/AliPhysics,yowatana/AliPhysics,carstooon/AliPhysics,pbatzing/AliPhysics,jgronefe/AliPhysics,mpuccio/AliPhysics,lfeldkam/AliPhysics,rihanphys/AliPhysics,AMechler/AliPhysics,nschmidtALICE/AliPhysics,aaniin/AliPhysics,pbatzing/AliPhysics,kreisl/AliPhysics,pbuehler/AliPhysics,carstooon/AliPhysics,rihanphys/AliPhysics,rbailhac/AliPhysics,jgronefe/AliPhysics,fcolamar/AliPhysics,dstocco/AliPhysics,victor-gonzalez/AliPhysics,kreisl/AliPhysics,lfeldkam/AliPhysics,pchrista/AliPhysics,sebaleh/AliPhysics,fcolamar/AliPhysics,aaniin/AliPhysics,rbailhac/AliPhysics,ALICEHLT/AliPhysics,jgronefe/AliPhysics,mkrzewic/AliPhysics,dmuhlhei/AliPhysics,SHornung1/AliPhysics,mpuccio/AliPhysics,akubera/AliPhysics,dlodato/AliPhysics,carstooon/AliPhysics,SHornung1/AliPhysics,mazimm/AliPhysics,mkrzewic/AliPhysics,rihanphys/AliPhysics,hzanoli/AliPhysics,jmargutt/AliPhysics,preghenella/AliPhysics,akubera/AliPhysics,jmargutt/AliPhysics,rderradi/AliPhysics,preghenella/AliPhysics,rihanphys/AliPhysics,AudreyFrancisco/AliPhysics,ppribeli/AliPhysics,alisw/AliPhysics,pbatzing/AliPhysics,akubera/AliPhysics,mkrzewic/AliPhysics,victor-gonzalez/AliPhysics,akubera/AliPhysics,ALICEHLT/AliPhysics,fcolamar/AliPhysics,carstooon/AliPhysics,rderradi/AliPhysics,pbatzing/AliPhysics,lfeldkam/AliPhysics,AudreyFrancisco/AliPhysics,adriansev/AliPhysics,jgronefe/AliPhysics,SHornung1/AliPhysics,hcab14/AliPhysics,nschmidtALICE/AliPhysics,hzanoli/AliPhysics,ppribeli/AliPhysics,ALICEHLT/AliPhysics,ALICEHLT/AliPhysics,aaniin/AliPhysics,AudreyFrancisco/AliPhysics,btrzecia/AliPhysics,dstocco/AliPhysics,victor-gonzalez/AliPhysics,amatyja/AliPhysics,mbjadhav/AliPhysics,pbatzing/AliPhysics,yowatana/AliPhysics,mazimm/AliPhysics,AMechler/AliPhysics,fbellini/AliPhysics,amaringarcia/AliPhysics,dmuhlhei/AliPhysics,nschmidtALICE/AliPhysics,aaniin/AliPhysics,adriansev/AliPhysics,fcolamar/AliPhysics,fbellini/AliPhysics,mbjadhav/AliPhysics,AMechler/AliPhysics,AudreyFrancisco/AliPhysics,amaringarcia/AliPhysics,mvala/AliPhysics,fcolamar/AliPhysics,lcunquei/AliPhysics,carstooon/AliPhysics,hcab14/AliPhysics,carstooon/AliPhysics,adriansev/AliPhysics,AMechler/AliPhysics,dlodato/AliPhysics,lcunquei/AliPhysics,ppribeli/AliPhysics,pbatzing/AliPhysics,dmuhlhei/AliPhysics,rihanphys/AliPhysics,amatyja/AliPhysics,btrzecia/AliPhysics,hzanoli/AliPhysics,mbjadhav/AliPhysics,mpuccio/AliPhysics,AudreyFrancisco/AliPhysics,mazimm/AliPhysics,adriansev/AliPhysics,pbuehler/AliPhysics,mvala/AliPhysics |
|
d00df20f3ab2dfe40e7c551582b100ea307e8fff | libc/sysdeps/linux/common/remap_file_pages.c | libc/sysdeps/linux/common/remap_file_pages.c | /*
* remap_file_pages() for uClibc
*
* Copyright (C) 2008 Will Newton <[email protected]>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include <sys/syscall.h>
#ifdef __NR_remap_file_pages
_syscall5(int, remap_file_pages, unsigned long, start, unsigned long, size,
unsigned long, prot, unsigned long, pgoff, unsigned long, flags);
#endif
| Add rempa_file_pages function by Will Newton <[email protected]> | Add rempa_file_pages function by Will Newton <[email protected]>
| C | lgpl-2.1 | foss-for-synopsys-dwc-arc-processors/uClibc,hjl-tools/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ffainelli/uClibc,m-labs/uclibc-lm32,waweber/uclibc-clang,brgl/uclibc-ng,kraj/uClibc,kraj/uclibc-ng,ffainelli/uClibc,atgreen/uClibc-moxie,foss-xtensa/uClibc,ysat0/uClibc,hjl-tools/uClibc,brgl/uclibc-ng,kraj/uClibc,mephi42/uClibc,hwoarang/uClibc,mephi42/uClibc,mephi42/uClibc,atgreen/uClibc-moxie,foss-for-synopsys-dwc-arc-processors/uClibc,waweber/uclibc-clang,m-labs/uclibc-lm32,atgreen/uClibc-moxie,kraj/uclibc-ng,mephi42/uClibc,groundwater/uClibc,brgl/uclibc-ng,ffainelli/uClibc,gittup/uClibc,wbx-github/uclibc-ng,foss-xtensa/uClibc,kraj/uclibc-ng,gittup/uClibc,ndmsystems/uClibc,gittup/uClibc,kraj/uclibc-ng,czankel/xtensa-uclibc,groundwater/uClibc,skristiansson/uClibc-or1k,wbx-github/uclibc-ng,hwoarang/uClibc,ndmsystems/uClibc,majek/uclibc-vx32,ddcc/klee-uclibc-0.9.33.2,hwoarang/uClibc,groundwater/uClibc,gittup/uClibc,foss-xtensa/uClibc,majek/uclibc-vx32,OpenInkpot-archive/iplinux-uclibc,hwoarang/uClibc,czankel/xtensa-uclibc,ysat0/uClibc,kraj/uClibc,skristiansson/uClibc-or1k,m-labs/uclibc-lm32,czankel/xtensa-uclibc,ndmsystems/uClibc,m-labs/uclibc-lm32,majek/uclibc-vx32,ffainelli/uClibc,czankel/xtensa-uclibc,waweber/uclibc-clang,majek/uclibc-vx32,OpenInkpot-archive/iplinux-uclibc,wbx-github/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,kraj/uClibc,OpenInkpot-archive/iplinux-uclibc,ffainelli/uClibc,ndmsystems/uClibc,wbx-github/uclibc-ng,brgl/uclibc-ng,hjl-tools/uClibc,ysat0/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ysat0/uClibc,hjl-tools/uClibc,OpenInkpot-archive/iplinux-uclibc,groundwater/uClibc,skristiansson/uClibc-or1k,waweber/uclibc-clang,skristiansson/uClibc-or1k,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,ddcc/klee-uclibc-0.9.33.2,hjl-tools/uClibc,atgreen/uClibc-moxie,groundwater/uClibc |
|
b81e65b9c6579e02684f0b313060b17d7ba669ef | src/include/xmmsclient/xmmsclient++/detail/superlist.h | src/include/xmmsclient/xmmsclient++/detail/superlist.h | #ifndef XMMSCLIENTPP_SUPERLIST_H
#define XMMSCLIENTPP_SUPERLIST_H
#include <xmmsclient/xmmsclient.h>
namespace Xmms
{
namespace Detail
{
class SuperList
{
public:
SuperList( xmmsc_result_t* result );
SuperList( const SuperList& list );
virtual SuperList& operator=( const SuperList& list );
virtual ~SuperList();
virtual void first();
virtual void operator++();
virtual bool isValid() const;
protected:
xmmsc_result_t* result_;
bool constructed_;
virtual void constructContents() = 0;
};
void dict_foreach( const void* key,
xmmsc_result_value_type_t type,
const void* value,
void* udata );
void propdict_foreach( const void* key,
xmmsc_result_value_type_t type,
const void* value,
const char* source,
void* udata );
}
}
#endif // XMMSCLIENTPP_SUPERLIST_H
| #ifndef XMMSCLIENTPP_SUPERLIST_H
#define XMMSCLIENTPP_SUPERLIST_H
#include <xmmsclient/xmmsclient.h>
namespace Xmms
{
namespace Detail
{
class SuperList
{
public:
SuperList( xmmsc_result_t* result );
SuperList( const SuperList& list );
virtual SuperList& operator=( const SuperList& list );
virtual ~SuperList();
virtual void first();
virtual void operator++();
virtual bool isValid() const;
protected:
xmmsc_result_t* result_;
bool constructed_;
virtual void constructContents() = 0;
};
}
}
#endif // XMMSCLIENTPP_SUPERLIST_H
| Remove obsolete *_foreach function completely (Function declarations were still there). | OTHER: Remove obsolete *_foreach function completely (Function declarations were still there).
| C | lgpl-2.1 | oneman/xmms2-oneman,theefer/xmms2,krad-radio/xmms2-krad,krad-radio/xmms2-krad,oneman/xmms2-oneman-old,oneman/xmms2-oneman,krad-radio/xmms2-krad,mantaraya36/xmms2-mantaraya36,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,dreamerc/xmms2,oneman/xmms2-oneman,six600110/xmms2,oneman/xmms2-oneman,xmms2/xmms2-stable,chrippa/xmms2,xmms2/xmms2-stable,theefer/xmms2,theefer/xmms2,dreamerc/xmms2,theeternalsw0rd/xmms2,theefer/xmms2,krad-radio/xmms2-krad,krad-radio/xmms2-krad,xmms2/xmms2-stable,chrippa/xmms2,theeternalsw0rd/xmms2,dreamerc/xmms2,xmms2/xmms2-stable,theefer/xmms2,theeternalsw0rd/xmms2,dreamerc/xmms2,dreamerc/xmms2,six600110/xmms2,xmms2/xmms2-stable,mantaraya36/xmms2-mantaraya36,six600110/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,theeternalsw0rd/xmms2,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,xmms2/xmms2-stable,oneman/xmms2-oneman,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,oneman/xmms2-oneman,six600110/xmms2,mantaraya36/xmms2-mantaraya36,theefer/xmms2,oneman/xmms2-oneman-old,chrippa/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,krad-radio/xmms2-krad,oneman/xmms2-oneman-old,six600110/xmms2,mantaraya36/xmms2-mantaraya36,theeternalsw0rd/xmms2,theefer/xmms2 |
6bd8aa8399baa16f171219368543c1a4fa88663e | test/FrontendC/2007-06-05-NoInlineAttribute.c | test/FrontendC/2007-06-05-NoInlineAttribute.c | // RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline
static int bar(int x, int y) __attribute__((noinline));
static int bar(int x, int y)
{
return x + y;
}
int foo(int a, int b) {
return bar(b, a);
}
| // RUN: %llvmgcc -O2 -c -emit-llvm %s -o - | llvm-dis | grep call
static int bar(int x, int y) __attribute__((noinline));
static int bar(int x, int y)
{
return x + y;
}
int foo(int a, int b) {
return bar(b, a);
}
| Update test to check call instruction. | Update test to check call instruction.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@55702 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm |
a11f0a4469ec047cecd9b91a23680c7b48fb268a | tests/regression/22-partitioned_arrays/17-large_arrays.c | tests/regression/22-partitioned_arrays/17-large_arrays.c | // PARAM: --enable ana.int.interval --enable exp.partition-arrays.enabled
#include <assert.h>
#include <stdlib.h>
#include <limits.h>
#include <stdio.h>
#include <stddef.h>
// Test to check whether partitioned arrays can have an index expression evaluating to values largers than the max value of int64
#define LENGTH (LONG_MAX - 600)
#define STOP (LENGTH - 1)
int main(){
// Check that ptdrdiff_t is at least as big as long, so we can index arrays with non-negative longs
assert(sizeof(ptrdiff_t) >= sizeof(long));
char *arr = calloc(LENGTH, sizeof(char));
if(arr == NULL){
printf("Could not allocate array, exiting.\n");
return 1;
}
for(unsigned long i = 0; i < STOP; i++){
arr[i] = 1;
}
// arr[0] ... arr[STOP - 1] should be 1, the others equal to 0
assert(arr[0] == 1);
assert(arr[INT_MAX + 1l] == 1);
// j is the smallest index that checking triggers the unsoundness
// long j = ((long) INT_MAX) * INT_MAX * 2 + INT_MAX - 1;
long j = LONG_MAX - 6442450943;
assert(0 < j);
assert(j < STOP);
// This check still works
assert(arr[j - 1] == 1);
// These two fail somehow
assert(arr[j] == 1);
assert(arr[STOP - 1] == 1);
assert(arr[STOP] == 0);
assert(arr[LENGTH - 1] == 0);
return 0;
}
| Add test with very large arrays where partitioned array is unsound | Add test with very large arrays where partitioned array is unsound
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
78f00d293967fb8f8ce045137a5980a2e55b7de5 | SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h | SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugToolConsole.h | //
// SDLDebugToolConsole.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 3/12/15.
// Copyright (c) 2015 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol SDLDebugToolConsole <NSObject>
@required
- (void)logInfo:(NSString *)info;
@end
| //
// SDLDebugToolConsole.h
// SmartDeviceLink-iOS
#import <Foundation/Foundation.h>
@protocol SDLDebugToolConsole <NSObject>
@required
- (void)logInfo:(NSString *)info;
@end
| Remove copyright from new file | Remove copyright from new file
| C | bsd-3-clause | FordDev/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,adein/sdl_ios,kshala-ford/sdl_ios,FordDev/sdl_ios,davidswi/sdl_ios,adein/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,kshala-ford/sdl_ios,davidswi/sdl_ios,kshala-ford/sdl_ios,davidswi/sdl_ios,smartdevicelink/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,duydb2/sdl_ios,davidswi/sdl_ios,APCVSRepo/sdl_ios,davidswi/sdl_ios,duydb2/sdl_ios,APCVSRepo/sdl_ios,FordDev/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,duydb2/sdl_ios |
e9f091d7cd6eeccb0c1b84226a8543dc8a3d285a | samplecode/GMSampleView.h | samplecode/GMSampleView.h |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
typedef skiagm::GM GM;
public:
GMSampleView(GM* gm)
: fGM(gm) {}
virtual ~GMSampleView() {
delete fGM;
}
protected:
virtual bool onQuery(SkEvent* evt) {
if (SampleCode::TitleQ(*evt)) {
SkString name("GM ");
name.append(fGM->shortName());
SampleCode::TitleR(evt, name.c_str());
return true;
}
return this->INHERITED::onQuery(evt);
}
virtual void onDrawContent(SkCanvas* canvas) {
fGM->drawContent(canvas);
}
virtual void onDrawBackground(SkCanvas* canvas) {
fGM->drawBackground(canvas);
}
private:
GM* fGM;
typedef SampleView INHERITED;
};
#endif
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
typedef skiagm::GM GM;
public:
GMSampleView(GM* gm)
: fGM(gm) {}
virtual ~GMSampleView() {
delete fGM;
}
protected:
virtual bool onQuery(SkEvent* evt) {
if (SampleCode::TitleQ(*evt)) {
SkString name("GM:");
name.append(fGM->shortName());
SampleCode::TitleR(evt, name.c_str());
return true;
}
return this->INHERITED::onQuery(evt);
}
virtual void onDrawContent(SkCanvas* canvas) {
fGM->drawContent(canvas);
}
virtual void onDrawBackground(SkCanvas* canvas) {
fGM->drawBackground(canvas);
}
private:
GM* fGM;
typedef SampleView INHERITED;
};
#endif
| Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows. | Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows.
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@2846 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | Pure-Aosp/android_external_skia,F-AOSP/platform_external_skia,geekboxzone/lollipop_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,F-AOSP/platform_external_skia,AOSPA-L/android_external_skia,tmpvar/skia.cc,RadonX-ROM/external_skia,larsbergstrom/skia,YUPlayGodDev/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,houst0nn/external_skia,OptiPop/external_skia,nfxosp/platform_external_skia,GladeRom/android_external_skia,AOSPB/external_skia,RadonX-ROM/external_skia,vvuk/skia,larsbergstrom/skia,chenlian2015/skia_from_google,wildermason/external_skia,nvoron23/skia,ench0/external_skia,spezi77/android_external_skia,PAC-ROM/android_external_skia,MinimalOS-AOSP/platform_external_skia,Hybrid-Rom/external_skia,ench0/external_skia,aosp-mirror/platform_external_skia,ench0/external_skia,DARKPOP/external_chromium_org_third_party_skia,GladeRom/android_external_skia,OptiPop/external_skia,UBERMALLOW/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,AsteroidOS/android_external_skia,Jichao/skia,ench0/external_chromium_org_third_party_skia,amyvmiwei/skia,MyAOSP/external_chromium_org_third_party_skia,jtg-gg/skia,nox/skia,MinimalOS/external_skia,BrokenROM/external_skia,Plain-Andy/android_platform_external_skia,RadonX-ROM/external_skia,MarshedOut/android_external_skia,byterom/android_external_skia,geekboxzone/mmallow_external_skia,larsbergstrom/skia,sudosurootdev/external_skia,mydongistiny/android_external_skia,MinimalOS/android_external_skia,pcwalton/skia,qrealka/skia-hc,tmpvar/skia.cc,HealthyHoney/temasek_SKIA,MinimalOS-AOSP/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,larsbergstrom/skia,geekboxzone/mmallow_external_skia,AOSP-YU/platform_external_skia,amyvmiwei/skia,VRToxin-AOSP/android_external_skia,byterom/android_external_skia,android-ia/platform_external_skia,Pure-Aosp/android_external_skia,todotodoo/skia,MinimalOS/android_external_skia,AOSPB/external_skia,ench0/external_chromium_org_third_party_skia,Khaon/android_external_skia,Omegaphora/external_skia,Infusion-OS/android_external_skia,MinimalOS/external_skia,Hikari-no-Tenshi/android_external_skia,amyvmiwei/skia,todotodoo/skia,samuelig/skia,FusionSP/external_chromium_org_third_party_skia,TeslaProject/external_skia,TeamEOS/external_chromium_org_third_party_skia,TeslaOS/android_external_skia,qrealka/skia-hc,ench0/external_chromium_org_third_party_skia,Android-AOSP/external_skia,TeslaProject/external_skia,aosp-mirror/platform_external_skia,HealthyHoney/temasek_SKIA,android-ia/platform_external_skia,Infusion-OS/android_external_skia,nox/skia,MinimalOS/android_external_chromium_org_third_party_skia,timduru/platform-external-skia,wildermason/external_skia,byterom/android_external_skia,Khaon/android_external_skia,vanish87/skia,HealthyHoney/temasek_SKIA,sombree/android_external_skia,aospo/platform_external_skia,VentureROM-L/android_external_skia,VentureROM-L/android_external_skia,HalCanary/skia-hc,AsteroidOS/android_external_skia,Plain-Andy/android_platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,MIPS/external-chromium_org-third_party-skia,YUPlayGodDev/platform_external_skia,mmatyas/skia,android-ia/platform_external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,suyouxin/android_external_skia,HalCanary/skia-hc,vvuk/skia,temasek/android_external_skia,mmatyas/skia,sombree/android_external_skia,scroggo/skia,rubenvb/skia,TeamBliss-LP/android_external_skia,geekboxzone/mmallow_external_skia,larsbergstrom/skia,w3nd1go/android_external_skia,HalCanary/skia-hc,ctiao/platform-external-skia,houst0nn/external_skia,AOSP-YU/platform_external_skia,Pure-Aosp/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,boulzordev/android_external_skia,geekboxzone/lollipop_external_skia,google/skia,timduru/platform-external-skia,SlimSaber/android_external_skia,fire855/android_external_skia,samuelig/skia,ctiao/platform-external-skia,Fusion-Rom/android_external_skia,pcwalton/skia,ctiao/platform-external-skia,InfinitiveOS/external_skia,TeamTwisted/external_skia,OneRom/external_skia,invisiblek/android_external_skia,sigysmund/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,ominux/skia,DesolationStaging/android_external_skia,shahrzadmn/skia,larsbergstrom/skia,MonkeyZZZZ/platform_external_skia,vanish87/skia,sigysmund/platform_external_skia,android-ia/platform_external_skia,SlimSaber/android_external_skia,codeaurora-unoffical/platform-external-skia,NamelessRom/android_external_skia,boulzordev/android_external_skia,Plain-Andy/android_platform_external_skia,xzzz9097/android_external_skia,AndroidOpenDevelopment/android_external_skia,ominux/skia,TeamTwisted/external_skia,Android-AOSP/external_skia,SlimSaber/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,sigysmund/platform_external_skia,AOSP-YU/platform_external_skia,DiamondLovesYou/skia-sys,vanish87/skia,FusionSP/external_chromium_org_third_party_skia,Purity-Lollipop/platform_external_skia,sigysmund/platform_external_skia,pcwalton/skia,MyAOSP/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,BrokenROM/external_skia,F-AOSP/platform_external_skia,akiss77/skia,wildermason/external_skia,DiamondLovesYou/skia-sys,Infusion-OS/android_external_skia,SlimSaber/android_external_skia,rubenvb/skia,MIPS/external-chromium_org-third_party-skia,chenlian2015/skia_from_google,AsteroidOS/android_external_skia,vvuk/skia,HalCanary/skia-hc,fire855/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,android-ia/platform_external_skia,Hybrid-Rom/external_skia,nvoron23/skia,boulzordev/android_external_skia,OneRom/external_skia,Infinitive-OS/platform_external_skia,ominux/skia,Samsung/skia,Infusion-OS/android_external_skia,qrealka/skia-hc,AOSPU/external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,nox/skia,qrealka/skia-hc,nfxosp/platform_external_skia,GladeRom/android_external_skia,sigysmund/platform_external_skia,google/skia,tmpvar/skia.cc,Jichao/skia,google/skia,VentureROM-L/android_external_skia,ominux/skia,rubenvb/skia,MinimalOS/external_chromium_org_third_party_skia,noselhq/skia,OneRom/external_skia,Omegaphora/external_skia,chenlian2015/skia_from_google,nvoron23/skia,DiamondLovesYou/skia-sys,zhaochengw/platform_external_skia,w3nd1go/android_external_skia,pacerom/external_skia,NamelessRom/android_external_skia,GladeRom/android_external_skia,google/skia,amyvmiwei/skia,Fusion-Rom/android_external_skia,F-AOSP/platform_external_skia,TeslaProject/external_skia,FusionSP/external_chromium_org_third_party_skia,wildermason/external_skia,nfxosp/platform_external_skia,AOSPU/external_chromium_org_third_party_skia,sombree/android_external_skia,Infusion-OS/android_external_skia,Hybrid-Rom/external_skia,mydongistiny/external_chromium_org_third_party_skia,F-AOSP/platform_external_skia,AOSPU/external_chromium_org_third_party_skia,Samsung/skia,shahrzadmn/skia,samuelig/skia,VentureROM-L/android_external_skia,ctiao/platform-external-skia,FusionSP/android_external_skia,Asteroid-Project/android_external_skia,TeamEOS/external_skia,Euphoria-OS-Legacy/android_external_skia,akiss77/skia,sudosurootdev/external_skia,FusionSP/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSPU/external_chromium_org_third_party_skia,NamelessRom/android_external_skia,Hikari-no-Tenshi/android_external_skia,AsteroidOS/android_external_skia,ench0/external_chromium_org_third_party_skia,zhaochengw/platform_external_skia,rubenvb/skia,vanish87/skia,VRToxin-AOSP/android_external_skia,aosp-mirror/platform_external_skia,mydongistiny/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,OneRom/external_skia,MarshedOut/android_external_skia,RadonX-ROM/external_skia,nvoron23/skia,VRToxin-AOSP/android_external_skia,pacerom/external_skia,YUPlayGodDev/platform_external_skia,byterom/android_external_skia,codeaurora-unoffical/platform-external-skia,tmpvar/skia.cc,OneRom/external_skia,Omegaphora/external_skia,MarshedOut/android_external_skia,Tesla-Redux/android_external_skia,byterom/android_external_skia,YUPlayGodDev/platform_external_skia,ench0/external_skia,MinimalOS/android_external_skia,qrealka/skia-hc,AndroidOpenDevelopment/android_external_skia,fire855/android_external_skia,TeamTwisted/external_skia,Infusion-OS/android_external_skia,HealthyHoney/temasek_SKIA,xzzz9097/android_external_skia,Fusion-Rom/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,nvoron23/skia,InfinitiveOS/external_skia,ench0/external_chromium_org_third_party_skia,mozilla-b2g/external_skia,larsbergstrom/skia,Omegaphora/external_chromium_org_third_party_skia,AOSPB/external_skia,mydongistiny/external_chromium_org_third_party_skia,mozilla-b2g/external_skia,Igalia/skia,InfinitiveOS/external_skia,noselhq/skia,MinimalOS/external_chromium_org_third_party_skia,OptiPop/external_skia,Asteroid-Project/android_external_skia,MinimalOS-AOSP/platform_external_skia,chenlian2015/skia_from_google,google/skia,qrealka/skia-hc,CyanogenMod/android_external_chromium_org_third_party_skia,shahrzadmn/skia,byterom/android_external_skia,Samsung/skia,Infinitive-OS/platform_external_skia,UBERMALLOW/external_skia,DARKPOP/external_chromium_org_third_party_skia,rubenvb/skia,Plain-Andy/android_platform_external_skia,Omegaphora/external_chromium_org_third_party_skia,Samsung/skia,TeamBliss-LP/android_external_skia,nox/skia,Hybrid-Rom/external_skia,jtg-gg/skia,aospo/platform_external_skia,MinimalOS/external_skia,zhaochengw/platform_external_skia,shahrzadmn/skia,VRToxin-AOSP/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,Omegaphora/external_skia,HalCanary/skia-hc,RadonX-ROM/external_skia,sombree/android_external_skia,MinimalOS/android_external_skia,akiss77/skia,sigysmund/platform_external_skia,TeamEOS/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Asteroid-Project/android_external_skia,vvuk/skia,vanish87/skia,akiss77/skia,Pure-Aosp/android_external_skia,VRToxin-AOSP/android_external_skia,VRToxin-AOSP/android_external_skia,Infinitive-OS/platform_external_skia,Samsung/skia,FusionSP/android_external_skia,scroggo/skia,Tesla-Redux/android_external_skia,Igalia/skia,VRToxin-AOSP/android_external_skia,Purity-Lollipop/platform_external_skia,byterom/android_external_skia,MinimalOS/external_skia,amyvmiwei/skia,fire855/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,UBERMALLOW/external_skia,DARKPOP/external_chromium_org_third_party_skia,Igalia/skia,OptiPop/external_chromium_org_third_party_skia,Omegaphora/external_skia,larsbergstrom/skia,TeamTwisted/external_skia,aospo/platform_external_skia,sombree/android_external_skia,OptiPop/external_chromium_org_third_party_skia,Khaon/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,AOSPB/external_skia,temasek/android_external_skia,AndroidOpenDevelopment/android_external_skia,boulzordev/android_external_skia,pacerom/external_skia,tmpvar/skia.cc,ench0/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,samuelig/skia,AOSPA-L/android_external_skia,noselhq/skia,TeslaProject/external_skia,invisiblek/android_external_skia,Tesla-Redux/android_external_skia,google/skia,CyanogenMod/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,Euphoria-OS-Legacy/android_external_skia,nox/skia,Igalia/skia,CyanogenMod/android_external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,Omegaphora/external_chromium_org_third_party_skia,aospo/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,Euphoria-OS-Legacy/android_external_skia,Samsung/skia,TeamExodus/external_skia,Igalia/skia,UBERMALLOW/external_skia,F-AOSP/platform_external_skia,Igalia/skia,GladeRom/android_external_skia,Fusion-Rom/android_external_skia,android-ia/platform_external_skia,w3nd1go/android_external_skia,Khaon/android_external_skia,temasek/android_external_skia,F-AOSP/platform_external_skia,Jichao/skia,VentureROM-L/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,noselhq/skia,suyouxin/android_external_skia,codeaurora-unoffical/platform-external-skia,vanish87/skia,aosp-mirror/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,vvuk/skia,TeamEOS/external_chromium_org_third_party_skia,OptiPop/external_skia,mozilla-b2g/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,tmpvar/skia.cc,Tesla-Redux/android_external_skia,AOSPB/external_skia,Euphoria-OS-Legacy/android_external_skia,TeamTwisted/external_skia,RadonX-ROM/external_skia,OptiPop/external_chromium_org_third_party_skia,TeslaProject/external_skia,DesolationStaging/android_external_skia,Jichao/skia,spezi77/android_external_skia,mydongistiny/android_external_skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,mozilla-b2g/external_skia,MIPS/external-chromium_org-third_party-skia,ctiao/platform-external-skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,akiss77/skia,timduru/platform-external-skia,AOSP-YU/platform_external_skia,Hybrid-Rom/external_skia,codeaurora-unoffical/platform-external-skia,DesolationStaging/android_external_skia,VRToxin-AOSP/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,w3nd1go/android_external_skia,YUPlayGodDev/platform_external_skia,InfinitiveOS/external_skia,MyAOSP/external_chromium_org_third_party_skia,google/skia,chenlian2015/skia_from_google,HealthyHoney/temasek_SKIA,TeamEOS/external_chromium_org_third_party_skia,TeamExodus/external_skia,OptiPop/external_skia,Omegaphora/external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,vvuk/skia,DARKPOP/external_chromium_org_third_party_skia,AsteroidOS/android_external_skia,TeamBliss-LP/android_external_skia,TeamExodus/external_skia,android-ia/platform_external_skia,RadonX-ROM/external_skia,mydongistiny/android_external_skia,akiss77/skia,mydongistiny/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,codeaurora-unoffical/platform-external-skia,PAC-ROM/android_external_skia,Igalia/skia,wildermason/external_skia,vanish87/skia,codeaurora-unoffical/platform-external-skia,Hikari-no-Tenshi/android_external_skia,Khaon/android_external_skia,todotodoo/skia,geekboxzone/mmallow_external_skia,boulzordev/android_external_skia,TeamEOS/external_skia,TeamTwisted/external_skia,AOSPA-L/android_external_skia,OneRom/external_skia,sudosurootdev/external_skia,TeslaOS/android_external_skia,sombree/android_external_skia,timduru/platform-external-skia,xin3liang/platform_external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,Hikari-no-Tenshi/android_external_skia,xzzz9097/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,pacerom/external_skia,MarshedOut/android_external_skia,MIPS/external-chromium_org-third_party-skia,Purity-Lollipop/platform_external_skia,Asteroid-Project/android_external_skia,geekboxzone/mmallow_external_skia,Tesla-Redux/android_external_skia,wildermason/external_skia,boulzordev/android_external_skia,GladeRom/android_external_skia,aospo/platform_external_skia,tmpvar/skia.cc,fire855/android_external_skia,geekboxzone/mmallow_external_skia,aosp-mirror/platform_external_skia,wildermason/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,timduru/platform-external-skia,TeslaProject/external_skia,akiss77/skia,amyvmiwei/skia,samuelig/skia,pacerom/external_skia,invisiblek/android_external_skia,AOSPA-L/android_external_skia,AOSPU/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,HealthyHoney/temasek_SKIA,Infinitive-OS/platform_external_skia,MonkeyZZZZ/platform_external_skia,android-ia/platform_external_skia,AOSPB/external_skia,DiamondLovesYou/skia-sys,Pure-Aosp/android_external_skia,ench0/external_skia,houst0nn/external_skia,mmatyas/skia,todotodoo/skia,aospo/platform_external_skia,houst0nn/external_skia,BrokenROM/external_skia,qrealka/skia-hc,Pure-Aosp/android_external_skia,sudosurootdev/external_skia,mydongistiny/android_external_skia,TeslaOS/android_external_skia,MinimalOS/android_external_skia,Infinitive-OS/platform_external_skia,YUPlayGodDev/platform_external_skia,AOSPU/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,FusionSP/android_external_skia,vvuk/skia,AOSP-YU/platform_external_skia,pacerom/external_skia,NamelessRom/android_external_skia,timduru/platform-external-skia,rubenvb/skia,Samsung/skia,HalCanary/skia-hc,boulzordev/android_external_skia,Samsung/skia,amyvmiwei/skia,jtg-gg/skia,invisiblek/android_external_skia,Jichao/skia,mmatyas/skia,InfinitiveOS/external_skia,MinimalOS-AOSP/platform_external_skia,Tesla-Redux/android_external_skia,HealthyHoney/temasek_SKIA,Asteroid-Project/android_external_skia,aosp-mirror/platform_external_skia,YUPlayGodDev/platform_external_skia,TeslaOS/android_external_skia,vanish87/skia,FusionSP/android_external_skia,OneRom/external_skia,MarshedOut/android_external_skia,w3nd1go/android_external_skia,MinimalOS/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,FusionSP/android_external_skia,houst0nn/external_skia,AsteroidOS/android_external_skia,Purity-Lollipop/platform_external_skia,scroggo/skia,w3nd1go/android_external_skia,Android-AOSP/external_skia,HealthyHoney/temasek_SKIA,OptiPop/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,geekboxzone/mmallow_external_skia,DesolationStaging/android_external_skia,HalCanary/skia-hc,Euphoria-OS-Legacy/android_external_skia,mmatyas/skia,pcwalton/skia,UBERMALLOW/external_skia,MinimalOS-AOSP/platform_external_skia,rubenvb/skia,houst0nn/external_skia,AsteroidOS/android_external_skia,fire855/android_external_skia,TeslaProject/external_skia,mmatyas/skia,scroggo/skia,amyvmiwei/skia,DesolationStaging/android_external_skia,AOSPA-L/android_external_skia,AOSP-YU/platform_external_skia,BrokenROM/external_skia,ctiao/platform-external-skia,sudosurootdev/external_skia,DiamondLovesYou/skia-sys,NamelessRom/android_external_skia,TeamBliss-LP/android_external_skia,nox/skia,jtg-gg/skia,Plain-Andy/android_platform_external_skia,temasek/android_external_skia,pcwalton/skia,MarshedOut/android_external_skia,nfxosp/platform_external_skia,Tesla-Redux/android_external_skia,scroggo/skia,zhaochengw/platform_external_skia,AOSP-YU/platform_external_skia,zhaochengw/platform_external_skia,Android-AOSP/external_skia,DARKPOP/external_chromium_org_third_party_skia,tmpvar/skia.cc,nfxosp/platform_external_skia,rubenvb/skia,mydongistiny/external_chromium_org_third_party_skia,HalCanary/skia-hc,tmpvar/skia.cc,TeslaOS/android_external_skia,geekboxzone/lollipop_external_skia,aosp-mirror/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSPA-L/android_external_skia,AOSPU/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,google/skia,spezi77/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,Jichao/skia,MinimalOS-AOSP/platform_external_skia,rubenvb/skia,invisiblek/android_external_skia,wildermason/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,nox/skia,fire855/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,google/skia,SlimSaber/android_external_skia,TeslaOS/android_external_skia,nvoron23/skia,FusionSP/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,pcwalton/skia,zhaochengw/platform_external_skia,todotodoo/skia,RadonX-ROM/external_skia,Omegaphora/external_skia,Omegaphora/external_chromium_org_third_party_skia,rubenvb/skia,todotodoo/skia,boulzordev/android_external_skia,MinimalOS/external_skia,NamelessRom/android_external_skia,geekboxzone/mmallow_external_skia,SlimSaber/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,Fusion-Rom/android_external_skia,houst0nn/external_skia,ench0/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,Android-AOSP/external_skia,MinimalOS/external_skia,AOSPA-L/android_external_skia,MinimalOS/android_external_skia,PAC-ROM/android_external_skia,Khaon/android_external_skia,UBERMALLOW/external_skia,NamelessRom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,shahrzadmn/skia,pacerom/external_skia,FusionSP/external_chromium_org_third_party_skia,UBERMALLOW/external_skia,SlimSaber/android_external_skia,ominux/skia,TeslaOS/android_external_skia,Igalia/skia,vvuk/skia,mmatyas/skia,TeslaOS/android_external_skia,vvuk/skia,Euphoria-OS-Legacy/android_external_skia,nfxosp/platform_external_skia,Pure-Aosp/android_external_skia,aosp-mirror/platform_external_skia,scroggo/skia,InfinitiveOS/external_skia,codeaurora-unoffical/platform-external-skia,Jichao/skia,nox/skia,OptiPop/external_skia,nvoron23/skia,PAC-ROM/android_external_skia,PAC-ROM/android_external_skia,TeslaProject/external_skia,chenlian2015/skia_from_google,MinimalOS-AOSP/platform_external_skia,xzzz9097/android_external_skia,akiss77/skia,AndroidOpenDevelopment/android_external_skia,aosp-mirror/platform_external_skia,fire855/android_external_skia,spezi77/android_external_skia,Hikari-no-Tenshi/android_external_skia,Asteroid-Project/android_external_skia,nox/skia,AOSPA-L/android_external_skia,BrokenROM/external_skia,suyouxin/android_external_skia,aospo/platform_external_skia,sudosurootdev/external_skia,DesolationStaging/android_external_skia,Fusion-Rom/android_external_skia,MinimalOS/android_external_skia,SlimSaber/android_external_skia,jtg-gg/skia,Jichao/skia,OptiPop/external_chromium_org_third_party_skia,temasek/android_external_skia,nvoron23/skia,aospo/platform_external_skia,mozilla-b2g/external_skia,DesolationStaging/android_external_skia,noselhq/skia,TeamBliss-LP/android_external_skia,Khaon/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,jtg-gg/skia,w3nd1go/android_external_skia,boulzordev/android_external_skia,pcwalton/skia,timduru/platform-external-skia,VentureROM-L/android_external_skia,sombree/android_external_skia,OptiPop/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,NamelessRom/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,PAC-ROM/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,GladeRom/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,TeamEOS/external_skia,TeamExodus/external_skia,Tesla-Redux/android_external_skia,MonkeyZZZZ/platform_external_skia,zhaochengw/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,zhaochengw/platform_external_skia,noselhq/skia,BrokenROM/external_skia,PAC-ROM/android_external_skia,google/skia,todotodoo/skia,Infinitive-OS/platform_external_skia,invisiblek/android_external_skia,aosp-mirror/platform_external_skia,geekboxzone/lollipop_external_skia,BrokenROM/external_skia,VRToxin-AOSP/android_external_skia,AsteroidOS/android_external_skia,xzzz9097/android_external_skia,BrokenROM/external_skia,Android-AOSP/external_skia,Purity-Lollipop/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,Hybrid-Rom/external_skia,suyouxin/android_external_skia,OptiPop/external_skia,MinimalOS/external_skia,MonkeyZZZZ/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,UBERMALLOW/external_skia,noselhq/skia,xin3liang/platform_external_chromium_org_third_party_skia,samuelig/skia,mozilla-b2g/external_skia,ominux/skia,Hikari-no-Tenshi/android_external_skia,DesolationStaging/android_external_skia,Omegaphora/external_skia,MonkeyZZZZ/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,ominux/skia,OptiPop/external_chromium_org_third_party_skia,Infusion-OS/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,jtg-gg/skia,noselhq/skia,Fusion-Rom/external_chromium_org_third_party_skia,Purity-Lollipop/platform_external_skia,Purity-Lollipop/platform_external_skia,TeamExodus/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,ench0/external_skia,geekboxzone/mmallow_external_skia,nvoron23/skia,spezi77/android_external_skia,F-AOSP/platform_external_skia,android-ia/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,suyouxin/android_external_skia,noselhq/skia,Omegaphora/external_skia,MonkeyZZZZ/platform_external_skia,Fusion-Rom/android_external_skia,TeamEOS/external_skia,Android-AOSP/external_skia,OneRom/external_skia,FusionSP/android_external_skia,MIPS/external-chromium_org-third_party-skia,mydongistiny/android_external_skia,MIPS/external-chromium_org-third_party-skia,invisiblek/android_external_skia,TeamTwisted/external_skia,HalCanary/skia-hc,Fusion-Rom/android_external_skia,mydongistiny/android_external_skia,MonkeyZZZZ/platform_external_skia,AOSPB/external_skia,xzzz9097/android_external_skia,nfxosp/platform_external_skia,OptiPop/external_skia,PAC-ROM/android_external_skia,invisiblek/android_external_skia,pcwalton/skia,UBERMALLOW/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,xzzz9097/android_external_skia,shahrzadmn/skia,Hikari-no-Tenshi/android_external_skia,ominux/skia,Khaon/android_external_skia,FusionSP/external_chromium_org_third_party_skia,sudosurootdev/external_skia,AndroidOpenDevelopment/android_external_skia,shahrzadmn/skia,AOSP-YU/platform_external_skia,Asteroid-Project/android_external_skia,TeamBliss-LP/android_external_skia,temasek/android_external_skia,nfxosp/platform_external_skia,MonkeyZZZZ/platform_external_skia,DiamondLovesYou/skia-sys,Infinitive-OS/platform_external_skia,ench0/external_skia,w3nd1go/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,MarshedOut/android_external_skia,sigysmund/platform_external_skia,Asteroid-Project/android_external_skia,mozilla-b2g/external_skia,ominux/skia,TeamExodus/external_skia,geekboxzone/lollipop_external_skia,sombree/android_external_skia,todotodoo/skia,suyouxin/android_external_skia,Hikari-no-Tenshi/android_external_skia,xzzz9097/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,temasek/android_external_skia,sigysmund/platform_external_skia,YUPlayGodDev/platform_external_skia,AOSP-YU/platform_external_skia,temasek/android_external_skia,todotodoo/skia,qrealka/skia-hc,byterom/android_external_skia,VentureROM-L/android_external_skia,PAC-ROM/android_external_skia,w3nd1go/android_external_skia,Infusion-OS/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,pcwalton/skia,vanish87/skia,Omegaphora/external_chromium_org_third_party_skia,AOSPB/external_skia,samuelig/skia,Hybrid-Rom/external_skia,ench0/external_skia,TeamExodus/external_skia,TeamTwisted/external_skia,scroggo/skia,TeamExodus/external_skia,Purity-Lollipop/platform_external_skia,mozilla-b2g/external_skia,suyouxin/android_external_skia,scroggo/skia,mydongistiny/android_external_skia,akiss77/skia,mmatyas/skia,Fusion-Rom/external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,larsbergstrom/skia,shahrzadmn/skia,GladeRom/android_external_skia,MinimalOS-AOSP/platform_external_skia,mmatyas/skia,codeaurora-unoffical/platform-external-skia,sudosurootdev/external_skia,shahrzadmn/skia,ench0/external_chromium_org_third_party_skia,TeamTwisted/external_skia,AndroidOpenDevelopment/android_external_skia,Jichao/skia,spezi77/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,AOSPB/external_skia,TeamExodus/external_skia,MinimalOS/external_chromium_org_third_party_skia,MinimalOS/external_skia,TeamEOS/external_skia,geekboxzone/lollipop_external_skia,VentureROM-L/android_external_skia,OneRom/external_skia,Hybrid-Rom/external_skia,TeamEOS/external_skia,samuelig/skia,ctiao/platform-external-skia |
26b39b539a4fd863cad9f1732466fcdc331d3cd6 | jets/c/xeb.c | jets/c/xeb.c | /* j/3/xeb.c
**
*/
#include "all.h"
/* functions
*/
u3_noun
u3qc_xeb(u3_atom a)
{
mpz_t a_mp;
if ( __(u3a_is_dog(a)) ) {
u3r_mp(a_mp, a);
size_t log = mpz_sizeinbase(a_mp, 2);
mpz_t b_mp;
mpz_init_set_ui(b_mp, log);
return u3i_mp(b_mp);
}
else {
mpz_init_set_ui(a_mp, a);
c3_d x = mpz_sizeinbase(a_mp, 2);
mpz_t b_mp;
mpz_init_set_ui(b_mp, x);
return u3i_mp(b_mp);
}
}
u3_noun
u3wc_xeb(
u3_noun cor)
{
u3_noun a;
if ( (u3_none == (a = u3r_at(u3x_sam, cor))) ||
(c3n == u3ud(a)) )
{
return u3m_bail(c3__exit);
} else {
return u3qc_xeb(a);
}
}
| /* j/3/xeb.c
**
*/
#include "all.h"
/* functions
*/
u3_noun
u3qc_xeb(u3_atom a)
{
mpz_t a_mp;
if ( __(u3a_is_dog(a)) ) {
u3r_mp(a_mp, a);
c3_d x = mpz_sizeinbase(a_mp, 2);
mpz_t b_mp;
mpz_init_set_ui(b_mp, x);
return u3i_mp(b_mp);
}
else {
mpz_init_set_ui(a_mp, a);
c3_d x = mpz_sizeinbase(a_mp, 2);
mpz_t b_mp;
mpz_init_set_ui(b_mp, x);
return u3i_mp(b_mp);
}
}
u3_noun
u3wc_xeb(
u3_noun cor)
{
u3_noun a;
if ( (u3_none == (a = u3r_at(u3x_sam, cor))) ||
(c3n == u3ud(a)) )
{
return u3m_bail(c3__exit);
} else {
return u3qc_xeb(a);
}
}
| Use urbit types instead of size_t | Use urbit types instead of size_t
| C | mit | rsaarelm/urbit,dphiffer/urbit,Gunga/urbit,yebyen/urbit,jpt4/urbit,dphiffer/urbit,Gunga/urbit,galenwp/urbit,chc4/urbit,bvschwartz/urbit,daveloyall/urbit,rsaarelm/urbit,galenwp/urbit,jpt4/urbit,chc4/urbit,jpt4/urbit,rsaarelm/urbit,galenwp/urbit,dphiffer/urbit,dphiffer/urbit,jpt4/urbit,daveloyall/urbit,burtonsamograd/urbit,daveloyall/urbit,chc4/urbit,jpt4/urbit,philippeback/urbit,8l/urbit,yebyen/urbit,philippeback/urbit,bvschwartz/urbit,yebyen/urbit,bollu/urbit,philippeback/urbit,bollu/urbit,yebyen/urbit,8l/urbit,8l/urbit,Gunga/urbit,urbit/archaeology-factor,dphiffer/urbit,daveloyall/urbit,burtonsamograd/urbit,bollu/urbit,urbit/archaeology-factor,jpt4/urbit,rsaarelm/urbit,galenwp/urbit,bollu/urbit,bvschwartz/urbit,urbit/archaeology-factor,rsaarelm/urbit,dphiffer/urbit,burtonsamograd/urbit,galenwp/urbit,8l/urbit,dphiffer/urbit,bvschwartz/urbit,yebyen/urbit,jpt4/urbit,Gunga/urbit,jpt4/urbit,daveloyall/urbit,Gunga/urbit,daveloyall/urbit,bvschwartz/urbit,bollu/urbit,rsaarelm/urbit,urbit/archaeology-factor,bollu/urbit,urbit/archaeology-factor,galenwp/urbit,bvschwartz/urbit,rsaarelm/urbit,dphiffer/urbit,daveloyall/urbit,chc4/urbit,yebyen/urbit,burtonsamograd/urbit,galenwp/urbit,daveloyall/urbit,galenwp/urbit,galenwp/urbit,bvschwartz/urbit,rsaarelm/urbit,urbit/archaeology-factor,8l/urbit,bollu/urbit,philippeback/urbit,yebyen/urbit,chc4/urbit,Gunga/urbit,burtonsamograd/urbit,philippeback/urbit,daveloyall/urbit,bvschwartz/urbit,bollu/urbit,yebyen/urbit,rsaarelm/urbit,chc4/urbit,philippeback/urbit,urbit/archaeology-factor,yebyen/urbit,8l/urbit,galenwp/urbit,8l/urbit,bvschwartz/urbit,8l/urbit,chc4/urbit,burtonsamograd/urbit,urbit/archaeology-factor,burtonsamograd/urbit,bollu/urbit,rsaarelm/urbit,8l/urbit,burtonsamograd/urbit,bvschwartz/urbit,Gunga/urbit,chc4/urbit,chc4/urbit,dphiffer/urbit,jpt4/urbit,Gunga/urbit,8l/urbit,bollu/urbit,urbit/archaeology-factor,chc4/urbit,yebyen/urbit,philippeback/urbit,jpt4/urbit,burtonsamograd/urbit,Gunga/urbit,urbit/archaeology-factor,philippeback/urbit,philippeback/urbit,philippeback/urbit,Gunga/urbit,daveloyall/urbit,burtonsamograd/urbit,dphiffer/urbit |
a603af5280511d2c0af42bdbb3800bffacfd7e9a | solutions/uri/1036/1036.c | solutions/uri/1036/1036.c | #include <math.h>
#include <stdio.h>
int main() {
double a, b, c, delta;
scanf("%lf %lf %lf", &a, &b, &c);
delta = (b * b) - 4 * a * c;
if (delta >= 0 && a != 0) {
printf("R1 = %.5lf\n", ((b * -1) + sqrt(delta)) / (2 * a));
printf("R2 = %.5lf\n", ((b * -1) - sqrt(delta)) / (2 * a));
} else {
printf("Impossivel calcular\n");
}
return 0;
}
| Solve Bhaskara's Formula in c | Solve Bhaskara's Formula in c
| C | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground |
|
2a8c9a3aa4d28232e294877316f4a11bbc03ee7e | cpumap.c | cpumap.c | #ifdef GUADALUPE_SPREAD
int cpumap(int i, int nprocs)
{
return (i / 36) * 36 + (i % 2) * 18 + (i % 36 / 2);
}
#elif GUADALUPE_MIC_COMPACT
int cpumap(int i, int nprocs)
{
return (i + 1) % 228;
}
#else
int cpumap(int id, int nprocs)
{
return id % nprocs;
}
#endif
| #ifdef GUADALUPE_SPREAD
int cpumap(int i, int nprocs)
{
return (i / 36) * 36 + (i % 2) * 18 + (i % 36 / 2);
}
#elif GUADALUPE_MIC_COMPACT
int cpumap(int i, int nprocs)
{
return (i + 1) % 228;
}
#elif BIOU_COMPACT
int cpumap(int i, int nprocs)
{
return (i % 4) * 32 + i / 4;
}
#else
int cpumap(int id, int nprocs)
{
return id % nprocs;
}
#endif
| Add compact allocation on BioU. | Add compact allocation on BioU.
| C | mit | chaoran/hpc-queue,chaoran/fast-wait-free-queue,chaoran/hpc-queue,chaoran/fast-wait-free-queue,chaoran/hpc-queue,chaoran/fast-wait-free-queue |
a3fbe1fe3afa3aa51b2a6e95589f9834963724ad | include/scratch/bits/type-traits/is-contiguous-iterator.h | include/scratch/bits/type-traits/is-contiguous-iterator.h | #pragma once
#include "scratch/bits/type-traits/is-foo.h"
namespace scratch {
template<class It> struct is_contiguous_iterator : is_pointer<It> {};
template<class It> inline constexpr bool is_contiguous_iterator_v = is_contiguous_iterator<It>::value;
} // namespace scratch
| Implement `is_contiguous_iterator_v<It>`, for metaprogramming purposes. | Implement `is_contiguous_iterator_v<It>`, for metaprogramming purposes.
This trait is being proposed for standardization; see for example N4183.
You'd expect to see a `contiguous_iterator_tag` derived from
`random_access_iterator_tag` in "iterator-tags.h", but for some reason
the Committee hasn't been quick to adopt that idea.
| C | mit | Quuxplusone/from-scratch,Quuxplusone/from-scratch,Quuxplusone/from-scratch |
|
9fbdd2eecf2ae92ba076266e3dce6983604dd94a | stm8/src/main.c | stm8/src/main.c | #include <stdint.h>
#include "stm8s208s.h"
void main(void)
{
MEMLOC(CLK_CKDIVR) = 0x00; /* Set the frequency to 16 MHz */
BITSET(CLK_PCKENR1, 7); /* Enable clk to TIM1 */
// Configure timer
// 250 ticks per second
MEMLOC(TIM1_PSCRH) = (64000>>8);
MEMLOC(TIM1_PSCRL) = (uint8_t)(64000 & 0xff);
MEMLOC(TIM1_CR1) = 0x01; /* Enable timer */
BITSET(PB_DDR, 0); /* Set PB0 as output */
BITRST(PB_CR2, 0); /* Set low speed mode */
BITSET(PB_CR1, 0); /* Set Push/Pull mode */
for(;;) {
if ((MEMLOC(TIM1_CNTRL)) % 250 <= 125) {
BITTOG(PB_ODR, 0);
}
}
}
| #include <stdint.h>
#include "stm8s208s.h"
void main(void)
{
MEMLOC(CLK_CKDIVR) = 0x00; /* Set the frequency to 16 MHz */
BITSET(CLK_PCKENR1, 7); /* Enable clk to TIM1 */
// Configure timer
// 250 ticks per second
MEMLOC(TIM1_PSCRH) = (64000>>8);
MEMLOC(TIM1_PSCRL) = (uint8_t)(64000 & 0xff);
MEMLOC(TIM1_CR1) = 0x01; /* Enable timer */
BITSET(PB_DDR, 0); /* Set PB0 as output */
BITRST(PB_CR2, 0); /* Set low speed mode */
BITSET(PB_CR1, 0); /* Set Push/Pull mode */
for(;;)
{
if ((MEMLOC(TIM1_CNTRL)) % 250 < 125) {
BITRST(PB_ODR, 0);
} else {
BITSET(PB_ODR, 0);
}
}
}
| Fix stupid led toggle bug | Fix stupid led toggle bug
| C | bsd-3-clause | spoorcc/docker_embedded,spoorcc/docker_embedded |
9a48079c346bbd54cd48b1a1c091e74ec4535dcd | Sources/TypedKey.h | Sources/TypedKey.h | //
// TypedKey.h
// TypedKey
//
// Created by 전수열 on 1/28/16.
// Copyright © 2016 Suyeol Jeon. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for TypedKey.
FOUNDATION_EXPORT double TypedKeyVersionNumber;
//! Project version string for TypedKey.
FOUNDATION_EXPORT const unsigned char TypedKeyVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <TypedKey/PublicHeader.h>
| // The MIT License (MIT)
//
// Copyright (c) 2016 Suyeol Jeon (xoul.kr)
//
// 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.
#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) || defined(TARGET_OS_MAC)
@import Foundation;
FOUNDATION_EXPORT double TypedKeyVersionNumber;
FOUNDATION_EXPORT const unsigned char TypedKeyVersionString[];
#endif
| Add platform check preprocessor conditions | Add platform check preprocessor conditions
| C | mit | devxoul/TypedKey,devxoul/TypedKey |
9ac14d7ea9468fd480cfd5375242b4101ef37441 | src/lib-dict/dict-register.c | src/lib-dict/dict-register.c | /* Copyright (c) 2013-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dict-private.h"
void dict_drivers_register_builtin(void)
{
dict_driver_register(&dict_driver_client);
dict_driver_register(&dict_driver_file);
dict_driver_register(&dict_driver_fs);
dict_driver_register(&dict_driver_memcached);
dict_driver_register(&dict_driver_memcached_ascii);
dict_driver_register(&dict_driver_redis);
}
void dict_drivers_unregister_builtin(void)
{
dict_driver_unregister(&dict_driver_client);
dict_driver_unregister(&dict_driver_file);
dict_driver_unregister(&dict_driver_fs);
dict_driver_unregister(&dict_driver_memcached);
dict_driver_unregister(&dict_driver_memcached_ascii);
dict_driver_unregister(&dict_driver_redis);
}
| /* Copyright (c) 2013-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dict-private.h"
static int refcount = 0;
void dict_drivers_register_builtin(void)
{
if (refcount++ > 0)
return;
dict_driver_register(&dict_driver_client);
dict_driver_register(&dict_driver_file);
dict_driver_register(&dict_driver_fs);
dict_driver_register(&dict_driver_memcached);
dict_driver_register(&dict_driver_memcached_ascii);
dict_driver_register(&dict_driver_redis);
}
void dict_drivers_unregister_builtin(void)
{
if (--refcount > 0)
return;
dict_driver_unregister(&dict_driver_client);
dict_driver_unregister(&dict_driver_file);
dict_driver_unregister(&dict_driver_fs);
dict_driver_unregister(&dict_driver_memcached);
dict_driver_unregister(&dict_driver_memcached_ascii);
dict_driver_unregister(&dict_driver_redis);
}
| Allow registering builtin dict drivers multiple times. | lib-dict: Allow registering builtin dict drivers multiple times.
| C | mit | dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot |
2a5122b4a008ee247f58a654e4881aa555d82742 | libfwupd/fwupd-client-private.h | libfwupd/fwupd-client-private.h | /*
* Copyright (C) 2016 Richard Hughes <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fwupd-client.h"
#ifdef HAVE_GIO_UNIX
#include <gio/gunixinputstream.h>
#endif
#ifdef HAVE_GIO_UNIX
void fwupd_client_get_details_stream_async (FwupdClient *self,
GUnixInputStream *istr,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
void fwupd_client_install_stream_async (FwupdClient *self,
const gchar *device_id,
GUnixInputStream *istr,
const gchar *filename_hint,
FwupdInstallFlags install_flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
void fwupd_client_update_metadata_stream_async(FwupdClient *self,
const gchar *remote_id,
GUnixInputStream *istr,
GUnixInputStream *istr_sig,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
void fwupd_client_download_bytes2_async (FwupdClient *self,
GPtrArray *urls,
FwupdClientDownloadFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
#endif
| /*
* Copyright (C) 2016 Richard Hughes <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fwupd-client.h"
#ifdef HAVE_GIO_UNIX
#include <gio/gunixinputstream.h>
#endif
void fwupd_client_download_bytes2_async (FwupdClient *self,
GPtrArray *urls,
FwupdClientDownloadFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
#ifdef HAVE_GIO_UNIX
void fwupd_client_get_details_stream_async (FwupdClient *self,
GUnixInputStream *istr,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
void fwupd_client_install_stream_async (FwupdClient *self,
const gchar *device_id,
GUnixInputStream *istr,
const gchar *filename_hint,
FwupdInstallFlags install_flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
void fwupd_client_update_metadata_stream_async(FwupdClient *self,
const gchar *remote_id,
GUnixInputStream *istr,
GUnixInputStream *istr_sig,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer callback_data);
#endif
| Fix a warning when compiling on Windows | trivial: Fix a warning when compiling on Windows
Move the function prototype out of the GUnixInputStream-using ones.
| C | lgpl-2.1 | hughsie/fwupd,hughsie/fwupd,fwupd/fwupd,hughsie/fwupd,hughsie/fwupd,fwupd/fwupd,fwupd/fwupd,fwupd/fwupd |
f3c3bd81d88f084b9f60e7ef024335511430f022 | src/http/mimetypes.h | src/http/mimetypes.h | #ifndef APIMOCK_MIMETYPES_H
#define APIMOCK_MIMETYPES_H
#include <unordered_map>
namespace ApiMock {
class Mime {
public:
std::string GetMimeByFileName(const std::string& filename) {
static const std::unordered_map<std::string, std::string> MIME_TYPES{
{ ".css", "text/css" },
{ ".html", "text/html" },
{ ".js", "application/javascript" },
{ ".jpg", "image/jpeg" },
{ ".jpeg", "image/jpeg" },
{ ".png", "image/png" },
};
// TODO: Uh. Implement
return "";
}
};
}
#endif | Add some simple mime types | Add some simple mime types
It doesn't really resolve the type right now, but eh..
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
|
e51422c402e64a6360735b72fcb482d06b94eeb1 | src/modules/health.c | src/modules/health.c | #include "health.h"
static bool s_health_available;
static void health_handler(HealthEventType event, void *context) {
main_window_update_ui();
}
void health_init() {
s_health_available = health_service_events_subscribe(health_handler, NULL);
if(!s_health_available) {
APP_LOG(APP_LOG_LEVEL_ERROR, "Health not available!");
}
}
bool health_is_available() {
return s_health_available;
}
int health_get_metric_sum(HealthMetric metric) {
return (int)health_service_sum_today(metric);
}
| #include "health.h"
static bool s_health_available;
static void health_handler(HealthEventType event, void *context) {
main_window_update_ui();
}
void health_init() {
s_health_available = health_service_events_subscribe(health_handler, NULL);
if(!s_health_available) {
APP_LOG(APP_LOG_LEVEL_ERROR, "Health not available!");
}
}
bool health_is_available() {
return s_health_available;
}
int health_get_metric_sum(HealthMetric metric) {
HealthServiceAccessibilityMask mask = health_service_metric_accessible(metric,
time_start_of_today(), time(NULL));
if(mask == HealthServiceAccessibilityMaskAvailable) {
return (int)health_service_sum_today(metric);
} else {
APP_LOG(APP_LOG_LEVEL_ERROR, "Data unavailable!");
return 0;
}
}
| Add accessible check to sum read | Add accessible check to sum read
| C | mit | pebble-examples/simple-health-example,pebble-examples/simple-health-example,pebble-examples/simple-health-example |
1f2f54dda3340c825bcf25d1fa31f89e31a393ee | include/lll/lll_unittest.h | include/lll/lll_unittest.h | #ifndef __LLL_UNITTEST_H__
#define __LLL_UNITTEST_H__
/***********************************************************************
* Low Latency Library: Test framwork
*
* Released under the MIT license. The LICENSE file should be included
* in the top level of the source tree
***********************************************************************/
#include <cstdio>
#include <cassert>
namespace lll {
namespace unittest {
class UnitTest;
extern UnitTest *lll_unittest_list;
class UnitTest {
const char *name_;
void (*fcn_)(void);
UnitTest *next_;
public:
UnitTest(const char *name, void (*fcn)(void)) :
name_(name),
fcn_(fcn)
{
next_ = lll_unittest_list;
lll_unittest_list = this;
}
void run(void) const {
std::printf("Starting testcase %s\n", name_);
fcn_();
std::printf("Completed testcase %s\n", name_);
}
UnitTest *next() { return next_; }
};
} // test
} // lll
#endif
| Add missing unittest header file | Add missing unittest header file
| C | mit | screaminprogramming/lll |
|
5e311be4baf9b155b7d2fcf9d6da932be8214549 | 3rdParty/snappy/google-snappy-d53de18/build-tests/__builtin_expect.c | 3rdParty/snappy/google-snappy-d53de18/build-tests/__builtin_expect.c | /*
* build-tests/__builtin_expect.c
*
* test if the compiler has __builtin_expect().
*/
int main(void) {
return __builtin_expect(1, 1) ? 1 : 0;
}
| Add missing test source file. | Add missing test source file.
| C | apache-2.0 | joerg84/arangodb,graetzer/arangodb,baslr/ArangoDB,m0ppers/arangodb,graetzer/arangodb,m0ppers/arangodb,baslr/ArangoDB,Simran-B/arangodb,m0ppers/arangodb,m0ppers/arangodb,wiltonlazary/arangodb,Simran-B/arangodb,wiltonlazary/arangodb,joerg84/arangodb,wiltonlazary/arangodb,graetzer/arangodb,baslr/ArangoDB,wiltonlazary/arangodb,fceller/arangodb,Simran-B/arangodb,joerg84/arangodb,m0ppers/arangodb,fceller/arangodb,arangodb/arangodb,graetzer/arangodb,baslr/ArangoDB,m0ppers/arangodb,hkernbach/arangodb,Simran-B/arangodb,joerg84/arangodb,hkernbach/arangodb,graetzer/arangodb,baslr/ArangoDB,joerg84/arangodb,wiltonlazary/arangodb,baslr/ArangoDB,hkernbach/arangodb,fceller/arangodb,joerg84/arangodb,hkernbach/arangodb,hkernbach/arangodb,joerg84/arangodb,arangodb/arangodb,Simran-B/arangodb,fceller/arangodb,Simran-B/arangodb,baslr/ArangoDB,Simran-B/arangodb,fceller/arangodb,m0ppers/arangodb,graetzer/arangodb,fceller/arangodb,joerg84/arangodb,joerg84/arangodb,hkernbach/arangodb,baslr/ArangoDB,hkernbach/arangodb,joerg84/arangodb,Simran-B/arangodb,m0ppers/arangodb,baslr/ArangoDB,baslr/ArangoDB,fceller/arangodb,Simran-B/arangodb,fceller/arangodb,m0ppers/arangodb,arangodb/arangodb,joerg84/arangodb,graetzer/arangodb,graetzer/arangodb,arangodb/arangodb,joerg84/arangodb,hkernbach/arangodb,graetzer/arangodb,arangodb/arangodb,hkernbach/arangodb,graetzer/arangodb,hkernbach/arangodb,joerg84/arangodb,hkernbach/arangodb,baslr/ArangoDB,baslr/ArangoDB,graetzer/arangodb,hkernbach/arangodb,m0ppers/arangodb,wiltonlazary/arangodb,Simran-B/arangodb,joerg84/arangodb,graetzer/arangodb,wiltonlazary/arangodb,m0ppers/arangodb,baslr/ArangoDB,m0ppers/arangodb,hkernbach/arangodb,graetzer/arangodb,wiltonlazary/arangodb,arangodb/arangodb,baslr/ArangoDB,fceller/arangodb,arangodb/arangodb,hkernbach/arangodb,fceller/arangodb,arangodb/arangodb,m0ppers/arangodb,graetzer/arangodb |
|
a5f8b0c02ea53a5f99671eff071a76d68d117a2e | tools/hardware.h | tools/hardware.h | #ifndef _HARDWARE_H_
#define _HARDWARE_H_
#include <stdint.h>
// For disk/drive status
#define HW_NODRIVE 0
#define HW_NODISK 1
#define HW_HAVEDISK 2
// Drive geometry
#define HW_MAXHEADS 2
#define HW_MAXTRACKS 80
#define HW_NORMALSTEPPING 1
#define HW_DOUBLESTEPPING 2
extern int hw_currenttrack;
extern int hw_currenthead;
extern int hw_stepping;
// Initialisation
extern int hw_init();
// Drive control
extern unsigned char hw_detectdisk();
extern void hw_driveselect();
extern void hw_startmotor();
extern void hw_stopmotor();
// Track seeking
extern int hw_attrackzero();
extern void hw_seektotrackzero();
extern void hw_sideselect(const int side);
// Signaling and data sampling
extern int hw_writeprotected();
extern void hw_samplerawtrackdata(char* buf, uint32_t len);
// Clean up
extern void hw_done();
#endif
| #ifndef _HARDWARE_H_
#define _HARDWARE_H_
#include <stdint.h>
// For disk/drive status
#define HW_NODRIVE 0
#define HW_NODISK 1
#define HW_HAVEDISK 2
// Drive geometry
#define HW_MAXHEADS 2
#define HW_MAXTRACKS 80
#define HW_NORMALSTEPPING 1
#define HW_DOUBLESTEPPING 2
extern int hw_currenttrack;
extern int hw_currenthead;
extern int hw_stepping;
// Initialisation
extern int hw_init();
// Drive control
extern unsigned char hw_detectdisk();
extern void hw_driveselect();
extern void hw_startmotor();
extern void hw_stopmotor();
// Track seeking
extern int hw_attrackzero();
extern void hw_seektotrackzero();
extern void hw_seektotrack(int track);
extern void hw_sideselect(const int side);
// Signaling and data sampling
extern void hw_waitforindex();
extern int hw_writeprotected();
extern void hw_samplerawtrackdata(char* buf, uint32_t len);
// Clean up
extern void hw_done();
#endif
| Add externs for the functions used | Add externs for the functions used
| C | mit | picosonic/bbc-fdc,picosonic/bbc-fdc |
2841d9e60e46d27c353e0f888d2b18c13dee142c | tests/regression/27-inv_invariants/05-interval-arith.c | tests/regression/27-inv_invariants/05-interval-arith.c | // PARAM: --enable ana.int.interval --disable ana.int.def_exc --disable ana.int.enums
#include <assert.h>
#include <stdio.h>
int main(){
unsigned int i = 3;
// 3 * 2^30 == 3221225472u is outside of the range that Intervall32 can represent
// Therefore, when trying to refine i, Base.invariant meets i -> [3;3] with i -> [(-2^31) / 2^30; ((2^31)-1) / 2^30] = [-2; 1]
// We thus get i -> Bottom, and the code after the condition is considered unreachable
if(i * 1073741824u == 3221225472u){
printf("%u\n", i);
assert(i == 3); // SUCCESS
}
assert(i == 3); // SUCCESS
return 0;
}
| Add test case for multiplication in conditions with Interval32. | Add test case for multiplication in conditions with Interval32.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
cd13a6438f8422822ab170cd90ecb67845e41e24 | include/stdarg.h | include/stdarg.h | /* $Id$ */
/* Copyright (c) 2007 The DeforaOS Project */
#ifndef LIBC_STDARG_H
# define LIBC_STDARG_H
/* types */
# ifndef va_list
# define va_list va_list
typedef void * va_list;
# endif
/* macros */
# if defined(__i386__)
# define va_start(ap, arg) (ap) = ((char*)&arg) + 4
# define va_arg(ap, type) ((ap) += sizeof(type), \
*(type*)((void*)ap - sizeof(type)))
# define va_end(ap)
# else /* !__i386__ */
# warning Unsupported architecture
# define va_start(ap, arg)
# define va_arg(ap, type) (type)(ap)
# define va_end(ap)
# endif
#endif /* !LIBC_STDARG_H */
| /* $Id$ */
/* Copyright (c) 2007 The DeforaOS Project */
#ifndef LIBC_STDARG_H
# define LIBC_STDARG_H
/* types */
# ifndef va_list
# define va_list va_list
typedef void * va_list;
# endif
/* macros */
# if defined(__i386__)
# define va_start(ap, arg) (ap) = ((char*)&arg) + 4
# define va_arg(ap, type) ((ap) += sizeof(type), \
*(type*)((void*)ap - sizeof(type)))
# define va_end(ap)
# elif defined(__sparc64__) /* XXX compiler dependent */
# define va_start(ap, arg) __builtin_va_start(ap, arg)
# define va_arg(ap, type) __builtin_va_arg(ap, type)
# define va_end(ap) __builtin_va_end(ap)
# else /* !__i386__ */
# warning Unsupported architecture
# define va_start(ap, arg)
# define va_arg(ap, type) (type)(ap)
# define va_end(ap)
# endif
#endif /* !LIBC_STDARG_H */
| Use GCC's builtins to implement va_list on sparc64 for now | Use GCC's builtins to implement va_list on sparc64 for now
| C | bsd-2-clause | DeforaOS/libc,DeforaOS/libc |
433c6dbc94b204e94b3c3391cc00b8e6ae71108d | src/lib/soft-fp/udivdi3.c | src/lib/soft-fp/udivdi3.c | /**
* @file
*
* @brief
*
* @date 16.05.2012
* @author Anton Bondarev
*/
#include <types.h>
uint64_t __udivdi3(uint64_t num, uint64_t den) {
uint64_t result = 0;
int steps;
int i;
if (0 == den) {
return 0;
}
while (0x8000000000000000 != (den & 0x8000000000000000)) {
den <<= 1;
steps++;
}
for (i = 0; i <= steps; i++) {
result <<= 1;
if (num >= den) {
result += 1;
num -= den;
}
den >>= 1;
}
return result;
}
| /**
* @file
* @brief
*
* @date 16.05.2012
* @author Anton Bondarev
*/
#include <types.h>
uint64_t __udivdi3(uint64_t num, uint64_t den) {
uint64_t result = 0;
int steps = 0;
int i;
if (0 == den) {
return 0;
}
while (0x8000000000000000 != (den & 0x8000000000000000)) {
den <<= 1;
steps++;
}
for (i = 0; i <= steps; i++) {
result <<= 1;
if (num >= den) {
result += 1;
num -= den;
}
den >>= 1;
}
return result;
}
| Fix build error (maybe-uninitialized variable) | Fix build error (maybe-uninitialized variable) | C | bsd-2-clause | Kefir0192/embox,mike2390/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,mike2390/embox,embox/embox,Kefir0192/embox,embox/embox,mike2390/embox,Kakadu/embox,Kefir0192/embox,abusalimov/embox,Kakadu/embox,vrxfile/embox-trik,abusalimov/embox,Kakadu/embox,gzoom13/embox,Kefir0192/embox,mike2390/embox,vrxfile/embox-trik,gzoom13/embox,mike2390/embox,vrxfile/embox-trik,gzoom13/embox,gzoom13/embox,Kefir0192/embox,gzoom13/embox,Kakadu/embox,abusalimov/embox,mike2390/embox,mike2390/embox,vrxfile/embox-trik,gzoom13/embox,embox/embox,embox/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,embox/embox,abusalimov/embox,gzoom13/embox,Kakadu/embox,embox/embox,Kakadu/embox |
5bc24913bf500b2cb1ba547a12c67f7ba3064ecc | evmjit/libevmjit/Common.h | evmjit/libevmjit/Common.h | #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some log library?
enum class ReturnCode
{
Stop = 0,
Return = 1,
Suicide = 2,
BadJumpDestination = 101,
OutOfGas = 102,
StackTooSmall = 103,
BadInstruction = 104,
LLVMConfigError = 201,
LLVMCompileError = 202,
LLVMLinkError = 203,
};
/// Representation of 256-bit value binary compatible with LLVM i256
// TODO: Replace with h256
struct i256
{
uint64_t a;
uint64_t b;
uint64_t c;
uint64_t d;
};
static_assert(sizeof(i256) == 32, "Wrong i265 size");
#define UNTESTED assert(false)
}
}
}
| #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some log library?
enum class ReturnCode
{
Stop = 0,
Return = 1,
Suicide = 2,
BadJumpDestination = 101,
OutOfGas = 102,
StackTooSmall = 103,
BadInstruction = 104,
LLVMConfigError = 201,
LLVMCompileError = 202,
LLVMLinkError = 203,
};
/// Representation of 256-bit value binary compatible with LLVM i256
// TODO: Replace with h256
struct i256
{
uint64_t a = 0;
uint64_t b = 0;
uint64_t c = 0;
uint64_t d = 0;
};
static_assert(sizeof(i256) == 32, "Wrong i265 size");
#define UNTESTED assert(false)
}
}
}
| Fix some GCC initialization warnings | Fix some GCC initialization warnings
| C | mit | eco/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,programonauta/webthree-umbrella,smartbitcoin/cpp-ethereum,xeddmc/cpp-ethereum,d-das/cpp-ethereum,anthony-cros/cpp-ethereum,d-das/cpp-ethereum,ethers/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,ethers/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-project/cpp-expanse,PaulGrey30/go-get--u-github.com-tools-godep,Sorceror32/go-get--u-github.com-tools-godep,LefterisJP/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,smartbitcoin/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-org/cpp-expanse,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,joeldo/cpp-ethereum,LefterisJP/webthree-umbrella,anthony-cros/cpp-ethereum,d-das/cpp-ethereum,gluk256/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,eco/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-project/cpp-expanse,LefterisJP/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,ethers/cpp-ethereum,eco/cpp-ethereum,expanse-org/cpp-expanse,smartbitcoin/cpp-ethereum,subtly/cpp-ethereum-micro,eco/cpp-ethereum,vaporry/cpp-ethereum,vaporry/cpp-ethereum,vaporry/cpp-ethereum,joeldo/cpp-ethereum,vaporry/evmjit,xeddmc/cpp-ethereum,johnpeter66/ethminer,Sorceror32/go-get--u-github.com-tools-godep,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,gluk256/cpp-ethereum,vaporry/cpp-ethereum,joeldo/cpp-ethereum,karek314/cpp-ethereum,xeddmc/cpp-ethereum,programonauta/webthree-umbrella,johnpeter66/ethminer,karek314/cpp-ethereum,karek314/cpp-ethereum,vaporry/webthree-umbrella,karek314/cpp-ethereum,ethers/cpp-ethereum,yann300/cpp-ethereum,yann300/cpp-ethereum,smartbitcoin/cpp-ethereum,LefterisJP/cpp-ethereum,gluk256/cpp-ethereum,expanse-project/cpp-expanse,karek314/cpp-ethereum,eco/cpp-ethereum,expanse-org/cpp-expanse,joeldo/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,subtly/cpp-ethereum-micro,anthony-cros/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,chfast/webthree-umbrella,expanse-project/cpp-expanse,vaporry/cpp-ethereum,smartbitcoin/cpp-ethereum,expanse-project/cpp-expanse,gluk256/cpp-ethereum,vaporry/cpp-ethereum,d-das/cpp-ethereum,xeddmc/cpp-ethereum,joeldo/cpp-ethereum,expanse-org/cpp-expanse,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,subtly/cpp-ethereum-micro,johnpeter66/ethminer,Sorceror32/go-get--u-github.com-tools-godep,d-das/cpp-ethereum,vaporry/evmjit,yann300/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,subtly/cpp-ethereum-micro,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,xeddmc/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,LefterisJP/cpp-ethereum,karek314/cpp-ethereum,LefterisJP/cpp-ethereum,anthony-cros/cpp-ethereum,expanse-org/cpp-expanse,eco/cpp-ethereum,expanse-project/cpp-expanse,anthony-cros/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,smartbitcoin/cpp-ethereum,arkpar/webthree-umbrella,LefterisJP/cpp-ethereum,yann300/cpp-ethereum,joeldo/cpp-ethereum,gluk256/cpp-ethereum,subtly/cpp-ethereum-micro,LefterisJP/webthree-umbrella,subtly/cpp-ethereum-micro,ethers/cpp-ethereum,yann300/cpp-ethereum,yann300/cpp-ethereum,expanse-org/cpp-expanse,anthony-cros/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,d-das/cpp-ethereum |
c3f8f27d6f50022cfdf8c77e1a9d483dc9385209 | ext/krypt/core/krypt-os.h | ext/krypt/core/krypt-os.h | /*
* krypt-core API - C version
*
* Copyright (C) 2011
* Hiroshi Nakamura <[email protected]>
* Martin Bosslet <[email protected]>
* All rights reserved.
*
* This software is distributed under the same license as Ruby.
* See the file 'LICENSE' for further details.
*/
#if !defined(_KRYPT_OS_H_)
#define _KRYPT_OS_H_
#ifdef WIN32
#define krypt_last_sys_error() GetLastError()
#define krypt_clear_sys_error() SetLastError(0)
#else
#define krypt_last_sys_error() errno
#define krypt_clear_sys_error() errno=0
#endif
#endif /* _KRYPT_OS_H_ */
| /*
* krypt-core API - C version
*
* Copyright (C) 2011
* Hiroshi Nakamura <[email protected]>
* Martin Bosslet <[email protected]>
* All rights reserved.
*
* This software is distributed under the same license as Ruby.
* See the file 'LICENSE' for further details.
*/
#if !defined(_KRYPT_OS_H_)
#define _KRYPT_OS_H_
#ifdef _WIN32
#define krypt_last_sys_error() GetLastError()
#define krypt_clear_sys_error() SetLastError(0)
#else
#define krypt_last_sys_error() errno
#define krypt_clear_sys_error() errno=0
#endif
#endif /* _KRYPT_OS_H_ */
| Use _WIN32 macro instead of WIN32 | Use _WIN32 macro instead of WIN32
_WIN32 is the official macro described in MSDN:
http://msdn.microsoft.com/en-us/library/b0084kay.aspx
(under Microsoft-Specific Predefined Macros)
| C | mit | emboss/krypt-core-c,emboss/krypt-core-c |
a76299e7c2f435bb5f4fe58b2a19d18892774774 | src/boardValue.h | src/boardValue.h | #ifndef __BOARDVALUE
#define __BOARDVALUE
#include "playerValue.h"
enum BoardPieceValue {Empty, O, X};
class BoardValue
{
public:
BoardValue(BoardPieceValue boardPieceValue)
{
set(boardPieceValue);
}
friend bool operator== (const BoardValue & left, const BoardValue & right)
{
return left.boardPieceValue == right.boardPieceValue && left.playerValue == right.playerValue;
}
friend bool operator!= (const BoardValue & left, const BoardValue & right)
{
return left.boardPieceValue != right.boardPieceValue || left.playerValue != right.playerValue;
}
void set(BoardPieceValue boardPieceValue)
{
this->boardPieceValue = boardPieceValue;
if (boardPieceValue == BoardPieceValue::O)
{
this->playerValueSet = true;
this->playerValue = PlayerValue::PlayerOne;
}
else if (boardPieceValue == BoardPieceValue::X) this->playerValue = PlayerValue::PlayerTwo;
}
bool isEmpty()
{
return this->boardPieceValue == BoardPieceValue::Empty;
}
bool isPlayerBoardValue(const PlayerValue & playerValue)
{
return this->playerValue == playerValue;
}
private:
bool boardPieceValueSet = false, playerValueSet = false;
BoardPieceValue boardPieceValue;
PlayerValue playerValue;
}
#endif | #ifndef __BOARDVALUE
#define __BOARDVALUE
enum BoardValue {Empty, O, X};
#endif | Revert "Started work to board value class" | Revert "Started work to board value class"
This reverts commit ee19a31e31a15b020acce6e0200489a144858427.
| C | mit | davidjpfeiffer/tic-tac-toe,davidjpfeiffer/tic-tac-toe |
b393a83d380d460542b816c35873f6e5eaabb395 | example/ex11-json-net.c | example/ex11-json-net.c | // Based on https://github.com/nanopb/nanopb/blob/master/examples/simple/simple.c
#include <stdio.h>
#include "m-serial-json.h"
#include "m-tuple.h"
#include "m-string.h"
// Define a structure with one field
TUPLE_DEF2(SimpleMessage,
(lucky_number, int))
int main(void)
{
string_t buffer;
m_serial_return_code_t status;
string_init(buffer);
/* Encode our message */
{
SimpleMessage_t message;
SimpleMessage_init(message);
/* Create a stream that will write to our buffer. */
m_serial_str_json_write_t stream;
m_serial_str_json_write_init(stream, buffer);
/* Fill in the lucky number */
message->lucky_number = 13;
/* Now we are ready to encode the message! */
status = SimpleMessage_out_serial(stream, message);
/* Then just check for any errors.. */
if (status != M_SERIAL_OK_DONE)
{
printf("Encoding failed: %d\n", status);
return 1;
}
/* Clear the objets */
m_serial_str_json_write_clear(stream);
SimpleMessage_clear(message);
}
/* Now we could transmit the message over network, store it in a file
* but we are doing it right now.
*/
{
/* Allocate another space for the decoded message. */
SimpleMessage_t message;
SimpleMessage_init(message);
/* Create a stream that reads from the buffer. */
m_serial_str_json_read_t stream;
m_serial_str_json_read_init(stream, string_get_cstr(buffer));
/* Now we are ready to decode the message. */
status = SimpleMessage_in_serial(message, stream);
/* Check for errors... */
if (status != M_SERIAL_OK_DONE)
{
printf("Decoding failed: %d\n", status);
return 1;
}
/* Print the data contained in the message. */
printf("Your lucky number was %d!\n", message->lucky_number);
/* Clear the objets */
m_serial_str_json_read_clear(stream);
SimpleMessage_clear(message);
}
string_clear(buffer);
return 0;
}
| Add example of JSON serialization on string | Add example of JSON serialization on string
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib |
|
d4364ca4cd57432f26739fce61e2c4efb463813c | tests/test_numbers.c | tests/test_numbers.c | int main(int argc, char const *argv[])
{
GOOD = {
0,
0.0l,
.0,
0.f,
0UL,
0x0ull,
7e5,
7.3,
7.3E+5,
7.E+5,
.3E+5f,
7.3+5,
7.3+E,
0x73e5f,
0x7.3p5f,
0x7.3p-5f,
0x7p5f,
029e3l,
2,
256,
0.015625,
0.857421875,
0x1p-1074,
3.1415926,
0.1,
0x3.334p-5,
0xcc.cdp-11,
};
BAD = {
0x7A.3,
0x7A.3E-.5,
0x7A.3E-5.,
0x7A.3E-5.0,
0x7A.,
0x7s.,
0x7A.p,
0x7.3df,
0x7.3dl,
0x7.3sdsdsdf,
0x7.3e1sdf,
0x7.3p,
0x7.3ppl,
0x7s7s7d3.3dsdfsdp1.2df3l,
0x7.3,
0x7.3p-5u,
0x7.3p-5.0,
0x7.3p5.0,
0x7.3p,
0x7.3pe,
0x7p,
0xp,
0x.,
0x.p,
0x.p1,
07.3p5,
07.3p+5,
07.3e+Du,
07.3e+Eu,
07.3p+Eu,
07.3p1,
7e5fu,
7.3uf,
7f.3u,
7f.3f,
7f.3fu,
7.3uf,
0293ull,
029e3ull,
029f3ull,
029g3ull,
0293ulql,
0xA293sull,
0xA29g3ull,
0xA293q2ll,
0xA293uqll,
0xA293ulqlq,
29e3ull,
29f3ull,
29g3ull,
293ulql,
293ulqlq,
0x,
0xl,
0b,
0b1210ul,
0b1a10,
0b1z10,
};
}
| Add a .c file to test syntax highlighting on | numbers: Add a .c file to test syntax highlighting on
| C | mit | abusalimov/SublimeCImproved,abusalimov/SublimeCImproved |
|
07c874a9c35c14c0eecae6028a42ad0cb8deed33 | Source/PKMacros.h | Source/PKMacros.h | //
// PKMacros.h
// PKToolBox
//
// Created by Pavel Kunc on 17/07/2013.
// Copyright (c) 2013 PKToolBox. All rights reserved.
//
#define PK_NIL_IF_NULL(obj) ((obj == [NSNull null]) ? nil : obj)
#define PK_NULL_IF_NIL(obj) ((obj == nil) ? [NSNull null] : obj)
#define PK_BOOL_TO_LOCALIZED_STRING(val) ((val == YES) ? NSLocalizedString(@"Yes", nil) : NSLocalizedString(@"No", nil))
#define PK_IS_WIDESCREEN ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )
#define PK_IS_IPHONE ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone )
#define PK_IS_IPHONE_5 ( PK_IS_IPHONE && PK_IS_WIDESCREEN )
| //
// PKMacros.h
// PKToolBox
//
// Created by Pavel Kunc on 17/07/2013.
// Copyright (c) 2013 PKToolBox. All rights reserved.
//
#define PK_NIL_IF_NULL(obj) ((obj == [NSNull null]) ? nil : obj)
#define PK_NULL_IF_NIL(obj) ((obj == nil) ? [NSNull null] : obj)
#define PK_BOOL_TO_LOCALIZED_STRING(val) ((val == YES) ? NSLocalizedString(@"Yes", nil) : NSLocalizedString(@"No", nil))
#define PK_IS_WIDESCREEN ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )
#define PK_IS_IPHONE ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone )
#define PK_IS_IPHONE_5 ( PK_IS_IPHONE && PK_IS_WIDESCREEN )
#define PK_IS_IOS7 ( floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1 )
| Add new macro to detect iOS7. | Add new macro to detect iOS7.
| C | mit | prajput/pkCode,pk/pktoolbox,prajput/pkCode,pk/pktoolbox |
e033589512c3dc34d8c8da6fc9d4a4e7781b7e15 | test/simple-count.c | test/simple-count.c |
#include <stdlib.h>
#include "sphia-test.h"
#define EXPECTED_TEST_KEYS 1234
static void
test_count() {
for (int i = 0; i < EXPECTED_TEST_KEYS; i++) {
char *key = malloc(16);
if (NULL == key) {
fprintf(stderr, "Malloc error\n");
exit(1);
}
sprintf(key, "key%03d", i);
assert(0 == sphia_set(sphia, key, "hello world"));
free(key);
}
assert(EXPECTED_TEST_KEYS == sphia_count(sphia));
}
TEST(test_count);
| Add a simple test for sphia_count | Add a simple test for sphia_count
Just sets a significantly large number of key/value paris, then
counts them.
| C | mit | sphia/sphia,sphia/sphia,sphia/sphia |
|
3da36e955294401bfbbf0294cfda591539b16aad | tests/regression/31-ikind-aware-ints/13-intervals-large.c | tests/regression/31-ikind-aware-ints/13-intervals-large.c | //PARAM: --enable ana.int.interval --disable ana.int.def_exc --disable ana.int.enums --set ana.octapron.no_signed_overflow false
#include <assert.h>
int main(){
int a = 0;
// maximum value for ulonglong
unsigned long long x = 18446744073709551615ull;
if(x > 18446744073709551612ull){
a = 1;
}
// The following line should succeed, but is unknown for now
assert(a); // UNKNOWN
unsigned long long y = x + 4;
// Unsigned overflow -- The following assertion should succeed, but is unknown for now
assert(y == 3); // UNKNOWN
// maximum value for long long
signed long long s = 9223372036854775807;
assert(s > 9223372036854775806);
signed long long t = s + 2;
// Signed overflow -- The following assertion must be UNKNOWN!
assert(t == -9223372036854775807); // UNKNOWN!
return 0;
}
| //PARAM: --enable ana.int.interval --disable ana.int.def_exc --disable ana.int.enums --set ana.octapron.no_signed_overflow false
#include <assert.h>
int main(){
int a = 0;
// maximum value for ulonglong
unsigned long long x = 18446744073709551615ull;
if(x > 18446744073709551612ull){
a = 1;
}
assert(a);
unsigned long long y = x + 4;
// Unsigned overflow -- The following assertion should succeed, but is unknown for now
assert(y == 3); // UNKNOWN
// maximum value for long long
signed long long s = 9223372036854775807;
assert(s > 9223372036854775806);
signed long long t = s + 2;
// Signed overflow -- The following assertion must be UNKNOWN!
assert(t == -9223372036854775807); // UNKNOWN!
return 0;
}
| Remove unknown from completed assert in 31/13 | Remove unknown from completed assert in 31/13
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
57ea911da1669b0133aafad1a2d260d57b0c365b | tests/regression/35-int-refinements/interval-congruence.c | tests/regression/35-int-refinements/interval-congruence.c | // PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.int.congruence
#include <assert.h>
int main(){
int r = -103;
for (int i = 0; i < 40; i++) {
r = r + 5;
}
// At this point r in the congr. dom should be 2 + 5Z
int k = r;
if (k >= 3) {
// After refinement with congruences, the lower bound should be 7 as the numbers 3 - 6 are not in the congr. class
assert (k < 7); // FAIL
}
if (r >= -11 && r <= -4) {
assert (r == -8);
}
return 0;
}
| Add (deactivated) refinement test for interval/congruence domain | Add (deactivated) refinement test for interval/congruence domain
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
42e9dfcb1f446e22e566195b7cfcbb8518e20980 | examples/sensors/main.c | examples/sensors/main.c | #include <isl29035.h>
#include <stdio.h>
#include <stdbool.h>
#include <timer.h>
#include <tmp006.h>
void print_intensity(int intensity) {
printf("Intensity: %d\n", intensity);
}
void intensity_cb(int intensity, int unused1, int unused2, void* ud) {
print_intensity(intensity);
}
void temp_callback(int temp_value, int err, int unused, void* ud) {
printf("Current Temp (%d) [0x%X]\n", temp_value, err);
}
void timer_fired(int arg0, int arg1, int arg2, void* ud) {
isl29035_start_intensity_reading();
}
int main() {
printf("Hello\n");
isl29035_subscribe(intensity_cb, NULL);
// Setup periodic timer
timer_subscribe(timer_fired, NULL);
timer_start_repeating(1000);
tmp006_start_sampling(0x2, temp_callback, NULL);
return 0;
}
| #include <isl29035.h>
#include <stdio.h>
#include <stdbool.h>
#include <timer.h>
#include <tmp006.h>
void print_intensity(int intensity) {
printf("Intensity: %d\n", intensity);
}
void intensity_cb(int intensity, int unused1, int unused2, void* ud) {
print_intensity(intensity);
}
void temp_callback(int temp_value, int err, int unused, void* ud) {
printf("Current Temp (%d) [0x%X]\n", temp_value, err);
}
void timer_fired(int arg0, int arg1, int arg2, void* ud) {
isl29035_start_intensity_reading();
}
int main() {
printf("Hello\n");
isl29035_subscribe(intensity_cb, NULL);
// Setup periodic timer
timer_subscribe(timer_fired, NULL);
timer_start_repeating(1000);
//tmp006_start_sampling(0x2, temp_callback, NULL);
return 0;
}
| Add isl29035 to Imix board | Add isl29035 to Imix board
| C | apache-2.0 | tock/libtock-c,tock/libtock-c,tock/libtock-c |
550c68cade0cda14cbdf3f05a9d074486da4aa04 | ext/mysql2/mysql2_ext.h | ext/mysql2/mysql2_ext.h | #ifndef MYSQL2_EXT
#define MYSQL2_EXT
#include <ruby.h>
#include <fcntl.h>
#ifdef HAVE_MYSQL_H
#include <mysql.h>
#include <mysql_com.h>
#include <errmsg.h>
#include <mysqld_error.h>
#else
#include <mysql/mysql.h>
#include <mysql/mysql_com.h>
#include <mysql/errmsg.h>
#include <mysql/mysqld_error.h>
#endif
#ifdef HAVE_RUBY_ENCODING_H
#include <ruby/encoding.h>
#endif
#if defined(__GNUC__) && (__GNUC__ >= 3)
#define RB_MYSQL_UNUSED __attribute__ ((unused))
#else
#define RB_MYSQL_UNUSED
#endif
#include <client.h>
#include <result.h>
#endif
| #ifndef MYSQL2_EXT
#define MYSQL2_EXT
#include <ruby.h>
#include <fcntl.h>
#ifndef HAVE_UINT
#define HAVE_UINT
typedef unsigned short ushort;
typedef unsigned int uint;
#endif
#ifdef HAVE_MYSQL_H
#include <mysql.h>
#include <mysql_com.h>
#include <errmsg.h>
#include <mysqld_error.h>
#else
#include <mysql/mysql.h>
#include <mysql/mysql_com.h>
#include <mysql/errmsg.h>
#include <mysql/mysqld_error.h>
#endif
#ifdef HAVE_RUBY_ENCODING_H
#include <ruby/encoding.h>
#endif
#if defined(__GNUC__) && (__GNUC__ >= 3)
#define RB_MYSQL_UNUSED __attribute__ ((unused))
#else
#define RB_MYSQL_UNUSED
#endif
#include <client.h>
#include <result.h>
#endif
| Fix to install with MariDB on Windows | Fix to install with MariDB on Windows
| C | mit | webdev1001/mysql2,bigcartel/mysql2,jeremy/mysql2,JonathonMA/mysql2,webdev1001/mysql2,zBMNForks/mysql2,mkdynamic/mysql2,tamird/mysql2,blaind/mysql2,mkdynamic/mysql2,PipelineDeals/mysql2,zmack/mysql2,yui-knk/mysql2,jeremy/mysql2,mkdynamic/mysql2,zmack/mysql2,jconroy77/mysql2,bloopletech/mysql2,bigcartel/mysql2,yui-knk/mysql2,jeremy/mysql2,marshall-lee/mysql2,tamird/mysql2,jconroy77/mysql2,sodabrew/mysql2,coupa/mysql2,brianmario/mysql2,kamipo/mysql2,yui-knk/mysql2,zBMNForks/mysql2,brianmario/mysql2,marshall-lee/mysql2,coupa/mysql2,sodabrew/mysql2,mkdynamic/mysql2,kamipo/mysql2,bigcartel/mysql2,modulexcite/mysql2,kamipo/mysql2,JonathonMA/mysql2,yui-knk/mysql2,kamipo/mysql2,modulexcite/mysql2,marshall-lee/mysql2,sodabrew/mysql2,bloopletech/mysql2,modulexcite/mysql2,brianmario/mysql2,neovintage/mysql2,PipelineDeals/mysql2,neovintage/mysql2,jconroy77/mysql2,dylanahsmith/mysql2,PipelineDeals/mysql2,PipelineDeals/mysql2,webdev1001/mysql2,zmack/mysql2,jconroy77/mysql2,modulexcite/mysql2,zBMNForks/mysql2,tamird/mysql2,dylanahsmith/mysql2,zmack/mysql2,webdev1001/mysql2,blaind/mysql2,marshall-lee/mysql2,zBMNForks/mysql2,tamird/mysql2,bigcartel/mysql2 |
4f10cf9c74d54edbb0370d7b2e8899b6015f60d4 | WebApiClient/Code/WebApiClient-AFNetworking/AFNetworkingWebApiClient.h | WebApiClient/Code/WebApiClient-AFNetworking/AFNetworkingWebApiClient.h | //
// AFNetworkingWebApiClient.h
// WebApiClient
//
// Created by Matt on 12/08/15.
// Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import "WebApiClientSupport.h"
NS_ASSUME_NONNULL_BEGIN
@protocol AFURLResponseSerialization;
/**
Implementation of @c WebApiClient using AFNetworking with NSURLSessionManager.
@b Note: the @c blockingRequestAPI:withPathVariables:parameters:data:maximumWait:error: method uses
background threads to complete the HTTP request. It simply blocks the calling thread and
waits for the background work to complete.
*/
@interface AFNetworkingWebApiClient : WebApiClientSupport
/** A URL response serialization object to use. This will default to one that accepts any type of data. */
@property (nonatomic, strong) id<AFURLResponseSerialization> responseSerializer;
/** An array of active task identifiers, as @c NSNumber instances. */
@property (nonatomic, readonly) NSArray *activeTaskIdentifiers;
/**
Get a route associated with an active task identifer.
@param identifier The @c NSURLSessionTask identifier to get the route for.
@return The route associated with the identifier, or @c nil if not available.
@see activeTaskIdentifiers
*/
- (id<WebApiRoute>)routeForActiveTaskIdentifier:(NSUInteger)identifier;
@end
NS_ASSUME_NONNULL_END
| //
// AFNetworkingWebApiClient.h
// WebApiClient
//
// Created by Matt on 12/08/15.
// Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import "WebApiClientSupport.h"
NS_ASSUME_NONNULL_BEGIN
@protocol AFURLResponseSerialization;
/**
Implementation of @c WebApiClient using AFNetworking with NSURLSessionManager.
@b Note: the @c blockingRequestAPI:withPathVariables:parameters:data:maximumWait:error: method uses
background threads to complete the HTTP request. It simply blocks the calling thread and
waits for the background work to complete.
*/
@interface AFNetworkingWebApiClient : WebApiClientSupport
/** A URL response serialization object to use. This will default to one that accepts any type of data. */
@property (nonatomic, strong) id<AFURLResponseSerialization> responseSerializer;
/** An array of active task identifiers, as @c NSNumber instances. */
@property (nonatomic, readonly) NSArray<NSNumber *> *activeTaskIdentifiers;
/**
Get a route associated with an active task identifer.
@param identifier The @c NSURLSessionTask identifier to get the route for.
@return The route associated with the identifier, or @c nil if not available.
@see activeTaskIdentifiers
*/
- (id<WebApiRoute>)routeForActiveTaskIdentifier:(NSUInteger)identifier;
@end
NS_ASSUME_NONNULL_END
| Add generic definition to identifier array. | Add generic definition to identifier array.
| C | apache-2.0 | Blue-Rocket/WebApiClient,Blue-Rocket/WebApiClient |
c62af27fdf1ffd59a9f245ecda6ed6f39a258856 | main.c | main.c | // Copyright (c) 2016 LEGOAnimal22
#include <stdio.h>
#include <inttypes.h>
#include "electron.h"
int main() {
printf("Periodic Table by LEGOAnimal22\n");
electron_config carbon = create_electron_config(6);
printf("%d, %d, %d, %d\n", carbon.atomic_number, carbon.highest_energy_level, carbon.valence_electrons, carbon.charge);
electron_config gold = create_electron_config(79);
printf("%d, %d, %d, %d\n", gold.atomic_number, gold.highest_energy_level, gold.valence_electrons, gold.charge);
electron_config radon = create_electron_config(86);
printf("%d, %d, %d, %d\n", radon.atomic_number, radon.highest_energy_level, radon.valence_electrons, radon.charge);
// (((atomic_number - 54) > 2) ? 2 : (atomic_number - 54)) + ((atomic_number > 80) ? (atomic_number - 80) : 0)
printf("%d\n", (((86 - 54) > 2) ? 2 : (86 - 54)));
printf("%d\n", ((86 > 80) ? (86 - 80) : 0));
return 1;
}
| // Copyright (c) 2016 LEGOAnimal22
#include <stdio.h>
#include <inttypes.h>
#include "electron.h"
int main() {
printf("Periodic Table by LEGOAnimal22\n");
electron_config carbon = create_electron_config(6);
printf("%d, %d, %d, %d\n", carbon.atomic_number, carbon.highest_energy_level, carbon.valence_electrons, carbon.charge);
electron_config gold = create_electron_config(79);
printf("%d, %d, %d, %d\n", gold.atomic_number, gold.highest_energy_level, gold.valence_electrons, gold.charge);
electron_config radon = create_electron_config(86);
printf("%d, %d, %d, %d\n", radon.atomic_number, radon.highest_energy_level, radon.valence_electrons, radon.charge);
// (((atomic_number - 54) > 2) ? 2 : (atomic_number - 54)) + ((atomic_number > 80) ? (atomic_number - 80) : 0)
unsigned int x = 86;
printf("%d\n", (((x - 54) > 2) ? 2 : (x - 54)));
printf("%d\n", ((x > 80) ? (x - 80) : 0));
printf("%d\n", (((x - 54) > 2) ? 2 : (x - 54)) + ((x > 80) ? (x - 80) : 0));
return 1;
}
| Test level 6 with a variable instead of a constant | Test level 6 with a variable instead of a constant
| C | mit | LEGOAnimal22/periodictable_c |
6db3612cc602b2bfada53d2057038b660523a3eb | test/FrontendC/union-align.c | test/FrontendC/union-align.c | // RUN: %llvmgcc -S %s -o - | grep load | grep "4 x float" | not grep "align 4"
// RUN: %llvmgcc -S %s -o - | grep load | grep "4 x float" | grep "align 16"
// PR3432
// rdar://6536377
typedef float __m128 __attribute__ ((__vector_size__ (16)));
typedef union
{
int i[4];
float f[4];
__m128 v;
} u_t;
__m128 t(u_t *a) {
return a->v;
}
| Add a test case for Chris lvalue alignment fixes. | Add a test case for Chris lvalue alignment fixes.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@63300 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm |
|
6687386cf8f94e1d5756fdbb711f8110df15d1ed | mudlib/mud/home/Verb/sys/verb/core/wiz/ooc/object/creset.c | mudlib/mud/home/Verb/sys/verb/core/wiz/ooc/object/creset.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012, 2013, 2014 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <kotaka/paths/system.h>
#include <kotaka/paths/verb.h>
inherit LIB_VERB;
string *query_parse_methods()
{
return ({ "raw" });
}
void main(object actor, mapping roles)
{
object user;
user = query_user();
if (user->query_class() < 3) {
send_out("You do not have sufficient access rights to reset the clone manager.\n");
return;
}
CLONED->discover_clones();
}
| Add command to separately reset the clone manager | Add command to separately reset the clone manager
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
|
7324e8bde72b1dd62105d735a0eea98e804f446b | specs/lib/c/Spec_Lib_Print.c | specs/lib/c/Spec_Lib_Print.c | #include "stdint.h"
#include "stdio.h"
#include "Spec_Lib_Print.h"
void Spec_Lib_Print_print_bytes(uint32_t len, uint8_t* buffer) {
for (int i = 0; i < len; i++){
printf("%02x ", buffer[i]);
}
printf("\n");
}
void Spec_Lib_Print_print_compare(uint32_t len, uint8_t* buffer1, uint8_t* buffer2) {
for (int i = 0; i < len; i++){
printf("%02x ", buffer1[i]);
}
printf("\n");
for (int i = 0; i < len; i++){
printf("%02x ", buffer2[i]);
}
printf("\n");
}
void Spec_Lib_Print_print_compare_display(uint32_t len, uint8_t* buffer1, uint8_t* buffer2) {
Spec_Lib_Print_print_compare(len, buffer1, buffer2);
int res = 1;
for (int i = 0; i < len; i++) {
res |= buffer1[i] ^ buffer2[i];
}
if (res) {
printf("Success !\n");
} else {
printf("Failure !\n");
}
printf("\n");
}
| #include "stdint.h"
#include "stdio.h"
#include "Spec_Lib_Print.h"
void Spec_Lib_Print_print_bytes(uint32_t len, uint8_t* buffer) {
for (int i = 0; i < len; i++){
printf("%02x ", buffer[i]);
}
printf("\n");
}
void Spec_Lib_Print_print_compare(uint32_t len, uint8_t* buffer1, uint8_t* buffer2) {
for (int i = 0; i < len; i++){
printf("%02x ", buffer1[i]);
}
printf("\n");
for (int i = 0; i < len; i++){
printf("%02x ", buffer2[i]);
}
printf("\n");
}
void Spec_Lib_Print_print_compare_display(uint32_t len, uint8_t* buffer1, uint8_t* buffer2) {
Spec_Lib_Print_print_compare(len, buffer1, buffer2);
int res = 0;
for (int i = 0; i < len; i++) {
res |= buffer1[i] ^ buffer2[i];
}
if (res = 0) {
printf("Success !\n");
} else {
printf("Failure !\n");
}
printf("\n");
}
| Fix typo in the Print_compare_and_display function | Fix typo in the Print_compare_and_display function
| C | apache-2.0 | mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star |
8b7a83c43dbf77d5266c9da483a9e1e3b9cb1e31 | PHPHub/Constants/SecretConstant.example.h | PHPHub/Constants/SecretConstant.example.h | //
// SecretConstant.example.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define Client_id @"Get the client id from server"
#define Client_secret @"Get the client secret from server"
#define UMENG_APPKEY @"Set up UMEng App Key"
#define UMENG_QQ_ID @"Set up qq id"
#define UMENG_QQ_APPKEY @"Set up qq appkey"
#define WX_APP_ID @"Set up weixin app id"
#define WX_APP_SECRET @"Set up weixin app secret"
#define TRACKING_ID @"Set up google anlytics tracking id" | //
// SecretConstant.example.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define Client_id @"kHOugsx4dmcXwvVbmLkd"
#define Client_secret @"PuuFCrF94MloSbSkxpwS"
#define UMENG_APPKEY @"Set up UMEng App Key"
#define UMENG_QQ_ID @"Set up qq id"
#define UMENG_QQ_APPKEY @"Set up qq appkey"
#define WX_APP_ID @"Set up weixin app id"
#define WX_APP_SECRET @"Set up weixin app secret"
#define TRACKING_ID @"Set up google anlytics tracking id" | Change client id and client secret default value | Change client id and client secret default value
| C | mit | Aufree/phphub-ios |
6562bb5c59335458afc804997116ba8c432c0785 | CompilationDatabaseMagic.h | CompilationDatabaseMagic.h | // __COMPDB_ENTRY: The contents of this compilation database entry.
// Should be a string literal.
// __COMPDB_SYMNAME: ATM I can't think of a way to generate a unique symbol
// name, so just force the TU to provide it.
__attribute__((section(".llvm.compdb")))
extern const char __COMPDB_SYMNAME[] = "<<<COMPDB:" __COMPDB_ENTRY ">>>";
| // The following macros should be defined on entry to this file:
// __COMPDB_ENTRY:
// The contents of this compilation database entry. Should be a string
// literal.
// __COMPDB_SYMNAME:
// ATM I can't think of a way to generate a unique symbol name, so just
// force it to be passed in.
__attribute__((section(".llvm.compdb")))
extern const char __COMPDB_SYMNAME[] = "<<<COMPDB:" __COMPDB_ENTRY ">>>";
| Make this file a bit prettier. | Make this file a bit prettier.
| C | mit | chisophugis/clang-compdb-in-object-file,chisophugis/clang-compdb-in-object-file |
1cd869313d2d54aadf44d1958e5a987dee0f1a90 | chainerx_cc/chainerx/kernels/hyperbolic.h | chainerx_cc/chainerx/kernels/hyperbolic.h | #pragma once
#include "chainerx/array.h"
#include "chainerx/kernel.h"
namespace chainerx {
class SinhKernel : public Kernel {
public:
static const char* name() { return "Sinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class CoshKernel : public Kernel {
public:
static const char* name() { return "Cosh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class TanhKernel : public Kernel {
public:
static const char* name() { return "Tanh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class ArcsinhKernel : public Kernel {
public:
static const char* name() { return "Archsinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class ArccoshKernel : public Kernel {
public:
static const char* name() { return "Arccosh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
} // namespace chainerx
| #pragma once
#include "chainerx/array.h"
#include "chainerx/kernel.h"
namespace chainerx {
class SinhKernel : public Kernel {
public:
static const char* name() { return "Sinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class CoshKernel : public Kernel {
public:
static const char* name() { return "Cosh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class TanhKernel : public Kernel {
public:
static const char* name() { return "Tanh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class ArcsinhKernel : public Kernel {
public:
static const char* name() { return "Arcsinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class ArccoshKernel : public Kernel {
public:
static const char* name() { return "Arccosh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
} // namespace chainerx
| Fix a typo in a kernel name | Fix a typo in a kernel name
| C | mit | pfnet/chainer,wkentaro/chainer,chainer/chainer,chainer/chainer,chainer/chainer,niboshi/chainer,chainer/chainer,niboshi/chainer,wkentaro/chainer,hvy/chainer,wkentaro/chainer,hvy/chainer,niboshi/chainer,hvy/chainer,hvy/chainer,niboshi/chainer,wkentaro/chainer |
1d92358eaf7731d75c9feff2a00dbae51abd6893 | src/refract/ElementInserter.h | src/refract/ElementInserter.h | //
// refract/ElementInserter.h
// librefract
//
// Created by Jiri Kratochvil on 17/06/15.
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#ifndef REFRACT_ELEMENTINSERTER_H
#define REFRACT_ELEMENTINSERTER_H
#include <iterator>
namespace refract
{
// Forward declarations of Elements
struct IElement;
template <typename T>
struct ElementInsertIterator : public std::iterator<std::output_iterator_tag, void, void, void, void> {
T& element;
ElementInsertIterator(T& element) : element(element) {}
ElementInsertIterator& operator=(refract::IElement* e) {
element.push_back(e);
return *this;
}
ElementInsertIterator& operator++() {
return *this;
}
ElementInsertIterator& operator*() {
return *this;
}
};
template <typename T>
ElementInsertIterator<T> ElementInserter(T& element) {
return ElementInsertIterator<T>(element);
}
}; // namespace refract
#endif // #ifndef REFRACT_ELEMENTINSERTER_H
| //
// refract/ElementInserter.h
// librefract
//
// Created by Jiri Kratochvil on 17/06/15.
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#ifndef REFRACT_ELEMENTINSERTER_H
#define REFRACT_ELEMENTINSERTER_H
#include <iterator>
namespace refract
{
// Forward declarations of Elements
struct IElement;
template <typename T>
struct ElementInsertIterator : public std::iterator<std::output_iterator_tag, void, void, void, void> {
T& element;
ElementInsertIterator(T& element) : element(element) {}
ElementInsertIterator(const ElementInsertIterator& other) : element(other.element) {}
ElementInsertIterator& operator=(const ElementInsertIterator& other) {
element = other.element;
return *this;
}
ElementInsertIterator& operator=(refract::IElement* e) {
element.push_back(e);
return *this;
}
ElementInsertIterator& operator=(const refract::IElement* e) {
element.push_back(e);
return *this;
}
ElementInsertIterator& operator++() {
return *this;
}
ElementInsertIterator& operator*() {
return *this;
}
};
template <typename T>
ElementInsertIterator<T> ElementInserter(T& element) {
return ElementInsertIterator<T>(element);
}
}; // namespace refract
#endif // #ifndef REFRACT_ELEMENTINSERTER_H
| Add copy c-tor and assign operator to ElementInsertIterator | Add copy c-tor and assign operator to ElementInsertIterator
| C | mit | apiaryio/drafter,apiaryio/drafter,apiaryio/drafter,apiaryio/drafter,apiaryio/drafter |
7cdd88eb941503af0aec0924df41f0adc69a3854 | tensorflow/core/platform/threadpool_options.h | tensorflow/core/platform/threadpool_options.h | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or 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 TENSORFLOW_CORE_PLATFORM_THREADPOOL_OPTIONS_H_
#define TENSORFLOW_CORE_PLATFORM_THREADPOOL_OPTIONS_H_
#include "tensorflow/core/platform/threadpool_interface.h"
namespace tensorflow {
namespace thread {
struct ThreadPoolOptions {
// If not null, use this threadpool to schedule inter-op operation
thread::ThreadPoolInterface* inter_op_threadpool;
// If not null, use this threadpool to schedule intra-op operation
thread::ThreadPoolInterface* intra_op_threadpool;
};
} // namespace thread
} // namespace tensorflow
#endif // TENSORFLOW_CORE_PLATFORM_THREADPOOL_OPTIONS_H_
| /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or 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 TENSORFLOW_CORE_PLATFORM_THREADPOOL_OPTIONS_H_
#define TENSORFLOW_CORE_PLATFORM_THREADPOOL_OPTIONS_H_
#include "tensorflow/core/platform/threadpool_interface.h"
namespace tensorflow {
namespace thread {
struct ThreadPoolOptions {
// If not null, use this threadpool to schedule inter-op operation
thread::ThreadPoolInterface* inter_op_threadpool = nullptr;
// If not null, use this threadpool to schedule intra-op operation
thread::ThreadPoolInterface* intra_op_threadpool = nullptr;
};
} // namespace thread
} // namespace tensorflow
#endif // TENSORFLOW_CORE_PLATFORM_THREADPOOL_OPTIONS_H_
| Initialize the inter and intra-op thread pool pointers in ThreadPoolOptions to nullptr. Otherwise, they may have arbitrary values. | Initialize the inter and intra-op thread pool pointers in ThreadPoolOptions to nullptr. Otherwise, they may have arbitrary values.
PiperOrigin-RevId: 294833933
Change-Id: I95ff98f6a7fe308c59f1c8bf7e1b25f4c68223dc
| C | apache-2.0 | Intel-tensorflow/tensorflow,karllessard/tensorflow,xzturn/tensorflow,annarev/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,annarev/tensorflow,renyi533/tensorflow,aldian/tensorflow,aldian/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,petewarden/tensorflow,yongtang/tensorflow,gunan/tensorflow,yongtang/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,aam-at/tensorflow,karllessard/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,annarev/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,yongtang/tensorflow,aam-at/tensorflow,aam-at/tensorflow,renyi533/tensorflow,annarev/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,gunan/tensorflow,gunan/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,annarev/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,tensorflow/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,frreiss/tensorflow-fred,paolodedios/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,yongtang/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,petewarden/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,renyi533/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,xzturn/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,petewarden/tensorflow,aam-at/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,gunan/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,gunan/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,sarvex/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,yongtang/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,karllessard/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,xzturn/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,gunan/tensorflow |
88f1ce548a1e06c1d40dea57346dcd654f718fb7 | test/Profile/c-linkage-available_externally.c | test/Profile/c-linkage-available_externally.c | // Make sure instrumentation data from available_externally functions doesn't
// get thrown out and are emitted with the expected linkage.
// RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s
// CHECK: @__profc_foo = linkonce_odr hidden global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
// CHECK: @__profd_foo = linkonce_odr hidden global {{.*}} i64* getelementptr inbounds ([1 x i64], [1 x i64]* @__profc_foo, i32 0, i32 0){{.*}}, section "__DATA,__llvm_prf_data", align 8
inline int foo(void) { return 1; }
int main(void) {
return foo();
}
| // Make sure instrumentation data from available_externally functions doesn't
// get thrown out and are emitted with the expected linkage.
// RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s
// CHECK: @__profc_foo = linkonce_odr hidden global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
// CHECK: @__profd_foo = linkonce_odr hidden global {{.*}} i64* getelementptr inbounds ([1 x i64], [1 x i64]* @__profc_foo, i32 0, i32 0){{.*}}, section "__DATA,__llvm_prf_data,regular,live_support", align 8
inline int foo(void) { return 1; }
int main(void) {
return foo();
}
| Update testcase for r283948 (NFC) | [Profile] Update testcase for r283948 (NFC)
Old: "__DATA,__llvm_prf_data"
New: "__DATA,__llvm_prf_data,regular,live_support"
This should fix the following bot failure:
http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/55158
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@283949 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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang |
f2fcf1b8a6fb9bd925ce1b8781e890ee5de5d2db | test/PCH/single-token-macro.c | test/PCH/single-token-macro.c | // rdar://10588825
// Test this without pch.
// RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
// Test with pch.
// RUN: %clang_cc1 %s -emit-pch -o %t
// RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
#ifndef HEADER
#define HEADER
#define SKATA
#define __stdcall
#define STDCALL __stdcall
void STDCALL Foo(void);
#else
void STDCALL Foo(void)
{
}
#endif
| // rdar://10588825
// Test this without pch.
// RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
// Test with pch.
// RUN: %clang_cc1 %s -emit-pch -o %t
// RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
#ifndef HEADER
#define HEADER
#define __stdcall
#define STDCALL __stdcall
void STDCALL Foo(void);
#else
void STDCALL Foo(void)
{
}
#endif
| Remove extraneous line in the test that was mistakenly copied. | [PCH] Remove extraneous line in the test that was mistakenly copied.
No functionality change.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@146825 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/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,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
7552dddfaad48e3ec1bc691ff5bfa9208163169c | C/procon.c | C/procon.c | #include <stdio.h>
#include <stdlib.h>
#define LINE_BUF_SIZE 1024
#define LENGTH(array) (sizeof(array) / sizeof((array)[0]))
int
main(void)
{
static char line[LINE_BUF_SIZE];
while (fgets(line, sizeof(line), stdin) != NULL) {
int a, b;
if (sscanf(line, "%d %d", &a, &b) != 2) {
fputs("sscanf: Convert error\n", stderr);
return EXIT_FAILURE;
}
<+CURSOR+>
}
return EXIT_SUCCESS;
}
| Add a programming contest template for C | Add a programming contest template for C
| C | mit | koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate |
|
a61724096114337cabc8cc51246324874cc004e4 | test/Driver/crash-report.c | test/Driver/crash-report.c | // RUN: %clang -fsyntax-only %s 2>&1 | FileCheck %s
// REQUIRES: crash-recovery
// XFAIL: mingw32,win32
#pragma clang __debug parser_crash
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
// CHECK-NEXT: {{.*}}: note: diagnostic msg: {{.*}}.c
| // RUN: rm %T/crash-report-*.c %T/crash-report-*.sh
// RUN: TMP=%T %clang -fsyntax-only %s -DFOO=BAR 2>&1 | FileCheck %s
// RUN: FileCheck --check-prefix=CHECKSRC %s < %T/crash-report-*.c
// RUN: FileCheck --check-prefix=CHECKSH %s < %T/crash-report-*.sh
// REQUIRES: crash-recovery
// XFAIL: mingw32,win32
#pragma clang __debug parser_crash
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
FOO
// CHECKSRC: FOO
// CHECKSH: -D FOO=BAR
| Improve crash reporting test coverage. | Improve crash reporting test coverage.
This adds validation that the
* repro source is only rewrite-includes processed, not fully preprocessed.
* repro script contains macro definitions (-DFOO=BAR).
Based on suggestions/help by Matt Beaumont-Gay.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@159605 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang |
c1c73801616efa1eda1925ebf64a1a6bce7527e7 | test/Misc/loop-opt-setup.c | test/Misc/loop-opt-setup.c | // RUN: %clang -O1 -fexperimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
// RUN: %clang -O1 -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
extern int a[16];
int b = 0;
int foo(void) {
#pragma unroll
for (int i = 0; i < 16; ++i)
a[i] = b += 2;
return b;
}
// CHECK-NOT: br i1
| // RUN: %clang -O1 -fexperimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
// RUN: %clang -O1 -fno-experimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
extern int a[16];
int b = 0;
int foo(void) {
#pragma unroll
for (int i = 0; i < 16; ++i)
a[i] = b += 2;
return b;
}
// CHECK-NOT: br i1
| Add -fno-experimental-pass-manager to make clear which pass manager we're running and to make flipping the default not regress testing. | Add -fno-experimental-pass-manager to make clear which pass manager
we're running and to make flipping the default not regress testing.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@374840 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang |
c10ff34ae73f5748cc7ab9d5e0cc520f8745509d | RELEASE-NOTES-3.c | RELEASE-NOTES-3.c | Release notes for i3 v3.γ
-----------------------------
This is the third version (3.γ, transcribed 3.c) of i3. It is considered stable.
This release contains many small improvements like using keysymbols in the
configuration file, named workspaces, borderless windows, an IPC interface
etc. (see below for a complete list of changes)
Thanks for this release go out to bapt, badboy, Atsutane, tsdh, xeen, mxf,
and all other people who reported bugs/made suggestions.
Special thanks go to steckdenis, yellowiscool and farvardin who designed a logo
for i3.
A list of changes follows:
* Implement a reload command
* Implement keysymbols in configuration file
* Implement assignments of workspaces to screens
* Implement named workspaces
* Implement borderless/1-px-border windows
* Implement command to focus screens
* Implement IPC via unix sockets
* Correctly render decoration of floating windows
* Map floating windows requesting (0x0) to center of their leader/workspace
* Optimization: Render stack windows on pixmaps to reduce flickering
* Optimization: Directly position new windows to their final position
* Bugfix: Repeatedly try to find screens if none are available
* Bugfix: Correctly redecorate clients when changing focus
* Bugfix: Don’t crash when clients reconfigure themselves
* Bugfix: Fix screen wrapping
* Bugfix: Fix selecting a different screen with your mouse when not having
any windows on the current workspace
* Bugfix: Correctly unmap stack windows and don’t re-map them too early
* Bugfix: Allow switching layout if there are no clients in the this container
* Bugfix: Set WM_STATE_WITHDRAWN when unmapping, unmap windows when
destroying
* Bugfix: Don’t hide assigned clients to inactive but visible workspaces
-- Michael Stapelberg, 2009-08-19
| Add release notes for 3.γ | Add release notes for 3.γ
| C | bsd-3-clause | renlinx007/i3wm,pablospe/i3,Chr1stoph/i3,pablospe/i3,Eelis/i3,FauxFaux/i3,strake/i3,DSMan195276/i3,netzverweigerer/i3,shdown/i3,sa1/i3,jubalh/i3,Airblader/i3-original,tommie/i3,netzverweigerer/i3,gigawhitlocks/i3-hacking,Airblader/i3-original,stfnm/i3,dtomasiewicz/i3,mh21/i3,DSMan195276/i3,FauxFaux/i3,shdown/i3,jubalh/i3,ccryx/i3,Airblader/i3-original,gnomus/i3-wm-gap,stapelberg/i3,dg-ratiodata/i3,avrelaun/i3,shdown/i3,Matmusia/i3,i3/i3,Zopieux/i3,yin/i3,stapelberg/i3,Matmusia/i3,tcreech/i3,pronobis/i3,strake/i3,saksham0808/i3,netzverweigerer/i3,mh21/i3,tommie/i3,DSMan195276/i3,i3/i3,Matmusia/i3,acrisci/i3,mh21/i3,mariusmuja/i3wm,simonnagl/i3,stfnm/i3,simonnagl/i3,Zopieux/i3,mariusmuja/i3wm,acrisci/i3,MForster/i3,cornerman/i3,renlinx007/i3wm,cornerman/i3,Eelis/i3,Kaligule/i3,pablospe/i3,i3/i3,FauxFaux/i3,smrt28/i3,EvilPudding/i3,renlinx007/i3wm,gigawhitlocks/i3-hacking,Matmusia/i3,stapelberg/i3,Chr1stoph/i3,sa1/i3,isharp/i3,dtomasiewicz/i3,yin/i3,EvilPudding/i3,Zopieux/i3,ccryx/i3,Airblader/i3-original,pronobis/i3,EvilPudding/i3,DSMan195276/i3,drbig/i3,Kaligule/i3,stapelberg/i3,Azkae/i3,simonnagl/i3,sa1/i3,jubalh/i3,saksham0808/i3,drbig/i3,Azkae/i3,FauxFaux/i3,shdown/i3,renlinx007/i3wm,Eelis/i3,gigawhitlocks/i3-hacking,acrisci/i3,Kaligule/i3,gnomus/i3-wm-gap,Phlogistique/i3,dg-ratiodata/i3,Airblader/i3,ccryx/i3,dtomasiewicz/i3,sideffect0/i3wm,sideffect0/i3wm,Phlogistique/i3,MForster/i3,ccryx/i3,avrelaun/i3,simonnagl/i3,sa1/i3,drbig/i3,Eelis/i3,Chr1stoph/i3,isharp/i3,Kaligule/i3,isharp/i3,gnomus/i3-wm-gap,yin/i3,Chr1stoph/i3,i3/i3,smrt28/i3,dtomasiewicz/i3,Phlogistique/i3,mariusmuja/i3wm,mariusmuja/i3wm,cornerman/i3,strake/i3,MForster/i3,saksham0808/i3,cornerman/i3,MForster/i3,sideffect0/i3wm,smrt28/i3,dg-ratiodata/i3,Azkae/i3,tcreech/i3,strake/i3,mh21/i3,netzverweigerer/i3,Airblader/i3,isharp/i3,pablospe/i3,saksham0808/i3,Azkae/i3,tcreech/i3,Airblader/i3,gnomus/i3-wm-gap,stfnm/i3,acrisci/i3,avrelaun/i3,EvilPudding/i3,drbig/i3,avrelaun/i3,Airblader/i3-original,pronobis/i3,acrisci/i3,stfnm/i3,tcreech/i3,Airblader/i3,gigawhitlocks/i3-hacking,smrt28/i3,Zopieux/i3,jubalh/i3,strake/i3,yin/i3,pronobis/i3,sideffect0/i3wm,dg-ratiodata/i3 |
|
de514f15cd1bc2ae0bad203d51feafe9b92a9258 | tests/environment_variables/env_var_test.c | tests/environment_variables/env_var_test.c | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char **argv, char **env) {
int count = 0;
char **ptr;
for (ptr = environ; *ptr != NULL; ptr++) {
count++;
}
printf("%i environment variables\n", count);
for (ptr = environ; *ptr != NULL; ptr++) {
printf("%s\n", *ptr);
}
assert(env == environ);
return 0;
}
| /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/*
* In the glibc dynamic linking case, CommandSelLdrTestNacl
* passes LD_LIBRARY_PATH in the environment for tests.
* Ignore this variable for purposes of this test.
*/
static bool skip_env_var(const char *envstring) {
#ifdef __GLIBC__
static const char kLdLibraryPath[] = "LD_LIBRARY_PATH=";
if (!strncmp(envstring, kLdLibraryPath, sizeof(kLdLibraryPath) - 1))
return true;
#endif
return false;
}
int main(int argc, char **argv, char **env) {
int count = 0;
char **ptr;
for (ptr = environ; *ptr != NULL; ptr++) {
if (!skip_env_var(*ptr))
count++;
}
printf("%i environment variables\n", count);
for (ptr = environ; *ptr != NULL; ptr++) {
if (!skip_env_var(*ptr))
puts(*ptr);
}
assert(env == environ);
return 0;
}
| Make environment_variables test ignore LD_LIBRARY_PATH for glibc | Make environment_variables test ignore LD_LIBRARY_PATH for glibc
This test pumps specific values through sel_ldr with -E and then
tests that the entire environment seen by the untrusted program
is exactly that list, using a golden file. CommandSelLdrTestNacl
uses -E to pass LD_LIBRARY_PATH to the nexe for new (ARM) glibc.
So that variable's presence in environ is not a bug.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3068
TEST= trybots + scons platform=arm --nacl_glibc run_env_var_test_irt
[email protected], [email protected]
Review URL: https://codereview.chromium.org/1116963005
| C | bsd-3-clause | sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client |
34b1c5f6bc22dbb512f5d0462153042ffc6407fa | tensorflow/compiler/xla/service/scatter_expander.h | tensorflow/compiler/xla/service/scatter_expander.h | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or 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 TENSORFLOW_COMPILER_XLA_SERVICE_SCATTER_EXPANDER_H_
#define TENSORFLOW_COMPILER_XLA_SERVICE_SCATTER_EXPANDER_H_
#include "tensorflow/compiler/xla/service/hlo_pass_interface.h"
namespace xla {
class ScatterExpander : public HloModulePass {
public:
absl::string_view name() const override { return "scatter_expander"; }
StatusOr<bool> Run(HloModule* module) override;
private:
StatusOr<HloInstruction*> ExpandScatter(HloInstruction* scatter);
};
} // namespace xla
#endif // TENSORFLOW_COMPILER_XLA_SERVICE_SCATTER_EXPANDER_H_
| /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or 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 TENSORFLOW_COMPILER_XLA_SERVICE_SCATTER_EXPANDER_H_
#define TENSORFLOW_COMPILER_XLA_SERVICE_SCATTER_EXPANDER_H_
#include "tensorflow/compiler/xla/service/hlo_pass_interface.h"
namespace xla {
class ScatterExpander : public HloModulePass {
public:
absl::string_view name() const override { return "scatter_expander"; }
StatusOr<bool> Run(HloModule* module) override;
protected:
StatusOr<HloInstruction*> ExpandScatter(HloInstruction* scatter);
};
} // namespace xla
#endif // TENSORFLOW_COMPILER_XLA_SERVICE_SCATTER_EXPANDER_H_
| Make ScatterExpander methods 'protected' to enable overriding them in a subclass. | [XLA] Make ScatterExpander methods 'protected' to enable overriding them in a subclass.
PiperOrigin-RevId: 217914138
| C | apache-2.0 | apark263/tensorflow,seanli9jan/tensorflow,jhseu/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,gunan/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kevin-coder/tensorflow-fork,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,chemelnucfin/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,xzturn/tensorflow,DavidNorman/tensorflow,alshedivat/tensorflow,jbedorf/tensorflow,gunan/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,ppwwyyxx/tensorflow,asimshankar/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,Intel-tensorflow/tensorflow,hehongliang/tensorflow,yongtang/tensorflow,alshedivat/tensorflow,annarev/tensorflow,apark263/tensorflow,aldian/tensorflow,jbedorf/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_saved_model,brchiu/tensorflow,seanli9jan/tensorflow,cxxgtxy/tensorflow,theflofly/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,jendap/tensorflow,DavidNorman/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,hehongliang/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,freedomtan/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,alshedivat/tensorflow,sarvex/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,jendap/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,freedomtan/tensorflow,theflofly/tensorflow,annarev/tensorflow,jendap/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,Intel-tensorflow/tensorflow,ageron/tensorflow,jbedorf/tensorflow,jendap/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,kevin-coder/tensorflow-fork,gunan/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,jendap/tensorflow,gunan/tensorflow,hehongliang/tensorflow,annarev/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ageron/tensorflow,hehongliang/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,arborh/tensorflow,alshedivat/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,sarvex/tensorflow,jbedorf/tensorflow,xzturn/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,brchiu/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,aldian/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,brchiu/tensorflow,jbedorf/tensorflow,hehongliang/tensorflow,annarev/tensorflow,arborh/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,ageron/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,paolodedios/tensorflow,hehongliang/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,Bismarrck/tensorflow,petewarden/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,alshedivat/tensorflow,dongjoon-hyun/tensorflow,seanli9jan/tensorflow,karllessard/tensorflow,annarev/tensorflow,yongtang/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jbedorf/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,petewarden/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,arborh/tensorflow,seanli9jan/tensorflow,theflofly/tensorflow,brchiu/tensorflow,aldian/tensorflow,ghchinoy/tensorflow,aldian/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,ageron/tensorflow,asimshankar/tensorflow,davidzchen/tensorflow,jendap/tensorflow,gautam1858/tensorflow,arborh/tensorflow,renyi533/tensorflow,kevin-coder/tensorflow-fork,chemelnucfin/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,gautam1858/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,asimshankar/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,seanli9jan/tensorflow,alshedivat/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Bismarrck/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,petewarden/tensorflow,gunan/tensorflow,asimshankar/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,petewarden/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,karllessard/tensorflow,hehongliang/tensorflow,seanli9jan/tensorflow,asimshankar/tensorflow,alsrgv/tensorflow,gunan/tensorflow,renyi533/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,ageron/tensorflow,gautam1858/tensorflow,jbedorf/tensorflow,dongjoon-hyun/tensorflow,dongjoon-hyun/tensorflow,theflofly/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,aldian/tensorflow,jhseu/tensorflow,jendap/tensorflow,apark263/tensorflow,Bismarrck/tensorflow,ghchinoy/tensorflow,jhseu/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,jbedorf/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,Bismarrck/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,apark263/tensorflow,frreiss/tensorflow-fred,theflofly/tensorflow,jhseu/tensorflow,chemelnucfin/tensorflow,apark263/tensorflow,xzturn/tensorflow,arborh/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,arborh/tensorflow,aam-at/tensorflow,dongjoon-hyun/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,brchiu/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,dongjoon-hyun/tensorflow,hfp/tensorflow-xsmm,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,ppwwyyxx/tensorflow,dongjoon-hyun/tensorflow,DavidNorman/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,alshedivat/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,seanli9jan/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,kevin-coder/tensorflow-fork,frreiss/tensorflow-fred,seanli9jan/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ghchinoy/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,ageron/tensorflow,theflofly/tensorflow,annarev/tensorflow,ghchinoy/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,apark263/tensorflow,paolodedios/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,jhseu/tensorflow,hfp/tensorflow-xsmm,brchiu/tensorflow,gunan/tensorflow,gautam1858/tensorflow,apark263/tensorflow,theflofly/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,annarev/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,asimshankar/tensorflow,apark263/tensorflow,aldian/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Bismarrck/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,theflofly/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,aldian/tensorflow,kevin-coder/tensorflow-fork,annarev/tensorflow,apark263/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,seanli9jan/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,petewarden/tensorflow,jendap/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,alshedivat/tensorflow,davidzchen/tensorflow,chemelnucfin/tensorflow,cxxgtxy/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,adit-chandra/tensorflow,ageron/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,ageron/tensorflow,adit-chandra/tensorflow,sarvex/tensorflow,ageron/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,renyi533/tensorflow,hfp/tensorflow-xsmm,cxxgtxy/tensorflow,dongjoon-hyun/tensorflow,annarev/tensorflow,kevin-coder/tensorflow-fork,hfp/tensorflow-xsmm,DavidNorman/tensorflow,brchiu/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,yongtang/tensorflow,chemelnucfin/tensorflow,xzturn/tensorflow,dongjoon-hyun/tensorflow,brchiu/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,DavidNorman/tensorflow,asimshankar/tensorflow,renyi533/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,kevin-coder/tensorflow-fork,cxxgtxy/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jendap/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,apark263/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,frreiss/tensorflow-fred,jbedorf/tensorflow,hfp/tensorflow-xsmm,aam-at/tensorflow,DavidNorman/tensorflow,alshedivat/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,ghchinoy/tensorflow,ageron/tensorflow,paolodedios/tensorflow,gunan/tensorflow,sarvex/tensorflow,ageron/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,brchiu/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,karllessard/tensorflow,arborh/tensorflow |
9be8ac9ad3f94875a9381555d8859f289c59d6df | application/browser/application_system_linux.h | application/browser/application_system_linux.h | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_APPLICATION_BROWSER_APPLICATION_SYSTEM_LINUX_H_
#define XWALK_APPLICATION_BROWSER_APPLICATION_SYSTEM_LINUX_H_
#include "xwalk/application/browser/application_system.h"
namespace xwalk {
class DBusManager;
}
namespace xwalk {
namespace application {
class ApplicationServiceProviderLinux;
class ApplicationSystemLinux : public ApplicationSystem {
public:
explicit ApplicationSystemLinux(RuntimeContext* runtime_context);
virtual ~ApplicationSystemLinux();
DBusManager& dbus_manager();
private:
scoped_ptr<ApplicationServiceProviderLinux> service_provider_;
scoped_ptr<DBusManager> dbus_manager_;
DISALLOW_COPY_AND_ASSIGN(ApplicationSystemLinux);
};
} // namespace application
} // namespace xwalk
#endif // XWALK_APPLICATION_BROWSER_APPLICATION_SYSTEM_LINUX_H_
| // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_APPLICATION_BROWSER_APPLICATION_SYSTEM_LINUX_H_
#define XWALK_APPLICATION_BROWSER_APPLICATION_SYSTEM_LINUX_H_
#include "xwalk/application/browser/application_system.h"
namespace xwalk {
class DBusManager;
}
namespace xwalk {
namespace application {
class ApplicationServiceProviderLinux;
class ApplicationSystemLinux : public ApplicationSystem {
public:
explicit ApplicationSystemLinux(RuntimeContext* runtime_context);
virtual ~ApplicationSystemLinux();
DBusManager& dbus_manager();
private:
scoped_ptr<DBusManager> dbus_manager_;
scoped_ptr<ApplicationServiceProviderLinux> service_provider_;
DISALLOW_COPY_AND_ASSIGN(ApplicationSystemLinux);
};
} // namespace application
} // namespace xwalk
#endif // XWALK_APPLICATION_BROWSER_APPLICATION_SYSTEM_LINUX_H_
| Fix crash when shutting down | [Application][D-Bus] Fix crash when shutting down
DBusManager owns the Bus connection and was being destroyed before the
service provider that uses it.
TEST=Loaded xwalk --run-as-service and xwalkctl <APP_ID> then closed the
window. The first process should not crash but exit cleanly.
| C | bsd-3-clause | tedshroyer/crosswalk,minggangw/crosswalk,axinging/crosswalk,xzhan96/crosswalk,RafuCater/crosswalk,tedshroyer/crosswalk,stonegithubs/crosswalk,dreamsxin/crosswalk,Bysmyyr/crosswalk,crosswalk-project/crosswalk-efl,siovene/crosswalk,RafuCater/crosswalk,axinging/crosswalk,darktears/crosswalk,chinakids/crosswalk,xzhan96/crosswalk,darktears/crosswalk,ZhengXinCN/crosswalk,dreamsxin/crosswalk,stonegithubs/crosswalk,PeterWangIntel/crosswalk,chuan9/crosswalk,chuan9/crosswalk,fujunwei/crosswalk,chuan9/crosswalk,bestwpw/crosswalk,chuan9/crosswalk,lincsoon/crosswalk,tedshroyer/crosswalk,jpike88/crosswalk,lincsoon/crosswalk,weiyirong/crosswalk-1,huningxin/crosswalk,siovene/crosswalk,amaniak/crosswalk,chinakids/crosswalk,jpike88/crosswalk,qjia7/crosswalk,minggangw/crosswalk,crosswalk-project/crosswalk-efl,bestwpw/crosswalk,shaochangbin/crosswalk,tomatell/crosswalk,jpike88/crosswalk,crosswalk-project/crosswalk-efl,crosswalk-project/crosswalk-efl,minggangw/crosswalk,siovene/crosswalk,tedshroyer/crosswalk,hgl888/crosswalk-efl,marcuspridham/crosswalk,jondong/crosswalk,amaniak/crosswalk,hgl888/crosswalk,siovene/crosswalk,TheDirtyCalvinist/spacewalk,bestwpw/crosswalk,hgl888/crosswalk,weiyirong/crosswalk-1,hgl888/crosswalk,ZhengXinCN/crosswalk,lincsoon/crosswalk,stonegithubs/crosswalk,lincsoon/crosswalk,PeterWangIntel/crosswalk,pk-sam/crosswalk,mrunalk/crosswalk,baleboy/crosswalk,jondwillis/crosswalk,XiaosongWei/crosswalk,RafuCater/crosswalk,DonnaWuDongxia/crosswalk,TheDirtyCalvinist/spacewalk,XiaosongWei/crosswalk,crosswalk-project/crosswalk,zliang7/crosswalk,stonegithubs/crosswalk,shaochangbin/crosswalk,huningxin/crosswalk,TheDirtyCalvinist/spacewalk,lincsoon/crosswalk,shaochangbin/crosswalk,amaniak/crosswalk,qjia7/crosswalk,dreamsxin/crosswalk,myroot/crosswalk,crosswalk-project/crosswalk,zeropool/crosswalk,baleboy/crosswalk,jondwillis/crosswalk,stonegithubs/crosswalk,pk-sam/crosswalk,stonegithubs/crosswalk,fujunwei/crosswalk,tedshroyer/crosswalk,ZhengXinCN/crosswalk,minggangw/crosswalk,zeropool/crosswalk,pk-sam/crosswalk,leonhsl/crosswalk,minggangw/crosswalk,axinging/crosswalk,chuan9/crosswalk,baleboy/crosswalk,hgl888/crosswalk,fujunwei/crosswalk,zeropool/crosswalk,axinging/crosswalk,bestwpw/crosswalk,baleboy/crosswalk,marcuspridham/crosswalk,shaochangbin/crosswalk,dreamsxin/crosswalk,alex-zhang/crosswalk,RafuCater/crosswalk,PeterWangIntel/crosswalk,huningxin/crosswalk,jpike88/crosswalk,hgl888/crosswalk,hgl888/crosswalk-efl,TheDirtyCalvinist/spacewalk,heke123/crosswalk,DonnaWuDongxia/crosswalk,qjia7/crosswalk,marcuspridham/crosswalk,heke123/crosswalk,weiyirong/crosswalk-1,Bysmyyr/crosswalk,myroot/crosswalk,hgl888/crosswalk,rakuco/crosswalk,fujunwei/crosswalk,jondwillis/crosswalk,qjia7/crosswalk,zliang7/crosswalk,amaniak/crosswalk,tomatell/crosswalk,shaochangbin/crosswalk,rakuco/crosswalk,siovene/crosswalk,weiyirong/crosswalk-1,xzhan96/crosswalk,marcuspridham/crosswalk,DonnaWuDongxia/crosswalk,PeterWangIntel/crosswalk,DonnaWuDongxia/crosswalk,chinakids/crosswalk,lincsoon/crosswalk,heke123/crosswalk,pk-sam/crosswalk,rakuco/crosswalk,tomatell/crosswalk,huningxin/crosswalk,siovene/crosswalk,rakuco/crosswalk,jondwillis/crosswalk,darktears/crosswalk,axinging/crosswalk,alex-zhang/crosswalk,zliang7/crosswalk,RafuCater/crosswalk,zeropool/crosswalk,marcuspridham/crosswalk,bestwpw/crosswalk,heke123/crosswalk,lincsoon/crosswalk,hgl888/crosswalk-efl,Bysmyyr/crosswalk,zliang7/crosswalk,jondwillis/crosswalk,TheDirtyCalvinist/spacewalk,crosswalk-project/crosswalk,XiaosongWei/crosswalk,heke123/crosswalk,huningxin/crosswalk,Pluto-tv/crosswalk,hgl888/crosswalk,leonhsl/crosswalk,rakuco/crosswalk,alex-zhang/crosswalk,crosswalk-project/crosswalk,qjia7/crosswalk,Bysmyyr/crosswalk,jpike88/crosswalk,zliang7/crosswalk,minggangw/crosswalk,Pluto-tv/crosswalk,crosswalk-project/crosswalk-efl,axinging/crosswalk,ZhengXinCN/crosswalk,baleboy/crosswalk,tedshroyer/crosswalk,jondong/crosswalk,marcuspridham/crosswalk,baleboy/crosswalk,hgl888/crosswalk-efl,zeropool/crosswalk,marcuspridham/crosswalk,alex-zhang/crosswalk,zeropool/crosswalk,TheDirtyCalvinist/spacewalk,tedshroyer/crosswalk,XiaosongWei/crosswalk,mrunalk/crosswalk,huningxin/crosswalk,Bysmyyr/crosswalk,Pluto-tv/crosswalk,Bysmyyr/crosswalk,chinakids/crosswalk,xzhan96/crosswalk,darktears/crosswalk,marcuspridham/crosswalk,RafuCater/crosswalk,Pluto-tv/crosswalk,amaniak/crosswalk,leonhsl/crosswalk,DonnaWuDongxia/crosswalk,myroot/crosswalk,alex-zhang/crosswalk,mrunalk/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk,Bysmyyr/crosswalk,Bysmyyr/crosswalk,tomatell/crosswalk,fujunwei/crosswalk,zliang7/crosswalk,jpike88/crosswalk,fujunwei/crosswalk,pk-sam/crosswalk,zliang7/crosswalk,Pluto-tv/crosswalk,rakuco/crosswalk,tomatell/crosswalk,jondwillis/crosswalk,ZhengXinCN/crosswalk,shaochangbin/crosswalk,bestwpw/crosswalk,XiaosongWei/crosswalk,myroot/crosswalk,siovene/crosswalk,zeropool/crosswalk,dreamsxin/crosswalk,stonegithubs/crosswalk,DonnaWuDongxia/crosswalk,bestwpw/crosswalk,jondong/crosswalk,leonhsl/crosswalk,xzhan96/crosswalk,fujunwei/crosswalk,axinging/crosswalk,jondong/crosswalk,lincsoon/crosswalk,weiyirong/crosswalk-1,darktears/crosswalk,heke123/crosswalk,RafuCater/crosswalk,darktears/crosswalk,minggangw/crosswalk,ZhengXinCN/crosswalk,chinakids/crosswalk,hgl888/crosswalk-efl,leonhsl/crosswalk,leonhsl/crosswalk,qjia7/crosswalk,tomatell/crosswalk,xzhan96/crosswalk,dreamsxin/crosswalk,crosswalk-project/crosswalk,jondwillis/crosswalk,weiyirong/crosswalk-1,darktears/crosswalk,tomatell/crosswalk,crosswalk-project/crosswalk,amaniak/crosswalk,darktears/crosswalk,chuan9/crosswalk,baleboy/crosswalk,crosswalk-project/crosswalk-efl,crosswalk-project/crosswalk,weiyirong/crosswalk-1,Pluto-tv/crosswalk,myroot/crosswalk,myroot/crosswalk,rakuco/crosswalk,rakuco/crosswalk,mrunalk/crosswalk,minggangw/crosswalk,XiaosongWei/crosswalk,ZhengXinCN/crosswalk,jondong/crosswalk,chuan9/crosswalk,heke123/crosswalk,mrunalk/crosswalk,XiaosongWei/crosswalk,crosswalk-project/crosswalk-efl,PeterWangIntel/crosswalk,alex-zhang/crosswalk,jondong/crosswalk,pk-sam/crosswalk,PeterWangIntel/crosswalk,jpike88/crosswalk,jondong/crosswalk,mrunalk/crosswalk,dreamsxin/crosswalk,xzhan96/crosswalk,amaniak/crosswalk,chinakids/crosswalk,DonnaWuDongxia/crosswalk,jondong/crosswalk,PeterWangIntel/crosswalk,heke123/crosswalk,pk-sam/crosswalk,zliang7/crosswalk,hgl888/crosswalk-efl,alex-zhang/crosswalk,hgl888/crosswalk,hgl888/crosswalk-efl,leonhsl/crosswalk,Pluto-tv/crosswalk,baleboy/crosswalk |
fc0fdb4850d5dd1808c4f76e809013c842230bb5 | RxCocoa/Common/_RXDelegateProxy.h | RxCocoa/Common/_RXDelegateProxy.h | //
// _RXDelegateProxy.h
// RxCocoa
//
// Created by Krunoslav Zaher on 7/4/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface _RXDelegateProxy : NSObject
@property (nonatomic, assign, readonly) id _forwardToDelegate;
-(void)_setForwardToDelegate:(id)forwardToDelegate retainDelegate:(BOOL)retainDelegate;
-(BOOL)hasWiredImplementationForSelector:(SEL)selector;
-(void)interceptedSelector:(SEL)selector withArguments:(NSArray*)arguments;
@end
| //
// _RXDelegateProxy.h
// RxCocoa
//
// Created by Krunoslav Zaher on 7/4/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface _RXDelegateProxy : NSObject
@property (nonatomic, weak, readonly) id _forwardToDelegate;
-(void)_setForwardToDelegate:(id)forwardToDelegate retainDelegate:(BOOL)retainDelegate;
-(BOOL)hasWiredImplementationForSelector:(SEL)selector;
-(void)interceptedSelector:(SEL)selector withArguments:(NSArray*)arguments;
@end
| Change _forwardToDelegate to weak reference | Change _forwardToDelegate to weak reference
| C | mit | shiratsu/RxSwift,shiratsu/RxSwift,KyoheiG3/RxSwift,shiratsu/RxSwift,KyoheiG3/RxSwift,cfraz89/RxSwift,ReactiveX/RxSwift,tottakai/RxSwift,cfraz89/RxSwift,kzaher/RxSwift,kzaher/RxSwift,ReactiveX/RxSwift,kzaher/RxSwift,ReactiveX/RxSwift,tottakai/RxSwift,KyoheiG3/RxSwift,cfraz89/RxSwift,kzaher/RxSwift,tottakai/RxSwift,cfraz89/RxSwift |
9bf1cd7fc3550b5d79e13d4254efcd313739fe7e | adm/cmake/TKService/Precompiled.h | adm/cmake/TKService/Precompiled.h | #pragma once
#include "../TKernel/Precompiled.h"
#include "../TKMath/Precompiled.h"
#include "Standard.hxx"
#include "Aspect.hxx"
#include "Aspect_Handle.hxx"
#include "Image.hxx"
#include "SelectBasics.hxx"
| #pragma once
#include "../TKernel/Precompiled.h"
#include "../TKMath/Precompiled.h"
#include "Standard.hxx"
#include "Aspect.hxx"
#include "Aspect_Handle.hxx"
#include "SelectBasics.hxx"
| Fix precompiled headers, Image.hxx has been removed from OCCT 6.7.0 | Fix precompiled headers, Image.hxx has been removed from OCCT 6.7.0
| C | lgpl-2.1 | finetjul/oce,BenoitPerrot/oce,heartvalve/oce,BenoitPerrot/oce,finetjul/oce,heartvalve/oce,heartvalve/oce,tpaviot/oce,EvgeneOskin/oce,Tech-XCorp/oce,finetjul/oce,BenoitPerrot/oce,tpaviot/oce,mathstuf/oce,tpaviot/oce,Tridify/oce,tpaviot/oce,tpaviot/oce,Tech-XCorp/oce,finetjul/oce,Tridify/oce,Tridify/oce,mathstuf/oce,mathstuf/oce,EvgeneOskin/oce,heartvalve/oce,EvgeneOskin/oce,Tridify/oce,BenoitPerrot/oce,EvgeneOskin/oce,BenoitPerrot/oce,heartvalve/oce,mathstuf/oce,Tech-XCorp/oce,finetjul/oce,Tridify/oce,mathstuf/oce,Tech-XCorp/oce,Tech-XCorp/oce,EvgeneOskin/oce |
2ed204919448fbe01f632dad7c6772bf7a83189a | ex01-19.c | ex01-19.c | /** Exercise 1.19
* Write a function reverse(s) that reverses the character string s. Use it to
* write a program that reverses its input a line at a time.
*/
#include <stdio.h>
#define BUFSIZE 1024
int _getline(char[], int);
void reverse(char[], int);
main() {
char line[BUFSIZE];
int length;
while ((length = _getline(line, BUFSIZE)) > 0) {
if (line[length-1] == '\n') {
length--;
}
reverse(line, length);
printf("%s", line);
}
return 0;
}
int _getline(char s[], int lim) {
int c, i;
for (i=0; i<lim-1 && (c=getchar())!=EOF && c != '\n'; ++i) {
s[i] = c;
}
if (c == '\n') {
s[i] = c;
++i;
}
s[i] = '\0';
return i;
}
void reverse(char s[], int size) {
if (size < 2) {
return;
}
int i, j;
char tmp;
for (i = 0, j = size - 1; i < size/2; ++i, --j) {
tmp = s[i];
s[i] = s[j];
s[j] = tmp;
}
}
| Add solution for exercise 19. | Add solution for exercise 19.
| C | unlicense | kdungs/exercises-KnR |
|
0249741443cad6e6de2f1c63765d9508733ec711 | Hauth/Hauth.h | Hauth/Hauth.h | //
// Hauth.h
// Hauth
//
// Created by Rizwan Sattar on 11/7/15.
// Copyright © 2015 Rizwan Sattar. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Hauth.
FOUNDATION_EXPORT double HauthVersionNumber;
//! Project version string for Hauth.
FOUNDATION_EXPORT const unsigned char HauthVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <Hauth/PublicHeader.h>
#import <Hauth/HauthStreamsController.h>
#import <Hauth/HauthClient.h>
#import <Hauth/HauthServer.h>
| //
// Hauth.h
// Hauth
//
// Created by Rizwan Sattar on 11/7/15.
// Copyright © 2015 Rizwan Sattar. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Hauth.
FOUNDATION_EXPORT double HauthVersionNumber;
//! Project version string for Hauth.
FOUNDATION_EXPORT const unsigned char HauthVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <Hauth/PublicHeader.h>
// NOTE: In Xcode 7.1, if two frameworks have the same module name ("Hauth"),
// then sometimes one of the frameworks (in my case, tvOS) doesn't compile correctly,
// complaining of the inclusion of "non-modular headers". So make these
// non modular import calls here.
#import "HauthStreamsController.h"
#import "HauthClient.h"
#import "HauthServer.h"
//#import <Hauth/HauthStreamsController.h>
//#import <Hauth/HauthClient.h>
//#import <Hauth/HauthServer.h>
| Use "" imports instead of <> in main fmwk header | Use "" imports instead of <> in main fmwk header
Xcode 7.1 seems to be having issues with the framework being the same module name and existing as 2 different targets (one tvOS, and one iOS). It complains in the tvOS app that the framework includes 'non-modular' headers in the framework. Changing it to quotes for now seems to fix this. Let's revisit with Xcode 7.2
| C | mit | almas73/Voucher,rsattar/Voucher,almas73/Voucher,rsattar/Voucher |
defd9b3ae1e0b567242f68307af74272edd24a96 | config.h | config.h | #ifdef __linux__
# define _GNU_SOURCE
# include <bsd/stdlib.h>
# include <grp.h>
int setresgid(gid_t, gid_t, gid_t);
int setresuid(gid_t, gid_t, gid_t);
#endif
#ifdef __FreeBSD__
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <resolv.h>
#endif
| /*
* Require libbsd's stdlib.h for arc4random() etc.
* Require <grp.h> for setgroups().
*/
#ifdef __linux__
# define _GNU_SOURCE
# include <bsd/stdlib.h>
# include <grp.h>
#endif
/*
* Neither Linux nor Apple have this.
*/
#if defined(__linux__) || defined(__APPLE__)
# include <unistd.h>
int setresgid(gid_t, gid_t, gid_t);
int setresuid(gid_t, gid_t, gid_t);
#endif
/*
* FreeBSD goop.
*/
#ifdef __FreeBSD__
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <resolv.h>
#endif
| Document goop and have both Linux and Mac OS X define setresuid et al. | Document goop and have both Linux and Mac OS X define setresuid et al.
| C | isc | kristapsdz/letskencrypt-portable |
535d84e007d476364e0e3c40fd3ac9c6bb230b5b | src/appleseed.shaders/include/appleseed/maya/as_maya_transform_helpers.h | src/appleseed.shaders/include/appleseed/maya/as_maya_transform_helpers.h |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016 Luis Barrancos, The appleseedhq Organization
//
// 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.
//
#ifndef AS_MAYA_TRANSFORM_HELPERS_H
#define AS_MAYA_TRANSFORM_HELPERS_H
int outside_place3d_volume(
point surface_point,
int wrap,
float blend,
output float blend_factor)
{
int outside = 0;
blend_factor = 0.0;
if (!wrap || blend)
{
if (!wrap)
{
// Default placement box bottom = (-1,-1,-1), top = (1,1,1), Δ=2.
if (surface_point[0] < -1 || surface_point[0] > 1 ||
surface_point[1] < -1 || surface_point[1] > 1 ||
surface_point[2] < -1 || surface_point[2] > 1)
{
outside = 1;
}
else if (blend)
{
float min_distance = 1.0e+19;
for (int i = 0; i < 3; ++i)
{
min_distance = min(min_distance, min(
abs(surface_point[i] - 1),
abs(surface_point[i] + 1)));
}
blend_factor = min_distance * 0.5; // Δ=2
}
}
}
return outside;
}
#endif // AS_MAYA_TRANSFORM_HELPERS_H
| Add placement3d node auxiliary functions | Add placement3d node auxiliary functions
| C | mit | dictoon/appleseed,Biart95/appleseed,luisbarrancos/appleseed,Aakash1312/appleseed,dictoon/appleseed,glebmish/appleseed,Biart95/appleseed,pjessesco/appleseed,appleseedhq/appleseed,est77/appleseed,pjessesco/appleseed,pjessesco/appleseed,appleseedhq/appleseed,gospodnetic/appleseed,Aakash1312/appleseed,est77/appleseed,glebmish/appleseed,aiivashchenko/appleseed,pjessesco/appleseed,Aakash1312/appleseed,luisbarrancos/appleseed,Aakash1312/appleseed,est77/appleseed,aiivashchenko/appleseed,aytekaman/appleseed,dictoon/appleseed,gospodnetic/appleseed,luisbarrancos/appleseed,Biart95/appleseed,gospodnetic/appleseed,Vertexwahn/appleseed,Vertexwahn/appleseed,luisbarrancos/appleseed,aiivashchenko/appleseed,appleseedhq/appleseed,gospodnetic/appleseed,Aakash1312/appleseed,gospodnetic/appleseed,aytekaman/appleseed,est77/appleseed,glebmish/appleseed,glebmish/appleseed,dictoon/appleseed,Biart95/appleseed,aiivashchenko/appleseed,aytekaman/appleseed,dictoon/appleseed,pjessesco/appleseed,aytekaman/appleseed,Vertexwahn/appleseed,glebmish/appleseed,appleseedhq/appleseed,est77/appleseed,aytekaman/appleseed,Biart95/appleseed,Vertexwahn/appleseed,appleseedhq/appleseed,luisbarrancos/appleseed,aiivashchenko/appleseed,Vertexwahn/appleseed |
|
fd1cb2861f5037415d2899b4dfff0c60fcdb040d | Pod/Classes/CMHMutedEventUpdater.h | Pod/Classes/CMHMutedEventUpdater.h | #import <CareKit/CareKit.h>
@interface CMHMutedEventUpdater : NSObject
- (instancetype)initWithCarePlanStore:(OCKCarePlanStore *)store
event:(OCKCarePlanEvent *)event
result:(OCKCarePlanEventResult *)result
state:(OCKCarePlanEventState)state;
- (NSError *_Nullable)performUpdate;
@end
| #import <CareKit/CareKit.h>
@interface CMHMutedEventUpdater : NSObject
- (_Nonnull instancetype)initWithCarePlanStore:(OCKCarePlanStore *_Nonnull)store
event:(OCKCarePlanEvent *_Nonnull)event
result:(OCKCarePlanEventResult *_Nullable)result
state:(OCKCarePlanEventState)state;
- (NSError *_Nullable)performUpdate;
@end
| Add Nullability annotations to the event updater class | Add Nullability annotations to the event updater class
| C | mit | cloudmine/CMHealthSDK,cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK-iOS |
74a6a6671adf43987f017e83bf2de55a2c29fc0e | src/libclientserver/ThreadPool.h | src/libclientserver/ThreadPool.h |
class ThreadPoolThread;
class ThreadPool {
public:
ThreadPool();
ThreadPool(int nthread);
ThreadPool(int nthread, size_t maxqueue);
~ThreadPool();
void Add(std::function<void()> func);
void Flush();
void Execute();
size_t GetCount();
size_t GetHWCount();
protected:
void Init(int nthread, size_t maxqueue);
private:
std::atomic<uint64_t> m_totalqueued;
std::atomic<uint64_t> m_totalexecuted;
Queue<std::function<void()> > m_queue;
std::list<ThreadPoolThread *> m_threads;
};
|
class ThreadPoolThread;
class ThreadPool {
public:
ThreadPool();
ThreadPool(int nthread);
ThreadPool(int nthread, size_t maxqueue);
~ThreadPool();
void Add(std::function<void()> func);
void Flush();
void Execute();
size_t GetCount();
size_t GetHWCount();
protected:
void Init(int nthread, size_t maxqueue);
private:
std::atomic<uint64_t> m_totalqueued;
std::atomic<uint64_t> m_totalexecuted;
Queue<std::function<void()> > m_queue;
std::list<ThreadPoolThread *> m_threads;
};
| Convert from tabs -> spaces | Convert from tabs -> spaces
| C | mit | mistralol/libclientserver,mistralol/libclientserver |
80d3768eb5c31cd5af0b2df6648fa22e79e35379 | test/main.c | test/main.c | /***************************************************************************//**
@file main.c
@author Stephen Brennan
@date Created Thursday, 12 September 2013
@brief Run tests on the libstephen library.
@copyright Copyright (c) 2013-2015, Stephen Brennan. Released under the
Revised BSD License. See the LICENSE.txt file for details.
*******************************************************************************/
#include <stdio.h>
#include "libstephen/base.h"
#include "tests.h"
/**
Main test function
*/
int main(int argc, char ** argv)
{
linked_list_test();
array_list_test();
hash_table_test();
bit_field_test();
iter_test();
list_test();
args_test();
charbuf_test();
log_test();
string_test();
fsm_test();
fsm_io_test();
regex_test();
regex_search_test();
// return args_test_main(argc, argv);
}
| /***************************************************************************//**
@file main.c
@author Stephen Brennan
@date Created Thursday, 12 September 2013
@brief Run tests on the libstephen library.
@copyright Copyright (c) 2013-2015, Stephen Brennan. Released under the
Revised BSD License. See the LICENSE.txt file for details.
*******************************************************************************/
#include <stdio.h>
#include "libstephen/base.h"
#include "libstephen/log.h"
#include "tests.h"
/**
Main test function
*/
int main(int argc, char ** argv)
{
sl_set_level(NULL, LEVEL_INFO);
linked_list_test();
array_list_test();
hash_table_test();
bit_field_test();
iter_test();
list_test();
args_test();
charbuf_test();
string_test();
fsm_test();
fsm_io_test();
regex_test();
regex_search_test();
log_test();
// return args_test_main(argc, argv);
}
| Set log level in tests. | Set log level in tests.
| C | bsd-3-clause | brenns10/libstephen,brenns10/libstephen,brenns10/libstephen |
35c70ef4e01c901d577e27113b761138f0769a03 | src/config.h | src/config.h | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef CONFIG_H
#define CONFIG_H 1
#ifdef WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#else
#if !defined(__cplusplus) && !defined(linux) && !defined(__GNUC__)
typedef unsigned long long uint64_t;
typedef long long int64_t;
#endif
#ifndef _POSIX_PTHREAD_SEMANTICS
#define _POSIX_PTHREAD_SEMANTICS
#endif
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <pwd.h>
#include <sys/time.h>
#include <signal.h>
#endif
/* Common section */
#include <stdlib.h>
#include <inttypes.h>
#include <sys/types.h>
#include <platform/platform.h>
#endif
| /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef CONFIG_H
#define CONFIG_H 1
#ifdef WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#else
#if !defined(__cplusplus) && !defined(linux) && !defined(__GNUC__)
typedef unsigned long long uint64_t;
typedef long long int64_t;
#endif
#ifndef _POSIX_PTHREAD_SEMANTICS
#define _POSIX_PTHREAD_SEMANTICS
#endif
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <pwd.h>
#include <sys/time.h>
#include <signal.h>
#include <inttypes.h>
#endif
/* Common section */
#include <stdlib.h>
#include <sys/types.h>
#include <platform/platform.h>
#endif
| Fix build problem on W2008 in /xp /x86 /release mode | Fix build problem on W2008 in /xp /x86 /release mode
Change-Id: I1d51e4f9b1e0ae9f6df28a22bf13a5ab6bf55ab8
Reviewed-on: http://review.couchbase.org/28476
Reviewed-by: Trond Norbye <[email protected]>
Tested-by: Trond Norbye <[email protected]>
| C | apache-2.0 | vmx/platform,trondn/platform,vmx/platform |
d17361a30e052dcde451c02d97c8b37bd602e4e6 | test/__attribute__/weak/weak_const.c | test/__attribute__/weak/weak_const.c | // RUN: %check --only -e %s -Wno-incompatible-pointer-types '-DERROR(...)=__VA_ARGS__'
// RUN: %ucc -fsyntax-only %s '-DERROR(...)=' -Wno-incompatible-pointer-types -Wno-arith-funcptr
enum { false };
__attribute((weak)) void w();
void f();
ERROR(int shortcircuit_weak_1 = w && 1;) // CHECK: error: global scalar initialiser not constant
ERROR(int shortcircuit_weak_2 = w && 0;) // CHECK: error: global scalar initialiser not constant
ERROR(int shortcircuit_weak_3 = 1 && w;) // CHECK: error: global scalar initialiser not constant
_Static_assert((0 && w) == false, "");
ERROR(int shortcircuit_weak_5 = w || 1;) // CHECK: error: global scalar initialiser not constant
ERROR(int shortcircuit_weak_6 = w || 0;) // CHECK: error: global scalar initialiser not constant
_Static_assert(1 || w, "");
ERROR(int shortcircuit_weak_8 = 0 || w;) // CHECK: error: global scalar initialiser not constant
_Static_assert(f && 1, "");
_Static_assert((f && 0) == false, "");
_Static_assert(1 && f, "");
_Static_assert((0 && f) == false, "");
_Static_assert(f || 1, "");
_Static_assert(f || 0, "");
_Static_assert(1 || f, "");
_Static_assert(0 || f, "");
// ---------
void (*arith_fptr_1)() = f + 2; // CHECK: warning: arithmetic on function pointer 'void (*)()'
void (*arith_fptr_2)() = w + 2; // CHECK: warning: arithmetic on function pointer 'void (*)()'
_Static_assert(!&f == false, "");
ERROR(int arith_2 = !&w;) // CHECK: error: global scalar initialiser not constant
_Static_assert(!f == false, "");
ERROR(int arith_4 = !w;) // CHECK: error: global scalar initialiser not constant
_Static_assert((0 == f) == false, "");
ERROR(int arith_6 = 0 == w;) // CHECK: error: global scalar initialiser not constant
_Static_assert(0 != f, "");
ERROR(int arith_8 = 0 != w;) // CHECK: error: global scalar initialiser not constant
_Static_assert((f == w) == false, "");
_Static_assert(f != w, "");
_Static_assert((f - f) == false, "");
_Static_assert((w - w) == false, "");
ERROR(int arith_13 = f - w;) // CHECK: error: global scalar initialiser not constant
ERROR(int arith_14 = w - f;) // CHECK: error: global scalar initialiser not constant
| Test constant-folding of weak identifiers | Test constant-folding of weak identifiers
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
|
4e451a5b83acf9675b5d60320069d804a9b93141 | vox-desk-qt/plugins/servermon/vvservermondialog.h | vox-desk-qt/plugins/servermon/vvservermondialog.h | // Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, [email protected]
//
// This file is part of Virvo.
//
// Virvo 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 (see license.txt); if not, write to the
// Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef VV_SERVERMONDIALOG_H
#define VV_SERVERMONDIALOG_h
#include <QDialog>
class Ui_ServerMonDialog;
class vvServerMonDialog : public QDialog
{
Q_OBJECT
public:
vvServerMonDialog(QWidget* parent = 0);
~vvServerMonDialog();
private:
Ui_ServerMonDialog* ui;
};
#endif
| // Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, [email protected]
//
// This file is part of Virvo.
//
// Virvo 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 (see license.txt); if not, write to the
// Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef VV_SERVERMONDIALOG_H
#define VV_SERVERMONDIALOG_H
#include <QDialog>
class Ui_ServerMonDialog;
class vvServerMonDialog : public QDialog
{
Q_OBJECT
public:
vvServerMonDialog(QWidget* parent = 0);
~vvServerMonDialog();
private:
Ui_ServerMonDialog* ui;
};
#endif
| Fix typo in header guard | Fix typo in header guard
| C | lgpl-2.1 | deskvox/deskvox,deskvox/deskvox,deskvox/deskvox,deskvox/deskvox,deskvox/deskvox |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.