commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
0f4cfc0a19d5225ffe18695b81dc28bb2ee664d9 | kernel/stdnoreturn.h | kernel/stdnoreturn.h | /*
* Copyright (c) 2011-2013 Graham Edgecombe <graham@grahamedgecombe.com>
*
* 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 ... | /*
* Copyright (c) 2011-2013 Graham Edgecombe <graham@grahamedgecombe.com>
*
* 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 ... | Fix lack of _Noreturn support in Clang 3.0. | Fix lack of _Noreturn support in Clang 3.0.
| C | isc | grahamedgecombe/arc,grahamedgecombe/arc,grahamedgecombe/arc |
28726b93b0b9ae221f54ab7cc297d09a9af6843a | src/lib/pubkey/rfc6979/rfc6979.h | src/lib/pubkey/rfc6979/rfc6979.h | /*
* RFC 6979 Deterministic Nonce Generator
* (C) 2014 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_RFC6979_GENERATOR__
#define BOTAN_RFC6979_GENERATOR__
#include <botan/bigint.h>
#include <string>
namespace Botan {
/**
* @param x the secret (EC)DSA key
* @param q the group order... | /*
* RFC 6979 Deterministic Nonce Generator
* (C) 2014 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_RFC6979_GENERATOR_H__
#define BOTAN_RFC6979_GENERATOR_H__
#include <botan/bigint.h>
#include <string>
namespace Botan {
/**
* @param x the secret (EC)DSA key
* @param q the group o... | Fix header guard for amalgamation | Fix header guard for amalgamation
| C | bsd-2-clause | randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/bota... |
ea154d7d98f4c6d1ded69031ff583b4f4c47118b | src/core/internal/kms-utils.h | src/core/internal/kms-utils.h | #ifndef __KMS_UTILS_H__
#define __KMS_UTILS_H__
#include <gst/gst.h>
GstElement* kms_get_pipeline();
void kms_dynamic_connection(GstElement *orig, GstElement *dest, const gchar *name);
GstElement* kms_utils_get_element_for_caps(GstElementFactoryListType type,
GstRank rank, const GstCaps *caps,
GstPadDirecti... | #ifndef __KMS_UTILS_H__
#define __KMS_UTILS_H__
#include <gst/gst.h>
#define KMS_DEBUG_PIPE(name) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS( \
GST_BIN(kms_get_pipeline()), \
GST_DEBUG_GRAPH_SHOW_ALL, name); \
GstElement* kms_get_pipeline();
void kms_dynamic_connection(GstElement *orig, GstElement *dest, const gch... | Create a macro for pipeline debugging | Create a macro for pipeline debugging
| C | lgpl-2.1 | lulufei/kurento-media-server,shelsonjava/kurento-media-server,shelsonjava/kurento-media-server,mparis/kurento-media-server,todotobe1/kurento-media-server,Kurento/kurento-media-server,Kurento/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-media-server,TribeMedia/kurento-media-server,lulufei/kurento-... |
ec313ebc744efcab09f2782aa86067cbeec8a424 | [42]_Bleichenbacher_s_e3_RSA_Attack/rsa_sign_constants.h | [42]_Bleichenbacher_s_e3_RSA_Attack/rsa_sign_constants.h | #ifndef _RSA_SIGN_CONSTANTS_H_
#define _RSA_SIGN_CONSTANTS_H_
/*
* RSA Block length. Used to determine the modulo's size.
*/
#define RSA_SIGN_BLOCK_LEN (1024)
#define RSA_SIGN_HASH_METHOD_SHA_1 ("sha1")
#define RSA_SIGN_HASH_METHOD_SHA_256 ("sha256")
/*
* Supported Hashing methods for RSA signature validation
*... | #ifndef _RSA_SIGN_CONSTANTS_H_
#define _RSA_SIGN_CONSTANTS_H_
/*
* RSA Block length. Used to determine the modulo's size.
*/
#define RSA_SIGN_BLOCK_LEN (RSA_SIGN_KEY_BITSIZE/8)
#define RSA_SIGN_KEY_BITSIZE (1024)
#define RSA_SIGN_HASH_METHOD_SHA_1 ("sha1")
#define RSA_SIGN_HASH_METHOD_SHA_256 ("sha256")
/*
* Sup... | Add RSA byte length constant | Add RSA byte length constant
A RSA byte length define was added to disambiguate RSA_KEY_BITLENGTH
(typically 1024 here) from the RSA byte block length.
| C | mit | lucasg/Cryptopals,lucasg/Cryptopals,lucasg/Cryptopals,lucasg/Cryptopals |
55af85fb1da9a202d6ca6f437c30b927d4153c39 | Include/KAI/Platform/GameController.h | Include/KAI/Platform/GameController.h |
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H
#define KAI_PLATFORM_GAME_CONTROLLER_H
#include KAI_PLATFORM_INCLUDE(GameController.h)
#endif // SHATTER_PLATFORM_GAME_CONTROLLER_H
//EOF
|
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H
#define KAI_PLATFORM_GAME_CONTROLLER_H
#include KAI_PLATFORM_INCLUDE(GameController.h)
#endif
//EOF
| Add some color for console output | Add some color for console output
Former-commit-id: 315cc71afe5d5245e60ce4564328619c49310b6a
Former-commit-id: 4afa9ab712a2bdbef25bee286ff0bdcf2a8da2b2 | C | mit | cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI |
296a1a19d14a6bf5d97e66370d89f0b64da87175 | iree/compiler/Translation/SPIRV/LinalgToSPIRV/Passes.h | iree/compiler/Translation/SPIRV/LinalgToSPIRV/Passes.h | // Copyright 2020 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 2020 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 mismatch in function signature and implementation. | Fix mismatch in function signature and implementation.
PiperOrigin-RevId: 299956663
| C | apache-2.0 | google/iree,iree-org/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree |
2307eb88c7452b5a83f7a7931bdf2a0a0435f5f8 | test/input/replace_minus.c | test/input/replace_minus.c | #include <string.h>
#include "../../input.h"
int main(void)
{
char before[64] = "-2+1";
char after[64] = "(0-2.000000)+1";
replace_minus(before);
if (strcmp(before, after) == 0){
return (0);
}
else {
return (-1);
}
}
| #include <string.h>
#include "../../input.h"
int main(void)
{
// a case removable
char before1[64] = "-2+1";
char after1[64] = "(0-2.000000)+1";
replace_minus(before1);
if (strcmp(before1, after1) != 0){
return (-1);
}
// a case not removable
char before2[64] = "3-2";
char ... | Add new test to remove_minus | Add new test to remove_minus
| C | mit | Roadagain/Calculator,Roadagain/Calculator |
40225798d32b3b36bf03583865fe88bfee2f31bc | lib/Common/Memory/MarkContextWrapper.h | lib/Common/Memory/MarkContextWrapper.h | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Fix casing for relatively included header to fix Linux builds | Fix casing for relatively included header to fix Linux builds
| C | mit | mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore |
5284cde440e54c6a841efb6a5864afdf3a0aa78e | sdl2cubes/tests/test_mesh.c | sdl2cubes/tests/test_mesh.c | #include "../src/mesh_obj.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *args[]) {
if(argc < 2) {
printf("test_mesh test-mesh-name.obj\n");
return 0;
}
// read mesh from standard input, push into obj parser
Mesh *mesh = meshReadOBJ(args[1]);
if(!mesh) {
r... | #include "../src/mesh_obj.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *args[]) {
if(argc < 2) {
printf("usage: test_mesh filename.obj\n");
printf(" pass - (a dash character) as filename to read from stdin\n");
return 0;
}
Mesh *mesh;
//... | Make mesh loader actually read stdin | tests: Make mesh loader actually read stdin
| C | unlicense | teistiz/instanssi-samples |
adcbe2a70a34603eba67d5048b37132804472cda | src/libidaten/cuda/cudainit.h | src/libidaten/cuda/cudainit.h | #pragma once
#include <cuda.h>
#include "cuda/cudautil.h"
namespace idaten {
void initCuda()
{
checkCudaErrors(cuInit(0));
}
} | #pragma once
#include <cuda.h>
#include "cuda/cudautil.h"
namespace idaten {
inline void initCuda()
{
checkCudaErrors(cuInit(0));
}
} | Fix a bug that not inlined. | Fix a bug that not inlined.
| C | mit | nakdai/aten,nakdai/aten |
fa458a1f7c574c0fe8d40dff4c1af418c365b8ad | src/main.c | src/main.c | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "basic.h"
#include "tuntap_if.h"
#include "utils.h"
int main(int argc, char** argv) {
int tun_fd;
char buf[100];
char *dev = calloc(10, 1);
CLEAR(buf);
tun_fd = tun_alloc(dev);
if (set_i... | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "basic.h"
#include "tuntap_if.h"
#include "utils.h"
int main(int argc, char** argv) {
int tun_fd;
char buf[100];
char *dev = calloc(10, 1);
CLEAR(buf);
tun_fd = tun_alloc(dev);
if (set_i... | Read from tun buffer and print hexdump in loop | Read from tun buffer and print hexdump in loop
| C | mit | saminiir/level-ip,saminiir/level-ip |
d222c00f6c4fe1aea3bf4afe45582af8977d6d59 | Sensorama/Sensorama/SRDataModel.h | Sensorama/Sensorama/SRDataModel.h | //
// SRDataModel.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 19/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Realm/Realm.h"
@interface SRDataPoint : RLMObject
@property NSNumber<RLMInt> *accX;
@property NSNumber<RLMInt> *ac... | //
// SRDataModel.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 19/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Realm/Realm.h"
@interface SRDataPoint : RLMObject
@property NSNumber<RLMInt> *accX;
@property NSNumber<RLMInt> *ac... | Add the timezone to the data model. | Add the timezone to the data model.
| C | bsd-2-clause | wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios |
f6392137118661add2ab7fc98be42a0c8748bb1d | lib/enable_execute_stack.c | lib/enable_execute_stack.c | //===-- enable_execute_stack.c - Implement __enable_execute_stack ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- enable_execute_stack.c - Implement __enable_execute_stack ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add missing include for getpagesize, and fix a typo. | Add missing include for getpagesize, and fix a typo.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@74588 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 |
a683ed193b85656e90ca7ee54298106fa6a313e4 | tests/regression/36-octapron/17-traces-rpb-litmus.c | tests/regression/36-octapron/17-traces-rpb-litmus.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 42; // matches write in t_fun
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
// pthread_mutex_lock(&A);
// pthread_mutex_lock(&B);
// g = 42;
... | // SKIP PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 42; // matches write in t_fun
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
g = 42;
pthread_... | Remove debugging changes from 36/17 | Remove debugging changes from 36/17
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
4e1124d7c68bc85cc6b6f1adceb63034d4bfe812 | src/REvent.h | src/REvent.h | #ifndef __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#define __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#include <RTypes.h>
class REvent
{
public:
REvent();
virtual
~REvent();
void
accept();
void
ignore();
bool
isAccepted() const;
void
setAccepted(bool accepted);
virtual rcount
type() ... | #ifndef __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#define __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#include <RTypes.h>
class REvent
{
public:
REvent();
virtual
~REvent();
void
accept();
void
ignore();
bool
isAccepted() const;
void
setAccepted(bool accepted);
virtual rcount
type() ... | Support inhert constructors from BaseType | Support inhert constructors from BaseType
| C | mit | starofrainnight/ArduinoRabirdTookit,starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdToolkit |
6f24c8ade6012005ceb41b4a2cc70a021d7f1d64 | src/trusted/service_runtime/linux/arm/sel_segments.c | src/trusted/service_runtime/linux/arm/sel_segments.c | /*
* Copyright (c) 2012 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 <stdint.h>
#include "native_client/src/trusted/service_runtime/sel_util.h"
uint32_t NaClGetStackPtr(void) {
uint32_t sp;
as... | /*
* Copyright (c) 2012 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 <stdint.h>
#include "native_client/src/trusted/service_runtime/sel_util.h"
uint32_t NaClGetStackPtr(void) {
uint32_t sp;
as... | Make sel build with clang's built-in assembler. | arm: Make sel build with clang's built-in assembler.
clang's integrated assembler only supports UAL, where sp is spelled
sp and not %sp. Fixes the following error when building with clang's
integrated assembler enabled:
../../native_client/src/trusted/service_runtime/linux/arm/sel_segments.c:13:7: error: unexpected t... | C | bsd-3-clause | sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client |
0f00cf915c8c590d1b00e89ac5e883fe3bfd1213 | main.c | main.c | #include <stdio.h>
#include <stdlib.h>
#include "src/headers.h"
int main()
{
char* taskfilepath = "D:\\zz_exp\\testinggrounds\\tasks.txt";
task_list* list = gettasks(taskfilepath);
task_list* traveller = list;
while ( traveller != NULL ) {
task_t* task = traveller -> task;
result_t* r... | #include <stdio.h>
#include <stdlib.h>
#include "src/headers.h"
int main(int argc, char** argv)
{
for ( int x = 0; x < argc; x++ ) {
char* taskfilepath = argv[x];
task_list* list = gettasks(taskfilepath);
task_list* traveller = list;
while ( traveller != NULL ) {
task_... | Allow user to indicate filepaths of taskfiles | v2.0.1: Allow user to indicate filepaths of taskfiles
User can now usee multiple taskfiles and specify via arguments the
location of taskfiles to be used
| C | mit | DanerJimenez/File-Delivery-Truck |
ab1766cc27f548384b400de3b2417c598da3b503 | src/hello_zproto_selftest.c | src/hello_zproto_selftest.c | /* =========================================================================
hello_zproto_selftest - run self tests
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 restric... | /* =========================================================================
hello_zproto_selftest - run self tests
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 restric... | Add citizen_server self test to overall self test | Add citizen_server self test to overall self test
| C | mit | jemc/hello_zproto,jemc/hello_zproto,jemc/hello_zproto,jemc/hello_zproto |
d786eea17f6d55643ba7df12859d1e60e0c6cb39 | textdocument/lib/grantlee_gui_export.h | textdocument/lib/grantlee_gui_export.h | /*
This file is part of the Grantlee template system.
Copyright (c) 2010 Stephen Kelly <steveire@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 3 only, as published by the Free Software Foundation.
This l... | /*
This file is part of the Grantlee template system.
Copyright (c) 2010 Stephen Kelly <steveire@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either version
2.1 of t... | Fix license header in the export header. | Fix license header in the export header.
| C | lgpl-2.1 | simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee |
0c5c3b93d8b9b1821c3e128c731ff7788eaf1238 | lib/Target/R600/MCTargetDesc/AMDGPUMCCodeEmitter.h | lib/Target/R600/MCTargetDesc/AMDGPUMCCodeEmitter.h | //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... | //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix missing C++ mode comment | Fix missing C++ mode comment
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@203133 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymagg... |
f1d4393eb8cedeec0214c497c73a528806ae2118 | src/protocols/rdp/compat/winpr-stream.c | src/protocols/rdp/compat/winpr-stream.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Implement buffer attachment in Stream_New() and Stream_Free() compatibility functions. | GUACAMOLE-25: Implement buffer attachment in Stream_New() and Stream_Free() compatibility functions.
| C | apache-2.0 | mike-jumper/incubator-guacamole-server,apache/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,apache/guacamole-server,glyptodon/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,apache/guacamole-server |
5d55abcfb068c87366329eae8f0502781145b57d | library/context.c | library/context.c | #include <stdlib.h>
#include <mqtt3.h>
mqtt3_context *mqtt3_context_init(int sock)
{
mqtt3_context *context;
context = malloc(sizeof(mqtt3_context));
if(!context) return NULL;
context->next = NULL;
context->sock = sock;
context->last_msg_in = time(NULL);
context->last_msg_out = time(NULL);
context->keepali... | #include <stdlib.h>
#include <mqtt3.h>
mqtt3_context *mqtt3_context_init(int sock)
{
mqtt3_context *context;
context = malloc(sizeof(mqtt3_context));
if(!context) return NULL;
context->next = NULL;
context->sock = sock;
context->last_msg_in = time(NULL);
context->last_msg_out = time(NULL);
context->keepali... | Delete client info / subscription info on disconnect for clean_start == true. | Delete client info / subscription info on disconnect for clean_start == true.
| C | bsd-3-clause | zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto |
b17244b8aaacaa4bdd06d076f16831ad76b6fb9f | src/new/autonomous.c | src/new/autonomous.c | /* ======================================================================================================
___________________________________________________________________________________________________
| __ __ ________ __ __ __ ______ __ __ _________ ________ |
| \ ... | /* ======================================================================================================
___________________________________________________________________________________________________
| __ __ ________ __ __ __ ______ __ __ _________ ________ |
| \ ... | Reset motor encoders in pre_auton | Reset motor encoders in pre_auton
| C | mit | qsctr/vex-4194b-2016 |
30b0db38ab47bbfcf3c12ec6c8907931ee33b247 | src/engine/render/RenderSystem.h | src/engine/render/RenderSystem.h | #ifndef ENGINE_RENDER_RENDERSYSTEM_H
#define ENGINE_RENDER_RENDERSYSTEM_H
#include "engine/scene/SceneSystem.h"
#include "engine/UI/UISystem.h"
#include "engine/math/vec3.h"
namespace engine {
namespace render {
/**
* RenderSystem is a parent class for the actual rendering systems.
*
* RenderSystem gets poin... | #ifndef ENGINE_RENDER_RENDERSYSTEM_H
#define ENGINE_RENDER_RENDERSYSTEM_H
#include "engine/scene/SceneSystem.h"
#include "engine/UI/UISystem.h"
#include "engine/math/vec3.h"
namespace engine {
namespace render {
/**
* RenderSystem is a parent class for the actual rendering systems.
*
* RenderSystem gets poin... | Update is an abstract base function. | Update is an abstract base function.
| C | bsd-2-clause | LauriM/ProjectIce,LauriM/ProjectIce |
9d9c1caaee69f3f00743f5a2da14e9f2a7a57ede | core/alsp_src/generic/dfltsys.h | core/alsp_src/generic/dfltsys.h | /*==================================================================*
| dfltsys.h
| Copyright (c) 1995, Applied Logic Systems, Inc.
|
| -- Default system settings for property tags
|
| Author: Ken Bowen
| Date: 04/10/95
*==================================================================*/
#define BCINTER 1
... | /*==================================================================*
| dfltsys.h
| Copyright (c) 1995, Applied Logic Systems, Inc.
|
| -- Default system settings for property tags
|
| Author: Ken Bowen
| Date: 04/10/95
*==================================================================*/
#define BCINTER 1
... | Reset FREEZE to 1 to avoid confusion | Reset FREEZE to 1 to avoid confusion
Back in 1998, there was clearly confusion about #if vs #ifdef when FREEZE got set to 0, which is a no-op because FREEZE is always used with #ifdef. Offending commit: 62f68f19fc8f64b7e3003001ee2710d0c90e2554 | C | mit | AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog |
72b8f788149de5d667a0f76b674685bbd82dfc46 | test/Sema/c11-typedef-redef.c | test/Sema/c11-typedef-redef.c | // RUN: %clang_cc1 -std=c11 %s -verify
typedef int type;
typedef type type;
typedef int type;
void f(int N) {
typedef int type2;
typedef type type2;
typedef int type2;
typedef int vla[N]; // expected-note{{previous definition is here}}
typedef int vla[N]; // expected-error{{redefinition of typedef for vari... | // RUN: %clang_cc1 -std=c11 %s -verify
typedef int type;
typedef type type;
typedef int type;
void f(int N) {
typedef int type2;
typedef type type2;
typedef int type2;
typedef int vla[N]; // expected-note{{previous definition is here}}
typedef int vla[N]; // expected-error{{redefinition of typedef for vari... | Extend test-case as requested by Eli | Extend test-case as requested by Eli
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@147974 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,apple/swift-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/cl... |
32906dc26611ed18710c338b93136c2a487ada3b | testsuite/tests/unboxed-primitive-args/test_common.c | testsuite/tests/unboxed-primitive-args/test_common.c | /**************************************************************************/
/* */
/* OCaml */
/* */
/* ... | /**************************************************************************/
/* */
/* OCaml */
/* */
/* ... | Update tests/unboxed-primitive-args: bigarray.h is now in caml/ | Update tests/unboxed-primitive-args: bigarray.h is now in caml/
| C | lgpl-2.1 | gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml |
0315072ff2ad7dc4707504901c9bcbf2dd77f75e | apps/Mcp9700aTemperatureSensor/Mcp9700aAppComponent/mcp9700aOnWp.c | apps/Mcp9700aTemperatureSensor/Mcp9700aAppComponent/mcp9700aOnWp.c | #include "legato.h"
#include "interfaces.h"
#include "mcp970x.h"
static int WpAdcFunction(int32_t *valueUv)
{
return le_adc_ReadValue("EXT_ADC0", valueUv);
}
le_result_t mangOH_ambientTemperature_Read(double *temperature)
{
int32_t tempInt;
int res = mcp970x_read_temperature(MCP970X_CHIP_9700A, WpAdcFunct... | #include "legato.h"
#include "interfaces.h"
#include "mcp970x.h"
static int WpAdcFunction(int32_t *valueUv)
{
int32_t valueMv;
le_result_t res = le_adc_ReadValue("EXT_ADC0", &valueMv);
if (res == LE_OK)
{
*valueUv = valueMv * 1000;
}
LE_DEBUG("Read %d uV from the ADC during ambient tem... | Add in some logs for the MCP9700A | Add in some logs for the MCP9700A
The temperatures being read back are higher than expected. Add some
logs until the issue is resolved.
| C | mpl-2.0 | mangOH/mangOH,mangOH/mangOH,mangOH/mangOH,mangOH/mangOH |
eb6f229e66a6d86499b00a806297a8610620f9cb | tests/check-gibber-xmpp-node.c | tests/check-gibber-xmpp-node.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gibber/gibber-xmpp-node.h>
#include <check.h>
START_TEST (test_instantiation)
{
GibberXmppNode *node;
node = gibber_xmpp_node_new ("test");
fail_unless (node != NULL);
}
END_TEST
TCase *
make_gibber_xmpp_node_tcase (void)
{
TCase *tc = t... | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gibber/gibber-xmpp-node.h>
#include <check.h>
START_TEST (test_instantiation)
{
GibberXmppNode *node;
node = gibber_xmpp_node_new ("test");
fail_unless (node != NULL);
node = gibber_xmpp_node_new (NULL);
fail_unless (node != NULL);
}
END... | Test gibber_xmpp_node_[gs]et_language() and node creation with a NULL name | Test gibber_xmpp_node_[gs]et_language() and node creation with a NULL name
20070609084741-f974e-602d6f3a4ba28432895c80518d5ea7daa5c85389.gz
| C | lgpl-2.1 | freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut |
d71e81285378e9b1d6a902d970d28730156868d4 | japlay.h | japlay.h | #ifndef _JAPLAY_H_
#define _JAPLAY_H_
#include <stdbool.h> /* bool */
struct song;
struct playlist_entry;
struct playlist;
struct playlist_entry *get_cursor(void);
extern struct playlist *japlay_queue, *japlay_history;
int get_song_info(struct song *song);
struct playlist_entry *add_file_playlist(struct playlist ... | #ifndef _JAPLAY_H_
#define _JAPLAY_H_
#include <stdbool.h> /* bool */
struct song;
struct playlist_entry;
struct playlist;
struct playlist_entry *get_cursor(void);
extern struct playlist *japlay_queue, *japlay_history;
int get_song_info(struct song *song);
struct playlist_entry *add_file_playlist(struct playlist ... | Add missing declaration for start_playlist_scan() | Add missing declaration for start_playlist_scan() [CORRECTIVE]
| C | bsd-3-clause | japeq/japlay |
63f811c3a90072f8c71d6cb0ef4890f5e66b04f6 | os/atOSDefs.h | os/atOSDefs.h |
#ifndef AT_OS_DEFS_H
#define AT_OS_DEFS_H
// Include the window files if this is the windows version.
#ifdef _MSC_VER
#include <windows.h>
#endif
// Include other files to give OS-independent interfaces
#include "atSleep.h"
#include "atStrCaseCmp.h"
#include "atSymbols.h"
#include "atTime.h"
#endif
|
#ifndef AT_OS_DEFS_H
#define AT_OS_DEFS_H
// Include the window files if this is the windows version.
#ifdef _MSC_VER
#include <windows.h>
#endif
// Include other files to give OS-independent interfaces
#include "atSleep.h"
#include "atStr.h"
#include "atSymbols.h"
#include "atTime.h"
#endif
| Change to new name atStr.h. | Change to new name atStr.h.
| C | apache-2.0 | ucfistirl/atlas,ucfistirl/atlas |
77be7b4696b2dca4ea562f4b273d4ed4e5175df2 | doc/tutorial_src/side_effect.c | doc/tutorial_src/side_effect.c | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
static int reader(void *stream) {
return (int)mock(stream);
}
static void writer(void *stream, char *paragraph) {
mock(stream, paragraph);
}
char *read_paragraph(int (*read)(void *), void *stream);
void by_paragraph(int (*read)(void *), void *in, void (*w... | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
static int reader(void *stream) {
return (int)mock(stream);
}
static void writer(void *stream, char *paragraph) {
mock(stream, paragraph);
}
char *read_paragraph(int (*read)(void *), void *stream);
void by_paragraph(int (*read)(void *), void *in, void (*w... | Update expect_never -> never_expect in doc | [doc] Update expect_never -> never_expect in doc
The file of side_effect.c in the tutorial used the old version of
`never_expect` function. This commit updates the side-effect file to
have the new version of the function.
| C | isc | cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen |
3afe5ce3b656cc41fe116c3d2c455d2131fba2b3 | include/perfetto/protozero/contiguous_memory_range.h | include/perfetto/protozero/contiguous_memory_range.h | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... | Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2 am: b0149a850e | Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2 am: b0149a850e
Change-Id: If4c99f80ffc05a66167073f15cf83e73e7329f4b
| C | apache-2.0 | google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto |
462cf17a56979aafaead2e19ea8bc0e82df66a3d | src/OI.h | src/OI.h | #ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "RobotMap.h"
#include <math.h>
class OI
{
private:
Joystick Joystick;
public:
OI();
inline float GetStickX(){ return FractionOmitted(Joystick.GetX()); }
inline float GetStickY(){ return FractionOmitted(Joystick.GetY()); }
inline float GetStickZ(){ return Fr... | #ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "RobotMap.h"
#include <math.h>
class OI
{
private:
Joystick Joystick;
public:
OI();
inline float GetXplusY(){
float val;
val = FractionOmitted(Joystick.GetY() + Joystick.GetX());
if(val > 1.2) val = 1.2;
if(val < -1.2) val = -1.2;
return val;
}
in... | Create GetXplusY function and GetXminusY function | Create GetXplusY function and GetXminusY function | C | epl-1.0 | tokyotechnicalsamurai/shougun |
fd0f406fea93d14c53f056bfcae8f6a6a2952b26 | unittests/asm_mocks.c | unittests/asm_mocks.c |
// Defining some necessary symbols just to make the linker happy.
void kernel_yield() { }
void arch_specific_new_task_setup() { }
void arch_specific_free_task() { }
|
#include <common/basic_defs.h>
// Defining some necessary symbols just to make the linker happy.
void *kernel_initial_stack = NULL;
void kernel_yield() { NOT_REACHED(); }
void arch_specific_new_task_setup() { NOT_REACHED(); }
void arch_specific_free_task() { NOT_REACHED(); }
void switch_to_initial_kernel_stack() { ... | Fix build error (missing mocks) | [gtests] Fix build error (missing mocks)
| C | bsd-2-clause | vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs |
f90fdb4570d97e7970ec72e0715a5924ab1da95c | include/ygo/data/CardData.h | include/ygo/data/CardData.h | #ifndef YGO_DATA_CARDDATA_H
#define YGO_DATA_CARDDATA_H
#include <string>
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
std::string name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbilit... | #ifndef YGO_DATA_CARDDATA_H
#define YGO_DATA_CARDDATA_H
#include <string>
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
std::string name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbilit... | Add text to static card data | Add text to static card data
| C | mit | DeonPoncini/ygodata |
34438e0e5eb32764691044269b8f3557f8c39668 | FreeRTOS/src/select.c | FreeRTOS/src/select.c | #include "sys/select.h"
#include "bits/mac_esp8266.h"
#include <stdio.h>
#include "usart.h"
int select(SOCKET nfds, fd_set *__readfds, fd_set *__writefds,
fd_set *__exceptfds, struct timeval *__timeout) {
SOCKET i;
int c;
c = 0;
/* Go through interested sockets. */
for(i = SOCKET_BASE; i < nfds; i++) {
if(... | #include "sys/select.h"
#include "bits/mac_esp8266.h"
#include <stdio.h>
#include "usart.h"
int select(SOCKET nfds, fd_set *__readfds, fd_set *__writefds,
fd_set *__exceptfds, struct timeval *__timeout) {
SOCKET i;
/* Count the ready socket. */
int count;
count = 0;
/* Go through interested sockets. */
for(... | Change the variable name for more meaningful. | Change the variable name for more meaningful.
| C | bsd-3-clause | starnight/MicroHttpServer,starnight/MicroHttpServer,starnight/MicroHttpServer,starnight/MicroHttpServer |
d1b04ae45801d4c87302f40692ef8c191fb64197 | UnixPkg/Include/Guid/UnixSystemConfig.h | UnixPkg/Include/Guid/UnixSystemConfig.h | /**@file
Setup Variable data structure for Unix platform.
Copyright (c) 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of th... | /**@file
Setup Variable data structure for Unix platform.
Copyright (c) 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of th... | Fix typo in data structure | Fix typo in data structure
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@7589 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
3699f58d3f06fee8b4b0e096f32b699c518d9baf | C++/sorting/bubblesort.h | C++/sorting/bubblesort.h | #include <iostream>
#include <vector>
#include <stdlib.h>
template <typename T>
void swap(T& a, T& b) {
T tmp = b;
b = a;
a = tmp;
}
template <typename T>
void bubblesort(T& vec) {
auto f = vec.begin();
auto s = vec.begin();
++s;
bool swapped = false;
while (s != vec.end()) {
if (... | #include <iostream>
#include <vector>
#include <stdlib.h>
template <typename T>
void swap(T& a, T& b) {
T tmp = b;
b = a;
a = tmp;
}
template <typename T>
T bubblesort(T& vec) {
auto f = vec.begin();
auto s = vec.begin();
++s;
bool swapped = false;
while (s != vec.end()) {
if (*f ... | Return the sorted object as well as sort it in-place | Bubblesort: Return the sorted object as well as sort it in-place
| C | bsd-3-clause | AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure,AeroNotix/algostructure |
19b614ac69a19e6e7fc7ff48fa80594cf47d63d7 | STEER/AliMisAligner.h | STEER/AliMisAligner.h | #ifndef ALI_MISALIGNER_H
#define ALI_MISALIGNER_H
#include "TObject.h"
#include "TString.h"
#include "AliCDBMetaData.h"
class TClonesArray;
class AliCDBManager;
// Base class for creating a TClonesArray of simulated misalignment objects
// for a given subdetector of type ideal,residual or full
//
class AliMisAligne... | #ifndef ALI_MISALIGNER_H
#define ALI_MISALIGNER_H
#include "TObject.h"
#include "TString.h"
#include "AliCDBMetaData.h"
class TClonesArray;
class AliCDBManager;
// Base class for creating a TClonesArray of simulated misalignment objects
// for a given subdetector of type ideal,residual or full
//
class AliMisAligne... | Allow methods called inside MakeAlObjsArray to modify data members | Allow methods called inside MakeAlObjsArray to modify data members
| C | bsd-3-clause | shahor02/AliRoot,ecalvovi/AliRoot,shahor02/AliRoot,coppedis/AliRoot,jgrosseo/AliRoot,jgrosseo/AliRoot,miranov25/AliRoot,jgrosseo/AliRoot,ecalvovi/AliRoot,shahor02/AliRoot,alisw/AliRoot,mkrzewic/AliRoot,alisw/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,jgrosseo/AliRoot,jg... |
f5cf45ab37c8c4771681a2bfb85194e48086026e | src/debug.h | src/debug.h | #ifndef __DEBUG_H
#define __DEBUG_H
#ifdef DEBUG
extern bool debug;
extern bool debug_z;
#define DBG if (debug)
#define MSG(x) DBG msg x
#else
#define DBG if (0)
#define MSG(x)
#endif
#if defined(DEBUG) || defined(PRECON)
#define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__)
#else
#define PRECO... | #ifndef __DEBUG_H
#define __DEBUG_H
#ifdef DEBUG
extern bool debug;
extern bool debug_z;
#define DBG if (debug)
#define MSG(x) DBG tlog x
#else
#define DBG if (0)
#define MSG(x)
#endif
#if defined(DEBUG) || defined(PRECON)
#define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__)
#else
#define PREC... | Use tlog for MSG reports. | Use tlog for MSG reports.
| C | lgpl-2.1 | dicej/icewm,dicej/icewm,dicej/icewm,dicej/icewm |
4e0d6d864d3632a820d8bf3dd89ff333b9bbd34d | src/revwalk.h | src/revwalk.h | #ifndef INCLUDE_revwalk_h__
#define INCLUDE_revwalk_h__
#include "git/common.h"
#include "git/revwalk.h"
struct git_revpool {
git_odb *db;
git_commit_list iterator;
git_commit *(*next_commit)(git_commit_list *);
git_commit_list roots;
git_revpool_table *commits;
unsigned walking:1;
unsigned char sorting;
};... | #ifndef INCLUDE_revwalk_h__
#define INCLUDE_revwalk_h__
#include "git/common.h"
#include "git/revwalk.h"
struct git_revpool {
git_odb *db;
git_commit_list iterator;
git_commit *(*next_commit)(git_commit_list *);
git_commit_list roots;
git_revpool_table *commits;
unsigned walking:1;
unsigned int sorting;
};
... | Fix an "conversion, loss of data" compiler warning | msvc: Fix an "conversion, loss of data" compiler warning
In particular, the compiler issues the following warning:
src/revwalk.c(61) : warning C4244: '=' : conversion from \
'unsigned int' to 'unsigned char', possible loss of data
In order to suppress the warning, we change the type of the
sorting "enum"... | C | lgpl-2.1 | jflesch/libgit2-mariadb,Tousiph/Demo1,since2014/libgit2,saurabhsuniljain/libgit2,chiayolin/libgit2,Tousiph/Demo1,mhp/libgit2,leoyanggit/libgit2,mingyaaaa/libgit2,sim0629/libgit2,sim0629/libgit2,jamieleecool/ptest,zodiac/libgit2.js,Aorjoa/libgit2_maked_lib,dleehr/libgit2,mrksrm/Mingijura,Corillian/libgit2,raybrad/libit2... |
02a17c281d68aa9ba0d951f70ab1716a72d7b4b1 | src/vast/query/parser/skipper.h | src/vast/query/parser/skipper.h | #ifndef VAST_QUERY_PARSER_SKIPPER_H
#define VAST_QUERY_PARSER_SKIPPER_H
#include <boost/spirit/include/qi.hpp>
namespace vast {
namespace query {
namespace parser {
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
template <typename Iterator>
struct skipper : qi::grammar<Iterator>
{
ski... | #ifndef VAST_QUERY_PARSER_SKIPPER_H
#define VAST_QUERY_PARSER_SKIPPER_H
#include <boost/spirit/include/qi.hpp>
namespace vast {
namespace query {
namespace parser {
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
template <typename Iterator>
struct skipper : qi::grammar<Iterator>
{
ski... | Fix skip grammar of query parser. | Fix skip grammar of query parser.
| C | bsd-3-clause | mavam/vast,mavam/vast,pmos69/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast,pmos69/vast,pmos69/vast |
7351b1e11f4806d4a6c1ee30253f28aab3f8ab2a | slave/stypes.h | slave/stypes.h | #define _SLAVETYPES
#include <inttypes.h>
//Declarations for slave types
typedef struct
{
uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready
uint8_t *Frame; //Response frame content
} MODBUSResponseStatus; //Type containing information about frame that is set up at slave side
typedef struct... | #define _SLAVETYPES
#include <inttypes.h>
//Declarations for slave types
typedef struct
{
uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready
uint8_t *Frame; //Response frame content
} MODBUSResponseStatus; //Type containing information about frame that is set up at slave side
typedef struct... | Add coil variables to type definitions | Add coil variables to type definitions
| C | mit | Jacajack/modlib |
197a1ec9be32f0fa4e4ea2d16a3a00b905c90489 | Common/Categories/MITAdditions.h | Common/Categories/MITAdditions.h | #ifndef MIT_Mobile_MITAdditions_h
#define MIT_Mobile_MITAdditions_h
#import "Foundations+MITAdditions.h"
#import "UIKit+MITAdditions.h"
#import "CoreLocation+MITAdditions.h"
#import "UIImage+Resize.h"
#import "NSDateFormatter+RelativeString.h"
#import "MFMailComposeController+RFC2368.h"
#import "NSData+MGTwitterBase64... | #ifndef MIT_Mobile_MITAdditions_h
#define MIT_Mobile_MITAdditions_h
#import "Foundation+MITAdditions.h"
#import "UIKit+MITAdditions.h"
#import "CoreLocation+MITAdditions.h"
#import "UIImage+Resize.h"
#import "NSDateFormatter+RelativeString.h"
#import "MFMailComposeViewController+RFC2368.h"
#import "NSData+MGTwitterBas... | Fix up the header names as several are not correct | Fix up the header names as several are not correct
| C | lgpl-2.1 | MIT-Mobile/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS |
af495684820a0f34bbccfefb3bce784c3dc6b327 | ReactCommon/fabric/components/image/ImageComponentDescriptor.h | ReactCommon/fabric/components/image/ImageComponentDescriptor.h | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <fabric/components/image/ImageShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <fabric... | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <fabric/components/image/ImageShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <fabric... | Implement the update of props in the MountingManager layer | Implement the update of props in the MountingManager layer
Summary: This diff implements the update of props in Fabric C++. The props values are passed to java in a ReadableMap and they are integrated into the current implementation of ViewManagers. In the fututre we will replace the ReadableMap for typed objects.
Re... | C | bsd-3-clause | exponent/react-native,pandiaraj44/react-native,hammerandchisel/react-native,hammerandchisel/react-native,myntra/react-native,javache/react-native,pandiaraj44/react-native,hammerandchisel/react-native,hoangpham95/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,hoangpham95/react-nativ... |
87b5f56bd4f5454659956bf1034849a60c463714 | tests/sv-comp/observer/path_nofun_true-unreach-call.c | tests/sv-comp/observer/path_nofun_true-unreach-call.c | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
{
x = 1;
y = 0;
}
// if (!(x + y == 1))
if (x + y != 1)
__VERIFIER_e... | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
{
x = 1;
y = 0;
}
// if (!(x + y == 1))
if (x + y != 1)
__VERIFIER_e... | Fix trier -> def_exc in observer test comment | Fix trier -> def_exc in observer test comment
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
9abc56ec060ec6366878a829fa9554cde28e8925 | Settings/Tab.h | Settings/Tab.h | #pragma once
#include <Windows.h>
#include <vector>
class UIContext;
/// <summary>
/// Abstract class that encapsulates functionality for dealing with
/// property sheet pages (tabs).
/// </summary>
class Tab {
public:
Tab();
~Tab();
/// <summary>Processes messages sent to the tab page.</summary>
vir... | #pragma once
#include <Windows.h>
#include <vector>
#include "Control.h"
class UIContext;
/// <summary>
/// Abstract class that encapsulates functionality for dealing with
/// property sheet pages (tabs).
/// </summary>
class Tab {
public:
Tab();
~Tab();
/// <summary>Processes messages sent to the tab p... | Add vector to keep track of controls | Add vector to keep track of controls
| C | bsd-2-clause | Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX |
823c535f2169b755a77a413d5f957e9457c22cb3 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.06.00.12-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.07.00.02-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 7
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update the driver version to 8.07.00.02-k. | [SCSI] qla2xxx: Update the driver version to 8.07.00.02-k.
Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com>
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
335d26b27d238cca9b4447a46d187d4c6f573d3a | ports/stm32/boards/STM32L476DISC/bdev.c | ports/stm32/boards/STM32L476DISC/bdev.c | #include "storage.h"
// External SPI flash uses standard SPI interface
const mp_soft_spi_obj_t soft_spi_bus = {
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
.polarity = 0,
.phase = 0,
.sck = MICROPY_HW_SPIFLASH_SCK,
.mosi = MICROPY_HW_SPIFLASH_MOSI,
.miso = MICROPY_HW_SPIFLASH_MISO,
};
const m... | #include "storage.h"
// External SPI flash uses standard SPI interface
STATIC const mp_soft_spi_obj_t soft_spi_bus = {
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
.polarity = 0,
.phase = 0,
.sck = MICROPY_HW_SPIFLASH_SCK,
.mosi = MICROPY_HW_SPIFLASH_MOSI,
.miso = MICROPY_HW_SPIFLASH_MISO,
};
... | Update SPI flash config for cache change. | stm32/boards/STM32L476DISC: Update SPI flash config for cache change.
| C | mit | pozetroninc/micropython,MrSurly/micropython,pramasoul/micropython,henriknelson/micropython,pfalcon/micropython,adafruit/circuitpython,bvernoux/micropython,pfalcon/micropython,MrSurly/micropython,bvernoux/micropython,pozetroninc/micropython,henriknelson/micropython,swegener/micropython,pozetroninc/micropython,tralamazza... |
9eb0c374b3459264d3180f59f033cf9490c0e1ea | src/platform/posix/memory.c | src/platform/posix/memory.c | /* Copyright (c) 2013-2014 Jeffrey Pfau
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <mgba-util/memory.h>
#include <sys/mman.h>
void* anonymousMem... | /* Copyright (c) 2013-2014 Jeffrey Pfau
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <mgba-util/memory.h>
#ifndef DISABLE_ANON_MMAP
#ifdef __SANITI... | Disable mmap allocator when running under address sanitizer | Util: Disable mmap allocator when running under address sanitizer
| C | mpl-2.0 | Iniquitatis/mgba,libretro/mgba,libretro/mgba,libretro/mgba,Iniquitatis/mgba,mgba-emu/mgba,mgba-emu/mgba,libretro/mgba,libretro/mgba,mgba-emu/mgba,mgba-emu/mgba,Iniquitatis/mgba,Iniquitatis/mgba |
7ee90d0d9ecd6010bb6c7ad252d04b32f07877d5 | include/clang/Basic/TypeTraits.h | include/clang/Basic/TypeTraits.h | //===--- TypeTraits.h - C++ Type Traits Support Enumerations ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- TypeTraits.h - C++ Type Traits Support Enumerations ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix compile error: comma at end of enumerator list. | Fix compile error: comma at end of enumerator list.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@121075 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
f6640d28e09979825b63abb619da29bf17ca4819 | test/CodeGen/ubsan-null.c | test/CodeGen/ubsan-null.c | // RUN: %clang_cc1 -fsanitize=null -emit-llvm %s -o - | FileCheck %s
struct A {
int a[2];
int b;
};
// CHECK-LABEL: @f1
int *f1() {
// CHECK-NOT: __ubsan_handle_type_mismatch
// CHECK: ret
// CHECK-SAME: getelementptr inbounds (%struct.A, %struct.A* null, i32 0, i32 1)
return &((struct A *)0)->b;
}
// CHECK-LA... | // RUN: %clang_cc1 -fsanitize=null -emit-llvm %s -o - | FileCheck %s
struct A {
int a[2];
int b;
};
// CHECK-LABEL: @f1
int *f1() {
// CHECK-NOT: __ubsan_handle_type_mismatch
// CHECK: ret
// CHECK-SAME: getelementptr inbounds (%struct.A, %struct.A* null, i32 0, i32 1)
return &((struct A *)0)->b;
}
| Make a test compatible with r300508 | [ubsan] Make a test compatible with r300508
| 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 |
787fde3532ce508e9c1bad24e0edfcfe969615aa | sticks.c | sticks.c | #include <stdio.h>
typedef struct {
int hands[2][2];
int turn;
} Sticks;
void sticks_create(Sticks *sticks) {
sticks->hands[0][0] = 1;
sticks->hands[0][1] = 1;
sticks->hands[1][0] = 1;
sticks->hands[1][1] = 1;
sticks->turn = 0;
}
void sticks_play(Sticks *sticks, int actor, int target) {
... | #include <stdio.h>
typedef struct {
int hands[2][2];
int turn;
} Sticks;
void sticks_create(Sticks *sticks) {
sticks->hands[0][0] = 1;
sticks->hands[0][1] = 1;
sticks->hands[1][0] = 1;
sticks->hands[1][1] = 1;
sticks->turn = 0;
}
void sticks_play(Sticks *sticks, int x, int y) {
sticks... | Rename actor/target to x/y to allow for shifting | Rename actor/target to x/y to allow for shifting
| C | mit | tysonzero/c-ann |
69bee79575bfe1ef4b213fd962cc0aaeb66e7b28 | wizard-basic-runtime/main.c | wizard-basic-runtime/main.c | #include <stdio.h>
typedef enum ValueType {
NULL_VALUE,
NUMBER,
ARRAY,
STRUCTURE
} ValueType;
typedef double Number;
struct Value;
typedef struct Value* Array;
typedef struct ArrayData {
size_t size;
Array array;
} ArrayData;
typedef struct StructureData {
char* name;
void* structure;
} StructureData;
typ... | #include <stdio.h>
typedef enum ValueType {
NULL_VALUE,
NUMBER,
ARRAY,
STRUCTURE
} ValueType;
typedef double Number;
struct Value;
typedef struct Value* Array;
typedef struct ArrayData {
size_t size;
Array array;
} ArrayData;
typedef struct StructureData {
char* name;
void* structure;
} StructureData;
typ... | Add runtime types creating function. | Add runtime types creating function.
| C | mit | thewizardplusplus/wizard-basic-3,thewizardplusplus/wizard-basic-3 |
da91d0278e5790d212cfc0748238e711cb150af9 | Modules/getbuildinfo.c | Modules/getbuildinfo.c | #include <stdio.h>
#ifndef DATE
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#endif
#endif
#ifndef TIME
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#endif
#endif
#ifndef BUILD
#define BUILD 0
#endif
const char *
Py_GetBuildInfo()
{
static char buildinfo[40];
sprintf... | #include "config.h"
#include <stdio.h>
#ifndef DATE
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#endif
#endif
#ifndef TIME
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#endif
#endif
#ifndef BUILD
#define BUILD 0
#endif
const char *
Py_GetBuildInfo()
{
static char bu... | Include config.h so it can define const away for K&R. | Include config.h so it can define const away for K&R.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
030077869192bb6474149d4e8a6fec6c07084f0d | VisualPractice/types.h | VisualPractice/types.h | #ifndef TE_TYPES_H
#define TE_TYPES_H
namespace te
{
struct Vector2f
{
float x;
float y;
Vector2f(float x, float y);
Vector2f operator+(Vector2f o);
Vector2f operator-(Vector2f o);
};
struct Vector2i
{
int x;
int y;
Vector2i(int x, i... | #ifndef TE_TYPES_H
#define TE_TYPES_H
namespace te
{
struct Vector2f
{
float x;
float y;
Vector2f(float x = 0, float y = 0);
Vector2f operator+(Vector2f o);
Vector2f operator-(Vector2f o);
};
struct Vector2i
{
int x;
int y;
Vector2i(... | Add default constructors to vectors | Add default constructors to vectors
| C | mit | evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine |
e704bfde67fdb6c736e133d4cdaf25af6a58c6ea | DCTOAuth/DCTOAuthAccount.h | DCTOAuth/DCTOAuthAccount.h | //
// DCTOAuthAccount.h
// DTOAuth
//
// Created by Daniel Tull on 09.07.2010.
// Copyright 2010 Daniel Tull. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DCTOAuthAccount : NSObject
+ (DCTOAuthAccount *)OAuthAccountWithType:(NSString *)type
requestTokenURL:(NSURL *)requestTokenURL... | //
// DCTOAuthAccount.h
// DTOAuth
//
// Created by Daniel Tull on 09.07.2010.
// Copyright 2010 Daniel Tull. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DCTOAuthAccount : NSObject
+ (DCTOAuthAccount *)OAuthAccountWithType:(NSString *)type
requestTokenURL:(NSURL *)requestTokenURL... | Comment out this method, it does nothing right now | Comment out this method, it does nothing right now
| C | bsd-3-clause | danielctull/DCTAuth,danielctull/DCTAuth |
0a4405ba53d70b4955e3ef1a2624a2d967b32e7c | libkleo/libkleo_export.h | libkleo/libkleo_export.h | /* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or... | /* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or... | Fix typo MAKE_KLEO_LIB not MAKE_LIBKLEO_LIB and make it more coherent with other export files | Fix typo MAKE_KLEO_LIB not MAKE_LIBKLEO_LIB and make it more coherent with
other export files
svn path=/trunk/KDE/kdepim/libkleo/; revision=674385
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
fe174f601a9730f2161f8586b66519a71bfe8e45 | phong-su.c | phong-su.c | /*
* A simple setuid binary that runs /usr/bin/phong.py
*/
#include <sys/types.h>
#include <unistd.h>
#ifndef PHONG_PATH
#define PHONG_PATH "/usr/bin/phong.py"
#endif
int main(int argc, char** argv)
{
int i;
char **newArgv;
newArgv = calloc (sizeof (char*), argc+1);
newArgv[0] = strdup (PHONG_PATH);
newA... | /*
* A simple setuid binary that runs /usr/bin/phong.py
*/
#include <sys/types.h>
#include <unistd.h>
#ifndef PHONG_PATH
#define PHONG_PATH "/usr/bin/phong.py"
#endif
int main(int argc, char** argv)
{
int i;
char **newArgv;
newArgv = calloc (sizeof (char*), argc+1);
newArgv[0] = strdup (PHONG_PATH);
newA... | Swap euid and uid in sudo helper | Swap euid and uid in sudo helper
| C | agpl-3.0 | phrobo/phong,phrobo/phong |
784a5edc4bc7d9d7c9b4119c8d5e4c52962cf1c4 | ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h | ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Adafruit KB2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO17)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO13)
#define DEFAULT_UART_BUS_TX (&pin_GPIO0)
#define DEFAULT_UART_BUS_RX (&pin_GPIO1)
| #define MICROPY_HW_BOARD_NAME "Adafruit KB2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO17)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO13)
#define DEFAULT_UART_BUS_TX (&pin_GPIO0)
#define DEFAULT_UART_BUS_RX (&pin_GPIO1)
#define DEFAULT_SPI_BUS... | Define default SPI pins on kb2040 | Define default SPI pins on kb2040
Fixes #5875 | C | mit | adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython |
ef2d72f6dfe59851aacc9fc0de4a743393b7615c | src/config.h | src/config.h | /*
* StatZone 1.0.1
* Copyright (c) 2012-2020, Frederic Cambus
* https://www.statdns.com
*
* Created: 2012-02-13
* Last Updated: 2019-01-03
*
* StatZone is released under the BSD 2-Clause license
* See LICENSE file for details.
*/
#ifndef CONFIG_H
#define CONFIG_H
#define VERSION "StatZone 1.0.1"
#define L... | /*
* StatZone 1.0.1
* Copyright (c) 2012-2020, Frederic Cambus
* https://www.statdns.com
*
* Created: 2012-02-13
* Last Updated: 2019-01-03
*
* StatZone is released under the BSD 2-Clause license
* See LICENSE file for details.
*/
#ifndef CONFIG_H
#define CONFIG_H
#define VERSION "StatZone 1.0.1"
#define L... | Remove now useless runtime member from the results structure. | Remove now useless runtime member from the results structure.
| C | bsd-2-clause | fcambus/statzone |
7a7251c3693e01b85109856d00c9d455d60ca84b | src/broker.h | src/broker.h | #ifndef BROKER_H_
#define BROKER_H_
#include <map>
#include <string>
#include <zmq.hpp>
#include "client.h"
#include "topic.h"
#include "message.h"
class Broker {
public:
Broker(std::string bind, std::string private_key) :
bind_(bind), private_key_(private_key) {}
void main_loop();
private:
... | #ifndef BROKER_H_
#define BROKER_H_
#include <unordered_map>
#include <string>
#include <zmq.hpp>
#include "client.h"
#include "topic.h"
#include "message.h"
class Broker {
public:
Broker(std::string bind, std::string private_key) :
bind_(bind), private_key_(private_key) {}
void main_loop();
pri... | Use unordered_map rather than map | Use unordered_map rather than map
`unordered_map` containers are faster than map containers to
access individual elements by their key, although they are
generally less efficient for range iteration through a subset
of their elements.
http://www.cplusplus.com/reference/unordered_map/unordered_map/... | C | apache-2.0 | puppetlabs/mc0d,puppetlabs/mc0d |
356293bc7ee39e1bb78bd159187664ffa8d45d1a | 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-k16"
| /*
* 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-k17"
| Update driver version to 5.02.00-k17 | [SCSI] qla4xxx: Update driver version to 5.02.00-k17
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
6b278656f26707d410778d42cd6f789b5c53c41b | 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-k6"
| /*
* 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-k7"
| Update driver version to 5.02.00-k7 | [SCSI] qla4xxx: Update driver version to 5.02.00-k7
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <91e2c378bdc9ac58358cd03ebb6c74f7db9aa049@parallels.com>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program... |
a664f6516a1d90147c84d64eaacea8d799b00e83 | src/Renamer.h | src/Renamer.h | #pragma once
#include <map>
#include <string>
#include "ClassFile.h"
using namespace std;
struct SourceId
{
bool isMethod; // otherwise, field
string className;
string name;
bool operator < (SourceId const& other) const
{
if(isMethod < other.isMethod)
return true;
if(className < other.class... | #pragma once
#include <map>
#include <string>
#include "ClassFile.h"
using namespace std;
struct SourceId
{
bool isMethod; // otherwise, field
string className;
string name;
bool operator < (SourceId const& other) const
{
if(isMethod < other.isMethod)
return true;
if(isMethod > other.isMeth... | Fix implementation of '<' operator | Fix implementation of '<' operator
| C | agpl-3.0 | Ace17/jaremap,Ace17/jaremap,Ace17/jaremap,Ace17/jaremap |
2908999b320714a97fe5223d0f51237554392e48 | framework/Source/GPUImageFilterPipeline.h | framework/Source/GPUImageFilterPipeline.h | #import <Foundation/Foundation.h>
#import "GPUImageFilter.h"
@interface GPUImageFilterPipeline : NSObject
@property (strong) NSMutableArray *filters;
@property (strong) GPUImageOutput *input;
@property (strong) id <GPUImageInput> output;
- (id) initWithOrderedFilters:(NSArray*) filters input:(GPUImageOutput*)input ... | #import <Foundation/Foundation.h>
#import "GPUImageFilter.h"
@interface GPUImageFilterPipeline : NSObject
@property (strong) NSMutableArray *filters;
@property (strong) GPUImageOutput *input;
@property (strong) id <GPUImageInput> output;
- (id) initWithOrderedFilters:(NSArray*) filters input:(GPUImageOutput*)input ... | Make pipeline work for CGImage processing (missed out the header file) | Bugfix: Make pipeline work for CGImage processing (missed out the header file)
| C | bsd-3-clause | HSFGitHub/GPUImage,stelabouras/GPUImage,Creolophus/GPUImage,Kevin775263419/GPUImage,jimydotorg/GGGPUImage,StratAguilar/GPUImage,tuo/GPUImage,3drobotics/GPUImage,yshiga/GPUImage,geowarsong/GPUImage,Matzo/GPUImage,rromanchuk/GPUImage,hgl888/GPUImage,mingming1986/GPUImage,BradLarson/GPUImage,ozetadev/GPUImage,powerhome/GP... |
d2ebdda3f26a149dffac466d734eaf783b53d6d9 | pkg/exf/exf_ad_check_lev4_dir.h | pkg/exf/exf_ad_check_lev4_dir.h | #ifdef ALLOW_EXF
CADJ STORE StoreForcing1 = tapelev4, key = ilev_4
CADJ STORE StoreForcing2 = tapelev4, key = ilev_4
CADJ STORE StoreCTRLS1 = tapelev4, key = ilev_4
# ifdef ALLOW_HFLUX_CONTROL
CADJ STORE xx_hflux0 = tapelev4, key = ilev_4
CADJ STORE xx_hflux1 = tapelev4, key = ilev_4
# endif
# ifde... | #ifdef ALLOW_EXF
CADJ STORE StoreEXF1 = tapelev4, key = ilev_4
CADJ STORE StoreEXF2 = tapelev4, key = ilev_4
CADJ STORE StoreCTRLS1 = tapelev4, key = ilev_4
# ifdef ALLOW_HFLUX_CONTROL
CADJ STORE xx_hflux0 = tapelev4, key = ilev_4
CADJ STORE xx_hflux1 = tapelev4, key = ilev_4
# endif
# ifde... | Fix store field for tapelev4 (rarely used). | Fix store field for tapelev4 (rarely used).
| C | mit | altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h |
0dc9990c39043e77c3097cba0d1d26ecd02338c1 | engine/mesh.h | engine/mesh.h | #ifndef __ENGINE_MESH_H__
#define __ENGINE_MESH_H__
#include "std/types.h"
#include "gfx/vector3d.h"
typedef struct Triangle {
uint16_t p1, p2, p3;
} TriangleT;
typedef struct IndexArray {
uint16_t count;
uint16_t *index;
} IndexArrayT;
typedef struct IndexMap {
IndexArrayT *vertex;
uint16_t *indices;
} I... | #ifndef __ENGINE_MESH_H__
#define __ENGINE_MESH_H__
#include "std/types.h"
#include "gfx/vector3d.h"
typedef struct Triangle {
uint16_t p1, p2, p3;
} TriangleT;
typedef struct IndexArray {
uint16_t count;
uint16_t *index;
} IndexArrayT;
typedef struct IndexMap {
IndexArrayT *vertex;
uint16_t *indices;
} I... | Add some comments about expected purpose. | Add some comments about expected purpose.
| C | artistic-2.0 | cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene |
72727bfb04499b60ca8ed91398fbabf0d88fe4cf | include/parrot/string_primitives.h | include/parrot/string_primitives.h | /* string_funcs.h
* Copyright (C) 2001-2003, The Perl Foundation.
* SVN Info
* $Id$
* Overview:
* This is the api header for the string subsystem
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#ifndef PARROT_STRING_PRIMITIVES_H_GUARD
#define PARROT_STRING_PRIMITIVES_H_GU... | /* string_funcs.h
* Copyright (C) 2001-2003, The Perl Foundation.
* SVN Info
* $Id$
* Overview:
* This is the api header for the string subsystem
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#ifndef PARROT_STRING_PRIMITIVES_H_GUARD
#define PARROT_STRING_PRIMITIVES_H_GU... | Fix the build on Win32 by making linkage of various symbols consistent again. | Fix the build on Win32 by making linkage of various symbols consistent again.
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@18778 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| C | artistic-2.0 | ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot |
134480cb1b2270251aa12e87fff32ec391d8d8f6 | test/CFrontend/2003-08-18-StructAsValue.c | test/CFrontend/2003-08-18-StructAsValue.c |
typedef struct {
int op;
} event_t;
event_t test(int X) {
event_t foo, bar;
return X ? foo : bar;
}
|
typedef struct {
int op;
} event_t;
event_t test(int X) {
event_t foo = { 1 }, bar = { 2 };
return X ? foo : bar;
}
| Make the testcase more interesting | Make the testcase more interesting
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@7961 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/... |
9854b0bc628fd7b8cce8459629ad8df1f042bc7e | testmud/mud/home/Text/sys/verb/ooc/quit.c | testmud/mud/home/Text/sys/verb/ooc/quit.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 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 Foundati... | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 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 Foundati... | Remove user from mobile list when disinhabiting | Remove user from mobile list when disinhabiting
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
6ac45b405fd7f929d73eb03395f713d8667b2941 | include/nstl.h | include/nstl.h | /*!
* Master header of the nstl library.
*
* @author Louis Dionne
*/
#ifndef NSTL_H
#define NSTL_H
#include <nstl/operator.h>
#include <nstl/type.h>
#include <nstl/primitive.h>
#include <nstl/pair.h>
#include <nstl/algorithm.h>
#include <nstl/vector.h>
#endif /* !NSTL_H */
| /*!
* Master header of the nstl library.
*
* @author Louis Dionne
*/
#ifndef NSTL_H
#define NSTL_H
#include <nstl/algorithm.h>
#include <nstl/operator.h>
#include <nstl/pair.h>
#include <nstl/primitive.h>
#include <nstl/type.h>
#include <nstl/vector.h>
#endif /* !NSTL_H */
| Reorder the includes of the master include in alphabetical order. | Reorder the includes of the master include in alphabetical order.
| C | mit | ldionne/nstl,ldionne/nstl |
4db6dd114fde94aac12d4a2f01ca23032cc8cc61 | ARAnalyticalProvider.h | ARAnalyticalProvider.h | @class UINavigationController, UIViewController;
@interface ARAnalyticalProvider : NSObject
/// Init
- (id)initWithIdentifier:(NSString *)identifier;
/// Set a per user property
- (void)identifyUserWithID:(NSString *)userID andEmailAddress:(NSString *)email;
- (void)setUserProperty:(NSString *)property toValue:(NSStr... | @class UINavigationController, UIViewController;
@interface ARAnalyticalProvider : NSObject
/// Init
- (id)initWithIdentifier:(NSString *)identifier;
/// Set a per user property
- (void)identifyUserWithID:(NSString *)userID andEmailAddress:(NSString *)email;
- (void)setUserProperty:(NSString *)property toValue:(NSStr... | Document local persisted logging API. | Document local persisted logging API.
| C | mit | ed-at-work/ARAnalytics,ashfurrow/ARAnalytics,sgtsquiggs/ARAnalytics,sp3esu/ARAnalytics,AlexanderBabchenko/ARAnalytics,orta/ARAnalytics,levigroker/ARAnalytics,arbesfeld/ARAnalytics,segiddins/ARAnalytics,sodastsai/ARAnalytics,HelloZhu/ARAnalytics,indiegogo/ARAnalytics,KBvsMJ/ARAnalytics,wzs/ARAnalytics,ftvs/ARAnalytics,i... |
939663cc8143eefe4446241af24628fb1d0957c6 | ext/bindex/cruby.c | ext/bindex/cruby.c | #include "bindex.h"
VALUE bx_mBindex;
static VALUE
bx_current_bindings(VALUE self)
{
return current_bindings();
}
static VALUE
bx_exc_set_backtrace(VALUE self, VALUE bt)
{
/* rb_check_backtrace can raise an exception, if the input arguments are not
* to its likings. Set the bindings afterwards, so we don't wa... | #include "bindex.h"
VALUE bx_mBindex;
static VALUE
bx_current_bindings(VALUE self)
{
return current_bindings();
}
static VALUE
bx_exc_set_backtrace(VALUE self, VALUE bt)
{
/* rb_check_backtrace can raise an exception, if the input arguments are not
* to its likings. Set the bindings afterwards, so we don't wa... | Clean unused argument in bx_exc_bindings | CRuby: Clean unused argument in bx_exc_bindings
| C | mit | gsamokovarov/bindex,gsamokovarov/bindex,gsamokovarov/bindex |
7d0c8651ffc96bf8d1f08b1a482105514301e16b | Code/RestKit.h | Code/RestKit.h | //
// RestKit.h
// RestKit
//
// Created by Blake Watters on 2/19/10.
// Copyright (c) 2009-2012 RestKit. 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
//
//... | //
// RestKit.h
// RestKit
//
// Created by Blake Watters on 2/19/10.
// Copyright (c) 2009-2012 RestKit. 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
//
//... | Add global __RESTKIT__ define for aiding conditional compilation | Add global __RESTKIT__ define for aiding conditional compilation
| C | apache-2.0 | mavericksunny/RestKit,loverbabyz/RestKit,braindata/RestKit,timbodeit/RestKit,caamorales/RestKit,oligriffiths/RestKit,agworld/RestKit,LiuShulong/RestKit,imton/RestKit,margarina/RestKit-latest,jonesgithub/RestKit,QLGu/RestKit,loverbabyz/RestKit,Bogon/RestKit,coderChrisLee/RestKit,agworld/RestKit,RestKit/RestKit,baumatron... |
85e2b7bbeecbae82e17051c1095642988a26de43 | TDTHotChocolate/FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h | TDTHotChocolate/FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h | // http://stackoverflow.com/a/7933931/141220
#define TDTSuppressPerformSelectorLeakWarning(CODE) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
CODE; \
_Pragma("clang diagnostic pop") \
} while (0)
| // http://stackoverflow.com/a/7933931/141220
#define TDTSuppressPerformSelectorLeakWarning(code) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
code; \
_Pragma("clang diagnostic pop") \
} while (0)
| Revert to lowercase macro arguments | Revert to lowercase macro arguments
They match the convention in `TDTAssert.h`
| C | bsd-3-clause | talk-to/Chocolate,talk-to/Chocolate |
3b688a0ffa73cb7694f3b6aaf25d2c4cf9a7bf44 | libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c | libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/tvmd.h>
#include "vdp-internal.h"
void
vdp2_tvmd_display_clear(void)
{
_state_vdp2()->regs.tvmd &= 0x7FFF;
/* Change the DISP bit during VBLANK */
vdp2_tvmd_vb... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/tvmd.h>
#include "vdp-internal.h"
void
vdp2_tvmd_display_clear(void)
{
_state_vdp2()->regs.tvmd &= 0x7EFF;
/* Change the DISP bit during VBLANK */
vdp2_tvmd_vb... | Clear bit when writing to VDP2(TVMD) | Clear bit when writing to VDP2(TVMD)
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
3f274880fb1720b82e449a9b4d86ec0dab336d7c | Sensorama/Sensorama/SRDebug.h | Sensorama/Sensorama/SRDebug.h | //
// SRDebug.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 09/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#ifndef SRDebug_h
#define SRDebug_h
#define SRPROBE0() do { \
NSLog(@"%s", __func__); \
} while (0)
#define SRPROBE1(x1) ... | //
// SRDebug.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 09/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#ifndef SRDebug_h
#define SRDebug_h
#define SRPROBE0() do { \
NSLog(@"%s", __func__); \
} while (0)
#define SRPROBE1(x1) ... | Add 1 more macro for debugging 3 things. | Add 1 more macro for debugging 3 things.
| C | bsd-2-clause | wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios |
2e8abb7a804ed24013202b53784c31f7e1131429 | c_solutions_31-40/Euler_31.c | c_solutions_31-40/Euler_31.c | #include <stdio.h>
#define CAP 8
const int currency[CAP] = {1, 2, 5, 10, 20, 50, 100, 200};
int total[CAP] = {0, 0, 0, 0, 0, 0, 0, 0};
const int limit = 200;
static inline int calculate_total(void)
{
int sum = 0;
for (int i=0; i < CAP; i++)
sum += total[i];
return sum;
}
int... | #include <stdio.h>
#define CAP 8
const int currency[CAP] = {1, 2, 5, 10, 20, 50, 100, 200};
int total[CAP] = {0, 0, 0, 0, 0, 0, 0, 0};
const int limit = 200;
static inline int calculate_total(void)
{
int sum = 0;
for (int i=0; i < CAP; i++)
sum += total[i];
return sum;
}
int... | Check against sum, 30 second improvement | Check against sum, 30 second improvement
| C | mit | tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler |
53cd39088decb09998153455d9b00938115a322e | src/brainfuck-interpreter.c | src/brainfuck-interpreter.c | /*
* A simple Brainfuck interpreter.
*
* This file was written by Damien Dart, <damiendart@pobox.com>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#... | /*
* A simple Brainfuck interpreter.
*
* This file was written by Damien Dart, <damiendart@pobox.com>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#... | Handle instances when "realloc()" fails. | Handle instances when "realloc()" fails.
| C | unlicense | damiendart/brainfuck |
674f0d242855b8f901dd29b6fe077aafc67593e4 | src/qt/bitcoinaddressvalidator.h | src/qt/bitcoinaddressvalidator.h | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVali... | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base58 entry widget validator.
Corrects near-miss characters and refuses characters that are not part of base58.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVal... | Fix typo in a comment: it's base58, not base48. | Fix typo in a comment: it's base58, not base48.
| C | mit | syscoin/syscoin,Crowndev/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,syscoin/syscoin,Infernoman/crowncoin,syscoin/syscoin,domob1812/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,syscoin/sys... |
db769b79cf99203a93c441bcfe98c993aa0ca3b5 | Sources/Cinput/input.c | Sources/Cinput/input.c | #include "input.h"
inline int input_event_get_sec(struct input_event event) {
return event.input_event_sec;
}
inline int input_event_get_usec(struct input_event event) {
return event.input_event_usec;
}
| #include "input.h"
inline int input_event_get_sec(struct input_event event) {
#ifdef input_event_sec
return event.input_event_sec;
#else
return event.time.tv_sec
#endif
}
inline int input_event_get_usec(struct input_event event) {
#ifdef input_event_usec
return event.input_event_usec;
#else
return eve... | Fix compilation on older linux kernels | Fix compilation on older linux kernels
| C | apache-2.0 | sersoft-gmbh/DeviceInput,sersoft-gmbh/DeviceInput |
84b255f9771bd80788195c5b702761ee42ca5f2f | bindings/ocaml/transforms/utils/transform_utils_ocaml.c | bindings/ocaml/transforms/utils/transform_utils_ocaml.c | /*===-- vectorize_ocaml.c - LLVM OCaml Glue ---------------------*- C++ -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... | /*===-- transform_utils_ocaml.c - LLVM OCaml Glue ---------------*- C++ -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... | Fix copy paste error in file header | [NFC][OCaml] Fix copy paste error in file header
Summary: Just copypasta resulting in the wrong file name in the header.
Reviewers: whitequark
Reviewed By: whitequark
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D52215
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@342437 911773... | C | apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/s... |
0ac74df81c5ca4213f8d7acbc0fb30c64cde06d3 | chrome/browser/extensions/extension_management_api_constants.h | chrome/browser/extensions/extension_management_api_constants.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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#pragm... | // 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_
#pragm... | Remove leftover constant declarations accidentally left behind by a previous patch. | Remove leftover constant declarations accidentally left behind by a previous patch.
BUG=119692
TEST=compile succeeds
Review URL: https://chromiumcodereview.appspot.com/9903017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@129799 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,adobe/c... |
7343eabc6b4054b7ca2f4455361d5f891f482626 | test/Driver/metadata-with-dots.c | test/Driver/metadata-with-dots.c | // REQUIRES: shell
// RUN: mkdir -p out.dir
// RUN: cat %s > out.dir/test.c
// RUN: %clang -E -MMD %s -o out.dir/test
// RUN: test ! -f %out.d
// RUN: test -f out.dir/test.d
// RUN: rm -rf out.dir/test.d out.dir/ out.d
int main (void)
{
return 0;
}
| // REQUIRES: shell
// RUN: mkdir -p %t/out.dir
// RUN: cat %s > %t/out.dir/test.c
// RUN: %clang -E -MMD %s -o %t/out.dir/test
// RUN: test ! -f %out.d
// RUN: test -f %t/out.dir/test.d
// RUN: rm -rf %t/out.dir/test.d %t/out.dir/ out.d
int main (void)
{
return 0;
}
| Fix test to use %t for newly created files. | Fix test to use %t for newly created files.
This is both for consistency with other `mkdir`s in tests, and
fixing permission issues with the non-temporary cwd during testing (they
are not always writable).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@371897 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 |
e9568c12ccd1390854b4a700dcfaaa2cbf342e91 | cpp/codearea.h | cpp/codearea.h | #ifndef LOCATION_OPENLOCATIONCODE_CODEAREA_H_
#define LOCATION_OPENLOCATIONCODE_CODEAREA_H_
#include <cstdlib>
namespace openlocationcode {
struct LatLng {
double latitude;
double longitude;
};
class CodeArea {
public:
CodeArea(double latitude_lo, double longitude_lo, double latitude_hi,
double lo... | #ifndef LOCATION_OPENLOCATIONCODE_CODEAREA_H_
#define LOCATION_OPENLOCATIONCODE_CODEAREA_H_
#include <cstdlib>
namespace openlocationcode {
struct LatLng {
double latitude;
double longitude;
};
class CodeArea {
public:
CodeArea(double latitude_lo, double longitude_lo, double latitude_hi,
double lo... | Add newline to remove compiler warning. | Add newline to remove compiler warning.
As some projects treat warnings as errors. | C | apache-2.0 | bocops/open-location-code,google/open-location-code,google/open-location-code,zongweil/open-location-code,zongweil/open-location-code,bocops/open-location-code,bocops/open-location-code,zongweil/open-location-code,google/open-location-code,google/open-location-code,bocops/open-location-code,bocops/open-location-code,go... |
4b87142aba52c76ff9ed7c9c2fe0067bd935a2f4 | test/CodeGen/x86_64-arguments.c | test/CodeGen/x86_64-arguments.c | // RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s &&
// RUN: grep 'define signext i8 @f0()' %t &&
// RUN: grep 'define signext i16 @f1()' %t &&
// RUN: grep 'define i32 @f2()' %t &&
// RUN: grep 'define float @f3()' %t &&
// RUN: grep 'define double @f4()' %t &&
// RUN: grep 'define x86_fp80 @f5()' %t &&... | // RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s &&
// RUN: grep 'define signext i8 @f0()' %t &&
// RUN: grep 'define signext i16 @f1()' %t &&
// RUN: grep 'define i32 @f2()' %t &&
// RUN: grep 'define float @f3()' %t &&
// RUN: grep 'define double @f4()' %t &&
// RUN: grep 'define x86_fp80 @f5()' %t &&... | Add end of line at end. | Add end of line at end.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@65557 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
a89c5c9841242970d7ade4f239397ea4131b8646 | libutil/include/xsys.h | libutil/include/xsys.h | #if !defined(XV6_USER)
#include <sys/wait.h>
#define xfork() fork()
static inline void xwait()
{
int status;
if (wait(&status) < 0)
edie("wait");
if (!WIFEXITED(status))
die("bad status %u", status);
}
#define mtenable(x) do { } while(0)
#define mtenable_type(x, y) do { } while (0)
#define mtdisable(x) ... | #pragma once
#include "libutil.h"
#if !defined(XV6_USER)
#include <sys/wait.h>
#define xfork() fork()
static inline int xwait()
{
int status;
if (wait(&status) < 0)
edie("wait");
if (!WIFEXITED(status))
die("bad status %u", status);
return WEXITSTATUS(status);
}
#define mtenable(x) do { } while(0)
#... | Make xwait return exit status | libutil: Make xwait return exit status
Fake a 0 status for xv6.
| C | mit | bowlofstew/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6 |
cc7f863707262a74a3eab35efaac9d3e0e39aa72 | common/flatpak-utils-base-private.h | common/flatpak-utils-base-private.h | /*
* Copyright © 2019 Red Hat, Inc
*
* This program 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 i... | /*
* Copyright © 2019 Red Hat, Inc
*
* This program 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 i... | Add a backport of G_DBUS_METHOD_INVOCATION_HANDLED | common: Add a backport of G_DBUS_METHOD_INVOCATION_HANDLED
This is syntactic sugar added in GLib 2.67.0, which makes it more clearly
correct when we return TRUE after a GDBus error.
Signed-off-by: Simon McVittie <0e1aea601907c1a85c2dc96e5ea37e23c58d2e9b@collabora.com>
| C | lgpl-2.1 | flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak |
31810dca7c6aec8eaaaf4e690f24d126c7ac917c | src/system/sys_stats.h | src/system/sys_stats.h | #ifndef SYSSTATS_H
#define SYSSTATS_H
#include <stdbool.h>
#include <ncurses.h>
#include <sys/timerfd.h>
#include "../util/file_utils.h"
#define MAXTOT 16
#define BASE 1024
#define MAXPIDS "/proc/sys/kernel/pid_max"
#define MEMFREE "MemFree:"
#define SECS 60
#define TIME_READ_DEFAULT 0
#define SYS_TIMER_EXPIR... | #ifndef SYSSTATS_H
#define SYSSTATS_H
#include <stdbool.h>
#include <ncurses.h>
#include <sys/timerfd.h>
#include "../util/file_utils.h"
#define MAXTOT 16
#define BASE 1024
#define MAXPIDS "/proc/sys/kernel/pid_max"
#define MEMFREE "MemAvailable:"
#define SECS 60
#define TIME_READ_DEFAULT 0
#define SYS_TIMER_... | Use MemAvailable for "free mem" | Use MemAvailable for "free mem"
| C | mit | tijko/dashboard |
9bd3e9df43b18b917c5510f1ce113e0000008b65 | webvtt.h | webvtt.h | /* WebVTT parser
Copyright 2011 Mozilla Foundation
*/
#ifndef _WEBVTT_H_
#define _WEBVTT_H_
/* webvtt files are a sequence of cues
each cue has a start and end time for presentation
and some text content (which my be marked up)
there may be other attributes, but we ignore them
we store these in a link... | /* WebVTT parser
Copyright 2011 Mozilla Foundation
*/
#ifndef _WEBVTT_H_
#define _WEBVTT_H_
/* webvtt files are a sequence of cues
each cue has a start and end time for presentation
and some text content (which my be marked up)
there may be other attributes, but we ignore them
we store these in a link... | Use the correct type for the linked list pointer. | Use the correct type for the linked list pointer.
| C | bsd-2-clause | mafidchao/webvtt |
875a794dd1d9c3e183b456b8fe826c04874bbf55 | Classes/YTConnector.h | Classes/YTConnector.h | //
// YTConnector.h
// AKYouTube
//
// Created by Anton Pomozov on 10.09.13.
// Copyright (c) 2013 Akademon Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@class YTConnector;
@protocol YTLoginViewControllerInterface <NSObject>
@property (nonatomic, strong, readonly) UIWebView *webView;
@property... | //
// YTConnector.h
// AKYouTube
//
// Created by Anton Pomozov on 10.09.13.
// Copyright (c) 2013 Akademon Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@class YTConnector;
@protocol YTLoginViewControllerInterface <NSObject>
@property (nonatomic, strong, readonly) UIWebView *webView;
@optiona... | Make close button properties optional. | [Mod]: Make close button properties optional.
| C | mit | pomozoff/AKYouTube,pomozoff/AKYouTube,pomozoff/AKYouTube |
9bcc53dba29ec430925dc6cd9676ad46ddf72461 | FunctionDeclaration.h | FunctionDeclaration.h | #ifndef FUNCTION_DECLARATION_H
#define FUNCTION_DECLARATION_H
#include "AstNode.h"
namespace liquid {
class FunctionDeclaration : public Statement
{
friend class ClassDeclaration;
Identifier* type;
Identifier* id;
VariableList* arguments;
Block* block;
YYLTYPE location;
public:
FunctionDecl... | #ifndef FUNCTION_DECLARATION_H
#define FUNCTION_DECLARATION_H
#include "AstNode.h"
namespace liquid {
class FunctionDeclaration : public Statement
{
friend class ClassDeclaration;
Identifier* type;
Identifier* id;
VariableList* arguments;
Block* block;
YYLTYPE location;
public:
FunctionDecl... | Fix crash wrong order of member initialization. | Fix crash wrong order of member initialization.
| C | mit | xkbeyer/liquid,xkbeyer/liquid |
6ed183cf0022fdc65b0bfcd883dd3a9c4e231a19 | library/mps/common.h | library/mps/common.h | /*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | /*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | Add MPS compile time option for enabling/disabling assertions | Add MPS compile time option for enabling/disabling assertions
This commit adds the compile-time option MBEDTLS_MPS_ENABLE_ASSERTIONS
which controls the presence of runtime assertions in MPS code.
See the documentation in the header for more information.
Signed-off-by: Hanno Becker <4d488caff78d6184f59bbe6e137e34d460... | C | apache-2.0 | Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,NXPmicro/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls |
ad33daeea09dc2e346031093d6b4d4e9d4615de0 | src/qpdf/utils.h | src/qpdf/utils.h | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright (C) 2017, James R. Barlow (https://github.com/jbarlow83/)
*/
#pragma once
#include "pikepdf.h"
... | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright (C) 2017, James R. Barlow (https://github.com/jbarlow83/)
*/
#pragma once
#include "pikepdf.h"
... | Remove signature of deleted function | Remove signature of deleted function
| C | mpl-2.0 | pikepdf/pikepdf,pikepdf/pikepdf,pikepdf/pikepdf |
37f29b3dab6e53443f3f8b0cc37b40d821e97440 | src/tbd/symbol.h | src/tbd/symbol.h | //
// src/tbd/symbol.h
// tbd
//
// Created by inoahdev on 4/24/17.
// Copyright © 2017 inoahdev. All rights reserved.
//
#pragma once
#include <mach-o/arch.h>
#include <string>
#include "flags.h"
class symbol {
public:
explicit symbol(const char *string, bool weak, int flags_length) noexcept;
void add_... | //
// src/tbd/symbol.h
// tbd
//
// Created by inoahdev on 4/24/17.
// Copyright © 2017 inoahdev. All rights reserved.
//
#pragma once
#include <string>
#include "flags.h"
class symbol {
public:
explicit symbol(const char *string, bool weak, int flags_length) noexcept;
void add_architecture(int number) n... | Remove unnecessary import for 'mach-o/arch.h' | Remove unnecessary import for 'mach-o/arch.h' | C | mit | inoahdev/tbd,inoahdev/tbd |
f0e863ead86a3ea0edb502d7c21bb1fc872712c5 | include/sauce/internal/implicit_bindings.h | include/sauce/internal/implicit_bindings.h | #ifndef SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_
#define SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_
// #include <sauce/internal/bindings/all.h>
namespace sauce {
namespace internal {
/**
* Attempts to supply a Binding to Bindings when none is found for a dependency.
*/
struct ImplicitBindings {};
}
namespace i =... | #ifndef SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_
#define SAUCE_SAUCE_INTERNAL_IMPLICIT_BINDINGS_H_
#include <sauce/internal/bindings/all.h>
namespace sauce {
namespace internal {
/**
* Attempts to supply a Binding to Bindings when none is found for a dependency.
*/
struct ImplicitBindings {};
}
namespace i = ::... | Enable including all bindings in implicit bindings | Enable including all bindings in implicit bindings
| C | mit | phs/sauce,phs/sauce,phs/sauce,phs/sauce |
e263b70f1126b4fdb1ade836aacd547ad0e3e3b2 | extensions/ringopengl/ring_opengl21.c | extensions/ringopengl/ring_opengl21.c | #include "ring.h"
/*
OpenGL 2.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_API void ringlib_init(RingState *pRingState)
{
}
| #include "ring.h"
/*
OpenGL 2.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_FUNC(ring_glAccum)
{
if ( RING_API_PARACOUNT != 2 ) {
RING_API_ERROR(RING_API_MISS2PARA);
return ;
}
if ( ! RING_API_ISNUMBER(1) ) {
RING_API_ERROR(RING_AP... | Update RingOpenGL - Add Function (Source Code) : void glAccum(GLenum op,GLfloat value) | Update RingOpenGL - Add Function (Source Code) : void glAccum(GLenum op,GLfloat value)
| C | mit | ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring |
36b989cb6ffc12f7291e25bbb710e9a1d6e22203 | src/Common/Version.h | src/Common/Version.h | #define MAJOR_VERSION 3
#define MINOR_VERSION 1
#define BUILD_VERSION 0
#define BUILD_REVISION 5172
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
#define REVISION_STRING MACRO_STRINGIFY(BUILD_REVISION)
#define VERSION_STRING MACRO_STRINGIFY(MAJOR_VERSION) "." MACRO_STRINGIFY(MINOR_VERSION) "." MACRO... | #define MAJOR_VERSION 3
#define MINOR_VERSION 2
#define BUILD_VERSION 6
#define BUILD_REVISION 45159
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
#define REVISION_STRING MACRO_STRINGIFY(BUILD_REVISION)
#define VERSION_STRING MACRO_STRINGIFY(MAJOR_VERSION) "." MACRO_STRINGIFY(MINOR_VERSION) "." MACR... | Update the version number of release. | Update the version number of release.
| C | apache-2.0 | google/swiftshader,google/swiftshader,google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.