commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
1747dc4dc9b0f7db03236510573e2b13bd4f90f2
tests/regression/36-octapron/18-branch2.c
tests/regression/36-octapron/18-branch2.c
// SKIP PARAM: --sets ana.activated[+] octApron // Based on 36/09. #include <assert.h> void main() { int i; if (i) { // same as i != 0 // only implies i != 0 // doesn't imply i > 0 // doesn't imply i >= 1 assert(i >= 1); // UNKNOWN! } else { // implies i == 0 // doesn't imply i < 0 ...
Add regression test where octApron knows too much about branch
Add regression test where octApron knows too much about branch
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
c0fa902a79201a7a14e512dba584800c4b106c2a
c++/Cutie.h
c++/Cutie.h
#ifndef _CUTIE_H_ #define _CUTIE_H_ class Cutie { private: bool respondsToHugs; unsigned int hugs; unsigned int tlc; public: Cutie(); public: void setAcceptsHugs(bool value); bool acceptsHugs(); void hug(); void empathy(); unsigned int showHugs(); unsigned int showTlc(); }; #endif
#ifndef _CUTIE_H_ #define _CUTIE_H_ class Cutie { private: bool respondsToHugs; unsigned int hugs; unsigned int tlc; public: Cutie(); void setAcceptsHugs(bool value); bool acceptsHugs(); void hug(); void empathy(); unsigned int showHugs(); unsigned int showTlc(); }; #endif
Remove extra public declaration (still compiles but extraneous)
Remove extra public declaration (still compiles but extraneous)
C
cc0-1.0
seancorfield/maybe-hugs,yurrriq/maybe-hugs,iarna/maybe-hugs,isaacs/maybe-hugs,yurrriq/maybe-hugs,reezer/maybe-hugs,seancorfield/maybe-hugs,dariaphoebe/maybe-hugs,isaacs/maybe-hugs,airportyh/maybe-hugs,gs-akhan/maybe-hugs,seancorfield/maybe-hugs,dariaphoebe/maybe-hugs,yurrriq/maybe-hugs,dariaphoebe/maybe-hugs,dariaphoeb...
086610926fb12b35881c06d40c295be81ddc3173
include/llvm/CodeGen/Passes.h
include/llvm/CodeGen/Passes.h
//===-- Passes.h - Target independent code generation passes ----*- C++ -*-===// // // This file defines interfaces to access the target independent code generation // passes provided by the LLVM backend. // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PASSES_H ...
//===-- Passes.h - Target independent code generation passes ----*- C++ -*-===// // // This file defines interfaces to access the target independent code generation // passes provided by the LLVM backend. // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PASSES_H ...
Include the sparc register in this file
Include the sparc register in this file git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@8794 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/...
446c2832aec39f82b29cfa60768fcf866e015a23
01/ex-05.c
01/ex-05.c
#include <stdio.h> main() { int fahr; for (fahr = 300; fahr >= 0; fahr = fahr - 20) printf("%3d %6.1f\n", fahr, (5.0/9.0) * (fahr - 32.0)); }
Solve exercise of Chapter 1, Paragraph 3.
Solve exercise of Chapter 1, Paragraph 3.
C
mit
jacquerie/c-k-r
293b03cae0d5237f699905bc09425d29027bb2a7
forth/src/stack_machine/compiler.c
forth/src/stack_machine/compiler.c
#include <stdlib.h> #include <stdarg.h> #include <string.h> #include <stack_machine/common.h> #include <stack_machine/compiler.h> state_t __DOLIT(context_t *ctx) { pushnum(ctx->ds, (*(int *)ctx->ip++)); return OK; } void literal(context_t *ctx, int n) { static entry_t dolit = { .code_ptr = &__DOLIT }; ...
#include <stdlib.h> #include <stdarg.h> #include <string.h> #include <stack_machine/common.h> #include <stack_machine/compiler.h> state_t __DOLIT(context_t *ctx) { pushnum(ctx->ds, (*(int *)ctx->ip++)); return OK; } void literal(context_t *ctx, int n) { static entry_t dolit = { .code_ptr = &__DOLIT, .nam...
Add name to DOLIT entry
Add name to DOLIT entry
C
mit
rm-hull/byok,rm-hull/byok,rm-hull/byok,rm-hull/byok
391c2f8f921c7e16737d55920632629461f97b8f
src/wd.h
src/wd.h
/* Copyright 2015 John Bailey Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
/* Copyright 2015 John Bailey Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
Add platform-specific string formatters for size_t
Add platform-specific string formatters for size_t
C
apache-2.0
bright-tools/wd,bright-tools/wd,bright-tools/wd
22340a683f685a094dec12482fc754edb2913391
iOS/BleToolBox/BleToolBox/Model/Beacon/BleBeaconSigninModel.h
iOS/BleToolBox/BleToolBox/Model/Beacon/BleBeaconSigninModel.h
// // BleBeaconSignInModel.h // BleToolBox // // Created by Mark on 2018/1/26. // Copyright © 2018年 MarkCJ. All rights reserved. // #import "BleBaseModel.h" @interface BleBeaconSignInModel : BleBaseModel @property NSString *beaconName; // the beacon name. @property NSString *beaconDeviceUUID; /...
// // BleBeaconSignInModel.h // BleToolBox // // Created by Mark on 2018/1/26. // Copyright © 2018年 MarkCJ. All rights reserved. // #import "BleBaseModel.h" @interface BleBeaconSignInModel : BleBaseModel @property NSString *beaconName; // the beacon name. @property NSString *beaconDeviceUUID; /...
Update the source code file names
Update the source code file names
C
mit
ChenJian345/BleSensorConnect
106d4d7bf624103cb96f9d7998a90e2d40969df2
DKCategories/NSData+DK.h
DKCategories/NSData+DK.h
// // NSData+DK.h // // Created by dkhamsing on 2/24/14. // #import <Foundation/Foundation.h> @interface NSData (DK) /** Load session cookies. Credits: http://stackoverflow.com/questions/14387662/afnetworking-persisting-cookies-automatically */ + (void)dk_cookiesLoad; /** Save session cookies. Credits: http:...
// // NSData+DK.h // // Created by dkhamsing on 2/24/14. // #import <Foundation/Foundation.h> @interface NSData (DK) /** Load session cookies. @param log Boolean that outputs with NSLog. Credits: http://stackoverflow.com/questions/14387662/afnetworking-persisting-cookies-automatically */ + (void)dk_cookiesLoad...
Add log option for loading cookies
Add log option for loading cookies
C
mit
dkhamsing/DKCategories
1006b58e857248f7979970663a4080e9d900f7eb
include/cpr/low_speed.h
include/cpr/low_speed.h
#ifndef CPR_LOW_SPEED_H #define CPR_LOW_SPEED_H #include <cstdint> namespace cpr { class LowSpeed { public: LowSpeed(const std::int32_t& limit, const std::int32_t& time) : limit(limit), time(time) {} std::int32_t limit; std::int32_t time; }; } // namespace cpr #endif
#ifndef CPR_LOW_SPEED_H #define CPR_LOW_SPEED_H #include <cstdint> namespace cpr { class LowSpeed { public: LowSpeed(const std::int32_t limit, const std::int32_t time) : limit(limit), time(time) {} std::int32_t limit; std::int32_t time; }; } // namespace cpr #endif
Use primitive std::int32_t instead of reference type
Use primitive std::int32_t instead of reference type
C
mit
whoshuu/cpr,whoshuu/cpr,msuvajac/cpr,msuvajac/cpr,msuvajac/cpr,whoshuu/cpr
a2f0f545fcae7419b4daf83ed0032d9ad28e7b49
ir/common/firm_common.c
ir/common/firm_common.c
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck */ #include "irloop.h" #include "tv.h" /** * Ideally, this macro would check if size bytes could be read at * pointer p. No generic sol...
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck */ #include "irloop.h" #include "tv.h" /* returns the kind of the thing */ firm_kind get_kind(const void *firm_thing) { return *(firm_ki...
Remove the unimplemented macro POINTER_READ().
Remove the unimplemented macro POINTER_READ().
C
lgpl-2.1
killbug2004/libfirm,jonashaag/libfirm,killbug2004/libfirm,jonashaag/libfirm,MatzeB/libfirm,davidgiven/libfirm,8l/libfirm,8l/libfirm,8l/libfirm,davidgiven/libfirm,killbug2004/libfirm,davidgiven/libfirm,MatzeB/libfirm,davidgiven/libfirm,jonashaag/libfirm,jonashaag/libfirm,8l/libfirm,jonashaag/libfirm,davidgiven/libfirm,M...
e8573c1ef5fdff5b2a486d45916cfaaa3f959d62
testmud/mud/home/Text/sys/bin/wiz/tool/fulldump.c
testmud/mud/home/Text/sys/bin/wiz/tool/fulldump.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...
Add command to allow non incremental statedumps
Add command to allow non incremental statedumps
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
d6342526a24fbfbffb77a1ae58afcafcad4207cf
parser_tests.c
parser_tests.c
#include "parser.h" #include "ast.h" #include "tests.h" void test_parse_number(); int main() { test_parse_number(); return 0; } struct token *make_token(enum token_type tk_type, char* str, double dbl, int number) { struct token *tk = malloc(sizeof(struct token)); tk->type = tk_type; if (t...
#include "parser.h" #include "ast.h" #include "tests.h" void test_parse_number(); int main() { test_parse_number(); return 0; } struct token *make_token(enum token_type tk_type, char* str, double dbl, int number) { struct token *tk = malloc(sizeof(struct token)); tk->type = tk_type; if (t...
Fix memory leak in tests
Fix memory leak in tests
C
mit
iankronquist/yaz,iankronquist/yaz
9ca06fd4ac08a7a19040c2fe62698d8b6da03395
src/common.h
src/common.h
// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If...
// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If...
Move namespaces declarations to the top of the file.
Move namespaces declarations to the top of the file.
C
mpl-2.0
ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita
f6703dd4d3aa5ba9a8e19597a9477e78fc248466
RVCalendarWeekView/Lib/Views/MSEvent.h
RVCalendarWeekView/Lib/Views/MSEvent.h
// // AKEvent.h // Example // // Created by ak on 18.01.2016. // Copyright © 2016 Eric Horacek. All rights reserved. // #import <Foundation/Foundation.h> #import "DTTimePeriod.h" @interface MSEvent : DTTimePeriod @property (nonatomic, strong) NSString *title; @property (nonatomic, strong) NSString *location; ...
// // AKEvent.h // Example // // Created by ak on 18.01.2016. // Copyright © 2016 Eric Horacek. All rights reserved. // #import <Foundation/Foundation.h> #import <DateTools/DTTimePeriod.h> @interface MSEvent : DTTimePeriod @property (nonatomic, strong) NSString *title; @property (nonatomic, strong) NSString *l...
Fix include of DTTimePeriod in DateTools cocoapod
Fix include of DTTimePeriod in DateTools cocoapod This fixes an issue when RVCalendarWeekView is compiled as a cocoapod framework (`use_frameworks!` in the Podfile), where cocoapods no longer allows pods to be references with user library imports (anything using quotes), and requires them to be imported as if they wer...
C
mit
ConnectCorp/RVCalendarWeekView,BadChoice/RVCalendarWeekView
70b855c84855aa33ab8411d24b9dd0b78ecbffcb
src/hash/sha1_sse2/sha1_sse2.h
src/hash/sha1_sse2/sha1_sse2.h
/* * SHA-160 * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_SHA_160_SSE2_H__ #define BOTAN_SHA_160_SSE2_H__ #include <botan/sha160.h> namespace Botan { /* * SHA-160 */ class BOTAN_DLL SHA_160_SSE2 : public SHA_160 { public: HashFunction* clone() const { ...
/* * SHA-160 * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_SHA_160_SSE2_H__ #define BOTAN_SHA_160_SSE2_H__ #include <botan/sha160.h> namespace Botan { /* * SHA-160 */ class BOTAN_DLL SHA_160_SSE2 : public SHA_160 { public: HashFunction* clone() const { ...
Remove extern decl of no longer used/included SHA-1 SSE2 function
Remove extern decl of no longer used/included SHA-1 SSE2 function
C
bsd-2-clause
randombit/botan,randombit/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster12...
a3cb2d67b7d2743524d3ba2c23270d5fc288d6db
src/kbase/stack_walker.h
src/kbase/stack_walker.h
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_STACK_WALKER_H_ #define KBASE_STACK_WALKER_H_ #include <array> #include "kbase/basic_macros.h" #if defined(OS_WIN) struct _CONTEXT; using CONTEXT = _CONTEXT; #endif namespace kbase { class StackWalker { public: StackWalker() noexcept...
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_STACK_WALKER_H_ #define KBASE_STACK_WALKER_H_ #include <array> #include "kbase/basic_macros.h" #if defined(OS_WIN) struct _CONTEXT; using CONTEXT = _CONTEXT; #endif namespace kbase { class StackWalker { public: StackWalker() noexcept...
Fix missing braces warning for initialization of subobjects
Fix missing braces warning for initialization of subobjects This warning should be a compiler bug, however, we still decide to follow the suggestion. Interestingly, this braces enforcement on GCC 5.4 will show up as an error but have gone away on newer versions.
C
mit
kingsamchen/KBase,kingsamchen/KBase_Demo,kingsamchen/KBase_Demo,kingsamchen/KBase
6937c69638ec3f672da9f8831f52b6504e21b241
Pod/UIKit/BonMot+UIKit.h
Pod/UIKit/BonMot+UIKit.h
// // BonMot+UIKit.h // Pods // // Created by Nora Trapp on 3/10/16. // // #import "BONTextAlignmentConstraint.h" #import "UILabel+BonMotUtilities.h" #import "UITextField+BonMotUtilities.h" #import "UITextView+BonMotUtilities.h"
// // BonMot+UIKit.h // BonMot // // Created by Nora Trapp on 3/10/16. // // #import "BONTextAlignmentConstraint.h" #import "UILabel+BonMotUtilities.h" #import "UITextField+BonMotUtilities.h" #import "UITextView+BonMotUtilities.h"
Change Pods to BonMot in header.
Change Pods to BonMot in header.
C
mit
Raizlabs/BonMot,Raizlabs/BonMot,Raizlabs/BonMot
199ea23d6bf72ff078f8fac93ad3a926ba37c3e7
bitboard.h
bitboard.h
// for all of these conversions, 0 <= row,col < 8 static inline uint8_t bb_index_of(uint8_t row, uint8_t col) { return row + (col << 3); } static inline uint8_t bb_row_of(uint8_t index) { return index % 8; } static inline uint8_t bb_col_of(uint8_t index) { return (uint8_t)(index / 8); }
Convert 0-63 indicies <-> (row,col)
Convert 0-63 indicies <-> (row,col)
C
bsd-3-clause
jwatzman/nameless-chessbot,jwatzman/nameless-chessbot
6cbbeab123ef8f665e382ba1970c2efc31acf285
ObjScheme/ObSFileLoader.h
ObjScheme/ObSFileLoader.h
// // ObSFileLoader.h // GameChanger // // Created by Kiril Savino on Tuesday, April 16, 2013 // Copyright 2013 GameChanger. All rights reserved. // @class ObSInPort; @protocol ObSFileLoader <NSObject> - (ObSInPort*)findFile:(NSString*)filename; - (NSString*)qualifyFileName:(NSString*)filename; @end @interface Ob...
// // ObSFileLoader.h // GameChanger // // Created by Kiril Savino on Tuesday, April 16, 2013 // Copyright 2013 GameChanger. All rights reserved. // @class ObSInPort; @protocol ObSFileLoader <NSObject> - (ObSInPort*)findFile:(NSString*)filename; - (NSString*)qualifyFileName:(NSString*)filename; @end @interface Ob...
Make bundle property read only
Make bundle property read only
C
mit
gamechanger/objscheme,gamechanger/objscheme,gamechanger/objscheme
fe631c01f9007d2ba728ff70bd0b75c78da1a94e
R2BotNUC/include/Config.h
R2BotNUC/include/Config.h
#ifndef _R2BOT_CONFIG #define _R2BOT_CONFIG #define _WINSOCK_DEPRECATED_NO_WARNINGS #define DEBUG_PRINTS #define DEVICE_NAME "NUC" #undef USE_KINECT1 #undef USE_KINECT2 #undef USE_MOTORS #undef USE_ULTRASONIC #define USE_R2SERVER #endif
#ifndef _R2BOT_CONFIG #define _R2BOT_CONFIG #define NOMINMAX #define _WINSOCK_DEPRECATED_NO_WARNINGS #define DEBUG_PRINTS #define DEVICE_NAME "NUC" #undef USE_KINECT1 #undef USE_KINECT2 #undef USE_MOTORS #undef USE_ULTRASONIC #define USE_R2SERVER #endif
Add NOMINMAX before including Windows.h
Add NOMINMAX before including Windows.h
C
mit
cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2
38a6eaba900ca78de01e16f5fe4a95b3962eb701
flowertest.c
flowertest.c
int pin_r = 9; int pin_g = 10; int pin_b = 11; int brightness = 0; int increment = 1; void setup() { pinMode(pin_r, OUTPUT); pinMode(pin_g, OUTPUT); pinMode(pin_b, OUTPUT); /* Serial.begin(9600); */ } void loop() { brightness = brightness + increment; if (brightness <= 0 || brightness >= 128) { incr...
Add an initial test script for the flowers.
Add an initial test script for the flowers.
C
artistic-2.0
alloy-d/blinkenflowers
408a046f7f7050f5a5ec3ecad36108f15767ab0b
trunk/src/daemon/serversock.h
trunk/src/daemon/serversock.h
/** * tapcfg - A cross-platform configuration utility for TAP driver * Copyright (C) 2008 Juho Vähä-Herttua * * 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 * versio...
Add missing header from last commit
Add missing header from last commit git-svn-id: 8d82213adbbc6b1538a984bace977d31fcb31691@157 2f5d681c-ba19-11dd-a503-ed2d4bea8bb5
C
lgpl-2.1
shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg,shutej/tapcfg
e6a607f87407a5bd4e55091960c5ba0e850cb43e
ouzel/CompileConfig.h
ouzel/CompileConfig.h
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64) #define OUZEL_PLATFORM_WINDOWS 1 #define OUZEL_SUPPORTS_DIRECT3D11 1 #elif defined(__APPLE__) #include <TargetConditionals.h> #if TAR...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64) #define OUZEL_PLATFORM_WINDOWS 1 #define OUZEL_SUPPORTS_DIRECT3D11 1 #elif defined(__APPLE__) #include <TargetConditionals.h> #if TAR...
Define OpenGLES support for ARM
Define OpenGLES support for ARM
C
unlicense
Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elvman/ouzel
495e4006bb7a95d59ea613ab577897749a75d8ca
LinkedList/insert_node_at_head.c
LinkedList/insert_node_at_head.c
/* Input Format You have to complete the Node* Insert(Node* head, int data) method which takes two arguments - the head of the linked list and the integer to insert. You should NOT read any input from stdin/console. Output Format Insert the new node at the head and return the head of the updated linked list. Do NOT ...
Add insert node at head fn
Add insert node at head fn
C
mit
anaghajoshi/HackerRank
1071e256aff979a58d74bbf3127e3b8a771fee1b
tests/regression/61-evalAssert/01-union_evalAssert.c
tests/regression/61-evalAssert/01-union_evalAssert.c
// PARAM: --set trans.activated[+] "assert" // Running the assert transformation on this test yields in code that is not compilable by gcc struct s { int a; int b; }; union u { struct s str; int i; }; int main(){ union u un; struct s* ptr; un.str.a = 1; un.str.b = 2; ptr = &un...
// PARAM: --set trans.activated[+] "assert" // Running the assert transformation on this test used to yield code that cannot be compiled with gcc, due to superfluous offsets on a pointer struct s { int a; int b; }; union u { struct s str; int i; }; int main(){ union u un; struct s* ptr; ...
Update comment in test case.
Update comment in test case.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
49f067bef623a6fecda0cef6e36e3ffdaeb93c0b
src/cmd_set_node_addr.c
src/cmd_set_node_addr.c
#ifdef __USE_CMSIS #include "LPC8xx.h" #endif #include <cr_section_macros.h> #include <string.h> #include "parse_util.h" #include "cmd.h" #include "err.h" #include "frame_buffer.h" /** * Set node address * Args: <node-addr> */ extern frame_buffer_type tx_buffer; int cmd_set_node_addr (int argc, uint8_t **argv) {...
#ifdef __USE_CMSIS #include "LPC8xx.h" #endif #include <cr_section_macros.h> #include <string.h> #include "parse_util.h" #include "cmd.h" #include "err.h" #include "frame_buffer.h" /** * Set node address * Args: <node-addr> */ extern frame_buffer_type tx_buffer; int cmd_set_node_addr (int argc, uint8_t **argv) {...
Allow for node address query by using 'N' command without parameters
Allow for node address query by using 'N' command without parameters
C
mit
jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware
4aff13e22152f661ed17221ad6e99486684af761
ui/base/ime/text_input_flags.h
ui/base/ime/text_input_flags.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_IME_TEXT_INPUT_FLAGS_H_ #define UI_BASE_IME_TEXT_INPUT_FLAGS_H_ namespace ui { // Intentionally keep in sync with blink::WebTextInputFla...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_IME_TEXT_INPUT_FLAGS_H_ #define UI_BASE_IME_TEXT_INPUT_FLAGS_H_ namespace ui { // Intentionally keep in sync with blink::WebTextInputFla...
Update TextInputFlags to include autocapitalize values.
Update TextInputFlags to include autocapitalize values. This is following the update of WebTextInputType.h update from https://codereview.chromium.org/995363002 BUG=466930 Review URL: https://codereview.chromium.org/1024833002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#321736}
C
bsd-3-clause
Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,ltilve/chromium,ltilve/chromium,PeterWangIntel/chromium-crosswalk,Just-D/chromiu...
3746bd7dbc57539753aab66813e57207d6fd2c3d
kernel/svc.c
kernel/svc.c
// The Mordax Microkernel // (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com> // Report bugs and issues on <http://github.com/skordal/mordax/issues> #include "context.h" #include "debug.h" #include "svc.h" // Supervisor call (software interrupt) handler, called by target assembly // code: void svc_inte...
// The Mordax Microkernel // (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com> // Report bugs and issues on <http://github.com/skordal/mordax/issues> #include "context.h" #include "debug.h" #include "svc.h" // Supervisor call (software interrupt) handler, called by target assembly // code: void svc_inte...
Fix spelling error in the SVC handler
Fix spelling error in the SVC handler
C
bsd-3-clause
skordal/mordax
3c07d1c7fbc93cd413628926a0b57e205b943a6f
profiles/audio/control.h
profiles/audio/control.h
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2006-2010 Nokia Corporation * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2006-2010 Nokia Corporation * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
Change to org.bluez.MediaControl1 as interface name
audio: Change to org.bluez.MediaControl1 as interface name
C
lgpl-2.1
silent-snowman/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,mapfau/bluez,silent-snowman/bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,mapfau/bluez,mapfau/bluez,pkarasev3/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,C...
e3f1b502c12bfeb2338c43af542c0f36a7f39f13
chrome/browser/ui/panels/panel_browser_window_gtk.h
chrome/browser/ui/panels/panel_browser_window_gtk.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #include "chrome/browser/ui...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #include "chrome/browser/ui...
Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK. Reason: PanelBrowserWindow dtor is now complex and cannot be inlined.
Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK. Reason: PanelBrowserWindow dtor is now complex and cannot be inlined. BUG=None TEST=Verified WindowOpenPanel test now hits Panel destructor. Review URL: http://codereview.chromium.org/7120011 TBR=jennb@chromium.org Review URL: http://codereview.chromi...
C
bsd-3-clause
adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitia...
75ef1c75dd47a0b4054a767fd94f7c3cf68d2331
tests/099-c99-example.c
tests/099-c99-example.c
#define x 3 #define f(a) f(x * (a)) #undef x #define x 2 #define g f #define z z[0] #define h g(~ #define m(a) a(w) #define w 0,1 #define t(a) a #define p() int #define q(x) x #define r(x,y) x ## y f(y+1) + f(f(z)) % t(t(g)(0) + t)(1); g(x +(3,4)-w) | h 5) & m ...
Add killer test case from the C99 specification.
Add killer test case from the C99 specification. Happily, this passes now, (since many of the previously added test cases were extracted from this one).
C
mit
jbarczak/glsl-optimizer,mapbox/glsl-optimizer,bkaradzic/glsl-optimizer,tokyovigilante/glsl-optimizer,wolf96/glsl-optimizer,KTXSoftware/glsl2agal,mapbox/glsl-optimizer,bkaradzic/glsl-optimizer,zz85/glsl-optimizer,KTXSoftware/glsl2agal,mcanthony/glsl-optimizer,wolf96/glsl-optimizer,bkaradzic/glsl-optimizer,benaadams/glsl...
e3e10e5a788bd65aa65ee133f3740dfc1d91f1eb
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD ...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD ...
Set client release to false
Set client release to false
C
mit
Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden
be2319709b9c0c4aa1f3fac648946d318cccf5c9
ch05/ex6.c
ch05/ex6.c
/* The content of `example2.txt` will be "Gidday world" because the file offset for `fd3` will be at the beginning of the file. Only `fd1` and `fd2` share the same file offset, that's why when writing "HELLO," replaces "Hello," but the next write (with `fd3`) happens at beginning and then we are left with "Gidd...
Add sixth exercise from chapter 5.
Add sixth exercise from chapter 5.
C
mit
carlosgaldino/lpi
b87325fe34c477f7786e791805bf692dbe79676b
boards/frdm-k22f/board.c
boards/frdm-k22f/board.c
/* * Copyright (C) 2014 Freie Universität Berlin * Copyright (C) 2014 PHYTEC Messtechnik GmbH * Copyright (C) 2017 Eistec AB * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingro...
/* * Copyright (C) 2014 Freie Universität Berlin * Copyright (C) 2014 PHYTEC Messtechnik GmbH * Copyright (C) 2017 Eistec AB * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingro...
Fix typos and remove unused includes
frdm-k22f: Fix typos and remove unused includes
C
lgpl-2.1
kbumsik/RIOT,mfrey/RIOT,A-Paul/RIOT,OTAkeys/RIOT,smlng/RIOT,rfuentess/RIOT,mtausig/RIOT,jasonatran/RIOT,jasonatran/RIOT,rfuentess/RIOT,miri64/RIOT,authmillenon/RIOT,neiljay/RIOT,smlng/RIOT,kaspar030/RIOT,RIOT-OS/RIOT,gebart/RIOT,yogo1212/RIOT,kaspar030/RIOT,authmillenon/RIOT,BytesGalore/RIOT,kYc0o/RIOT,x3ro/RIOT,authmi...
417dac764140b928a2695c019b2afe51fb48d104
options.c
options.c
#include <stdlib.h> #include <string.h> #include <assert.h> #include "options.h" struct Options *Options_parse(int argc, char *argv[]) { assert(argc > 1); Options *opts = malloc(sizeof(Options)); assert(opts != NULL); opts->outfile = NULL; opts->errfile = NULL; opts->target = NULL; opts->child_args = N...
#include <stdlib.h> #include <string.h> #include <assert.h> #include "options.h" struct Options *Options_parse(int argc, char *argv[]) { assert(argc > 1); Options *opts = malloc(sizeof(Options)); assert(opts != NULL); opts->outfile = NULL; opts->errfile = NULL; opts->target = NULL; opts->child_args = N...
Replace hardref trick with strdup() for consistency.
[minor] Replace hardref trick with strdup() for consistency.
C
mit
AvianFlu/aeternum
a4fbbb9d4b14a2c262a54251af06c08767c786ea
src/include/kdbassert.h
src/include/kdbassert.h
/** * @file * * @brief Assertions macros. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <kdbconfig.h> #ifdef __cplusplus extern "C" { #endif void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...) #ifd...
/** * @file * * @brief Assertions macros. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <kdbconfig.h> #ifdef __cplusplus extern "C" { #endif void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...) #ifd...
Use more generic attribute if possible
Assertions: Use more generic attribute if possible We now specify the attribute `__noreturn__` for the function `elektraAbort` whenever it is available.
C
bsd-3-clause
BernhardDenner/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/l...
42e0da4a0ce867dbc186665754418f5bce98301f
DcpmPkg/cli/NvmDimmCli.h
DcpmPkg/cli/NvmDimmCli.h
/* * Copyright (c) 2018, Intel Corporation. * SPDX-License-Identifier: BSD-3-Clause */ #include <CommandParser.h> #if defined(__LINUX__) || defined(__ESX__) #define EXE_NAME L"ipmctl" #elif defined(_MSC_VER) #define EXE_NAME L"ipmctl.exe" #else #define EXE_NAME L"ipmctl.ef...
/* * Copyright (c) 2018, Intel Corporation. * SPDX-License-Identifier: BSD-3-Clause */ #include <CommandParser.h> #if defined(__LINUX__) || defined(__ESX__) #define EXE_NAME L"ipmctl" #elif defined(_MSC_VER) && defined(OS_BUILD) #define EXE_NAME L"ipmctl.exe" #else #define EXE_NAME ...
Fix incorrect help message for UEFI
Fix incorrect help message for UEFI Signed-off-by: Shilpa Nanja <a1983ef2f4a2c6b4f6ff7c9741e30dce4eb007d5@intel.com>
C
bsd-3-clause
intel/ipmctl,intel/ipmctl,intel/ipmctl,intel/ipmctl
82c97cd279c71bdf38776b190201beda2cc37726
Settings/Controls/Spinner.h
Settings/Controls/Spinner.h
#pragma once #include "Control.h" #include <CommCtrl.h> /// <summary> /// Manages a 'spin control': a numeric edit box with a up/down 'buddy' to /// increment or decrement the current value of the box. /// </summary> class Spinner : public Control { public: Spinner() { } Spinner(int id, HWND parent) : ...
#pragma once #include "Control.h" #include <CommCtrl.h> /// <summary> /// Manages a 'spin control': a numeric edit box with a up/down 'buddy' to /// increment or decrement the current value of the box. /// </summary> class Spinner : public Control { public: Spinner() { } Spinner(int id, HWND parent) : ...
Add docs for overridden methods
Add docs for overridden methods
C
bsd-2-clause
Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX
1be4ab681e086ec83e96d543d37e3474ef400282
include/llvm/MC/MCObjectFormat.h
include/llvm/MC/MCObjectFormat.h
//===-- llvm/MC/MCObjectFormat.h - Object Format Info -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- llvm/MC/MCObjectFormat.h - Object Format Info -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add a virtual destructor to silence a GCC warning.
Add a virtual destructor to silence a GCC warning. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@116766 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,c...
fe6eb2643bf697cd752a0d24b3e278dd42f16644
WebHereTests/WebHereTests.h
WebHereTests/WebHereTests.h
// // WebHereTests.h // WebHereTests // // Created by Rui D Lopes on 25/03/13. // Copyright (c) 2013 Rui D Lopes. All rights reserved. // #import <Kiwi/Kiwi.h> #import <Nocilla/Nocilla.h> #import <OCLogTemplate/OCLogTemplate.h> #import <WebHere/WebHere.h> // Fixtures #import "WHPerson.h" #import "WHAdmin.h" #impo...
// // WebHereTests.h // WebHereTests // // Created by Rui D Lopes on 25/03/13. // Copyright (c) 2013 Rui D Lopes. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> #import <Kiwi/Kiwi.h> #import <Nocilla/Nocilla.h> #import <OCLogTemplate/OCLogTemplate.h> #import <WebHere/WebHere.h> // Fixtures #impor...
Add SenTestingKit to test targets
Add SenTestingKit to test targets
C
mit
noughts/WebHere,noughts/WebHere,noughts/WebHere,noughts/WebHere,rdlopes/WebHere,rdlopes/WebHere,rdlopes/WebHere
869d6873a53e90dafd702fd64a642849846b5c8c
main.c
main.c
#include <stdint.h> #include "ports.h" #include "pic.h" #include "gdt.h" #include "idt.h" #include "irq.h" #include "screen.h" void entry(void) { pic_remap(IRQ0, IRQ8); pic_set_masks(0, 0); idt_init((struct IDT *)(0x500)); gdt_init((struct GDT *)(0x500 + sizeof(struct IDT))); __asm__ __volatile__ ("sti"); scr...
#include <stdint.h> #include "ports.h" #include "pic.h" #include "gdt.h" #include "idt.h" #include "irq.h" #include "screen.h" void entry(void) { struct IDT *idt = (struct IDT *)0x500; struct GDT *gdt = (struct GDT *)(0x500 + sizeof(struct GDT)); pic_remap(IRQ0, IRQ8); pic_set_masks(0, 0); idt_init(idt); __asm_...
Enable interrupts before initializing GDT
Enable interrupts before initializing GDT
C
apache-2.0
shockkolate/shockk-os,shockkolate/shockk-os,shockkolate/shockk-os
6f39bf9df903d2c150f1e2590211a91e7277c748
src/libc4/util/mem.c
src/libc4/util/mem.c
#include <string.h> #include "c4-internal.h" void * ol_alloc(apr_size_t sz) { void *result = malloc(sz); if (result == NULL) FAIL(); return result; } void * ol_alloc0(apr_size_t sz) { void *result = ol_alloc(sz); memset(result, 0, sz); return result; } void * ol_realloc(void *ptr, ap...
#include <string.h> #include "c4-internal.h" void * ol_alloc(apr_size_t sz) { void *result = malloc(sz); if (result == NULL) FAIL(); return result; } void * ol_alloc0(apr_size_t sz) { void *result = ol_alloc(sz); memset(result, 0, sz); return result; } void * ol_realloc(void *ptr, ap...
Use FAIL_APR() rather than FAIL() in create_subpool().
Use FAIL_APR() rather than FAIL() in create_subpool().
C
mit
bloom-lang/c4,bloom-lang/c4,bloom-lang/c4
01251507d399d412494b6ee7aa5b6ad9c9b2537b
test/execute/0013-struct5.c
test/execute/0013-struct5.c
struct s1 { int y; int z; }; struct s2 { struct s1 *p; }; int main() { struct s1 nested; struct s2 v; v.p = &nested; v.p->y = 1; v.p->z = 2; if (nested.y != 1) return 1; if (nested.z != 2) return 2; return 0; }
struct T; struct T { int x; }; int main() { struct T v; { struct T { int z; }; } v.x = 2; if(v.x != 2) return 1; return 0; }
Add test for simple partial structs.
Add test for simple partial structs.
C
bsd-2-clause
andrewchambers/c,xtao/c,andrewchambers/c,xtao/c
7dfa6fe40c6eaa68a46da7afb926e945be8c3cf3
tests/test.time3.c
tests/test.time3.c
#include <stdio.h> #include <sys/types.h> #include <unistd.h> int64_t getTicks(); void sleepFor(int64_t); int main(int argc, char **argv) { int64_t a, b, c, delay; delay = microsecondsToTicks(500000); a = getTicks(); sleepFor(delay); b = getTicks(); sleepFor(delay); c = getTicks(); if(a + delay <= b...
#include <stdio.h> #include <sys/types.h> #include <unistd.h> int64_t getTicks(); void sleepFor(int64_t); int main(int argc, char **argv) { int64_t a, b, c, delay; delay = microsecondsToTicks(500000); a = getTicks(); sleepFor(delay); b = getTicks(); sleepFor(delay); c = getTicks(); if(a + delay <= b...
Fix the third time test.
Fix the third time test.
C
bsd-3-clause
elliottt/llvm-threading
77c380c9d57553e114b253630dcb1283c7096730
include/iRRAM/mpfr_extension.h
include/iRRAM/mpfr_extension.h
#ifndef iRRAM_MPFR_EXTENSION_H #define iRRAM_MPFR_EXTENSION_H #ifndef GMP_RNDN #include <mpfr.h> #endif #ifdef __cplusplus extern "C" { #endif void mpfr_ext_exp (mpfr_ptr r, mpfr_srcptr u,int p); void mpfr_ext_log (mpfr_ptr r, mpfr_srcptr u,int p); void mpfr_ext_sin (mpfr_ptr r, mpfr_srcptr u,int p); void mpfr_ext...
#ifndef iRRAM_MPFR_EXTENSION_H #define iRRAM_MPFR_EXTENSION_H #ifndef GMP_RNDN #include <mpfr.h> #endif #ifdef __cplusplus extern "C" { #endif void mpfr_ext_exp (mpfr_ptr r, mpfr_srcptr u,int p); void mpfr_ext_log (mpfr_ptr r, mpfr_srcptr u,int p); void mpfr_ext_sin (mpfr_ptr r, mpfr_srcptr u,int p); void mpfr_ext...
Delete duplicate (and incompatible) declaration of iRRAM_initialize().
Delete duplicate (and incompatible) declaration of iRRAM_initialize().
C
lgpl-2.1
norbert-mueller/iRRAM,norbert-mueller/iRRAM,norbert-mueller/iRRAM
41ca26bea02e69cdab85cc52756a47176ec83d80
tests/regression/36-octapron/11-traces-max-simple.c
tests/regression/36-octapron/11-traces-max-simple.c
// PARAM: --sets ana.activated[+] octApron #include <pthread.h> #include <assert.h> int g = 1; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); g = 2; // write something non-initial so base wouldn't find success pthread_mutex_unlock(&A); return NULL; } int main(...
// PARAM: --sets ana.activated[+] octApron #include <pthread.h> #include <assert.h> int g = 1; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); g = 2; // write something non-initial so base wouldn't find success assert(g == 2); pthread_mutex_unlock(&A); return ...
Add assert after global write in 36/11
Add assert after global write in 36/11
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
7db5647afebc93b68d5f9b85f0b5fd4796bca28c
tests/regression/39-signed-overflows/02-intervals.c
tests/regression/39-signed-overflows/02-intervals.c
// PARAM: --sets sem.int.signed_overflow assume_none --enable ana.int.interval --disable ana.int.def_exc int main(void) { int x = 0; while(x != 42) { x++; assert(x >= 1); } }
Add example that only works with no overflow assumption
Add example that only works with no overflow assumption
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
480b60ec75cd5c22424bb279f1685aa4df442ad5
src/uci.h
src/uci.h
#ifndef UCI_H #define UCI_H #include "board.h" #include "cmove.h" #include <sstream> #include <fstream> class Uci { public: void start(); private: Board _board; static const int DEFAULT_DEPTH = 4; static const int DEFAULT_MAX_TIME = 5000; void _uciNewGame(); void _setPosition(std::istringstream&); voi...
#ifndef UCI_H #define UCI_H #include "board.h" #include "cmove.h" #include <sstream> #include <fstream> class Uci { public: void start(); private: Board _board; static const int DEFAULT_DEPTH = 4; void _uciNewGame(); void _setPosition(std::istringstream&); void _go(std::istringstream&); void _pickBest...
Remove old DEFAULT_MAX_TIME static var
Remove old DEFAULT_MAX_TIME static var
C
mit
GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue
9a02c49ad67f80d1a5839c8c1ab92f3d73e6fbfb
content/public/browser/devtools_frontend_window.h
content/public/browser/devtools_frontend_window.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_ #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_ #pragma once class TabContents;...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_ #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_ #pragma once class TabContents;...
Add missing CONTENT_EXPORT to fix Linux shared build after r112415
Add missing CONTENT_EXPORT to fix Linux shared build after r112415 BUG=104625 TEST=None TBR=pfeldman Review URL: http://codereview.chromium.org/8763022 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@112420 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,robclark/chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,mogoweb/chromium-cros...
78606da47fb80ef2b16ad81b5c5f1129857040cd
tensorflow/lite/delegates/gpu/common/status.h
tensorflow/lite/delegates/gpu/common/status.h
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add include-what-you-use pragma so IWYU does not try to include these files again.
Add include-what-you-use pragma so IWYU does not try to include these files again. PiperOrigin-RevId: 325359254 Change-Id: Ibeb53b70736036ab22ed59858f31adb0b55c65a7
C
apache-2.0
Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/t...
a5a35e149d204d6b0b3eda5f186e1dc4f66e443d
test/Sema/PR2923.c
test/Sema/PR2923.c
// RUN: clang -fsyntax-only -verify // Test for absence of crash reported in PR 2923: // // http://llvm.org/bugs/show_bug.cgi?id=2923 // // Previously we had a crash when deallocating the FunctionDecl for 'bar' // because FunctionDecl::getNumParams() just used the type of foo to determine // the number of parameters ...
// RUN: clang -fsyntax-only -verify %s // Test for absence of crash reported in PR 2923: // // http://llvm.org/bugs/show_bug.cgi?id=2923 // // Previously we had a crash when deallocating the FunctionDecl for 'bar' // because FunctionDecl::getNumParams() just used the type of foo to determine // the number of paramete...
Fix missing %s in run string causing hang during tests.
Fix missing %s in run string causing hang during tests. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58394 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
349ed5a060397fcccc542a0314f236b420bd4ad1
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2006 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k3"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2006 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k4"
Update driver version to 5.02.00-k4
[SCSI] qla4xxx: Update driver version to 5.02.00-k4 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: Ravi Anand <399b6871085291e2c1578e38a71f59e8d20fafc0@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k...
130e764d61e4de8002e9725471f556f6ebaa98b8
tests/regression/00-sanity/21-empty-loops.c
tests/regression/00-sanity/21-empty-loops.c
int main() { f_empty_goto_loop(); f_empty_while_loop(); f_empty_goto_loop_suffix(); f_empty_while_loop_suffix(); f_nonempty_goto_loop(); f_nonempty_while_loop(); return 0; } void f_empty_goto_loop() { f_empty_goto_loop_label: goto f_empty_goto_loop_label; } void f_empty_while_loop() { while (1) {} ...
int main() { // non-deterministically make all variants live int r; switch (r) { case 0: f_empty_goto_loop(); break; case 1: f_empty_while_loop(); break; case 2: f_empty_goto_loop_suffix(); break; case 3: f_empty_while_loop_suffix(); break; cas...
Change 00/21 to make all loops live
Change 00/21 to make all loops live
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
0ce1a01b7969f9e20febdd0da39a69504570ce8c
src/tools/gen/template/elektra_gen.c
src/tools/gen/template/elektra_gen.c
/** * @file * * @brief * * @copyright BSD License (see doc/LICENSE.md or https://www.libelektra.org) */ #compiler-settings directiveStartToken = @ cheetahVarStartToken = $ #end compiler-settings @from support.elektra_gen import * @set support = ElektraGenSupport() @for $key, $info in $parameters.iteritems() @if...
/** * @file * * @brief * * @copyright BSD License (see doc/LICENSE.md or https://www.libelektra.org) */ #compiler-settings directiveStartToken = @ cheetahVarStartToken = $ #end compiler-settings @from support.elektra_gen import * @set support = ElektraGenSupport() #include <stdlib.h> #include <elektra.h> #inclu...
Add defines for enum type and conversions
codegen: Add defines for enum type and conversions
C
bsd-3-clause
ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj...
8c2382d076c3078bdf6b45af2523092dc2a513dd
page.h
page.h
#ifndef PAGE_H #define PAGE_H #include <stddef.h> #define PAGE_SIZE 4096ULL #define PAGE_SIZE_MASK (PAGE_SIZE - 1) #define PAGE_ALIGN_DOWN(x) (\ (void *) ((size_t) (x) & ~PAGE_SIZE_MASK) \ ) #define PAGE_ALIGN_UP(x) (\ (void *) ((size_t) ((x) + PAGE_SIZE_MASK) & ~PAGE_SIZE_MASK) \ ) #define PAGE_ALIGN...
Add file that is accidentally removed.
Add file that is accidentally removed.
C
mit
chaoran/fibril,chaoran/fibril,chaoran/fibril
bff700a9652cda6b6201283e5a3623fa5ce0987c
CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h
CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h
// Copyright 2010-2014 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include/cef_v8.h" using namespace CefSharp::Internals; namespace CefSharp { public ref class Javas...
// Copyright 2010-2014 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include/cef_v8.h" using namespace CefSharp::Internals; namespace CefSharp { public ref class Javas...
Add TODO about strongly typing variable
Add TODO about strongly typing variable
C
bsd-3-clause
battewr/CefSharp,ruisebastiao/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,rover886/CefSharp,jamespearce2006/CefSharp,gregmartinhtc/CefSharp,VioletLife/CefSharp,NumbersInternational/CefSharp,Haraguroicha/CefSharp,NumbersInternational/CefSharp,yoder/CefSharp,AJDev77/CefSharp,ITGlobal/CefSharp,VioletLife/CefSh...
4e852145739b73d18924477c6cacc331243c8b1c
opencog/learning/feature-selection/scorers/fs_scorer_base.h
opencog/learning/feature-selection/scorers/fs_scorer_base.h
/** fs_scorer_base.h --- * * Copyright (C) 2013 OpenCog Foundation * * Author: Nil Geisweiller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and including the exceptions *...
Add base class from fs scorers
Add base class from fs scorers That class include some confidence computation to be easily shared among feature selection scorers.
C
agpl-3.0
cosmoharrigan/atomspace,jswiergo/atomspace,Allend575/opencog,kim135797531/opencog,anitzkin/opencog,rohit12/opencog,ArvinPan/atomspace,virneo/opencog,zhaozengguang/opencog,gaapt/opencog,virneo/opencog,ArvinPan/opencog,Selameab/atomspace,TheNameIsNigel/opencog,virneo/opencog,printedheart/atomspace,tim777z/opencog,rodsol/...
0343c07262e1334e296850aee21f6702b13233e0
SearchResultsView/WindowClassHolder.h
SearchResultsView/WindowClassHolder.h
#pragma once class WindowClassHolder { private: ATOM m_WindowClass; public: WindowClassHolder() : m_WindowClass(0) { } WindowClassHolder(ATOM windowClass) : m_WindowClass(windowClass) { } WindowClassHolder& operator=(ATOM windowClass) { if (m_WindowClass != 0) UnregisterClassW(*this, GetModuleHand...
#pragma once class WindowClassHolder { private: ATOM m_WindowClass; public: WindowClassHolder() : m_WindowClass(0) { } WindowClassHolder(ATOM windowClass) : m_WindowClass(windowClass) { } ~WindowClassHolder() { if (m_WindowClass != 0) UnregisterClassW(*this, GetModuleHandleW(nullptr)); } Window...
Fix WindowsClassHolder destructor doing nothing.
Fix WindowsClassHolder destructor doing nothing.
C
mit
TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch
789abe81157c63e6893b89f9c6f249f27d7286cd
include/nekit/transport/listener_interface.h
include/nekit/transport/listener_interface.h
// MIT License // Copyright (c) 2017 Zhuhao Wang // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, mer...
// MIT License // Copyright (c) 2017 Zhuhao Wang // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, mer...
Add missing mark for pure virtual method
FIX: Add missing mark for pure virtual method
C
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
4ba9ea887633b3783bd86aae9da2a35bcd25bffd
src/sw/siagen/siagen.h
src/sw/siagen/siagen.h
#ifndef MIAOW_SIAGEN_H #define MIAOW_SIAGEN_H #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include "asm.h" #include "helper.h" #define MAX_INSTR 1000 #define MAX_OPS 50 #define INSTR_TYPES 4 #define SCALAR_ALU 0 #define VECTOR_ALU 1 #define SCALAR_MEM 2 #define VECTOR_MEM 3 ...
#ifndef MIAOW_SIAGEN_H #define MIAOW_SIAGEN_H #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <string> #include "asm.h" #include "helper.h" #define MAX_INSTR 1000 #define MAX_OPS 50 #define INSTR_TYPES 4 #define SCALAR_ALU 0 #define VECTOR_ALU 1 #define SCALAR_MEM 2 #def...
Fix build on Linux where gcc apparently enforces character arrays as arrays for initialization purposes.
Fix build on Linux where gcc apparently enforces character arrays as arrays for initialization purposes.
C
bsd-3-clause
VerticalResearchGroup/miaow,VerticalResearchGroup/miaow,VerticalResearchGroup/miaow,VerticalResearchGroup/miaow
0212bc7e650e26838796be41f161b5711d502066
source/glbinding/include/glbinding/callbacks.h
source/glbinding/include/glbinding/callbacks.h
#pragma once #include <glbinding/glbinding_api.h> #include <set> #include <vector> #include <functional> namespace glbinding { class AbstractFunction; class AbstractValue; struct GLBINDING_API FunctionCall { FunctionCall(const AbstractFunction * _function); ~FunctionCall(); FunctionCall & operator=(c...
#pragma once #include <glbinding/glbinding_api.h> #include <set> #include <vector> #include <functional> #include <string> namespace glbinding { class AbstractFunction; class AbstractValue; struct GLBINDING_API FunctionCall { FunctionCall(const AbstractFunction * _function); ~FunctionCall(); Function...
Fix compilation for gcc 4.7
Fix compilation for gcc 4.7
C
mit
hpi-r2d2/glbinding,j-o/glbinding,hpicgs/glbinding,hpicgs/glbinding,mcleary/glbinding,mcleary/glbinding,mcleary/glbinding,hpicgs/glbinding,j-o/glbinding,j-o/glbinding,cginternals/glbinding,hpi-r2d2/glbinding,cginternals/glbinding,hpicgs/glbinding,hpi-r2d2/glbinding,j-o/glbinding,mcleary/glbinding,hpi-r2d2/glbinding
f649dac8e0fa6e0a1db57e68ce7d664ddba8e053
asylo/platform/posix/include/sys/un.h
asylo/platform/posix/include/sys/un.h
/* * * Copyright 2017 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2017 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add missing include needed to define uint16_t
Add missing include needed to define uint16_t PiperOrigin-RevId: 228541302
C
apache-2.0
google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo
f8d49e58c5e5293268574379cad058551f971ddd
tests/regression/36-apron/68-pfscan-workers-strengthening.c
tests/regression/36-apron/68-pfscan-workers-strengthening.c
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.apron.privatization mutex-meet --set sem.int.signed_overflow assume_none --enable ana.apron.strengthening // minimized pfscan with relational workers invariant // mutex-meet: needs strengthening even with path_sens threadflag // mut...
Add minimized pfscan workers test
Add minimized pfscan workers test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4fc2b73eb3053f687f4b72adb1c97b0e53283322
test/FrontendC/2006-01-16-BitCountIntrinsicsUnsigned.c
test/FrontendC/2006-01-16-BitCountIntrinsicsUnsigned.c
// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32( i32} | count 2 // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 1 unsigned t2(unsigned X) { return __builtin_clz(X); } int t1(int X) { return __builtin_clz(X); }
// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 2 // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 1 unsigned t2(unsigned X) { return __builtin_clz(X); } int t1(int X) { return __builtin_clz(X); }
Remove space that was forgotten.`
Remove space that was forgotten.` git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@56240 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/a...
93809282b9e5f64dcaaf3f195c243154cf17d159
cddl/contrib/opensolaris/lib/libdtrace/mips/dt_isadep.c
cddl/contrib/opensolaris/lib/libdtrace/mips/dt_isadep.c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
Add stub file for pid probe. It's required although pid probe is not supported on MIPS yet
Add stub file for pid probe. It's required although pid probe is not supported on MIPS yet
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
0792e5040a588b10486cbb3c6e725e6e4c5012a0
include/nucleus/RefCounted.h
include/nucleus/RefCounted.h
#ifndef NUCLEUS_MEMORY_REF_COUNTED_H_ #define NUCLEUS_MEMORY_REF_COUNTED_H_ #include <atomic> #include "nucleus/Macros.h" namespace nu { namespace detail { class RefCountedBase { public: bool hasOneRef() const { return m_refCount.load(std::memory_order_release) == 1; } void addRef() const { m_refCo...
#ifndef NUCLEUS_MEMORY_REF_COUNTED_H_ #define NUCLEUS_MEMORY_REF_COUNTED_H_ #include <atomic> #include "nucleus/Macros.h" namespace nu { namespace detail { class RefCountedBase { public: COPY_DELETE(RefCountedBase); MOVE_DELETE(RefCountedBase); bool hasOneRef() const { return m_refCount.load(std::memor...
Fix bug in ref counting
Fix bug in ref counting
C
unknown
tiaanl/nucleus,fizixx/nucleus
4234d6329ed88911138b4db6a092239c7bb85417
AppFactory/Core/Class/Libs/BlocksKit/BlocksKit+MessageUI.h
AppFactory/Core/Class/Libs/BlocksKit/BlocksKit+MessageUI.h
// // BlocksKit+MessageUI // // The Objective-C block utilities you always wish you had. // // Copyright (c) 2011-2012, 2013-2014 Zachary Waldowski // Copyright (c) 2012-2013 Pandamonia LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docume...
// // BlocksKit+MessageUI // // The Objective-C block utilities you always wish you had. // // Copyright (c) 2011-2012, 2013-2014 Zachary Waldowski // Copyright (c) 2012-2013 Pandamonia LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docume...
Fix a bug from BlocksKit
Fix a bug from BlocksKit
C
mit
alanchen/AppFactory,alanchen/AppFactory
d850967c83e42523bd0a6d32fd8163c19b92ce7f
Mercury3/HgCamera.h
Mercury3/HgCamera.h
#pragma once #include <HgTypes.h> #ifdef __cplusplus extern "C" { #endif typedef struct HgCamera { point position; quaternion rotation; } HgCamera; vector3 ray_from_camera(HgCamera* c); #ifdef __cplusplus } #endif
#pragma once #include <HgTypes.h> #ifdef __cplusplus extern "C" { #endif typedef struct HgCamera { point position; quaternion rotation; vector3 direction; float speedMsec; } HgCamera; vector3 ray_from_camera(HgCamera* c); #ifdef __cplusplus } #endif
Add current direction and speed variable. Should probably be moved somewhere else.
Add current direction and speed variable. Should probably be moved somewhere else.
C
mit
axlecrusher/hgengine3,axlecrusher/hgengine3,axlecrusher/hgengine3
586336cfe52c6e626583dbe20dbaf8cd50d3608b
tests/regression/38-int-refinements/01-interval-congruence.c
tests/regression/38-int-refinements/01-interval-congruence.c
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.int.congruence #include <assert.h> int main(){ int r = -103; for (int i = 0; i < 40; i++) { r = r + 5; } // At this point r in the congr. dom should be 2 + 5Z int k = r; if (k >= 3) { // After refinement ...
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.int.congruence --enable ana.int.congruence_no_overflow --enable ana.int.refinement #include <assert.h> int main(){ int r = -103; for (int i = 0; i < 40; i++) { r = r + 5; } // At this point r in the congr. dom should be...
Add updated params to interval-congruence ref. reg test
Add updated params to interval-congruence ref. reg test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
b73ea44442b2d7b27b8a04f7e531283dd6d66130
include/DataObjects/JPetEventType/JPetEventType.h
include/DataObjects/JPetEventType/JPetEventType.h
/** * @copyright Copyright 2018 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
/** * @copyright Copyright 2021 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
Change enum to scoped enum
Change enum to scoped enum The change is due to the fact that in ROOT 6.20 there is a enum with the kUnknown value defined, which creates the conflict with our code.
C
apache-2.0
JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework
306bf63728015d7171a5540d89a243f0f16389df
examples/ex08_materials/include/materials/ExampleMaterial.h
examples/ex08_materials/include/materials/ExampleMaterial.h
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
Move include statement inside include guards.
Move include statement inside include guards. r4098
C
lgpl-2.1
adamLange/moose,jinmm1992/moose,friedmud/moose,shanestafford/moose,idaholab/moose,laagesen/moose,markr622/moose,sapitts/moose,harterj/moose,jbair34/moose,tonkmr/moose,markr622/moose,permcody/moose,cpritam/moose,harterj/moose,laagesen/moose,idaholab/moose,wgapl/moose,backmari/moose,xy515258/moose,bwspenc/moose,jinmm1992...
9457c57020d586e9aaf5bf6b43dbefaaf5121d92
SDCAlertView/SDCAlertViewCoordinator.h
SDCAlertView/SDCAlertViewCoordinator.h
// // SDCAlertViewCoordinator.h // SDCAlertView // // Created by Scott Berrevoets on 1/25/14. // Copyright (c) 2014 Scotty Doesn't Code. All rights reserved. // #import <Foundation/Foundation.h> @class SDCAlertView; @interface SDCAlertViewCoordinator : NSObject @property (nonatomic, readonly) SDCAlertView *visi...
// // SDCAlertViewCoordinator.h // SDCAlertView // // Created by Scott Berrevoets on 1/25/14. // Copyright (c) 2014 Scotty Doesn't Code. All rights reserved. // #import <Foundation/Foundation.h> @class SDCAlertView; @interface SDCAlertViewCoordinator : NSObject @property (nonatomic, weak, readonly) SDCAlertView...
Change property reference to weak to match private reference
Change property reference to weak to match private reference
C
mit
sberrevoets/SDCAlertView,Nykho/SDCAlertView,winkapp/SDCAlertView,adamkaplan/SDCAlertView,Wurrly/SDCAlertView,badoo/SDCAlertView,HuylensHu/SDCAlertView,DeskConnect/SDCAlertView,DeskConnect/SDCAlertView,sberrevoets/SDCAlertView
57e446a970b84346fba5d7b41d23269b05fb1cbd
learn/struct/TwoSamenameFunc.c
learn/struct/TwoSamenameFunc.c
#include<stdlib.h> void test(int i){ printf("in test(%d)\n",i); } void test(){ printf("in test()\n"); } int main(){ test(); test(1); return 0; }
Test whether two function name is same but num_para not is legal
Test whether two function name is same but num_para not is legal
C
mit
zhmz90/Daily,zhmz90/Daily,zhmz90/Daily,zhmz90/Daily,zhmz90/Daily,zhmz90/Daily,zhmz90/Daily
d8fe5945a5ddd57b12b8e144fed2341e147eeef3
firmware/src/main.c
firmware/src/main.c
/** * @file main.c * @brief Main. * */ #include "stm32f4xx_conf.h" #include "FreeRTOS.h" int main(void) { // TODO while(1); return 0; }
/** * @file main.c * @brief Main. * */ #include "stm32f4xx_conf.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h" #include "FreeRTOS.h" #include "task.h" void hw_init(void) { GPIO_InitTypeDef gpio_led; GPIO_StructInit(&gpio_led); gpio_led.GPIO_Mode = GPIO_Mode_OUT; gpio_led.GPIO_Pin = ...
Add example LED blink task
Add example LED blink task
C
mit
BitBangedFF/odometry-module,BitBangedFF/odometry-module
fd155492f37273186b7ea5ea3f047333964bee0b
src/ufrn_bti_itp/recursividade_e_modularizacao/q7_dec_to_bin.c
src/ufrn_bti_itp/recursividade_e_modularizacao/q7_dec_to_bin.c
#include <stdio.h> #define ORIGIN_BASE 10 #define TARGET_BASE 2 int bin(int dec){ if (dec < TARGET_BASE) return dec; else return (ORIGIN_BASE * bin(dec/TARGET_BASE)) + (dec % TARGET_BASE); } int main(){ printf("%d\n", bin(10)); return 0; }
Create q7: dec to bin
Create q7: dec to bin
C
unknown
Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs
9cda2d34bf812ecdfcd46e8983f47bbd937884dc
src/profiler/tracing/no_trace.c
src/profiler/tracing/no_trace.c
/** * @file * @brief * * @author Anton Kozlov * @date 29.04.2013 */ #include <stddef.h> #include <profiler/tracing/trace.h> time64_t trace_block_diff(struct __trace_block *tb) { return -1; } time64_t trace_block_get_time(struct __trace_block *tb) { return -1; } int trace_point_get_value(struct __trace_...
/** * @file * @brief * * @author Anton Kozlov * @date 29.04.2013 */ #include <stddef.h> #include <profiler/tracing/trace.h> time64_t trace_block_diff(struct __trace_block *tb) { return -1; } time64_t trace_block_get_time(struct __trace_block *tb) { return -1; } int trace_point_get_value(struct __trace_...
Fix build after merge with embox-profiler
Fix build after merge with embox-profiler
C
bsd-2-clause
gzoom13/embox,vrxfile/embox-trik,gzoom13/embox,Kefir0192/embox,abusalimov/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,vrxfile/embox-trik,gzoom13/embox,gzoom13/embox,embox/embox,gzoom13/embox,vrxfile/embox-trik,mike2390/embox,vrxfile/embox-trik,embox/emb...
29387545c66ff29097eb183d9ee7b64d28112159
libpolyml/version.h
libpolyml/version.h
/* Title: version.h Copyright (c) 2000-17 Cambridge University Technical Services Limited 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 o...
/* Title: version.h Copyright (c) 2000-17 Cambridge University Technical Services Limited 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 o...
Fix TextVersion still being 5.6
Fix TextVersion still being 5.6
C
lgpl-2.1
polyml/polyml,dcjm/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,polyml/polyml
6139be0f6486c9854c52e45d0d47bd6a5c01b3dd
app/src/main/jni/Interpreter/py_utils.h
app/src/main/jni/Interpreter/py_utils.h
#ifndef PY_UTILS_H #define PY_UTILS_H #include <stdio.h> extern FILE *stdin_writer; void setupPython(const char* pythonProgramPath, const char* pythonLibs, const char* pythonHostLibs, const char* pythonHome, const char* pythonTemp, const char* xdgBasePath); void setupStdinEmulation(void); void readF...
#ifndef PY_UTILS_H #define PY_UTILS_H #include <stdio.h> extern FILE *stdin_writer; void setupPython(const char* pythonProgramPath, const char* pythonLibs, const char* pythonHostLibs, const char* pythonHome, const char* pythonTemp, const char* xdgBasePath, const char* dataDir); void...
Fix missing change in header
Fix missing change in header
C
mit
Abestanis/APython,Abestanis/APython,Abestanis/APython
51d48572c2488981c3b1181392ae61d1cb4bf1a4
ModelExplorerPlugin/ScopeGuard.h
ModelExplorerPlugin/ScopeGuard.h
// // Copyright Renga Software LLC, 2017. All rights reserved. // // Renga Software LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // Renga Software LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #pragma once class BoolGuard { public: explicit BoolGuard(b...
// // Copyright Renga Software LLC, 2017. All rights reserved. // // Renga Software LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // Renga Software LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #pragma once class BoolGuard { public: explicit BoolGuard(b...
Fix after review: perfect forwarding used for callable object
Fix after review: perfect forwarding used for callable object
C
mit
RengaSoftware/ModelExplorer,RengaSoftware/ModelExplorer
a56699b59df45bbfe46a9527a59e3713736c5297
content/public/common/speech_recognition_result.h
content/public/common/speech_recognition_result.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 CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #pragma once #include <vector> ...
// 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 CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #pragma once #include <vector> ...
Fix pass by value error in SpeechRecognitionHypothesis constructor.
Coverity: Fix pass by value error in SpeechRecognitionHypothesis constructor. CID=103455 BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10386130 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@137171 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
ltilve/chromium,dushu1203/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,Just-D/chromium-1,fujunwei/chromium-crosswalk,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,junmi...
5e144291631d6d7e49b88407fc895cb6d4ec307b
tests/regression/09-regions/39-escape_malloc.c
tests/regression/09-regions/39-escape_malloc.c
// PARAM: --set ana.activated[+] region // Copy of 04/34 with a malloc'ed variable (works without region). #include <pthread.h> #include <stdlib.h> pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { int *p = (int *) arg; pthread_mutex_l...
Add testcase for the underlying region unsoundness in 38-pool.
Add testcase for the underlying region unsoundness in 38-pool.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
1341d104f298cc8bdf5ffae3f0d4199adf22e0a1
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 99 #define CLIENT_VERSION_BUILD...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 99 #define CLIENT_VERSION_BUILD...
Build number for OpenSSL bug fix
Build number for OpenSSL bug fix
C
mit
myriadteam/myriadcoin,myriadcoin/myriadcoin,argentumproject/argentum,argentumproject/argentum,myriadteam/myriadcoin,argentumproject/argentum,myriadteam/myriadcoin,myriadcoin/myriadcoin,myriadcoin/myriadcoin,argentumproject/argentum,myriadcoin/myriadcoin,Richcoin-Project/RichCoin,Richcoin-Project/RichCoin,myriadcoin/myr...
3f9d1548236269530e441c996a6debbd88ec6cfd
src/modules/cpufreq/e_mod_main.h
src/modules/cpufreq/e_mod_main.h
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Status Status; typedef struct _Config Config; struct _Status { Evas_List *frequencies; Evas_List *governors; int cur_frequency; int can_set_frequency; char *cur_governor; unsigned char activ...
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Status Status; typedef struct _Config Config; struct _Status { Evas_List *frequencies; Evas_List *governors; int cur_frequency; int can_set_frequency; char *cur_governor; unsigned char activ...
Remove unused (and deprecated) declaration.
Remove unused (and deprecated) declaration. SVN revision: 32298
C
bsd-2-clause
FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment
5b72d74ce2fccca2a301de60f31b16ddf5c93984
arch/powerpc/platforms/pseries/offline_states.h
arch/powerpc/platforms/pseries/offline_states.h
#ifndef _OFFLINE_STATES_H_ #define _OFFLINE_STATES_H_ /* Cpu offline states go here */ enum cpu_state_vals { CPU_STATE_OFFLINE, CPU_STATE_INACTIVE, CPU_STATE_ONLINE, CPU_MAX_OFFLINE_STATES }; extern enum cpu_state_vals get_cpu_current_state(int cpu); extern void set_cpu_current_state(int cpu, enum cpu_state_vals ...
#ifndef _OFFLINE_STATES_H_ #define _OFFLINE_STATES_H_ /* Cpu offline states go here */ enum cpu_state_vals { CPU_STATE_OFFLINE, CPU_STATE_INACTIVE, CPU_STATE_ONLINE, CPU_MAX_OFFLINE_STATES }; #ifdef CONFIG_HOTPLUG_CPU extern enum cpu_state_vals get_cpu_current_state(int cpu); extern void set_cpu_current_state(int...
Fix SMP build with disabled CPU hotplugging.
powerpc: Fix SMP build with disabled CPU hotplugging. Compiling 2.6.33 with SMP enabled and HOTPLUG_CPU disabled gives me the following link errors: LD init/built-in.o LD .tmp_vmlinux1 arch/powerpc/platforms/built-in.o: In function `.smp_xics_setup_cpu': smp.c:(.devinit.text+0x88): undefined reference t...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
d2b0573ba9a0edc53bd7800f8acd6718fd59f2a4
Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h
Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of sou...
Add prefix file for ProjectBuilder samples
Add prefix file for ProjectBuilder samples git-svn-id: 3ec853389310512053d525963cab269c063bb453@174526 13f79535-47bb-0310-9956-ffa450edef68
C
apache-2.0
Distrotech/xerces-c,colorer/xerces-c,ctapmex/xerces-c,ctapmex/xerces-c,colorer/xerces-c,Distrotech/xerces-c,Distrotech/xerces-c,Distrotech/xerces-c,ctapmex/xerces-c,colorer/xerces-c,ctapmex/xerces-c,Distrotech/xerces-c,colorer/xerces-c,colorer/xerces-c
c4c76088f08a7539a5f4466ec4fe7f85a9a5bc6f
ios/RCTSpotlightSearch/RCTSpotlightSearch/RCTSpotlightSearch.h
ios/RCTSpotlightSearch/RCTSpotlightSearch/RCTSpotlightSearch.h
// // RCTSpotlightSearch.h // RCTSpotlightSearch // // Created by James (Home) on 21/06/2016. // Copyright © 2016 James Munro. All rights reserved. // #import <Foundation/Foundation.h> #import "RCTBridgeModule.h" @interface RCTSpotlightSearch : NSObject <RCTBridgeModule> + (void)handleContinueUserActivity:(NSUse...
// // RCTSpotlightSearch.h // RCTSpotlightSearch // // Created by James (Home) on 21/06/2016. // Copyright © 2016 James Munro. All rights reserved. // #import <Foundation/Foundation.h> #import <React/RCTBridgeModule.h> @interface RCTSpotlightSearch : NSObject <RCTBridgeModule> + (void)handleContinueUserActivity:...
Fix import React/RCTBridgeModule.h, needed by RN 0.50
Fix import React/RCTBridgeModule.h, needed by RN 0.50
C
mit
jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search
85d1e066e03030de91558746864dfd84ecd2f1bc
searchlib/src/vespa/searchlib/test/vector_buffer_writer.h
searchlib/src/vespa/searchlib/test/vector_buffer_writer.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/searchlib/util/bufferwriter.h> #include <vector> namespace search::test { class VectorBufferWriter : public BufferWriter { private: char tmp[1024]; public: std::vector<char> ...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/searchlib/util/bufferwriter.h> #include <vector> namespace search::test { class VectorBufferWriter : public BufferWriter { private: char tmp[1024]; public: std::vector<char> ...
Add override specifier for VectorBufferWriter destructor.
Add override specifier for VectorBufferWriter destructor.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
f0b6c5101e4b1c88410e8e9d227266500497e031
list.c
list.c
#include "list.h" struct ListNode { ListNode* prev; ListNode* next; void* k; }; struct List { ListNode* head; }; List* List_Create(void) { List* l = (List *)malloc(sizeof(List)); l->head = NULL; return l; } ListNode* ListNode_Create(void* k) { ListNode* n = (ListNode *)malloc(sizeof(ListNode)); n->prev = N...
#include "list.h" struct ListNode { ListNode* prev; ListNode* next; void* k; }; struct List { ListNode* head; }; List* List_Create(void) { List* l = (List *)malloc(sizeof(List)); l->head = NULL; return l; } ListNode* ListNode_Create(void* k) { ListNode* n = (ListNode *)malloc(sizeof(ListNode)); n->prev = N...
Add List Search function implementation
Add List Search function implementation
C
mit
MaxLikelihood/CADT
aa2916ff583a12e068251d36d0045c68e5895a5c
mudlib/mud/home/System/sys/extinguishd.c
mudlib/mud/home/System/sys/extinguishd.c
#include <status.h> #include <kotaka/paths.h> #include <kotaka/log.h> #include <kotaka/privilege.h> inherit SECOND_AUTO; void extinguish(string path) { ACCESS_CHECK(KADMIN()); call_out("purge", 0, path, status(ST_OTABSIZE)); } static void purge(string path, int quota) { int limit; limit = 200; if (quota % lim...
#include <status.h> #include <kotaka/paths.h> #include <kotaka/log.h> #include <kotaka/privilege.h> inherit SECOND_AUTO; void extinguish(string path) { if (!KADMIN()) { string opath; opath = object_name(previous_object()); ACCESS_CHECK(DRIVER->creator(opath)); ACCESS_CHECK(DRIVER->creator(opath) == DRIVER-...
Allow extinguishing of objects with the same creator as yourself.
Allow extinguishing of objects with the same creator as yourself.
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
112d20ad5ca06a9ec7237602ee33bef6fa881daa
drivers/gpu/drm/nouveau/nv04_mc.c
drivers/gpu/drm/nouveau/nv04_mc.c
#include "drmP.h" #include "drm.h" #include "nouveau_drv.h" #include "nouveau_drm.h" int nv04_mc_init(struct drm_device *dev) { /* Power up everything, resetting each individual unit will * be done later if needed. */ nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF); return 0; } void nv04_mc_takedown(struct drm_devi...
#include "drmP.h" #include "drm.h" #include "nouveau_drv.h" #include "nouveau_drm.h" int nv04_mc_init(struct drm_device *dev) { /* Power up everything, resetting each individual unit will * be done later if needed. */ nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF); /* Disable PROM access. */ nv_wr32(dev, NV_PBUS_...
Disable PROM access on init.
drm/nouveau: Disable PROM access on init. On older cards (<nv17) scanout gets blocked when the ROM is being accessed. PROM access usually comes out enabled from suspend, switch it off. Signed-off-by: Francisco Jerez <5906ff32bdd9fd8db196f6ba5ad3afd6f9257ea5@riseup.net> Signed-off-by: Ben Skeggs <d9f27fb07c1e9f131223a...
C
mit
KristFoundation/Programs,KristFoundation/Programs,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_kana...
77813adc0001c96511aa932ced1adc8500b3f280
example/ex-multi05.c
example/ex-multi05.c
#include <stdio.h> #include "m-array.h" #include "m-string.h" // Let's create an array of string_t and register it globaly ARRAY_DEF(vector_string, string_t) #define M_OPL_vector_string_t() ARRAY_OPLIST(vector_string, STRING_OPLIST) int main(void) { // Let's define a new string named str M_LET(str, string_t)...
#include <stdio.h> #include "m-array.h" #include "m-string.h" // Let's create an array of string_t and register it globaly ARRAY_DEF(vector_string, string_t) #define M_OPL_vector_string_t() ARRAY_OPLIST(vector_string, STRING_OPLIST) int main(void) { // Let's define a new string named str M_LET(str, string_t)...
Add example of formatted C string for string in M_LET
Add example of formatted C string for string in M_LET
C
bsd-2-clause
P-p-H-d/mlib,P-p-H-d/mlib
aba2ec8c709b9bb5b2484e86d8f108b0ae0932d4
src/modules/illume-keyboard/e_mod_main.c
src/modules/illume-keyboard/e_mod_main.c
#include "e.h" #include "e_mod_main.h" #include "e_mod_config.h" #include "e_kbd_int.h" /* local variables */ static E_Kbd_Int *ki = NULL; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" }; EAPI void * e_modapi_init(E_Module *m) { if (!il_kbd_config_init(m)) return NULL; ki = e_kbd_int...
#include "e.h" #include "e_mod_main.h" #include "e_mod_config.h" #include "e_kbd_int.h" /* local variables */ static E_Kbd_Int *ki = NULL; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" }; EAPI void * e_modapi_init(E_Module *m) { if (!il_kbd_config_init(m)) return NULL; ki = e_kbd_int...
Use correct module directory when making keyboard. Previous commit fixed compiler warnings also.
Use correct module directory when making keyboard. Previous commit fixed compiler warnings also. git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@43875 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
02abf1a1f71cbd7db8b0e0e4d9e94ea1070d7d9a
doors.h
doors.h
#ifndef _DOORS_H_ #define _DOORS_H_ #ifndef NUMBER_OF_DOORS #define NUMBER_OF_DOORS 3 #endif typedef struct { unsigned int has_prize : 1; unsigned int currently_selected: 1; unsigned int revealed : 1; } door; /* * game status updates */ extern void set_doors(void); extern vo...
#ifndef _DOORS_H_ #define _DOORS_H_ #ifndef NUMBER_OF_DOORS #define NUMBER_OF_DOORS 3 #endif #include <limits.h> #if (NUMBER_OF_DOORS > UINT_MAX) #error (n) doors exceeds storage allocation limit for `unsigned int'. #endif typedef struct { unsigned int has_prize : 1; unsigned int currently_s...
Throw a fatal pre-processor error if (n > UINT_MAX).
Throw a fatal pre-processor error if (n > UINT_MAX).
C
cc0-1.0
cxd4/Monty-Hall,cxd4/Monty-Hall
246b6611122d65b4a7c5deef1d888ef0f88a14d9
Common/CoreLocation+MITAdditions.h
Common/CoreLocation+MITAdditions.h
#import <CoreLocation/CLLocation.h> #define DEGREES_PER_RADIAN 180.0 / M_PI #define RADIANS_PER_DEGREE M_PI / 180.0 #define DEFAULT_MAP_CENTER CLLocationCoordinate2DMake(42.35913,-71.09325) #define DEFAULT_MAP_SPAN MKCoordinateSpanMake(0.006, 0.006) // these are 1 and 2 miles respectively #define OUT_OF_BOUNDS_DISTA...
#import <CoreLocation/CLLocation.h> #import <CoreLocation/CoreLocation.h> #define DEGREES_PER_RADIAN 180.0 / M_PI #define RADIANS_PER_DEGREE M_PI / 180.0 #define DEFAULT_MAP_CENTER CLLocationCoordinate2DMake(42.35913,-71.09325) #define DEFAULT_MAP_SPAN MKCoordinateSpanMake(0.006, 0.006) // these are 1 and 2 miles re...
Add a convenience function to get an NSString from a CLLocationCoordinate2D object
Add a convenience function to get an NSString from a CLLocationCoordinate2D object
C
lgpl-2.1
MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS
4b50bfb7b55d0aa4524a89bbed9b67c64481af1d
src/modularization_programs/c/parameter_passing/sample_parameter_passing.c
src/modularization_programs/c/parameter_passing/sample_parameter_passing.c
/* * Author: Jhonatan Casale (jhc) * * Contact : jhonatan@jhonatancasale.com * : casale.jhon@gmail.com * : https://github.com/jhonatancasale * : https://twitter.com/jhonatancasale * : http://jhonatancasale.github.io/ * * Create date Sat 10 Dec 16:13:19 BRST 2016 * */ #include...
Add parameter passing example in c
Add parameter passing example in c
C
mit
jhonatancasale/c-python-r-diffs,jhonatancasale/c-python-r-diffs,jhonatancasale/c-python-r-diffs
34d2be5fddf51413062f0995bfcb3b9401ffcef1
utils.h
utils.h
#pragma once namespace me { template<class T> class Optional { T *m_object; public: Optional() : m_object(0) {} Optional(const T& other) : m_object(new T(other)) {} Optional& operator=(const T& other) { if (m_object != 0) { delete m_object; } m_object = new T(other); return...
#pragma once namespace me { // basic optional implementation. template<class T> class Optional { T *m_object; public: Optional() : m_object(0) { } // copy constructor Optional(const Optional<T>& other) : m_object(new T(*other)) { } // move constructor Optional(Optional<T>&& other) : m...
Use move semantics in Optional implementation.
Use move semantics in Optional implementation.
C
mit
ckarmann/TrackCommit,ckarmann/TrackCommit
1b5ab79b0bd0973de3a2b6ca256f7d1d4d4c1736
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
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 Change-Id: I8f62e95dd64516e3a99b3123c48b16fd88264f7e
C
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
4d53987845bce8e268926b5126ff426d1697cd40
tests/sv-comp/cfg/main_goto_loop_true-unreach-call.c
tests/sv-comp/cfg/main_goto_loop_true-unreach-call.c
extern void __VERIFIER_error() __attribute__((__noreturn__)); int main() { f_empty_goto_loop(); f_empty_while_loop(); f_empty_goto_loop_suffix(); f_empty_while_loop_suffix(); f_nonempty_goto_loop(); f_nonempty_while_loop(); return 0; } void f_empty_goto_loop() { f_empty_goto_loop_label: goto f_empty_...
Add infinite goto loop examples as SV-COMP tests
Add infinite goto loop examples as SV-COMP tests
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
708edbddabbe7f689839ff6a213fe350b565764e
Source/UnrealEnginePython/Public/UnrealEnginePython.h
Source/UnrealEnginePython/Public/UnrealEnginePython.h
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All); class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface { public: bool PythonGILAcquire(); void PythonGILRelease(); virtual void Start...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All); class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface { public: bool PythonGILAcquire(); void PythonGILRelease(); virtual void Start...
Add support for the Python Stdout Log
Add support for the Python Stdout Log Support the print(' ') and help(' '), Can be used as the transition period.
C
mit
getnamo/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePyt...
18f0174b401852cc6fbef23d9f9b2f1fa6ed3f82
searchcore/src/apps/vespa-feed-bm/bm_storage_chain_builder.h
searchcore/src/apps/vespa-feed-bm/bm_storage_chain_builder.h
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/storage/common/storage_chain_builder.h> namespace feedbm { class BmStorageLinkContext; /* * Storage chain builder that inserts a BmStorageLink right below the * communicat...
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/storage/common/storage_chain_builder.h> namespace feedbm { struct BmStorageLinkContext; /* * Storage chain builder that inserts a BmStorageLink right below the * communica...
Fix forward declaration of BmStorageLinkContext.
Fix forward declaration of BmStorageLinkContext.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa