commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
59be11a20543d3d19d00ac9f57e703e98475852a | Animation.h | Animation.h | #ifndef ANIMATION_H
#define ANIMATION_H
#include <vector>
#include "Blittable.h"
namespace hm
{
class Animation
{
public:
Animation();
~Animation();
void add(const Blittable& b);
void remove(const Blittable& b);
void removeAll();
virtual void animate() = 0;
protected:
std::vector<Blitta... | #ifndef ANIMATION_H
#define ANIMATION_H
#include <vector>
#include "Blittable.h"
#include "Logger.h"
namespace hm
{
class Animation
{
public:
Animation();
~Animation();
void add(Blittable& b);
void remove(Blittable& b);
void removeAll();
virtual void animate() = 0;
protected:
std::vecto... | Fix a couple of header issues. | Fix a couple of header issues.
| C | lgpl-2.1 | mdclyburn/hume |
dbfcaec50408d9b12ffb459011f9af1c7304ec84 | flash_writer.h | flash_writer.h | #ifndef FLASH_WRITER_H
#define FLASH_WRITER_H
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Unlocks the flash for programming. */
void flash_writer_unlock(void);
/** Locks the flash */
void flash_writer_lock(void);
/** Erases the flash page at given address. */
void flash_write... | #ifndef FLASH_WRITER_H
#define FLASH_WRITER_H
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Unlocks the flash for programming. */
void flash_writer_unlock(void);
/** Locks the flash */
void flash_writer_lock(void);
/** Erases the flash page at given address. */
void flash_write... | Convert data source adress type to void * | Convert data source adress type to void *
This should be the standard, as done for example in memcpy(3).
| C | bsd-2-clause | cvra/can-bootloader,cvra/can-bootloader,cvra/can-bootloader,cvra/can-bootloader |
4571ac8b500390e3b70370369386d9cec35ea536 | riegeli/base/errno_mapping.h | riegeli/base/errno_mapping.h | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Fix include guard to match the current filename. | Fix include guard to match the current filename.
PiperOrigin-RevId: 256006893
| C | apache-2.0 | google/riegeli,google/riegeli,google/riegeli,google/riegeli |
fbfc30dffdc5f4a5e9d04f070dcbe8344f3a1c94 | tests/chardata.h | tests/chardata.h | /* chardata.h
*
*
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of chars, < 0 if not set */
XML_Char data[1024];
} CharData;
void CharData_Init(CharData... | /* chardata.h
Interface to some helper routines used to accumulate and check text
and attribute content.
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of c... | Add a small comment to tell what this is. | Add a small comment to tell what this is.
| C | mit | PKRoma/expat,PKRoma/expat,PKRoma/expat,PKRoma/expat |
4a1156e7ed3598903fd6643535259a1d92df2736 | sw/device/lib/dif/dif_edn.c | sw/device/lib/dif/dif_edn.c | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_edn.h"
#include "edn_regs.h" // Generated
| // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_edn.h"
#include "edn_regs.h" // Generated
dif_result_t dif_edn_init(mmio_region_t base_addr, dif_edn_t *edn) {
if (edn == NULL) {
... | Add init DIF for EDN | [sw/dif/edn] Add init DIF for EDN
This enables EDN irqs to be tested with the automated irq test.
Signed-off-by: Srikrishna Iyer <2803d640feace36379942447842f26c7747b4dc3@google.com>
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan |
8dc392689d59ecdbca61cfae23c065279e731db8 | test/test_parser_optional.c | test/test_parser_optional.c | #include "test_parser_p.h"
void optional_some(void **state) {
grammar_t *grammar = grammar_init(
non_terminal("Option"),
rule_init(
"Option",
optional(
terminal("opt")
)
), 1
);
parse_t *result = parse("opt", grammar);
assert_non_null(result);
assert_int_equal(result->l... | #include "test_parser_p.h"
void optional_some(void **state) {
grammar_t *grammar = grammar_init(
non_terminal("Option"),
rule_init(
"Option",
optional(
terminal("opt")
)
), 1
);
parse_result_t *result = parse("opt", grammar);
assert_non_null(result);
assert_true(is_succ... | Use new API in optional tests | Use new API in optional tests
| C | mit | Baltoli/peggo,Baltoli/peggo |
b92ab7b2546d69c8ea887c21a148bad82370b47a | test/profile/Inputs/instrprof-merge-match-lib.c | test/profile/Inputs/instrprof-merge-match-lib.c | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int __llvm_profile_runtime = 0;
uint64_t __llvm_profile_get_size_for_buffer(void);
int __llvm_profile_write_buffer(char *);
void __llvm_profile_reset_counters(void);
int __llvm_profile_check_compatibility(const char *, uint64_t);
int gg = 0;
void bar(char c) ... | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int __llvm_profile_runtime = 0;
uint64_t __llvm_profile_get_size_for_buffer(void);
int __llvm_profile_write_buffer(char *);
void __llvm_profile_reset_counters(void);
int __llvm_profile_check_compatibility(const char *, uint64_t);
int gg = 0;
void bar(char c) ... | Fix a minor bug in test | Fix a minor bug in test
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263028 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
ca419f6d8ae07ef1b83834f9d5d726fed74c2a44 | bgc/DIC_ATMOS.h | bgc/DIC_ATMOS.h | C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $
C $Name: $
COMMON /INTERACT_ATMOS_NEEDS/
& co2atmos,
& total_atmos_carbon, total_ocean_carbon,
& total_atmos_carbon_year,
& total_ocean_carbon_year,
... | C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $
C $Name: $
COMMON /INTERACT_ATMOS_NEEDS/
& co2atmos,
& total_atmos_carbon, total_ocean_carbon,
& total_atmos_carbon_year,
& total_ocean_carbon_year,
... | Add ability to specify CO2 emissions (dic_int1=4) | Add ability to specify CO2 emissions (dic_int1=4)
| C | mit | seamanticscience/mitgcm_mods,seamanticscience/mitgcm_mods |
36c74125fadf0c57ab44933fbe053a54af64bcff | tests/simple/test-wrapped.c | tests/simple/test-wrapped.c | // RUN: %crabllvm -O0 --crab-dom=w-int --crab-check=assert "%s" 2>&1 | OutputCheck %s
// CHECK: ^1 Number of total safe checks$
// CHECK: ^0 Number of total error checks$
// CHECK: ^0 Number of total warning checks$
extern int nd(void);
extern void process(char);
extern void __CRAB_assert(int);
int main() {
char... | Add a test for the wrapped interval domain | Add a test for the wrapped interval domain
| C | apache-2.0 | seahorn/crab-llvm,seahorn/crab-llvm,seahorn/crab-llvm | |
45f929a417328c3dc5703ca6b7827eacc655c807 | tests/test_mix/source/computer_listener_mock.h | tests/test_mix/source/computer_listener_mock.h | #pragma once
#include <mix/computer_listener.h>
#include <gmock/gmock.h>
struct ComputerListenerMock :
public mix::IComputerListener
{
MOCK_METHOD1(on_memory_set, void (int));
MOCK_METHOD0(on_ra_set, void ());
MOCK_METHOD0(on_rx_set, void ());
MOCK_METHOD1(on_ri_set, void (std::size_t));
MOCK_METHOD... | #pragma once
#include <mix/computer_listener.h>
#include <gmock/gmock.h>
struct ComputerListenerMock :
public mix::IComputerListener
{
MOCK_METHOD1(on_memory_set, void (int));
MOCK_METHOD0(on_ra_set, void ());
MOCK_METHOD0(on_rx_set, void ());
MOCK_METHOD1(on_ri_set, void (std::size_t));
MOCK_METHOD... | Add missed on_comparison_state_set() function to ComputerListenerMock | Add missed on_comparison_state_set() function to ComputerListenerMock
| C | mit | grishavanika/mix,grishavanika/mix,grishavanika/mix |
78d215b76d0eddc622f5dd1a4c26f3637bc3ab07 | include/llvm/Bytecode/Writer.h | include/llvm/Bytecode/Writer.h | //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Make compression the default on writing. | Make compression the default on writing.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@17577 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,chub... |
cb832699e29447fe66594fb122a1bdddd3539c42 | src/augs/readwrite/lua_readwrite_declaration.h | src/augs/readwrite/lua_readwrite_declaration.h | #pragma once
#include "3rdparty/sol2/sol/forward.hpp"
namespace augs {
template <class Archive, class Serialized>
void write_lua(Archive&, const Serialized& from);
template <class Archive, class Serialized>
void read_lua(const Archive&, Serialized& into);
template <class Archive, class Serialized>
void write_l... | #pragma once
#include <sol/forward.hpp>
namespace augs {
template <class Archive, class Serialized>
void write_lua(Archive&, const Serialized& from);
template <class Archive, class Serialized>
void read_lua(const Archive&, Serialized& into);
template <class Archive, class Serialized>
void write_lua_no_overload... | Fix another broken sol include | Fix another broken sol include
| C | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations |
1f38f2566e6a8b2c7399af25da44104cbc55cdbb | unlock/legacy/device-wrappers/pymotiv/pymotiv.h | unlock/legacy/device-wrappers/pymotiv/pymotiv.h | #ifndef PYPOC_H
#define PYPOC_H
#include <Windows.h>
#include "EmoStateDLL.h"
#include "edk.h"
#include "edkErrorCode.h"
class EPOC {
private:
EmoEngineEventHandle eEvent;
EmoStateHandle eState;
DataHandle hData;
int nChannels;
EE_DataChannel_t *channels;
unsigned int userId;
double *samples;
BOOL ready;
BOO... | #ifndef PYPOC_H
#define PYPOC_H
#include <Windows.h>
#include "EmoStateDLL.hpp"
#include "edk.hpp"
#include "edkErrorCode.hpp"
class EPOC {
private:
EmoEngineEventHandle eEvent;
EmoStateHandle eState;
DataHandle hData;
int nChannels;
EE_DataChannel_t *channels;
unsigned int userId;
double *samples;
BOOL ready... | Make legacy header reference old code. | Make legacy header reference old code.
| C | bsd-3-clause | NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock |
f74dc6b045f695c013a4bd49df7411691d5c86f7 | cvrp/customer.h | cvrp/customer.h | #ifndef VRPSOLVER_CUSTOMER_H
#define VRPSOLVER_CUSTOMER_H
namespace VrpSolver {
class Customer {
public:
Customer(unsigned int id, unsigned int demand)
: id_(id), demand_(demand) {}
unsigned int id() const {
return id_;
}
unsigned int demand() const {
... | #ifndef VRPSOLVER_CUSTOMER_H
#define VRPSOLVER_CUSTOMER_H
namespace VrpSolver {
class Customer {
public:
Customer(unsigned int id, std::size_t demand)
: id_(id), demand_(demand) {}
unsigned int id() const {
return id_;
}
std::size_t demand() const {
... | Change the type of Customer::demand to std::size_t | Change the type of Customer::demand to std::size_t
| C | mit | U-MA/cvrp,U-MA/cvrp |
ade98d9f3a27765d33b2464a3ab76ba36217834b | dependencies/stdafx/stdafx.h | dependencies/stdafx/stdafx.h | #include <Ogre.h>
#include <OgreMeshFileFormat.h>
#include <OgreOptimisedUtil.h>
#ifdef WIN32
#include <OgreD3D9RenderSystem.h>
#include <OgreD3D9HLSLProgram.h>
#endif
#include <OgreGLRenderSystem.h>
#include <OgreGLGpuProgram.h>
#include <OgreGLSLGpuProgram.h>
#include <OgreGLSLLinkProgramManager.h>
#include <OgreG... | #include <Ogre.h>
#include <OgreMeshFileFormat.h>
#include <OgreOptimisedUtil.h>
#include <OgrePredefinedControllers.h>
#ifdef WIN32
#include <OgreD3D9RenderSystem.h>
#include <OgreD3D9HLSLProgram.h>
#endif
#include <OgreGLRenderSystem.h>
#include <OgreGLGpuProgram.h>
#include <OgreGLSLGpuProgram.h>
#include <OgreGLS... | Add header for FrameController to pch | Add header for FrameController to pch
| C | mit | sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine |
3918e7b3451b9fdadfbf1f40e5df6e60dcfa3abf | cat.c | cat.c | #include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
/* a re-implementation of cat(1), to learn the basic Unix syscalls.
by tlehman at 1383415046
*/
void usage(const char *progname) {
printf("%s filename\n", progname);
exit(EXIT_FAILURE);
}
void print_file_c... | #include <sys/types.h>
#include <sys/select.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
/* a re-implementation of cat(1), to learn the basic Unix syscalls.
by tlehman at 1383415046
*/
void usage(const char *progname) {
printf("%s filename\n", progname);
exit(EXIT_FAILUR... | Read from STDIN when no filename is given | Read from STDIN when no filename is given
| C | unlicense | tlehman/unix_utils |
3c6ffceade64f6eda28642cfcd61019a03938572 | chrome/browser/spellchecker/word_trimmer.h | chrome/browser/spellchecker/word_trimmer.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#define CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#include "base/i18n/base_i18n_export.h"
#incl... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#define CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#include "base/string16.h"
// Trims |text| t... | Remove unnecessary include in spellcheck word trimmer | Remove unnecessary include in spellcheck word trimmer
TBR=groby
BUG=170514
Review URL: https://chromiumcodereview.appspot.com/14273022
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@196650 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | M4sse/chromium.src,littlstar/chromium.src,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,Jonekee/chromium.src,P... |
eafcde2103a2bfe27304664f331b10265d8e7bca | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k19"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k20"
| Update driver version to 5.02.00-k20 | [SCSI] qla4xxx: Update driver version to 5.02.00-k20
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
b8af68049f97718e1ecd5e86aa1bf5c7cafa8be0 | Trie.c | Trie.c | //Trie data structure testing
//All code written my Nathaniel Thompson
#include <stdio.h>
#include <stdlib.h>
//trie structure
typedef struct _trie
{
char letter; //the letter that the node holds
_trie *next[26];//pointers to the rest of the letters
}trie;
//main function
int main(void)
{
}
| //Trie data structure testing
//All code written my Nathaniel Thompson
#include <stdio.h>
#include <stdlib.h>
//trie structure
typedef struct _trie{
char letter; //the letter that the node holds
struct _trie *next[26];//pointers to the rest of the letters
}trie;
//fucntion prototypes
void initialize(trie *);... | Structure was properly set up, TODO Create a small dictionary load dictionary into the trie | Structure was properly set up,
TODO
Create a small dictionary
load dictionary into the trie
| C | mit | Felttrip/TrieWords |
a4cb50ac023800ecb1442ce5269effcf7e012f8a | test2/__attribute__/parsing_decl_struct_post.c | test2/__attribute__/parsing_decl_struct_post.c | // RUN: %ucc -fsyntax-only %s
struct A
{
char i, j;
} __attribute((aligned(8)));
struct A a;
_Static_assert(_Alignof(a) == 8, "misaligned/attr not picked up");
| Test parsing __attribute__ after a struct definition | Test parsing __attribute__ after a struct definition
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
e3d436ba7ba128aaebb480aeb07f1a013e8e75f1 | tests/headers/dupe-enum-variant-in-namespace.h | tests/headers/dupe-enum-variant-in-namespace.h | // bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
| // bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++ -std=c++11
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
| Fix a pre-existing failing test? | Fix a pre-existing failing test?
| C | bsd-3-clause | rust-lang/rust-bindgen,rust-lang/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen |
93a0f6dbddc577afc67be7de7ac258907f405e7d | src/jukebox.c | src/jukebox.c | /*
* Copyright (C) 2016, Michiel Sikma <michiel@sikma.org>
* MIT License
*/
#include <stdio.h>
#include "game.h"
#include "jukebox.h"
/**
* Starts the jukebox.
*/
void start_jukebox() {
start_game();
}
| /*
* Copyright (C) 2016, Michiel Sikma <michiel@sikma.org>
* MIT License
*/
#include <stdio.h>
#include "src/game.h"
#include "src/jukebox.h"
/**
* Starts the jukebox.
*/
void start_jukebox() {
start_game();
}
| Use correct paths relative to root | Use correct paths relative to root
| C | mit | msikma/ceegee,msikma/ceegee |
697450ebcd4d1d87e34b61bf273505354dec2a91 | test/cases/vla/check_align.c | test/cases/vla/check_align.c | // RUN: %ucc -o %t %s vla/check_align_asm.s
// RUN: %t
extern void check_align() __asm("check_align");
a()
{
int i = 1;
short c[i];
c[0] = 0;
check_align(c, i);
}
b()
{
int i = 3;
char c[i];
c[0] = 0;
c[1] = 0;
c[2] = 0;
check_align(c, i);
}
main()
{
a();
b();
return 0;
}
| // RUN: %ucc -o %t %s "$(dirname %s)"/check_align_asm.s
// RUN: %t
extern void check_align() __asm("check_align");
a()
{
int i = 1;
short c[i];
c[0] = 0;
check_align(c, i);
}
b()
{
int i = 3;
char c[i];
c[0] = 0;
c[1] = 0;
c[2] = 0;
check_align(c, i);
}
main()
{
a();
b();
return 0;
}
| Fix VLA stack alignment test / path | Fix VLA stack alignment test / path
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
cabc7f4405368319590d7df0ed48c60b0894082f | main.c | main.c | #include "vm.h"
int* read_from_file(FILE* file) {
int *instructions, idx = 0, count = 0;
while (fgetc(file) != EOF) count++;
rewind(file);
instructions = malloc(count * sizeof(int));
for (idx=0; idx < count; idx++) {
instructions[idx] = fgetc(file);
}
return instructions;
}
i... | Add code to read opcodes from file :P | Add code to read opcodes from file :P
| C | mit | Mause/simvm | |
825e6b1aaf68fdc87768557bafc33d29279aa1b1 | tests/regression/36-octapron/13-traces-min-rpb2.c | tests/regression/36-octapron/13-traces-min-rpb2.c | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 1;
int h = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int x; // rand
pthread_mutex_lock(&A);
g = x;
h = x;
assert(g == h);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&A);
pthre... | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 1;
int h = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int x; // rand
pthread_mutex_lock(&A);
g = x;
h = x;
assert(g == h);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&A);
pthre... | Add extra assert to 36/13 | Add extra assert to 36/13
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
ce235f4a0659a567394f9b540abaf732d6b2c765 | firmware/voltage_encode.c | firmware/voltage_encode.c | #include <stdio.h>
#include <stdint.h>
static inline uint8_t rev8(uint8_t d)
{
int i;
uint8_t out = 0;
/* (from left to right) */
for (i = 0; i < 8; i++)
if (d & (1 << i))
out |= (1 << (7 - i));
return out;
}
/* http://www.onsemi.com/pub_link/Collateral/ADP3208D.PDF */
static... | Add a simple voltage encode/decode c code | Add a simple voltage encode/decode c code
| C | unlicense | Canaan-Creative/MM,Canaan-Creative/MM,Canaan-Creative/MM | |
aaadede7cfb154186bcf8f74927ca34ee1123264 | source/glbinding/include/glbinding/Function.h | source/glbinding/include/glbinding/Function.h | #pragma once
#include <functional>
#include <glbinding/AbstractFunction.h>
namespace
{
template <typename ReturnType, typename... Arguments> struct FunctionHelper;
template <typename ReturnType, typename... Arguments>
struct CallbackType
{
using type = std::function<void(Arguments..., ReturnType)>;
};
templ... | #pragma once
#include <functional>
#include <glbinding/AbstractFunction.h>
#ifndef WINAPI
#ifdef _WIN32
#define WINAPI __stdcall
#else
#define WINAPI
#endif
#endif
namespace
{
template <typename ReturnType, typename... Arguments> struct FunctionHelper;
template <typename ReturnType, typename... Arguments>
struct... | Add calling convention on windows | Add calling convention on windows
| C | mit | hpi-r2d2/glbinding,hpi-r2d2/glbinding,cginternals/glbinding,j-o/glbinding,hpi-r2d2/glbinding,hpicgs/glbinding,hpi-r2d2/glbinding,mcleary/glbinding,hpicgs/glbinding,cginternals/glbinding,hpicgs/glbinding,mcleary/glbinding,j-o/glbinding,hpicgs/glbinding,mcleary/glbinding,j-o/glbinding,j-o/glbinding,mcleary/glbinding |
c9c16148b9aa1afa02ac07e46d7ae090ab938a00 | src/node.h | src/node.h | /*
* node.h - type definition for node in a table
*/
#ifndef _NODE_H_
#define _NODE_H_
#include "table.h"
#include "timestamp.h"
typedef struct node {
struct node *next; /* link to next node in the table */
struct node *prev; /* link to previous node in the table */
struct node *younger; /* link to ne... | /*
* Copyright (c) 2013, Court of the University of Glasgow
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* thi... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | jsventek/Cache,jsventek/Cache,fergul/Cache,fergul/Cache,fergul/Cache,jsventek/Cache |
20c2122027dab79bda516c91fe924f23bc938794 | include/matrix_constructors_impl.h | include/matrix_constructors_impl.h | //-----------------------------------------------------------------------------
// Constructors
//-----------------------------------------------------------------------------
template<class T>
matrix<T>::matrix():data_(),rows_(0),cols_(0){}
template<class T>
matrix<T>::matrix( std::size_t rows, std::size_t cols ):
... | //-----------------------------------------------------------------------------
// Constructors
//-----------------------------------------------------------------------------
template<class T>
matrix<T>::matrix():
data_(),
rows_(0),
cols_(0) {}
template<class T>
matrix<T>::matrix( std::size_t rows, std::... | Add check for empty matrix in constructor. | Add check for empty matrix in constructor.
| C | mit | actinium/cppMatrix,actinium/cppMatrix |
b1c00a1eb1c2c7bae91d94232bce3537866d9ea2 | include/arch/x86/cpu_state.h | include/arch/x86/cpu_state.h | #ifndef CPU_STATE_H
#define CPU_STATE_H
struct cpu_state {
// Pushed by pusha
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
uint32_t eip, cs, eflags, useresp, ss;
};
#endif
| Define x86 CPU state structure | Define x86 CPU state structure
| C | mit | awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth | |
4941fe015c2804a36b820818f4e8f68f867ed5b4 | proj/android/library/src/main/native/log.h | proj/android/library/src/main/native/log.h | //
// Created by Dawid Drozd aka Gelldur on 03.02.16.
//
#pragma once
#include <android/log.h>
#ifdef DEBUG
#define DLOG(...) __android_log_print(ANDROID_LOG_DEBUG,"JNI",__VA_ARGS__)
#define ILOG(...) __android_log_print(ANDROID_LOG_INFO,"JNI",__VA_ARGS__)
#define WLOG(...) __android_log_print(ANDROID_LOG_WAR... | //
// Created by Dawid Drozd aka Gelldur on 03.02.16.
//
#pragma once
#include <android/log.h>
#ifndef NDEBUG
#define DLOG(...) __android_log_print(ANDROID_LOG_DEBUG,"JNI",__VA_ARGS__)
#define ILOG(...) __android_log_print(ANDROID_LOG_INFO,"JNI",__VA_ARGS__)
#define WLOG(...) __android_log_print(ANDROID_LOG_W... | Fix compile for debug on Android | Fix compile for debug on Android
| C | apache-2.0 | gelldur/DexodeEngine,gelldur/DexodeEngine,gelldur/DexodeEngine |
7a1425ecffc7f512889ff49fdc6bdd0f2bd373e8 | battery_info.c | battery_info.c | #include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/power_supply.h>
static int __init battery_status_init(void)
{
char name[] = "BAT0";
int result = 0;
struct power_supply *psy = power_supply_get_by_name(name);
union power_supply_propval chargenow, chargefull;
result = psy-... | Add battery info kernel module. | Add battery info kernel module.
| C | apache-2.0 | tisma/ctorious,tisma/ctorious | |
20e3779e5e81ded7c04010a29639f354b6742163 | galpy/orbit_src/orbit_c_ext/integrateFullOrbit.h | galpy/orbit_src/orbit_c_ext/integrateFullOrbit.h | #ifndef __INTEGRATEFULLORBIT_H__
#define __INTEGRATEFULLORBIT_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#include <Python.h>
#endif
#include <galpy_potentials.h>
void parse_leapFuncArgs_Full(int, struct potentialArg *,int **,double **);
#ifdef _WIN32
// On Windows, *need* to define this function to allow ... | #ifndef __INTEGRATEFULLORBIT_H__
#define __INTEGRATEFULLORBIT_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#include <Python.h>
#endif
#include <galpy_potentials.h>
void parse_leapFuncArgs_Full(int, struct potentialArg *,int **,double **);
#ifdef _WIN32
// On Windows, *need* to define this function to allow ... | Add semicolon to function declarations [travis skip] | Add semicolon to function declarations [travis skip]
| C | bsd-3-clause | jobovy/galpy,jobovy/galpy,jobovy/galpy,jobovy/galpy |
9c0cb6985090006c2d70a1080a46239601dafe08 | core/base/inc/TThreadSlots.h | core/base/inc/TThreadSlots.h | // @(#)root/thread:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/base:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix module loc. Add missing final newline. | Fix module loc.
Add missing final newline.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@41534 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical |
40f43230feaacb82b5d27a97a20d2329afef0f18 | core/base/inc/TThreadSlots.h | core/base/inc/TThreadSlots.h | // @(#)root/thread:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/base:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix module loc. Add missing final newline. | Fix module loc.
Add missing final newline.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@41534 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT |
499b14d0969ccaeb69ddcf1e3b0415df1f72f923 | configreader.h | configreader.h | #ifndef CONFIGREADER_H
#define CONFIGREADER_H
/*forward declarations*/
extern FILE *configreaderin;
struct config_ssid {
char ssid_name[32];
char ssid_user[32];
char ssid_pass[32];
char ssid_bssid[25];
int ssid_8021x;
struct config_ssid *next;
};
struct config_interfaces {
char if_name[32... | #ifndef CONFIGREADER_H
#define CONFIGREADER_H
/*forward declarations*/
extern FILE *configreaderin;
struct config_ssid {
char ssid_name[32];
char ssid_user[32];
char ssid_pass[32];
char ssid_bssid[20];
char ssid_auth[10];
struct config_ssid *next;
};
struct config_interfaces {
char if_nam... | Change to config file struct | Change to config file struct
| C | bsd-3-clause | myauie/wlan-daemon |
7f580c5abe5aa3c7b4c712f69818543c27b924c6 | tests/regression/01-cpa/58-base-ctx-insens-bot.c | tests/regression/01-cpa/58-base-ctx-insens-bot.c | // PARAM: --set ana.ctx_insens[+] base
#include <stdlib.h>
#include <assert.h>
void foo(int cond) {
assert(cond); // TODO to match assert
}
int main() {
int *p = malloc(sizeof(int)); // blob is initially Bot
while (1) { // blob joins Bot and 42 -> 42
// TODO: both should actually be UNKNOWN! to be sound
... | Add test for surprising imprecision with ctx_insens base | Add test for surprising imprecision with ctx_insens base
Minimized from instrumented_cp_comb.c with __VERIFIER_assert function (not macro).
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
ca19cb39e3c68728bf9e9be569bbde87870508e9 | libgnome/gnome-popt.h | libgnome/gnome-popt.h | #ifndef __GNOME_POPT_H__
#define __GNOME_POPT_H__ 1
#include <popt.h>
#include "gnome-defs.h"
BEGIN_GNOME_DECLS
void gnomelib_register_popt_table(const struct poptOption *options,
const char *description);
poptContext gnomelib_parse_args(int argc, char *argv[],
int popt_flags);
/* Some systems, like Red H... | #ifndef __GNOME_POPT_H__
#define __GNOME_POPT_H__ 1
#include <popt-gnome.h>
#include "gnome-defs.h"
BEGIN_GNOME_DECLS
void gnomelib_register_popt_table(const struct poptOption *options,
const char *description);
poptContext gnomelib_parse_args(int argc, char *argv[],
int popt_flags);
/* Some systems, like... | Update popt, and always use the gnome-libs version instead of any system | Update popt, and always use the gnome-libs version instead of any system
Update popt, and always use the gnome-libs version instead of any system
version.
| C | lgpl-2.1 | Distrotech/libgnome,Distrotech/libgnome,Distrotech/libgnome |
64dc9087a6c898d4436d7c63c65d4334c57fc03f | src/internal.h | src/internal.h | ////
// __| | | _ _| __ / __| \ |
// \__ \ __ | | / _| . |
// ____/ _| _| ___| ____| ___| _|\_|
//
// Copyright (c) 2016 Jacob Hauberg Hansen
//
// This library is free software; you can redistribute and modify it
// under the terms of the MIT license. See LICENSE for details.
//
#ifndef interna... | Include GLFW/gl3w and add base graphics context | Include GLFW/gl3w and add base graphics context
| C | mit | jhauberg/SHIZEN | |
27710f2e7a2a160c3aa70cd87d491b54b49c3d7b | views/controls/menu/native_menu_host_delegate.h | views/controls/menu/native_menu_host_delegate.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | Add newline to end of file. | Add newline to end of file.
git-svn-id: http://src.chromium.org/svn/trunk/src@80087 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 25bda12511d371bc9c02bf2454cce53241ee2abe | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
cb9ed6bb55a5020770ad31fd30a05b4a91b70a81 | nrf5/bluetooth_conf.h | nrf5/bluetooth_conf.h | #ifndef BLUETOOTH_CONF_H__
#define BLUETOOTH_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 110)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_NUS (0)
#define BLUETOOTH_WEBBLUETOOTH_REPL (0)
#define MICROPY_PY_UBLUEPY (1)
#define MICROPY_PY_UBLUEPY_PER... | #ifndef BLUETOOTH_CONF_H__
#define BLUETOOTH_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 110)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_NUS (0)
#define BLUETOOTH_WEBBLUETOOTH_REPL (0)
#define MICROPY_PY_UBLUEPY (1)
#define MICROPY_PY_UBLUEPY_PER... | Enable ubluepy central by default if running nrf52/s132 bluetooth stack. Maturity of the module is pretty OK now. | nrf5/drivers/bluetooth: Enable ubluepy central by default if running nrf52/s132 bluetooth stack. Maturity of the module is pretty OK now.
| C | mit | adafruit/circuitpython,adafruit/micropython,adafruit/micropython,tralamazza/micropython,adafruit/circuitpython,adafruit/circuitpython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/micropython,tralamazza/micropython,adafruit... |
93f91dfa732eead8fbc938256b6883a93b847021 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.04.00.13-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 4
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.05.00.03-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 5
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update the driver version to 8.05.00.03-k. | [SCSI] qla2xxx: Update the driver version to 8.05.00.03-k.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
8c1eb4493a5b21a5cc47b2fd33f2faf9b80c4413 | source/host/host_export.h | source/host/host_export.h | //
// Aspia Project
// Copyright (C) 2016-2022 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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 3 of the License, or
// (at your option) an... | //
// Aspia Project
// Copyright (C) 2016-2022 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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 3 of the License, or
// (at your option) an... | Fix host building in Linux (part 2/x). | Fix host building in Linux (part 2/x).
| C | mpl-2.0 | aspia-org/remote-desktop,aspia-org/remote-desktop |
99e747ceddb32b408921512979842251c28e54a5 | src/modules/l_keyboard.c | src/modules/l_keyboard.c | /**
* Copyright (c) 2017 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include "keyboard.h"
#include "luaobj.h"
int l_keyboard_setKeyRepeat(lua_State *L) {
keyboard_setKeyRepeat( lua_toboolean(L, 1) );
retu... | /**
* Copyright (c) 2017 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include "keyboard.h"
#include "luaobj.h"
int l_keyboard_setKeyRepeat(lua_State *L) {
keyboard_setKeyRepeat( lua_toboolean(L, 1) );
retu... | Fix keyboard.isDown check for multiple keys | Fix keyboard.isDown check for multiple keys
| C | mit | rxi/lovedos,rxi/lovedos,rxi/lovedos |
95bfaeec32c890c968f2dbd2fbf39e941629bbe7 | AppIconOverlay/OverlayContext.h | AppIconOverlay/OverlayContext.h | //
// Copyright (c) 2013 Carson McDonald
//
// 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, publis... | //
// Copyright (c) 2013 Carson McDonald
//
// 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, publis... | Add font name to context. | Add font name to context.
| C | mit | carsonmcdonald/AppIconOverlay |
678b412c90c4392bc6459b13541ed80e37b68b35 | src/util.h | src/util.h | #ifndef UTIL_H
#define UTIL_H
/*** Utility functions ***/
#define ALLOC(type) ((type*) xmalloc(sizeof(type)))
void *xmalloc(size_t);
#define STARTS_WITH(x, y) (strncmp((x), (y), sizeof(y) - 1) == 0)
#endif /* UTIL_H */
| #ifndef UTIL_H
#define UTIL_H
/*** Utility functions ***/
#define ALLOC(type) ((type*) xmalloc(sizeof(type)))
void *xmalloc(size_t);
#define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0)
#endif /* UTIL_H */
| Fix STARTS_WITH macro comparing 1 less character than needed | Fix STARTS_WITH macro comparing 1 less character than needed
| C | apache-2.0 | mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify |
1843a02b1359aa796a71c45da5f3f07615ae0f9a | iree/compiler/Dialect/IREE/Transforms/Passes.h | iree/compiler/Dialect/IREE/Transforms/Passes.h | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Fix include path typo from merge conflicts | Fix include path typo from merge conflicts
PiperOrigin-RevId: 287685318
| C | apache-2.0 | google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree |
85a1c2100f452e25fba9c809d3ab25c51e97c3e1 | include/llvm/Bitcode/BitcodeWriter.h | include/llvm/Bitcode/BitcodeWriter.h | //===-- llvm/Bitcode/BitcodeWriter.h - Bitcode writers ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------... | Add missing file from r286566 | Add missing file from r286566
Add the new BitcodeWriter.h header, which was missed in my r286566
commit, and should fix all the bot failures.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@286569 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Dri... | |
b572830a52faad2fffc7119de53aa96c18d9bf07 | lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h | lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h | //===-- MCJITMemoryManager.h - Definition for the Memory Manager ---C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add missing file from r128851. | Add missing file from r128851.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@128856 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple... | |
012509f72ac6024611266e424554881a161189e1 | plugins/tracers/gstbitrate.h | plugins/tracers/gstbitrate.h | /* GstShark - A Front End for GstTracer
* Copyright (C) 2016-2017 RidgeRun Engineering <michael.gruner@ridgerun.com>
*
* This file is part of GstShark.
*
* 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... | /* GstShark - A Front End for GstTracer
* Copyright (C) 2016-2017 RidgeRun Engineering <michael.gruner@ridgerun.com>
*
* This file is part of GstShark.
*
* 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... | Fix definition for bitrate tracer type | Fix definition for bitrate tracer type
| C | lgpl-2.1 | RidgeRun/gst-shark,RidgeRun/gst-shark,RidgeRun/gst-shark |
1d4efbd13c45b5e10c3355cef364031d822f44e2 | numba/npyufunc/gufunc_scheduler.h | numba/npyufunc/gufunc_scheduler.h | #ifndef GUFUNC_SCHEDULER
#define GUFUNC_SCHEDULER
#include <stdint.h>
#if __SIZEOF_POINTER__ == 8
#define intp int64_t
#define uintp uint64_t
#else
#define intp int
#define uintp unsigned
#endif
#ifdef __cplusplus
extern "C"
{
#endif
void do_scheduling(intp num_dim, intp *dims, uintp num_threads, int... | #ifndef GUFUNC_SCHEDULER
#define GUFUNC_SCHEDULER
#include <stdint.h>
#ifndef __SIZEOF_POINTER__
/* MSVC doesn't define __SIZEOF_POINTER__ */
#if defined(_WIN64)
#define intp int64_t
#define uintp uint64_t
#elif defined(_WIN32)
#define intp int
#define uintp unsigned
... | Fix parfors on win64 due to incorrect size for intp type. | Fix parfors on win64 due to incorrect size for intp type.
| C | bsd-2-clause | IntelLabs/numba,gmarkall/numba,gmarkall/numba,cpcloud/numba,IntelLabs/numba,seibert/numba,numba/numba,stuartarchibald/numba,seibert/numba,cpcloud/numba,jriehl/numba,stonebig/numba,cpcloud/numba,sklam/numba,stuartarchibald/numba,cpcloud/numba,IntelLabs/numba,jriehl/numba,IntelLabs/numba,stuartarchibald/numba,cpcloud/num... |
fcd94f3e481afabca2de28339e3b23ceac0c75cf | bst.h | bst.h | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
#endif | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
BST* BST_Create(void);
#endif | Add BST Create function declaration | Add BST Create function declaration
| C | mit | MaxLikelihood/CADT |
685fd9f92d7980591502c0bb2a344d601a0b9615 | xmlwf/xmltchar.h | xmlwf/xmltchar.h | #ifdef XML_UNICODE
#ifndef XML_UNICODE_WCHAR_T
#error xmlwf requires a 16-bit Unicode-compatible wchar_t
#endif
#define T(x) L ## x
#define ftprintf fwprintf
#define tfopen _wfopen
#define fputts fputws
#define puttc putwc
#define tcscmp wcscmp
#define tcscpy wcscpy
#define tcscat wcscat
#define tcschr wcschr
#define ... | Fix screwup in changing copyright notices | Fix screwup in changing copyright notices
| C | mit | markpizz/expat,markpizz/expat,markpizz/expat | |
bea728b0f49fcb7fef74d34bfe7d19db4f09075b | test/Analysis/taint-tester.c | test/Analysis/taint-tester.c | // RUN: %clang_cc1 -analyze -analyzer-checker=experimental.security.taint,debug.TaintTest -verify %s
int scanf(const char *restrict format, ...);
int getchar(void);
#define BUFSIZE 10
int Buffer[BUFSIZE];
void bufferScanfAssignment(int x) {
int n;
int *addr = &Buffer[0];
scanf("%d", &n);
addr += n;// expect... | // RUN: %clang_cc1 -analyze -analyzer-checker=experimental.security.taint,debug.TaintTest -verify %s
int scanf(const char *restrict format, ...);
int getchar(void);
#define BUFSIZE 10
int Buffer[BUFSIZE];
void bufferScanfAssignment(int x) {
int n;
int *addr = &Buffer[0];
scanf("%d", &n);
addr += n;// expect... | Add a missing taint tester warning. | [analyzer] Add a missing taint tester warning.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@145834 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
3a06db1675442564976b5d3df6986aa3330337ef | test/Driver/cl-include.c | test/Driver/cl-include.c | // Note: %s must be preceded by --, otherwise it may be interpreted as a
// command-line option, e.g. on Mac where %s is commonly under /Users.
// RUN: %clang_cl -### -- %s 2>&1 | FileCheck %s --check-prefix=BUILTIN
// BUILTIN: "-internal-isystem" "{{.*lib.*clang.*[0-9]\.[0-9].*include}}"
// RUN: %clang_cl -nobuiltin... | // Note: %s must be preceded by --, otherwise it may be interpreted as a
// command-line option, e.g. on Mac where %s is commonly under /Users.
// RUN: %clang_cl -### -- %s 2>&1 | FileCheck %s --check-prefix=BUILTIN
// BUILTIN: "-internal-isystem" "{{.*lib.*clang.*include}}"
// RUN: %clang_cl -nobuiltininc -### -- %s... | Make the clang-cl test less restrictive. | Make the clang-cl test less restrictive.
Make the test less restrictive to allow directory layout used in our test setup.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@304408 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
51dd9f30014d6b2345b0c27df1fd501c2446e93b | chrome/common/all_messages.h | chrome/common/all_messages.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included file, hence no include guard.
// Inclusion of all message files present in the system. Keep this file
// up-to-date when adding ... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included file, hence no include guard.
// Inclusion of all message files present in the system. Keep this file
// up-to-date when adding ... | Fix build break from bad merge | Fix build break from bad merge
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@106741 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,... |
9b590204de5ba4507d19340ceca17e529915df42 | include/body.h | include/body.h | #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <string>
#include "defines.h"
namespace cpr {
class Body {
public:
template <typename TextType>
Body(TextType&& p_text)
: text{CPR_FWD(p_text)} {}
std::string text;
};
} // namespace cpr
#endif
| #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <string>
#include "defines.h"
namespace cpr {
class Body : public std::string {
public:
Body() = default;
Body(const Body& rhs) = default;
Body(Body&& rhs) = default;
Body& operator=(const Body& rhs) = default;
Body& operator=(Body&& rhs) = defaul... | Make Body an opaque typedef of std::string | Make Body an opaque typedef of std::string
| C | mit | msuvajac/cpr,SuperV1234/cpr,msuvajac/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,whoshuu/cpr,SuperV1234/cpr |
49fd000db24f1e535ba13eb3e0b397cdb7b07007 | wls.h | wls.h |
int wls(double* X, int n, int p, double* y, double* w,
double* XTX, double *sqw, double* sqwX, double* sqwy, double* coef);
|
int wls(double* X, int n, int p, double* y, double* w,
double* XTX, double *sqw, double* sqwX, double* sqwy, double* coef);
int calcFitted(double* X, int n, int p,
double* y,
double* coef,
double* fitted);
int calcResid(double* X, int n, int p,
double* y,
double* coef,
double* resid);... | Add calcFitted and calcResid definitions. | Add calcFitted and calcResid definitions.
| C | mit | awblocker/go-lm,awblocker/go-lm |
d989a56b3ceb47d6de82d0005d3f20a48d3b24e9 | test/Driver/mingw-useld.c | test/Driver/mingw-useld.c | // RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s 2>&1 | FileCheck -check-prefix=CHECK_LD_32 %s
// CHECK_LD_32: {{ld|ld.exe}}"
// CHECK_LD_32: "i386pe"
// CHECK_LD_32_NOT: "-flavor" "gnu"
// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/... | Add test case for mingw -fuse-ld= support introduced in r242121. | Add test case for mingw -fuse-ld= support introduced in r242121.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@253066 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... | |
aba62b0799f87628580c92943152432e6118cedd | tests/regression/37-congruence/07-refinements-o.c | tests/regression/37-congruence/07-refinements-o.c | // PARAM: --enable ana.int.congruence
void unsignedCase() {
unsigned int top;
unsigned int i = 0;
if(top % 17 == 3) {
assert(top%17 ==3);
if(top %17 != 3) {
i = 12;
} else {
}
}
assert(i ==0);
if(top % 17 == 0) {
assert(top%17 == 0);
... | // PARAM: --enable ana.int.congruence
void unsignedCase() {
unsigned int top;
unsigned int i = 0;
if(top % 17 == 3) {
assert(top%17 ==3);
if(top %17 != 3) {
i = 12;
} else {
}
}
assert(i ==0);
if(top % 17 == 0) {
assert(top%17 == 0);
... | Add comments to confusing test | Add comments to confusing test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
a833979af5fa88902eac3ab7a3b106ca6f0e5561 | ComponentKit/Debug/CKComponentDebugController.h | ComponentKit/Debug/CKComponentDebugController.h | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | Fix build error when importing debug controller header | Fix build error when importing debug controller header | C | bsd-3-clause | darknoon/componentkitx,darknoon/componentkitx,darknoon/componentkitx,darknoon/componentkitx |
e24ef2a1f2725a9c01e6e011e38232af9e300f3a | src/core/map/ContactFilter.h | src/core/map/ContactFilter.h | //
// Created by dar on 12/22/15.
//
#ifndef C003_CONTACTFILTER_H
#define C003_CONTACTFILTER_H
#include <Box2D/Dynamics/b2WorldCallbacks.h>
#include <Box2D/Dynamics/b2Fixture.h>
#include "../map/entity/Entity.h"
class ContactFilter : public b2ContactFilter {
bool doesCollide(void *a, void *b) {
bool col... | //
// Created by dar on 12/22/15.
//
#ifndef C003_CONTACTFILTER_H
#define C003_CONTACTFILTER_H
#include <Box2D/Dynamics/b2WorldCallbacks.h>
#include <Box2D/Dynamics/b2Fixture.h>
#include "../map/entity/Entity.h"
class ContactFilter : public b2ContactFilter {
bool doesCollide(void *a, void *b) {
bool col... | Use static_cast in void* casting | Use static_cast in void* casting
| C | mit | darsto/spooky,darsto/spooky |
5c1bd508ee7f2583780d267c12e2557ec5045bec | thingshub/NSFileHandle+CDZCLIStringReading.h | thingshub/NSFileHandle+CDZCLIStringReading.h | //
// NSFileHandle+CDZCLIStringReading.h
// CDZCLIApplication
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
@import Foundation;
@interface NSFileHandle (CDZCLIStringReading)
/// Read this handle's `-availableData` as a string, stripping any trailing newli... | //
// NSFileHandle+CDZCLIStringReading.h
// CDZCLIApplication
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
@import Foundation;
@interface NSFileHandle (CDZCLIStringReading)
/// Read this handle's `-availableData` as a string, stripping a single trailing ... | Update docs on cdz_availableString NSFileHandle category method | Update docs on cdz_availableString NSFileHandle category method
| C | mit | cdzombak/thingshub,cdzombak/thingshub,cdzombak/thingshub |
651849d5367cc005d2b9284b0f29a9e5347c7c48 | buffer.h | buffer.h | #ifndef BUFFER_H_
#define BUFFER_H_
#define BUFFER_SIZEOF_DESIRED 48
typedef struct Buffer {
unsigned int pos;
unsigned int size;
char* data;
char fixed[BUFFER_SIZEOF_DESIRED - 2*sizeof(unsigned int) - 1*sizeof(char*)];
} Buffer;
Buffer* buffer_init(Buffer* buffer, unsigned int size);
Buffer* buffer_... | #ifndef BUFFER_H_
#define BUFFER_H_
#define BUFFER_SIZEOF_DESIRED 64
typedef struct Buffer {
unsigned int pos;
unsigned int size;
char* data;
char fixed[BUFFER_SIZEOF_DESIRED - 2*sizeof(unsigned int) - 1*sizeof(char*)];
} Buffer;
Buffer* buffer_init(Buffer* buffer, unsigned int size);
Buffer* buffer_... | Increase stack array size from 48 to 64 | Increase stack array size from 48 to 64
| C | mit | gonzus/devel-cookie,gonzus/devel-cookie,gonzus/devel-cookie,gonzus/http-xscookies,gonzus/http-xscookies |
e581eb9f332bde7e69cf4fa10a379d860e5d133a | Settings/SettingsUI.h | Settings/SettingsUI.h | #pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <malloc.h>
#include <memory.h>
#include <prsht.h>
#include <stdlib.h>
#include <tchar.h>
#include "../3RVX/3RVX.h"
#include "resource.h"
class SettingsUI : public Window {
public:
SettingsUI(HINSTANCE hInstance);
INT_PTR LaunchProperty... | #pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <malloc.h>
#include <memory.h>
#include <prsht.h>
#include <stdlib.h>
#include <tchar.h>
#include <vector>
#include "../3RVX/3RVX.h"
#include "resource.h"
class About;
class Display;
class General;
class Hotkeys;
class OSD;
class TabPage;
class... | Add instance variables, remove callbacks | Add instance variables, remove callbacks
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
6edee0b9551de3172d59abb5ea107a0ffd9e2345 | config.h | config.h | /* Uncomment to compile with tcpd/libwrap support. */
//#define WITH_WRAP
/* Compile with database upgrading support? If disabled, mosquitto won't
* automatically upgrade old database versions. */
//#define WITH_DB_UPGRADE
/* Compile with memory tracking support? If disabled, mosquitto won't track
* heap memory usa... | /* Uncomment to compile with tcpd/libwrap support. */
//#define WITH_WRAP
/* Compile with database upgrading support? If disabled, mosquitto won't
* automatically upgrade old database versions. */
//#define WITH_DB_UPGRADE
/* Compile with memory tracking support? If disabled, mosquitto won't track
* heap memory usa... | Add compile option for sqlite db upgrades. | Add compile option for sqlite db upgrades.
| C | bsd-3-clause | zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto |
1e8e7adb26d12dc17ef4909e153f0c949883692d | src/kernel/task/task_alloc_onstack.c | src/kernel/task/task_alloc_onstack.c | /**
* @file
*
* @date Nov 12, 2013
* @author: Anton Bondarev
*/
#include <stddef.h>
#include <kernel/task.h>
#include <kernel/thread/thread_stack.h>
#include <kernel/panic.h>
struct task *task_alloc(struct task *task, size_t task_size) {
void *addr;
assert(task);
assert(task->main_thread);
addr = thread_sta... | /**
* @file
*
* @date Nov 12, 2013
* @author: Anton Bondarev
*/
#include <stddef.h>
#include <kernel/task.h>
#include <kernel/thread/thread_stack.h>
#include <kernel/panic.h>
struct task *task_alloc(struct task *task, size_t task_size) {
void *addr;
assert(task);
assert(task->main_thread);
addr = thread_st... | Add newline between comments and includes | taskres: Add newline between comments and includes | C | bsd-2-clause | Kakadu/embox,embox/embox,Kakadu/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,Kakadu/embox,mike2390/embox,abusalimov/embox,mike2390/embox,embox/embox,vrxfile/embox-trik,mike2390/embox,gzoom13/embox,gzoom13/embox,Kefir0192/embox,gzoom13/embox,abusalimov/embox,embox/embox,vrxfile/embox-trik,Kef... |
948ec1820d49c8ec2ec68eb000e088ead4c3bf37 | src/population.h | src/population.h | #ifndef POPULATION_H
#define POPULATION_H
class POPULATION
{
public:
int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false);
int **createRandomPopulation(int **population, int individuals, int genes);
};
#endif
| #ifndef POPULATION_H
#define POPULATION_H
class POPULATION
{
public:
int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false);
int createRandomPopulation(int **population, int individuals, int genes);
};
#endif
| Update return datatype function 'createRandomPopulation'. | Update return datatype function 'createRandomPopulation'.
| C | mit | wkohlenberg/simple_GA |
48ebeb144908b83d6ace61a7709267ae65048c7f | include/dsnutil/log/sinkmanager.h | include/dsnutil/log/sinkmanager.h | #ifndef SINKMANAGER_H
#define SINKMANAGER_H
#include <dsnutil/singleton.h>
#include <dsnutil/log/base.h>
#include <map>
#include <string>
#include <boost/shared_ptr.hpp>
#include <boost/log/sinks.hpp>
namespace dsn {
namespace log {
class SinkManager : public dsn::Singleton<SinkManager>, public Base<SinkManager... | #ifndef SINKMANAGER_H
#define SINKMANAGER_H
#include <dsnutil/dsnutil_cpp_Export.h>
#include <dsnutil/singleton.h>
#include <dsnutil/log/base.h>
#include <map>
#include <string>
#include <boost/shared_ptr.hpp>
#include <boost/log/sinks.hpp>
namespace dsn {
namespace log {
class dsnutil_cpp_EXPORT SinkManager : ... | Add missing DLL export for log::SinkManager | Add missing DLL export for log::SinkManager
| C | bsd-3-clause | png85/dsnutil_cpp |
849d9e94eeb91981ffb0e2b3bfb87e52583c4b6a | CommonFunc.h | CommonFunc.h | // CommonFunc.h -- header file
/*
*
* Author: septimomend (Ivan Chapkailo)
*
* 30.06.2017
*
*/
#pragma once
#include "stdafx.h"
#include "AllControllers.h"
#include "AdditionalBuffer.h"
class Common : public AllControllers
{
public:
Common(AllControllers* all); // cstr
/*
* draws
*/
void drawRows(A... | // CommonFunc.h -- header file
/*
*
* Author: septimomend (Ivan Chapkailo)
*
* 30.06.2017
*
*/
#pragma once
#include "stdafx.h"
#include "AllControllers.h"
#include "AdditionalBuffer.h"
class Common : public AllControllers
{
public:
Common(AllControllers* all); // cstr
/*
* draws
*/
void drawRows(A... | Add new functions described in TODO comment | TODO: Add new functions described in TODO comment
| C | mit | septimomend/UNIX-C-Text-Editor,septimomend/UNIX-C-Text-Editor |
81de6e841c6775e619b94c12be49969be9d68968 | libmypaint.c | libmypaint.c | /* Include this file in your project
* if you don't want to build libmypaint as a separate library
* Note that still need to do -I./path/to/libmypaint/sources
* for the includes here to succeed. */
#include "mapping.c"
#include "helpers.c"
#include "brushmodes.c"
#include "fifo.c"
#include "operationqueue.c"
#inclu... | /* Include this file in your project
* if you don't want to build libmypaint as a separate library
* Note that still need to do -I./path/to/libmypaint/sources
* for the includes here to succeed. */
#include "helpers.c"
#include "brushmodes.c"
#include "fifo.c"
#include "operationqueue.c"
#include "rng-double.c"
#in... | Remove a lingering ref to mapping.c | Remove a lingering ref to mapping.c
| C | isc | achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint |
20f0178a232029bea7f34adecb6e5bdd6fada483 | test/Analysis/outofbound.c | test/Analysis/outofbound.c | // RUN: clang -checker-simple -analyzer-store-region -verify %s
char f1() {
char* s = "abcd";
return s[4]; // expected-warning{{Load or store into an out-of-bound memory position.}}
}
| Add test case for out-of-bound memory access checking. | Add test case for out-of-bound memory access checking.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59931 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | |
e2463c6289e8b0821b2c76f010c922c58dd76aa0 | polygonmain.c | polygonmain.c | #include <polygon.h>
int main(int argc, char* argv[]) {
Polygon lol;
lol=createPolygon();
printf("\n\nx premier point : %f", lol->value.x);
printf("\ny premier point : %f\n\n", lol->value.y);
return EXIT_SUCCESS;
}
| Create the main program with print the coordinates of the first point of a newly generated polygon | Create the main program with print the coordinates of the first point of a newly generated polygon
| C | mit | UTBroM/GeometricLib | |
4720a44172fff28774ded70c15f1df66a43b8b44 | src/util/util_version.h | src/util/util_version.h | /*
* Copyright 2011-2016 Blender Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | /*
* Copyright 2011-2016 Blender Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Bump version to 1.13, matching blender 2.90 release cycle | Bump version to 1.13, matching blender 2.90 release cycle
| C | apache-2.0 | tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird |
96c9be5cd8c08e270a848b36f010a266ecb56931 | menpo/feature/cpp/WindowFeature.h | menpo/feature/cpp/WindowFeature.h | #pragma once
#if _MSC_VER < 1900
#define round(x) (x >= 0 ? (x + 0.5) : (x - 0.5))
#endif
class WindowFeature {
public:
WindowFeature();
virtual ~WindowFeature();
virtual void apply(double *windowImage, double *descriptorVector) = 0;
unsigned int descriptorLengthPerWindow;
};
| #pragma once
#if defined(_MSC_VER) && _MSC_VER < 1900
#define round(x) (x >= 0 ? (x + 0.5) : (x - 0.5))
#endif
class WindowFeature {
public:
WindowFeature();
virtual ~WindowFeature();
virtual void apply(double *windowImage, double *descriptorVector) = 0;
unsigned int descriptorLengthPerWindow;
};
| Check _MSC_VER is defined and less than 1900 | Check _MSC_VER is defined and less than 1900
| C | bsd-3-clause | grigorisg9gr/menpo,menpo/menpo,menpo/menpo,grigorisg9gr/menpo,grigorisg9gr/menpo,menpo/menpo,patricksnape/menpo,yuxiang-zhou/menpo,patricksnape/menpo,yuxiang-zhou/menpo,patricksnape/menpo,yuxiang-zhou/menpo |
995d9a599905dfbb059b7c5d3ba8b0af240e42d5 | 021.calling_c/c_code.c | 021.calling_c/c_code.c | typedef union {
unsigned char* ptr;
unsigned short word[2];
} word_extract_t;
void
PokeBitplanePointers(unsigned short* copper, unsigned char* bitplanes, unsigned offset, unsigned numBitplanes, unsigned screenWidthBytes)
{
int i;
copper += offset;
for (i = 0; i < numBitplanes; i++) {
word_extract_t ext... | typedef union {
unsigned char* ptr;
struct {
unsigned short hi;
unsigned short lo;
} words;
} word_extract_t;
void
PokeBitplanePointers(unsigned short* copper, unsigned char* bitplanes, unsigned offset, unsigned numBitplanes, unsigned screenWidthBytes)
{
int i;
copper += offset;
for (i = 0; i < n... | Make C example more C, less asm | Make C example more C, less asm
| C | bsd-2-clause | alpine9000/amiga_examples,alpine9000/amiga_examples,alpine9000/amiga_examples |
ee41eea947ebe2f1f627fafe0e429b5dcaaab944 | arch/powerpc/boot/reg.h | arch/powerpc/boot/reg.h | #ifndef _PPC_BOOT_REG_H
#define _PPC_BOOT_REG_H
/*
* Copyright 2007 Davud Gibson, IBM Corporation.
*
* 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 (... | #ifndef _PPC_BOOT_REG_H
#define _PPC_BOOT_REG_H
/*
* Copyright 2007 Davud Gibson, IBM Corporation.
*
* 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 (... | Add mfspr/mtspr inline macros to 4xx bootwrapper | [POWERPC] 4xx: Add mfspr/mtspr inline macros to 4xx bootwrapper
The 4xx bootwrapper occasionally needs to access SPR registers,
this adds mfspr/mtspr wrappers to it.
Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
Signed-off-by: Josh Boyer <94755a79aca753e683bb6d0e... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
08c3a7a1490994541c1771fc5b1e968f040277ab | src/error.c | src/error.c | #include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "error.h"
static char *pname;
void
setpname(char *name)
{
pname = name;
}
char *
getpname(void)
{
return pname;
}
static inline
void
vwarn(const char *fmt, va_list al)
{
fflush(NULL);
if (pname != NULL)
... | #include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "error.h"
static char *pname;
void
setpname(char *name)
{
pname = name;
}
char *
getpname(void)
{
return pname;
}
static inline
void
vwarn(const char *fmt, va_list al)
{
fflush(NULL);
if (pname != NULL)
... | Change function die to exit with status 2 instead of 0 | Change function die to exit with status 2 instead of 0
| C | isc | flimberger/qsmerge,flimberger/qsmerge |
6fbbd5dad25f58fc79c7e9b42528e3f21ebe6ba8 | include/kbd.h | include/kbd.h | #ifndef H_KBD
#define H_KBD
#include <stddef.h>
#include <stdbool.h>
struct keyevent {
int keycode;
char character;
bool release;
bool shift;
bool ctrl;
} keybuffer[128];
void kbdinit();
bool kbdavail();
struct keyevent* kbdpoll();
void kbdregsig(bool* b);
void kbdunregsig(bool* b);
#endif
| #ifndef H_KBD
#define H_KBD
#include <stddef.h>
#include <stdbool.h>
struct keyevent {
int keycode;
char character;
bool release;
bool shift;
bool ctrl;
} keybuffer[256];
void kbdinit();
bool kbdavail();
struct keyevent* kbdpoll();
void kbdregsig(bool* b);
void kbdunregsig(bool* b);
#endif
| Raise keyboard event stack size to 256 | Raise keyboard event stack size to 256
| C | bsd-2-clause | Easimer/easios,Easimer/easios,Easimer/easios |
711ac30abb29d7209f685227f3a1f978a0d01390 | IAAI.c | IAAI.c | #include <stdio.h>
#include <stdlib.h>
int main() {
system("/bin/stty raw");
int i = 0;
char str[] = "I AM AN IDIOT ";
while(1){
for(i = 0; i<14; i++) {
getchar();
printf("\b%c", str[i]);
}
system("/bin/stty cooked");
printf("\n");
system("/bin/stty raw");
}
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
#define STTY "/bin/stty "
const char RAW[] = STTY "raw";
const char COOKED[] = STTY "cooked";
int main() {
system(RAW);
int i = 0;
char str[] = "I AM AN IDIOT ";
while(1){
for(i = 0; i<14; i++) {
getchar();
printf("\b%c", str[i]);
}
system(COOKE... | Make it easier to change stty constant if needed | Make it easier to change stty constant if needed
| C | mit | vinamarora8/IAAI |
216591596dfbb35c79674c18d0c6f28e1e040857 | src/mb.h | src/mb.h | /*
* mb.h - publicly accessible entry points for the memory buffer
*/
#ifndef _MB_H_
#define _MB_H_
#include "tuple.h"
#include "table.h"
#include "timestamp.h"
void mb_init();
int mb_insert(unsigned char *buf, long len, Table *table);
tstamp_t mb_insert_tuple(int ncols, char *vals[], Table *table);
tstamp_t hea... | /*
* Copyright (c) 2013, Court of the University of Glasgow
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* thi... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | jsventek/Cache,fergul/Cache,jsventek/Cache,jsventek/Cache,fergul/Cache,fergul/Cache |
fa1d808ecb2f1ec49f77f8eeecdda83c3d8eae76 | test/main.c | test/main.c | #include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
int main()
{
struct sockaddr_in serv_addr;
memset(&serv_addr, 0, sizeof(serv_addr));
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = inet_addr("127.0.0.1... | Add some basic test for message handling. | Add some basic test for message handling.
| C | mit | gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet | |
43d84dfbfe362574f4c289da1103232769b77a89 | MWEditorAddOns/MTextAddOn.h | MWEditorAddOns/MTextAddOn.h | //==================================================================
// MTextAddOn.h
// Copyright 1996 Metrowerks Corporation, All Rights Reserved.
//==================================================================
// This is a proxy class used by Editor add_ons. It does not inherit from BView
// but provides an ab... | Add BeIDE header required for building | Add BeIDE header required for building
Copyright 1996 Metrowerks Corporation, All Rights Reserved.
| C | mit | mmuman/dontworry,mmuman/dontworry | |
ea0ae0b3bb59a3687947d45816c3005f7f60eab6 | include/version.h | include/version.h | /*
* Super Entity Game Server
* http://segs.sf.net/
* Copyright (c) 2006 Super Entity Game Server Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*
*/
#define VersionString "segs v0.5.0 (The Unsilencer)";
#define CopyrightString "Super Entity G... | /*
* Super Entity Game Server
* http://segs.sf.net/
* Copyright (c) 2006 Super Entity Game Server Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*
*/
#define ProjectName "SEGS"
#define VersionNumber "0.5.0"
#define VersionName "The Unsilencer"... | Split up VersionString, will be useful for WebUI | Split up VersionString, will be useful for WebUI
| C | bsd-3-clause | nemerle/Segs,Segs/Segs,Segs/Segs,Segs/Segs,nemerle/Segs,broxen/Segs,nemerle/Segs,broxen/Segs,nemerle/Segs,Segs/Segs,broxen/Segs,broxen/Segs,broxen/Segs,nemerle/Segs,broxen/Segs,nemerle/Segs,nemerle/Segs,broxen/Segs,Segs/Segs,Segs/Segs,Segs/Segs |
8c89257b9b7b58dbdeb977295e95863793877b70 | cpp/exit_status.h | cpp/exit_status.h | #ifndef BIOTOOL_EXIT_STATUS_H
#define BIOTOOL_EXIT_STATUS_H
typedef enum {Success=0, Error_command_line=1, Error_open_file=2, Error_parse_file=3} exit_status;
#endif
| #ifndef BIOTOOL_EXIT_STATUS_H
#define BIOTOOL_EXIT_STATUS_H
typedef enum {Success=0, Error_open_file=1, Error_command_line=2, Error_parse_file=3} exit_status;
#endif
| Correct c++ exit status values | Correct c++ exit status values
| C | mit | bjpop/biotool,bjpop/biotool,drpowell/biotool,bjpop/biotool,supernifty/biotool,bjpop/biotool,bjpop/biotool,drpowell/biotool,biotool-paper/biotool,lonsbio/biotool,lonsbio/biotool,biotool-paper/biotool,bjpop/biotool,supernifty/biotool,drpowell/biotool,biotool-paper/biotool,drpowell/biotool,lonsbio/biotool,biotool-paper/bi... |
8a868d3f7c3c7fa91b7439607adc7a21207f88cd | test/CodeGen/debug-dead-local-var.c | test/CodeGen/debug-dead-local-var.c | // FIXME: Check IR rather than asm, then triple is not needed.
// RUN: %clang_cc1 -mllvm -asm-verbose -triple %itanium_abi_triple -S -O2 -g %s -o - | FileCheck %s
// Radar 8122864
// Code is not generated for function foo, but preserve type information of
// local variable xyz.
static void foo() {
// CHECK: DW_TAG_str... | // FIXME: Check IR rather than asm, then triple is not needed.
// RUN: %clang_cc1 -triple %itanium_abi_triple -O2 -g -emit-llvm %s -o - | FileCheck %s
// Radar 8122864
// Code is not generated for function foo, but preserve type information of
// local variable xyz.
static void foo() {
// CHECK: DW_TAG_structure_type ... | Make this test emit llvm IR rather than assembly. | Make this test emit llvm IR rather than assembly.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@209255 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
982731bf91beaa2c697ab32b1d388054c78aa05f | sky/compositor/compositor_options.h | sky/compositor/compositor_options.h | // Copyright 2015 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 SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_
#define SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_
#include "base/macros.h"
#include <vector>
namespace sky {
nam... | // Copyright 2015 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 SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_
#define SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_
#include "base/macros.h"
#include <vector>
namespace sky {
nam... | Make the single argument constructor to CompositorOptions explicit | Make the single argument constructor to CompositorOptions explicit
| C | bsd-3-clause | mdakin/engine,jamesr/sky_engine,lyceel/engine,jason-simmons/flutter_engine,aam/engine,flutter/engine,chinmaygarde/sky_engine,jamesr/flutter_engine,abarth/sky_engine,chinmaygarde/sky_engine,mikejurka/engine,mpcomplete/engine,devoncarew/sky_engine,jason-simmons/sky_engine,jason-simmons/sky_engine,jason-simmons/sky_engine... |
f17a48d1f85e2f23638ba42ab1915c2757acd39b | fw/libs/AdapterBoard/usb_commands.h | fw/libs/AdapterBoard/usb_commands.h | #ifndef USB_COMMANDS_H
#define USB_COMMANDS_H
#define CMD_ACK 0xAF
#define CMD_RESP 0xBF
#define CMD_BL_ON 0x10
#define CMD_BL_OFF 0x11
#define CMD_BL_LEVEL 0x12
#define CMD_BL_UP 0x13
#define CMD_BL_DOWN 0x14
#define CMD_BL_GET_STATE 0x1F
#define CMD_RGB_SET 0x20
#... | Declare all supported USB commands | Declare all supported USB commands
| C | bsd-3-clause | OSCARAdapter/OSCAR,OSCARAdapter/OSCAR | |
3190d0e00909383ef52ef56083a1c25396f597ae | OrbitQt/topdownwidget.h | OrbitQt/topdownwidget.h | // Copyright (c) 2020 The Orbit 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 ORBIT_QT_TOP_DOWN_WIDGET_H_
#define ORBIT_QT_TOP_DOWN_WIDGET_H_
#include <QSortFilterProxyModel>
#include <memory>
#include "TopDownView.h"
#in... | // Copyright (c) 2020 The Orbit 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 ORBIT_QT_TOP_DOWN_WIDGET_H_
#define ORBIT_QT_TOP_DOWN_WIDGET_H_
#include <QSortFilterProxyModel>
#include <memory>
#include "TopDownView.h"
#in... | Use Qt 5 signal-slot syntax in TopDownWidget | Use Qt 5 signal-slot syntax in TopDownWidget
| C | bsd-2-clause | google/orbit,google/orbit,google/orbit,google/orbit |
0bedca3d5d44c2bd13218defeedade16fb30ba9f | modules/bot_admin.h | modules/bot_admin.h | class AdminHook : public Module {
public:
virtual ~AdminHook();
virtual std::vector<std::vector<std::string> > adminCommands();
virtual void onAdminCommand(std::string server, std::string nick, std::string command, std::string message, bool dcc, bool master);
};
class AdminMod : public Module {
public:
virtu... | class AdminHook : public Module {
public:
virtual ~AdminHook();
virtual std::vector<std::vector<std::string> > adminCommands();
virtual void onAdminCommand(std::string server, std::string nick, std::string command, std::string message, bool dcc, bool master);
};
class AdminMod {
public:
virtual ~AdminMod();
... | Change this so it works. This may be tricky to work through when a lot of modules depend on a lot of other modules. | Change this so it works. This may be tricky to work through when a lot of modules depend on a lot of other modules.
| C | mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo |
9c6ae0d5642cf5979ea43112f134a7fb3c02f5b7 | RIButtonItem.h | RIButtonItem.h | //
// RIButtonItem.h
// Shibui
//
// Created by Jiva DeVoe on 1/12/11.
// Copyright 2011 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void (^RISimpleAction)();
@interface RIButtonItem : NSObject
{
NSString *label;
RISimpleAction action;
}
@property (retain, nonatom... | //
// RIButtonItem.h
// Shibui
//
// Created by Jiva DeVoe on 1/12/11.
// Copyright 2011 Random Ideas, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RIButtonItem : NSObject
{
NSString *label;
void (^action)();
}
@property (retain, nonatomic) NSString *label;
@property (copy, no... | Replace typedef with literal type | Replace typedef with literal type
Using the literal typedef makes Xcode's code sense give you a parameter
stand-in that can be expanded with a shift-enter.
| C | mit | Weever/UIAlertView-Blocks,200895045/UIAlertView-Blocks,jivadevoe/UIAlertView-Blocks,shanyimin/UIAlertView-Blocks,z8927623/UIAlertView-Blocks |
097d6ccf7da44013c6d28fea7dce23708b77a044 | tile.h | tile.h | #define VT_POINT 1
#define VT_LINE 2
#define VT_POLYGON 3
#define VT_END 0
#define VT_MOVETO 1
#define VT_LINETO 2
#define VT_CLOSEPATH 7
#define VT_STRING 1
#define VT_NUMBER 2
#define VT_BOOLEAN 7
struct pool;
void deserialize_int(char **f, int *n);
struct pool_val *deserialize_string(char **f, struct pool *p, in... | #define VT_POINT 1
#define VT_LINE 2
#define VT_POLYGON 3
#define VT_END 0
#define VT_MOVETO 1
#define VT_LINETO 2
#define VT_CLOSEPATH 7
#define VT_STRING 1
#define VT_NUMBER 2
#define VT_BOOLEAN 7
struct pool;
void deserialize_int(char **f, int *n);
struct pool_val *deserialize_string(char **f, struct pool *p, in... | Use a bitfield to make the index 2/3 the size, to save some disk churn | Use a bitfield to make the index 2/3 the size, to save some disk churn
| C | bsd-2-clause | joykuotw/tippecanoe,mapbox/tippecanoe,mapbox/tippecanoe,joykuotw/tippecanoe,mapbox/tippecanoe,landsurveyorsunited/tippecanoe,mapbox/tippecanoe,landsurveyorsunited/tippecanoe |
5232091bbc3b617f737db18bbd3bad97914f73fd | src/BrainTree.h | src/BrainTree.h | #pragma once
#include "BehaviorTree.hpp"
#include "Blackboard.hpp"
#include "Composite.hpp"
#include "Decorator.hpp"
#include "Leaf.hpp"
#include "Node.hpp"
// CompositeS
#include "Composites/MemSelector.hpp"
#include "Composites/MemSequence.hpp"
#include "Composites/ParallelSequence.hpp"
#include "Composites/Selecto... | #pragma once
#include "BehaviorTree.h"
#include "Blackboard.h"
#include "Composite.h"
#include "Decorator.h"
#include "Leaf.h"
#include "Node.h"
// Composites
#include "composites/MemSelector.h"
#include "composites/MemSequence.h"
#include "composites/ParallelSequence.h"
#include "composites/Selector.h"
#include "com... | Change headers from *.hpp to *.h, and add LeafBuilder. | Change headers from *.hpp to *.h, and add LeafBuilder.
| C | mit | arvidsson/bt |
865b2206d1a409e2651919baadb6cf674b014950 | GNETextSearch/GNETextSearchPrivate.h | GNETextSearch/GNETextSearchPrivate.h | //
// GNETextSearchPrivate.h
// GNETextSearch
//
// Created by Anthony Drendel on 11/14/15.
// Copyright © 2015 Gone East LLC. All rights reserved.
//
#ifndef GNETextSearchPrivate_h
#define GNETextSearchPrivate_h
#ifdef __cplusplus
extern "C" {
#endif
#ifndef TSEARCH_INLINE
#if defined(_MSC_VER) && !defined(... | //
// GNETextSearchPrivate.h
// GNETextSearch
//
// Created by Anthony Drendel on 11/14/15.
// Copyright © 2015 Gone East LLC. All rights reserved.
//
#ifndef GNETextSearchPrivate_h
#define GNETextSearchPrivate_h
#ifdef __cplusplus
extern "C" {
#endif
#ifndef TSEARCH_INLINE
#if defined(_MSC_VER) && !defined(... | Define TSEARCH_INLINE as static inline | Define TSEARCH_INLINE as static inline
| C | bsd-2-clause | atdrendel/GNETextSearch,atdrendel/GNETextSearch |
b5e45c4d0917a79ef02ba04b4c6c7bcba45193dc | examples/helloElektra.c | examples/helloElektra.c | /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdb.h>
#include <stdio.h>
int main (void)
{
KeySet * config = ksNew (0, KS_END);
Key * root = keyNew ("user/test", KEY_END);
printf ("Open key database\n");
KDB * handle = kdbOpen (root);
printf... | /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdb.h>
#include <stdio.h>
int main (void)
{
KeySet * config = ksNew (0, KS_END);
Key * root = keyNew ("user/test", KEY_END);
printf ("Open key database\n");
KDB * handle = kdbOpen (root);
printf... | Use more common technical term | Examples: Use more common technical term
| C | bsd-3-clause | e1528532/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,BernhardDenner/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra... |
f332badaeb115c6db8d3f6b1cf97af6155df3cc7 | include/vkalloc.h | include/vkalloc.h | #ifndef VKALLOC_VKALLOC_H
#define VKALLOC_VKALLOC_H
#include <stdlib.h>
#include <stdint.h>
#include <vulkan/vulkan.h>
#ifndef VKA_ALLOC_SIZE
#define VKA_ALLOC_SIZE 1024*1024*4
#endif
struct VkAllocation {
VkDeviceMemory deviceMemory;
uint64_t offset;
uint64_t size;
};
void vkaInit(VkPhysicalDevice phys... | #ifndef VKALLOC_VKALLOC_H
#define VKALLOC_VKALLOC_H
#include <stdlib.h>
#include <stdint.h>
#include <vulkan/vulkan.h>
#ifndef VKA_ALLOC_SIZE
#define VKA_ALLOC_SIZE 1024*1024*4
#endif
struct VkAllocation {
VkDeviceMemory deviceMemory = VK_NULL_HANDLE;
uint64_t offset = 0;
uint64_t size = 0;
};
void vkaI... | Add default values to VkAllocation | Add default values to VkAllocation
| C | mit | rhynodegreat/VkAlloc,rhynodegreat/VkAlloc |
db9d3ddf48a03745e0a2b77f5cd3e2925539d1a6 | drivers/include/nvram-spi.h | drivers/include/nvram-spi.h | /*
* Copyright (C) 2015 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup nvram
* @{
*
* @file
*
* @brief Device interface for various SPI connected ... | Add generic SPI connected NVRAM interface. | nvram: Add generic SPI connected NVRAM interface.
| C | lgpl-2.1 | malosek/RIOT,alex1818/RIOT,gautric/RIOT,EmuxEvans/RIOT,gbarnett/RIOT,phiros/RIOT,abp719/RIOT,tfar/RIOT,rajma996/RIOT,sgso/RIOT,ant9000/RIOT,shady33/RIOT,malosek/RIOT,plushvoxel/RIOT,neumodisch/RIOT,binarylemon/RIOT,kaspar030/RIOT,herrfz/RIOT,basilfx/RIOT,BytesGalore/RIOT,rakendrathapa/RIOT,bartfaizoltan/RIOT,Yonezawa-T... | |
fb75b2583eb82dc42cb8e5bd3c1eda1c661eb76d | test/Analysis/array-struct.c | test/Analysis/array-struct.c | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void g1(struct s* p);
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;... | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void g1(struct s* p);
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;... | Add test for incomplete struct pointer. | Add test for incomplete struct pointer.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59236 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
39332e3e060035ac6f4660a4e650ffb4b8da1c3c | test/CodeGen/dbg-const-int128.c | test/CodeGen/dbg-const-int128.c | // RUN: %clang_cc1 -S -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// CHECK: !DIGlobalVariable({{.*}}
// CHECK-NOT: expr:
static const __uint128_t ro = 18446744073709551615;
void bar(__uint128_t);
void foo() { bar(ro); }
| // RUN: %clang_cc1 -triple x86_64-unknown-linux -S -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// CHECK: !DIGlobalVariable({{.*}}
// CHECK-NOT: expr:
static const __uint128_t ro = 18446744073709551615;
void bar(__uint128_t);
void foo() { bar(ro); }
| Add explicit triple to test to fix arm bots. | Add explicit triple to test to fix arm bots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@290008 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
527e5429989782aef5411a18bf01cc9b4170fde1 | test/Parser/pointer_promotion.c | test/Parser/pointer_promotion.c | // RUN: clang-cc -fsyntax-only -verify %s
int test() {
void *vp;
int *ip;
char *cp;
struct foo *fp;
struct bar *bp;
short sint = 7;
if (ip < cp) {} // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}}
if (cp < fp) {} // expected-warning {{comparison of distinct pointer t... | // RUN: clang-cc -fsyntax-only -verify %s
void test() {
void *vp;
int *ip;
char *cp;
struct foo *fp;
struct bar *bp;
short sint = 7;
if (ip < cp) {} // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}}
if (cp < fp) {} // expected-warning {{comparison of distinct pointer ... | Fix test case, which has a control-reaches-end-of-non-void warning that was being masked by previous bug. | Fix test case, which has a control-reaches-end-of-non-void warning that was
being masked by previous bug.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@76858 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.