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 |
|---|---|---|---|---|---|---|---|---|---|
c69aadcb46169b63c37320d8ddf433be117cb827 | src/ufrn_bti_imd0012_2017_1_t3/produto_escalar.c | src/ufrn_bti_imd0012_2017_1_t3/produto_escalar.c | /**
Produto escalar de dois vetores de N posições.
A.B = axbx + ayby + ... + anbn.
*/
#include <stdio.h>
int produtoEscalar(int sizes, int *v1, int *v2){
int i;
int escalar = 0;
for (i = 0; i < sizes; i++){
escalar += v1[i] * v2[i];
}
return escalar;
}
int main(){
int n;
printf("Dimensão dos vetores: ")... | Add dot product (scalar product) | Add dot product (scalar product)
| C | unknown | Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs | |
db41cf2df6c16cec5bc7834b6932a276dc49324e | arch/sparc/include/asm/asmmacro.h | arch/sparc/include/asm/asmmacro.h | /* asmmacro.h: Assembler macros.
*
* Copyright (C) 1996 David S. Miller (davem@caipfs.rutgers.edu)
*/
#ifndef _SPARC_ASMMACRO_H
#define _SPARC_ASMMACRO_H
#include <asm/btfixup.h>
#include <asm/asi.h>
#define GET_PROCESSOR4M_ID(reg) \
rd %tbr, %reg; \
srl %reg, 12, %reg; \
and %reg, 3, %reg;
#define GET_PROCES... | /* asmmacro.h: Assembler macros.
*
* Copyright (C) 1996 David S. Miller (davem@caipfs.rutgers.edu)
*/
#ifndef _SPARC_ASMMACRO_H
#define _SPARC_ASMMACRO_H
#include <asm/btfixup.h>
#include <asm/asi.h>
#define GET_PROCESSOR4M_ID(reg) \
rd %tbr, %reg; \
srl %reg, 12, %reg; \
and %reg, 3, %reg;
#define GET_PROCES... | Remove ldXa and stXa defines, unused. | sparc32: Remove ldXa and stXa defines, unused.
These were for sharing some MMU code between sun4 and sun4c.
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,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_kana... |
1e8ee5c91c4f254e5247f1c50bc4eb5e0edb09a6 | ComponentKit/HostingView/CKComponentRootViewInternal.h | ComponentKit/HostingView/CKComponentRootViewInternal.h | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | Change type of view passed to hit test hooks | Change type of view passed to hit test hooks
If we want to support non-CKComponentRootViews that use these hooks, it has to be a generic UIView.
| C | bsd-3-clause | ezc/componentkit,dshahidehpour/componentkit,avnerbarr/componentkit,dstnbrkr/componentkit,SummerHanada/componentkit,mcohnen/componentkit,adamdahan/componentkit,pairyo/componentkit,mcohnen/componentkit,stevielu/componentkit,avnerbarr/componentkit,inbilin-inc/componentkit,lydonchandra/componentkit,liyong03/componentkit,ad... |
0605946badd1b4d71fa0568a189c2ff5be6fc660 | SurgSim/Framework/Component-inl.h | SurgSim/Framework/Component-inl.h | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// 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/LICE... | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// 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/LICE... | Fix check against nullptr in checkandconvert | Fix check against nullptr in checkandconvert
| C | apache-2.0 | simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim |
d387e1648e5f30d40d811ae6c5a89726b621cfdb | src/Layer.h | src/Layer.h | #ifndef LAYER_H_
#define LAYER_H_
class Layer
{
public:
virtual void render()=0;
virtual void update()=0;
protected:
virtual ~Layer();
};
#endif
| #ifndef LAYER_H_
#define LAYER_H_
//Abstract layer class
class Layer
{
public:
virtual void render()=0;
virtual void update()=0;
protected:
virtual ~Layer() {}
};
#endif
| Make sure layer class is destructed first | Make sure layer class is destructed first
| C | mit | metatrevor/mchezo-engine,metatrevor/mchezo-engine |
6dde82a036afb3d1a6e012f2f8273b401c8b47d1 | gnu/lib/libregex/gnuregex.h | gnu/lib/libregex/gnuregex.h | /* $FreeBSD$ */
#warning "<gnuregex.h> has been replaced by <gnu/regex.h>"
#include <gnu/regex.h>
| /*-
* Copyright (c) 2004 David E. O'Brien
* Copyright (c) 2004 Andrey A. Chernov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above... | Allow to compile with non-GCC compiler. | Allow to compile with non-GCC compiler.
| 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 |
5c31ae8d7724618d27315791605449d7693bde78 | ppu/include/sysutil/sysutil.h | ppu/include/sysutil/sysutil.h | #ifndef __LV2_SYSUTIL_H__
#define __LV2_SYSUTIL_H__
#include <ppu-types.h>
#define SYSUTIL_EVENT_SLOT0 0
#define SYSUTIL_EVENT_SLOT1 1
#define SYSUTIL_EVENT_SLOT2 2
#define SYSUTIL_EVENT_SLOT3 3
#define SYSUTIL_EXIT_GAME 0x0101
#define SYSUTIL_DRAW_BEGIN 0x0121
#define SYSUTIL_DRAW_END 0x0122
#define S... | #ifndef __LV2_SYSUTIL_H__
#define __LV2_SYSUTIL_H__
#include <ppu-types.h>
#define SYSUTIL_EVENT_SLOT0 0
#define SYSUTIL_EVENT_SLOT1 1
#define SYSUTIL_EVENT_SLOT2 2
#define SYSUTIL_EVENT_SLOT3 3
#define SYSUTIL_EXIT_GAME 0x0101
#define SYSUTIL_DRAW_BEGIN 0x0121
#define SYSUTIL_DRAW_END 0x0122
#define S... | Add defines for OSK event ids | Add defines for OSK event ids
| C | mit | ps3dev/PSL1GHT,ps3dev/PSL1GHT,ps3dev/PSL1GHT,ps3dev/PSL1GHT |
124b9d9f70d198fd7ad220e75ad5c7fded10474f | src/minunit.h | src/minunit.h | /* http://www.jera.com/techinfo/jtns/jtn002.html */
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(testname, test) \
do { \
char *message = test(); tests_run++; \
if (message) return message; \
else printf("OK: %s\n", testname); \
} while (0)
extern int test... | /* http://www.jera.com/techinfo/jtns/jtn002.html */
#define mu_assert(message, test) \
do { \
if (!(test)) \
return message; \
} while (0)
#define mu_run_test(testname, test) \
do { \
char *message = test(); tests_run++; \
if (message) return message; \
else printf("OK: %s\n", testname); \
} while (0)
... | Split macro into multiple lines. | Split macro into multiple lines.
| C | mit | profan/yet-another-brainfuck-interpreter |
9246d17556bfb4e9e5ba05f90ca3983dd7ad28d3 | Preferences/PSSwitchTableCell.h | Preferences/PSSwitchTableCell.h | #import "PSControlTableCell.h"
@class UIActivityIndicatorView;
@interface PSSwitchTableCell : PSControlTableCell {
UIActivityIndicatorView *_activityIndicator;
}
@property BOOL loading;
- (BOOL)loading;
- (void)setLoading:(BOOL)loading;
- (id)controlValue;
- (id)newControl;
- (void)setCellEnabled:(BOOL)enabled... | #import "PSControlTableCell.h"
@class UIActivityIndicatorView;
@interface PSSwitchTableCell : PSControlTableCell {
UIActivityIndicatorView *_activityIndicator;
}
@property (nonatomic) BOOL loading;
@end
| Clean up what looks like a direct class-dump header. | [Preferences] Clean up what looks like a direct class-dump header.
| C | unlicense | hbang/headers,hbang/headers |
288f2d1cfa42f8b380ef6a3e3f175a8b474f8303 | thread_tree.h | thread_tree.h | /*
* Raphael Kubo da Costa - RA 072201
*
* MC514 - Lab2
*/
#ifndef __THREAD_TREE_H
#define __THREAD_TREE_H
typedef struct
{
size_t n_elem;
pthread_t *list;
} ThreadLevel;
typedef struct
{
size_t height;
ThreadLevel **tree;
} ThreadTree;
ThreadTree *thread_tree_new(size_t numthreads);
void thread_tree_f... | /*
* Raphael Kubo da Costa - RA 072201
*
* MC514 - Lab2
*/
#ifndef __THREAD_TREE_H
#define __THREAD_TREE_H
typedef struct
{
size_t *interested;
pthread_t *list;
size_t n_elem;
size_t turn;
} ThreadLevel;
typedef struct
{
size_t height;
ThreadLevel **tree;
} ThreadTree;
ThreadTree *thread_tree_new(si... | Add turn and interested fields per level | Add turn and interested fields per level
| C | bsd-2-clause | rakuco/peterson_futex |
d84323ce8cd37c5b88a84e8a8ca2e80dc2b51acc | WordPressCom-Stats-iOS/StatsSection.h | WordPressCom-Stats-iOS/StatsSection.h | typedef NS_ENUM(NSInteger, StatsSection) {
StatsSectionGraph,
StatsSectionPeriodHeader,
StatsSectionEvents,
StatsSectionPosts,
StatsSectionReferrers,
StatsSectionClicks,
StatsSectionCountry,
StatsSectionVideos,
StatsSectionAuthors,
StatsSectionSearchTerms,
StatsSectionComment... | typedef NS_ENUM(NSInteger, StatsSection) {
StatsSectionGraph,
StatsSectionPeriodHeader,
StatsSectionEvents,
StatsSectionPosts,
StatsSectionReferrers,
StatsSectionClicks,
StatsSectionCountry,
StatsSectionVideos,
StatsSectionAuthors,
StatsSectionSearchTerms,
StatsSectionComment... | Add new sections for post details | Add new sections for post details
| C | mit | wordpress-mobile/WordPressCom-Stats-iOS,wordpress-mobile/WordPressCom-Stats-iOS |
d81b288141955127e3752502433f674276cde50b | 3RVX/OSD/EjectOSD.h | 3RVX/OSD/EjectOSD.h | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
#include "OSD.h"
class NotifyIcon;
class EjectOSD : public OSD {
public:
EjectOSD();
virtual void Hide();
virtual void ProcessHotkeys(HotkeyInfo &hki);... | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
#include <thread>
#include "OSD.h"
class NotifyIcon;
class EjectOSD : public OSD {
public:
EjectOSD();
virtual void Hide();
virtual void ProcessHotkey... | Add thread member for offloading disk info ops | Add thread member for offloading disk info ops
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
f891b7d3d09f152adf06bf8442d50f48f85650b8 | Source/CAFMatchedTextViewController.h | Source/CAFMatchedTextViewController.h | //
// CAFMatchedTextViewController.h
// Curiosity
//
// Created by Matthew Thomas on 8/26/12.
// Copyright (c) 2012 Matthew Thomas. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CAFMatchedTextViewController : UIViewController
@end
| //
// CAFMatchedTextViewController.h
// Curiosity
//
// Created by Matthew Thomas on 8/26/12.
// Copyright (c) 2012 Matthew Thomas. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CAFMatchedTextViewController : UIViewController
@property (copy, nonatomic) NSString *regexString;
@property (copy, nonatom... | Add regexString and inputText properties | Add regexString and inputText properties | C | mit | codecaffeine/Curiosity |
478194c51f98e8be07ee29c08753379120e08160 | c/sysfork.c | c/sysfork.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
#define BUF_SIZE 1024
#define CHILD 0
typedef struct {
char filename[BUF_SIZE];
off_t size;
} SizeMessage;
int main(int argc, const char ** argv) {
/* fork process id */
pid_t pid = -1;
/* Start ... | Add C implementation of concomp with fork | Add C implementation of concomp with fork
| C | apache-2.0 | sfinnie/concomp,sfinnie/concomp,sfinnie/concomp,sfinnie/concomp,sfinnie/concomp | |
257379d0ff792fd96c8ff699db232b3cab27476a | include/net/net_linkaddr.h | include/net/net_linkaddr.h | /*
* Copyright (c) 2016 Intel Corporation.
*
* 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... | Add header file for generic link address | net: Add header file for generic link address
It only describes the structure for now, but will then provide helpers.
Change-Id: I7ac7717a3289086dac50d90e25b2a1ce7d7abc91
Signed-off-by: Tomasz Bursztyka <ba81a3a719836727e6857ae83462b9f52ec41006@linux.intel.com>
| C | apache-2.0 | Vudentz/zephyr,runchip/zephyr-cc3220,nashif/zephyr,fractalclone/zephyr-riscv,sharronliu/zephyr,holtmann/zephyr,punitvara/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,tidyjiang8/zephyr-doc,fbsder/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,fbsder/zephyr,rsalveti/zephyr,rsalveti/zephyr,runchip/zephyr-c... | |
83bef2487689918107aa3343b42e4680a2b74cab | properLLTemplate.c | properLLTemplate.c | /* last written on 13/08/2017 22:06:14
owner ise2017001
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node {
int data;
struct node *next;
};
struct node *createNode (int value) {
struct node *newNode = (struct node *) malloc (sizeof (struct node));
newNode -> data ... | Create a Linked list from user input string | Create a Linked list from user input string
1. fgets into a buffer from stdin
2. strtok each number in the string and refer it using char *p
3. eat the string and keep on creating nodes until p hits a '\0'
4. print and destroy | C | mit | devrezo/iaap | |
796459a7cee33cf44961193ad6751ac6edb5e94b | source/tid/enums.h | source/tid/enums.h | #pragma once
#include <exception>
#include <string_view>
namespace tid {
enum level : int {
parent = -1,
normal = 0,
detail = 1,
pedant = 2,
};
constexpr std::string_view level2sv(level l) noexcept {
switch(l) {
case normal: return "normal";
... | #pragma once
#include <stdexcept>
#include <string_view>
namespace tid {
enum level : int {
parent = -1,
normal = 0,
detail = 1,
pedant = 2,
};
constexpr std::string_view level2sv(level l) noexcept {
switch(l) {
case normal: return "normal";
... | Fix include headers after refactor | Fix include headers after refactor
Former-commit-id: f04e7d0471916735efc4fa7ea53c6a2db72fe8ab | C | mit | DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG |
c239d6c8971bcba2a7875ace59936e258562934a | i2c.h | i2c.h | /*
* Copyright (c) 2013 by Kyle Isom <kyle@tyrfingr.is>.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | /*
* Copyright (c) 2013 by Kyle Isom <kyle@tyrfingr.is>.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | Add missing declaration to header. | Add missing declaration to header.
| C | isc | isrlabs/avr-tools,isrlabs/avr-tools |
b8a8116b485bca23f277240d459f3ba0f560b42b | AFToolkit/ObjectProvider/AFObjectModel.h | AFToolkit/ObjectProvider/AFObjectModel.h |
#pragma mark Class Interface
@interface AFObjectModel : NSObject
#pragma mark - Properties
@property (nonatomic, strong, readonly) NSArray *key;
@property (nonatomic, strong, readonly) NSDictionary *mappings;
@property (nonatomic, strong, readonly) NSDictionary *transformers;
#pragma mark - Constructors
- (id)... |
#pragma mark Class Interface
@interface AFObjectModel : NSObject
#pragma mark - Properties
@property (nonatomic, strong, readonly) NSArray *key;
@property (nonatomic, strong, readonly) NSDictionary *mappings;
@property (nonatomic, strong, readonly) NSDictionary *transformers;
#pragma mark - Constructors
- (id)... | Make objectModel protocol method static. | Make objectModel protocol method static.
| C | mit | mlatham/AFToolkit |
ce25eb8d759290e15e80f6091df197aadc6c1aac | c/examples/FuncForwardDeclaration.c | c/examples/FuncForwardDeclaration.c | /*
Func call with various arg numbers.
And func forward declarations.
*/
void aX(void);
int a1(int param1);
int a2(int param1, param2);
void a3();
void a3(void);
int f(int arg1, char arg2)
{
a1(arg1);
a2(arg1, arg2);
a3();
}
| Add one example file for func forward declarations. | Add one example file for func forward declarations.
| C | mit | antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4 | |
ee3fb1237d2b279f906b63b1739dfe388f1319f5 | Lumina-DE/src/lumina-desktop/LTBWidget.h | Lumina-DE/src/lumina-desktop/LTBWidget.h | //===========================================
// Lumina-DE source code
// Copyright (c) 2013, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_TOOLBAR_WIDGET_H
#define _LUMINA_TOOLBAR_WIDGET_H
#include <QAbs... | Add a new widget template for all the toolbar buttons in Lumina - still needs testing | Add a new widget template for all the toolbar buttons in Lumina - still needs testing
| C | bsd-2-clause | pcbsd/external-projects,pcbsd/external-projects,pcbsd/external-projects,pcbsd/external-projects | |
7e7ec2f533ee4ff14372f76f23701e726651f27d | src/cxa_finalize.c | src/cxa_finalize.c | void __cxa_finalize(void *d );
extern void __dso_handle;
__attribute((destructor))
static void cleanup(void) {
__cxa_finalize(&__dso_handle);
}
| /**
* Copyright (c) 2012 David Chisnall.
* This work was funded by TBricks.
*
* 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
* ri... | Add missing copyright in the other file. | Add missing copyright in the other file.
| C | bsd-2-clause | sudosurootdev/external_libcxxrt,xin3liang/platform_external_libcxxrt,vegard/libcxxrt,vegard/libcxxrt,cemeyer/libcxxrt,cemeyer/libcxxrt,sudosurootdev/external_libcxxrt,vegard/libcxxrt,sudosurootdev/external_libcxxrt,cemeyer/libcxxrt,xin3liang/platform_external_libcxxrt,xin3liang/platform_external_libcxxrt |
9e7a287e2d334dbfecd3b8ed1c07b2c84ad9a085 | Pinmark/PMPinboardService.h | Pinmark/PMPinboardService.h | //
// PMPinboardService.h
// Pinmarker
//
// Created by Kyle Stevens on 9/24/14.
// Copyright (c) 2014 kilovolt42. All rights reserved.
//
@class PMBookmark;
@interface PMPinboardService : NSObject
+ (void)requestAPITokenForAPIToken:(NSString *)token success:(void (^)(NSString *))success failure:(void (^)(NSErro... | //
// PMPinboardService.h
// Pinmarker
//
// Created by Kyle Stevens on 9/24/14.
// Copyright (c) 2014 kilovolt42. All rights reserved.
//
@interface PMPinboardService : NSObject
+ (void)requestAPITokenForAPIToken:(NSString *)token success:(void (^)(NSString *))success failure:(void (^)(NSError *))failure;
+ (voi... | Remove unnecessary forward class declaration | Remove unnecessary forward class declaration
| C | mit | kilovolt42/Pinmarker,kilovolt42/Pinmarker,kilovolt42/Pinmarker |
324384b631761fc034fafd80e8396e7d3d15203d | benchmarks/c/examples/simple_math/main.c | benchmarks/c/examples/simple_math/main.c | #ifdef KLEE
#include "klee/klee.h"
#endif
#include <assert.h>
#include <stdio.h>
#include "math.h"
int main() {
float a;
#ifdef KLEE
klee_make_symbolic(&a, sizeof(a), "a");
#endif
float b = a - a;
assert(sin(b) == 0.0f);
return 0;
}
| #ifdef KLEE
#include "klee/klee.h"
#endif
#include <assert.h>
#include <stdio.h>
#include "math.h"
int main() {
float a = 0.0f;
#ifdef KLEE
klee_make_symbolic(&a, sizeof(a), "a");
#endif
if (isnan(a) || isinf(a)) {
// assertion won't hold in these cases so exit early
return 0;
}
float b = a - a;
as... | Fix mistake in example benchmark that is supposed to be correct. The NaN and infinity cases were not considered. | Fix mistake in example benchmark that is supposed to be correct.
The NaN and infinity cases were not considered.
| C | bsd-3-clause | delcypher/fp-bench,delcypher/fp-bench,delcypher/fp-bench |
c627504b77b68b133ce2cde73d192e4c40f436a5 | TrailsKit/TrailsKit.h | TrailsKit/TrailsKit.h | //
// TrailsKit.h
// TrailsKit
//
// Created by Mike Mertsock on 1/1/13.
// Copyright (c) 2013 Esker Apps. All rights reserved.
//
#ifndef TrailsKit_TrailsKit_h
#define TrailsKit_TrailsKit_h
#import "TrailsKitGeometry.h"
#import "TKGPXPolylineMapper.h"
#import "TrailsKitUI.h"
#import "TrailsKitTypes.h"
#endif | //
// TrailsKit.h
// TrailsKit
//
// Created by Mike Mertsock on 1/1/13.
// Copyright (c) 2013 Esker Apps. All rights reserved.
//
#ifndef TrailsKit_TrailsKit_h
#define TrailsKit_TrailsKit_h
#import "TrailsKitGeometry.h"
#import "TrailsKitParsers.h"
#import "TrailsKitTypes.h"
#import "TrailsKitUI.h"
#endif | Add parsers header to root header | Add parsers header to root header
| C | mit | mmertsock/TrailsKit |
e0fa191cf75370ca96af601a029aa85e632a2ec3 | SSPSolution/SSPSolution/GameStateHandler.h | SSPSolution/SSPSolution/GameStateHandler.h | #ifndef SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#define SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#include "GameState.h"
#include "StartState.h"
#include "LevelSelectState.h"
#include <vector>
#define START_WITHOUT_MENU
class GameStateHandler
{
private:
std::vector<GameState*> m_stateStack;
std::vector<Game... | #ifndef SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#define SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#include "GameState.h"
#include "StartState.h"
#include "LevelSelectState.h"
#include <vector>
//#define START_WITHOUT_MENU
class GameStateHandler
{
private:
std::vector<GameState*> m_stateStack;
std::vector<Ga... | REMOVE commented out START_WITHOUT_MENU so we start with a menu | REMOVE commented out START_WITHOUT_MENU so we start with a menu
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
32f23b462b3b1732abfcdde5af941e34bfeaba40 | Source/NSManagedObject+HYPPropertyMapper.h | Source/NSManagedObject+HYPPropertyMapper.h | @import CoreData;
static NSString * const HYPPropertyMapperCustomRemoteKey = @"mapper.remote.key";
@interface NSManagedObject (HYPPropertyMapper)
- (void)hyp_fillWithDictionary:(NSDictionary *)dictionary;
- (NSDictionary *)hyp_dictionary;
@end
| @import CoreData;
static NSString * const HYPPropertyMapperCustomRemoteKey = @"hyper.remoteKey";
@interface NSManagedObject (HYPPropertyMapper)
- (void)hyp_fillWithDictionary:(NSDictionary *)dictionary;
- (NSDictionary *)hyp_dictionary;
@end
| Improve user info name consistency | Improve user info name consistency | C | mit | hyperoslo/NSManagedObject-HYPPropertyMapper,hyperoslo/NSManagedObject-HYPPropertyMapper,isghe/NSManagedObject-HYPPropertyMapper,nbarnold01/NSManagedObject-HYPPropertyMapper,markosankovic/NSManagedObject-HYPPropertyMapper |
d53efb9d518fbc795f79c676649e0ba311838e3a | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k18"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k19"
| Update driver version to 5.02.00-k19 | [SCSI] qla4xxx: Update driver version to 5.02.00-k19
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,Krist... |
b132768bba645cf5008cbe3c5a12b9806d604480 | libavformat/avc.h | libavformat/avc.h | /*
* AVC helper functions for muxers
* Copyright (c) 2008 Aurelien Jacobs <aurel@gnuage.org>
*
* This file is part of FFmpeg.
*
* FFmpeg 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
*... | /*
* AVC helper functions for muxers
* Copyright (c) 2008 Aurelien Jacobs <aurel@gnuage.org>
*
* This file is part of FFmpeg.
*
* FFmpeg 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
*... | Add missing FFMPEG_ prefix to multiple inclusion guard. | Add missing FFMPEG_ prefix to multiple inclusion guard.
git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@15047 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
| C | lgpl-2.1 | prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg |
9fc55387986f0979d10370fe2fa313db8776bdea | src/trm/ft_trmnew.c | src/trm/ft_trmnew.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_trmnew.c :+: :+: :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_trmnew.c :+: :+: :+: ... | Set trm inherit signals by default | Set trm inherit signals by default
| C | apache-2.0 | ncoden/libft |
21e7321ee26f12929cfc4bca16961873291b6349 | lib/cycy/stdio.c | lib/cycy/stdio.c | #include "cycy/stdio.h"
int puts(const char * string) {
int i = 0;
while (string[i] != NULL) {
putchar(string[i++]);
}
putc('\n');
return i + 1;
}
| #include "cycy/stdio.h"
int puts(const char * string) {
int i = 0;
while (string[i] != NULL) {
putchar(string[i]);
i = i + 1;
}
putc('\n');
return i + 1;
}
| Make this easier to compile | Make this easier to compile
| C | mit | Magnetic/cycy,Magnetic/cycy,Magnetic/cycy |
b3a6d0e78452e23b9d2044454aec454d39631263 | cc1/tests/test041.c | cc1/tests/test041.c | /*
name: TEST041
description: Test for bug parsing ternary operators
output:
test041.c:36: error: type mismatch in conditional expression
F1 I
G2 F1 main
{
\
A3 I i
A4 P p
S6 foo
M7 I i
A8 S6 foo
A3 A3 #I0 !I #W0 #W0 ?W gI :I
A4 A3 #I0 !I #P0 #P0 ?P :P
A4 A3 #I0 !I #P0 #P0 ?P :P
A4 A3 #I0 !I #P0 #P0 ?P :P
test041.c... | Add tests for ugly ternary operator | Add tests for ugly ternary operator
| C | isc | k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc | |
6d53dd07a03c4bd24b9ca75cbbfe1c9fc3d4ff1f | cpp/libopenzwavec.h | cpp/libopenzwavec.h | typedef void* COptions;
COptions newCOptions(const char*, const char*, const char*);
| #ifdef __cplusplus
extern "C" {
#endif
typedef void* COptions;
COptions newCOptions(const char*, const char*, const char*);
#ifdef __cplusplus
}
#endif
| Add back the C++ extern | Add back the C++ extern
| C | mit | Julian/libopenzwave-cffi,Julian/libopenzwave-cffi,Julian/libopenzwave-cffi |
939117c3e4b66641dd2f0291800ec3294eeebfd4 | api-testcases/test-c-constructor.c | api-testcases/test-c-constructor.c | /*===
*** test1 (duk_safe_call)
inherited value
top at end: 0
==> rc=0, result='undefined'
===*/
static duk_ret_t my_constructor(duk_context *ctx) {
return 1;
}
static duk_ret_t test1(duk_context *ctx) {
duk_push_global_object(ctx);
duk_push_c_function(ctx, my_constructor, 0); /* constructor (function) */
duk_p... | /*===
*** test1 (duk_safe_call)
inherited value
top at end: 0
==> rc=0, result='undefined'
===*/
static duk_ret_t my_constructor(duk_context *ctx) {
return 0;
}
static duk_ret_t test1(duk_context *ctx) {
duk_push_global_object(ctx);
duk_push_c_function(ctx, my_constructor, 0); /* constructor (function) */
duk_p... | Fix invalid return value in API test | Fix invalid return value in API test
No effect on test result because the constructor was not returning an
object anyway.
| C | mit | chenyaqiuqiu/duktape,zeropool/duktape,harold-b/duktape,eddieh/duktape,nivertech/duktape,reqshark/duktape,nivertech/duktape,markand/duktape,pombredanne/duktape,tassmjau/duktape,haosu1987/duktape,jmptrader/duktape,haosu1987/duktape,nivertech/duktape,pombredanne/duktape,nivertech/duktape,markand/duktape,kphillisjr/duktape... |
e3e07072472a4962895a433206f0d84b54b99695 | rmc.h | rmc.h | #ifndef RMC_CORE_H
#define RMC_CORE_H
#include "atomic.h"
#ifdef HAS_RMC
#error "no you don't"
#else
/* Dummy version that should work. */
#define XEDGE(x, y) do { } while (0)
#define VEDGE(x, y) do { } while (0)
/* Just stick a visibility barrier after every label. This isn't good
* or anything, but it probably wo... | #ifndef RMC_CORE_H
#define RMC_CORE_H
#include "atomic.h"
#ifdef HAS_RMC
/* We signal our labels and edges to our LLVM pass in a *really* hacky
* way to avoid needing to modify the frontend. Labelled statements
* are wrapped in two goto labels to force them into their own basic
* block (labelled statements don't... | Add in a mechanism for interacting with the RMC llvm pass. | Add in a mechanism for interacting with the RMC llvm pass.
| C | mit | msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler |
181906966dd2bdabcaec3c3e8b1d9b1ac43eb294 | misc.h | misc.h | #ifndef MISC_H
#define MISC_H
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "types.h"
#define ARR_LEN(a) (sizeof(a) / sizeof(a[0]))
#define LOOKUP(key, table) (assert(key < ARR_LEN(table)), table[key])
static inline void* xmalloc(size_t s)
{
void* p = malloc(s);
if (!p) {
perror("malloc")... | #ifndef MISC_H
#define MISC_H
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "types.h"
#define ARR_LEN(a) (sizeof(a) / sizeof(a[0]))
#define LOOKUP(key, table) (assert(key < ARR_LEN(table)), \
assert(key >= 0), \
table[key])
static inline... | Add a greater-than-or-equal-to-zero assert to LOOKUP(). | Add a greater-than-or-equal-to-zero assert to LOOKUP().
| C | isc | zevweiss/enthrall |
17248aa53615dd3c3e2d68fb6f1adb9ee61d8f4a | test2/vla/incomplete.c | test2/vla/incomplete.c | // RUN: %check -e %s
void init(int (*p)[])
{
p[0][0] = 1; // CHECK: error: arithmetic on pointer to incomplete type int[]
}
| Test for arithmetic on pointer to vla | Test for arithmetic on pointer to vla
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler | |
afedf4fa79fedacfcd285d49f1c044ddd138951e | chrome/browser/cocoa/objc_zombie.h | chrome/browser/cocoa/objc_zombie.h | // Copyright (c) 2010 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_COCOA_NSOBJECT_ZOMBIE_H_
#define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#pragma once
#import <Foundation/Foundation.h>
// Yo... | // Copyright (c) 2010 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_COCOA_NSOBJECT_ZOMBIE_H_
#define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#pragma once
#import <Foundation/Foundation.h>
// Yo... | Add link to explanation of what we mean by zombie The person triaging / debugging a zombie crash may never have heard of this before. | Add link to explanation of what we mean by zombie
The person triaging / debugging a zombie crash may never have heard of this before.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3763002
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@62723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
83a86b351e8542ef3f9d607bbf8b32f3ca606fd9 | common.h | common.h |
#define exit_with_code(code) { result = code; goto _exit; }
int compile_files(
YR_COMPILER* compiler,
int argc,
const char** argv)
{
for (int i = 0; i < argc - 1; i++)
{
const char* ns;
const char* file_name;
char* colon = (char*) strchr(argv[i], ':');
// Namespace delimiter must be a col... |
#define exit_with_code(code) { result = code; goto _exit; }
int compile_files(
YR_COMPILER* compiler,
int argc,
const char** argv)
{
for (int i = 0; i < argc - 1; i++)
{
const char* ns;
const char* file_name;
char* colon = (char*) strchr(argv[i], ':');
// Namespace delimiter must be a col... | Remove unnecessary call to fclose. | Remove unnecessary call to fclose.
| C | bsd-3-clause | plusvic/yara,cblichmann/yara,wxsBSD/yara,rednaga/yara,tanium/yara,hillu/yara,cblichmann/yara,wxsBSD/yara,VirusTotal/yara,wxsBSD/yara,hillu/yara,plusvic/yara,tanium/yara,hillu/yara,hillu/yara,wxsBSD/yara,plusvic/yara,wxsBSD/yara,rednaga/yara,plusvic/yara,VirusTotal/yara,rednaga/yara,cblichmann/yara,plusvic/yara,cblichma... |
d8b4e55ab22ce4e65a2b64821702f3143ab1105f | elkhound/emitcode.h | elkhound/emitcode.h | // emitcode.h see license.txt for copyright and terms of use
// track state of emitted code so I can emit #line too
#ifndef EMITCODE_H
#define EMITCODE_H
#include <fstream.h> // ofstream
#include "str.h" // stringBuffer
#include "srcloc.h" // SourceLoc
class EmitCode : public stringB... | // emitcode.h see license.txt for copyright and terms of use
// track state of emitted code so I can emit #line too
#ifndef EMITCODE_H
#define EMITCODE_H
#include "str.h" // stringBuffer
#include "srcloc.h" // SourceLoc
#include "ofstreamts.h" // ofstreamTS
class EmitCode : public stringB... | Use ofstreamTS to avoid touching the .gen.cc, .gen.h output if unchanged. | Use ofstreamTS to avoid touching the .gen.cc, .gen.h output if unchanged.
| C | bsd-3-clause | angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar |
fbe96411e7888bfb9cc92fe85e35e093239d24a7 | include/insect.h | include/insect.h | #ifndef __INSECT_H__
#define __INSECT_H__
#include "insect/crawler.h"
#include "insect/records.h"
/* basic file API */
#include "insect/file/stat.h"
#ifdef USE_THREADS
#include "insect/concurrent/thread.h"
#endif /* USE_THREADS */
#endif /* __INSECT_H__ */
| #ifndef __INSECT_H__
#define __INSECT_H__
#ifdef __cplusplus
extern "C" {
#endif /* C++ */
#include "insect/crawler.h"
#include "insect/records.h"
/* basic file API */
#include "insect/file/stat.h"
#ifdef USE_THREADS
#include "insect/concurrent/thread.h"
#endif /* USE_THREADS */
#ifdef __cplusplus
} /* extern "C" ... | Add extern "C" wrapper to main header, for C++ | Add extern "C" wrapper to main header, for C++
| C | bsd-2-clause | hagemt/insect,hagemt/insect |
6457ba1007bd218624a196b8de351d6e2f644ce7 | include/bitcoin/bitcoin/compat.h | include/bitcoin/bitcoin/compat.h | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... | Remove unused code, keep in bx. | Remove unused code, keep in bx.
| C | agpl-3.0 | GroestlCoin/libgroestlcoin,GroestlCoin/libgroestlcoin,GroestlCoin/libgroestlcoin,swansontec/libbitcoin,GroestlCoin/libgroestlcoin,swansontec/libbitcoin,swansontec/libbitcoin,swansontec/libbitcoin |
914aa3e86b039d935ae322bf2c0b654dd9de42ad | KugelmatikFirmware/config.h | KugelmatikFirmware/config.h | #pragma once
#include <Arduino.h>
#include "stepper.h"
enum StepMode : uint8_t {
StepHalf = 1,
StepFull = 2,
StepBoth = 3
};
enum BrakeMode : uint8_t {
BrakeNone = 0,
BrakeAlways = 1,
BrakeSmart = 2
};
struct Config {
StepMode stepMode;
BrakeMode brakeMode;
uint32_t tickTime;
uint32_t homeTime;
uint3... | #pragma once
#include <Arduino.h>
#include "stepper.h"
enum StepMode : uint8_t {
StepHalf = 1,
StepFull = 2,
StepBoth = 3
};
enum BrakeMode : uint8_t {
BrakeNone = 0,
BrakeAlways = 1,
BrakeSmart = 2
};
struct Config {
StepMode stepMode;
BrakeMode brakeMode;
uint32_t tickTime;
uint32_t homeTime;
uint3... | Add packed attribute to Config | Add packed attribute to Config
| C | mit | henrik1235/Kugelmatik,henrik1235/Kugelmatik,henrik1235/Kugelmatik |
2599ba39625924b858e612a5c0a1145752c964e3 | test2/vla/incomplete.c | test2/vla/incomplete.c | // RUN: %check -e %s
void init(int (*p)[])
{
p[0][0] = 1; // CHECK: error: arithmetic on pointer to incomplete type int[]
}
| Test for arithmetic on pointer to vla | Test for arithmetic on pointer to vla
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
90ae0921a7faccb8c2ce05745cc9ca7ca112cba8 | ext/quarry/quarry.h | ext/quarry/quarry.h | # define RAD_TO_DEG 57.29577951308232087 /* 180/PI */
# define DEG_TO_RAD 0.0174532925199433 /* PI/180 */
VALUE mgrs_to_lat_long(VALUE klass) {
VALUE mgrs_grid = rb_iv_get(klass, "@grid");
char* grid = StringValuePtr(mgrs_grid);
double lat, lng;
Convert_MGRS_To_Geodetic(grid, &lat, &lng);
VALUE lat_lng_ar... | # define RAD_TO_DEG 57.29577951308232087 /* 180/PI */
# define DEG_TO_RAD 0.0174532925199433 /* PI/180 */
VALUE mgrs_to_lat_long(VALUE klass) {
VALUE mgrs_grid = rb_iv_get(klass, "@grid");
char* grid = StringValuePtr(mgrs_grid);
double lat, lng;
Convert_MGRS_To_Geodetic(grid, &lat, &lng);
VALUE lat_lng_arr... | Clean up converting float to double | Clean up converting float to double
| C | mit | joshuaclayton/quarry,joshuaclayton/quarry |
35c85704a3e61eaf6e5c55dcf3cd66b09088d09b | src/tcp_socket.c | src/tcp_socket.c | #include "syshead.h"
#include "tcp_socket.h"
#define MAX_TCP_SOCKETS 128
static int cur_fd = 3;
static struct tcp_socket tcp_sockets[MAX_TCP_SOCKETS];
void init_tcp_sockets()
{
memset(tcp_sockets, 0, sizeof(struct tcp_socket) * MAX_TCP_SOCKETS);
}
struct tcp_socket *alloc_tcp_socket()
{
struct tcp_socket *so... | #include "syshead.h"
#include "tcp_socket.h"
#define MAX_TCP_SOCKETS 128
static int cur_fd = 3;
static struct tcp_socket tcp_sockets[MAX_TCP_SOCKETS];
void init_tcp_sockets()
{
memset(tcp_sockets, 0, sizeof(struct tcp_socket) * MAX_TCP_SOCKETS);
}
struct tcp_socket *alloc_tcp_socket()
{
struct tcp_socket *so... | Fix ugly pointer return bug | Fix ugly pointer return bug
| C | mit | saminiir/level-ip,saminiir/level-ip |
39ac779141659cee4605046c4cae459053fc68ab | CMIDITests/CMIDISequence+Debug/CMIDISequence+Debug.h | CMIDITests/CMIDISequence+Debug/CMIDISequence+Debug.h | //
// CMIDISequence+Debug.h
// CMIDI
//
// Created by CHARLES GILLINGHAM on 9/20/15.
// Copyright (c) 2015 CharlesGillingham. All rights reserved.
//
#import "CMIDISequence.h"
@interface CMIDISequence (Debug)
+ (BOOL) testWithMessageList: (NSArray *) msgs;
+ (BOOL) testWithMIDIFile: (NSURL *) fileName;
@end | Rebuild with alias -- trying to fix commit error message | Rebuild with alias -- trying to fix commit error message
| C | mit | CharlesGillingham/CMIDI | |
06e44840368efdb359224b5d04db6c92f73bd373 | arch/cris/include/arch-v32/arch/cache.h | arch/cris/include/arch-v32/arch/cache.h | #ifndef _ASM_CRIS_ARCH_CACHE_H
#define _ASM_CRIS_ARCH_CACHE_H
#include <arch/hwregs/dma.h>
/* A cache-line is 32 bytes. */
#define L1_CACHE_BYTES 32
#define L1_CACHE_SHIFT 5
#define __read_mostly __attribute__((__section__(".data.read_mostly")))
void flush_dma_list(dma_descr_data *descr);
void flush_dma_descr(dma_d... | #ifndef _ASM_CRIS_ARCH_CACHE_H
#define _ASM_CRIS_ARCH_CACHE_H
#include <arch/hwregs/dma.h>
/* A cache-line is 32 bytes. */
#define L1_CACHE_BYTES 32
#define L1_CACHE_SHIFT 5
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
void flush_dma_list(dma_descr_data *descr);
void flush_dma_descr(dma_... | Correct name of read_mostly section. | CRISv32: Correct name of read_mostly section.
54cb27a71f51d304342c79e62fd7667f2171062b renamed .data.read_mostly to
.data..read_mostly for all architectures for 2.6.33.
Reported-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
Signed-off-by: Jesper Nilsson <987a7dbc972893e93e5578401bedc3a0f2... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
4cfc51017db3e3f4eaaa2cb436a905097a4f08e2 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2008 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.02.01-k5"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 2
#define QLA_DRIVER_PATCH_VER 1
#define... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2008 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.02.01-k6"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 2
#define QLA_DRIVER_PATCH_VER 1
#define... | Update version number to 8.02.01-k6. | [SCSI] qla2xxx: Update version number to 8.02.01-k6.
Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@HansenPartnership.com>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... |
5d334bbd060cb6129f8e8af6b29f897d6d4840a1 | src/lily_config.h | src/lily_config.h |
/* Path handling. This was copied from Lua, with some minor adjustments.
The biggest one is the lack of Windows support, because I don't have
my Windows box setup for Lily yet (I'd rather make sure Windows works
all at once). */
#define LILY_MAJOR "0"
#define LILY_MINOR "13"
#define LILY_VERSION_DIR LILY_MA... |
/* Path handling. This was copied from Lua, with some minor adjustments.
The biggest one is the lack of Windows support, because I don't have
my Windows box setup for Lily yet (I'd rather make sure Windows works
all at once). */
#define LILY_MAJOR "0"
#define LILY_MINOR "13"
#define LILY_VER... | Fix up the embarassing mess of path seeding. Yikes. :( | Fix up the embarassing mess of path seeding. Yikes. :(
| C | mit | crasm/lily,crasm/lily,boardwalk/lily,crasm/lily,boardwalk/lily |
2c377d116884aa9dc8fca51830b914b127de1420 | mordor/common/http/tunnel.h | mordor/common/http/tunnel.h | #ifndef __HTTP_TUNNEL_H__
#define __HTTP_TUNNEL_H__
// Copyright (c) 2009 - Decho Corp.
#include "auth.h"
namespace HTTP
{
template <class T>
Stream::ptr tunnel(T &conn, const std::string &proxy, const std::string &target)
{
Request requestHeaders;
requestHeaders.requestLine.method = CONNE... | #ifndef __HTTP_TUNNEL_H__
#define __HTTP_TUNNEL_H__
// Copyright (c) 2009 - Decho Corp.
#include "auth.h"
namespace HTTP
{
template <class T>
Stream::ptr tunnel(T &conn, const std::string &proxy, const std::string &target)
{
Request requestHeaders;
requestHeaders.requestLine.method = CONNE... | Throw a more useful exceptoin when proxy connection fails. | Throw a more useful exceptoin when proxy connection fails.
| C | bsd-3-clause | cgaebel/mordor,adfin/mordor,mtanski/mordor,mtanski/mordor,ccutrer/mordor,cgaebel/mordor,ccutrer/mordor,adfin/mordor,adfin/mordor,mozy/mordor,mozy/mordor,ccutrer/mordor,mtanski/mordor,mozy/mordor |
b793fd632ce03ce39a4d49e97b8f052cf9c03e18 | base/inc/Htypes.h | base/inc/Htypes.h | /* @(#)root/base:$Name: $:$Id: Htypes.h,v 1.1.1.1 2000/05/16 17:00:39 rdm Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | /* @(#)root/base:$Name: $:$Id: Htypes.h,v 1.2 2000/06/13 12:25:52 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Add more comments describing Stat_t and Axis_t | Add more comments describing Stat_t and Axis_t
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@3097 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root |
4df12e7cba463ce664b8cf4e95bb72c4aef2a5ff | PySide/QtCore/qstringlist_conversions.h | PySide/QtCore/qstringlist_conversions.h | namespace Shiboken
{
inline bool Converter<QStringList>::isConvertible(PyObject* pyObj)
{
return StdListConverter<QStringList>::isConvertible(pyObj);
}
inline QStringList Converter<QStringList>::toCpp(PyObject* pyObj)
{
return StdListConverter<QStringList>::toCpp(pyObj);
}
inline PyObject* Converter<QStringLi... | namespace Shiboken
{
inline bool Converter<QStringList>::isConvertible(PyObject* pyObj)
{
return StdListConverter<QStringList>::isConvertible(pyObj);
}
inline QStringList Converter<QStringList>::toCpp(PyObject* pyObj)
{
return StdListConverter<QStringList>::toCpp(pyObj);
}
inline PyObject* Converter<QStringLi... | Return a QStringList wrapper instead of a python list in Converter::toPython. | Return a QStringList wrapper instead of a python list in Converter::toPython.
| C | lgpl-2.1 | enthought/pyside,RobinD42/pyside,IronManMark20/pyside2,BadSingleton/pyside2,M4rtinK/pyside-bb10,RobinD42/pyside,gbaty/pyside2,pankajp/pyside,enthought/pyside,PySide/PySide,BadSingleton/pyside2,qtproject/pyside-pyside,M4rtinK/pyside-bb10,pankajp/pyside,M4rtinK/pyside-android,IronManMark20/pyside2,gbaty/pyside2,PySide/Py... |
21995694719c8c5f83265c291d26d06ee824e461 | Tests/UIAlertViewBlocksKitTest.h | Tests/UIAlertViewBlocksKitTest.h | //
// UIAlertViewBlocksKitTest.h
// BlocksKit
//
// Created by Zachary Waldowski on 12/20/11.
// Copyright (c) 2011 Dizzy Technology. All rights reserved.
//
#import <GHUnitIOS/GHUnit.h>
#import "BlocksKit/BlocksKit.h"
@interface UIAlertViewBlocksKitTest : GHTestCase
@end
| //
// UIAlertViewBlocksKitTest.h
// BlocksKit Unit Tests
//
#import <GHUnitIOS/GHUnit.h>
#import "BlocksKit/BlocksKit.h"
@interface UIAlertViewBlocksKitTest : GHTestCase
- (void)testInit;
- (void)testAddButtonWithHandler;
- (void)testSetCancelButtonWithHandler;
- (void)testDelegationBlocks;
@end
| Make the UIAlertView unit test header consistent. | Make the UIAlertView unit test header consistent.
| C | mit | anton-matosov/BlocksKit,yimouleng/BlocksKit,Herbert77/BlocksKit,aipeople/BlocksKit,AlexanderMazaletskiy/BlocksKit,ManagerOrganization/BlocksKit,Voxer/BlocksKit,pilot34/BlocksKit,pomu0325/BlocksKit,yaoxiaoyong/BlocksKit,hartbit/BlocksKit,HarrisLee/BlocksKit,stevenxiaoyang/BlocksKit,owers19856/BlocksKit,coneman/BlocksKit... |
84fb9633caf6dc5b63ca98fd4d92e6086ab146d0 | lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h | lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h | //=== MipsELFStreamer.h - MipsELFStreamer ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENCE.TXT for details.
//
//===-----------------------------------------------------------... | //=== MipsELFStreamer.h - MipsELFStreamer ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENCE.TXT for details.
//
//===-----------------------------------------------------------... | Remove unused variable (introduced in r173884) to clear clang -Werror build | Remove unused variable (introduced in r173884) to clear clang -Werror build
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@173887 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/l... |
ef3648a694c63142a8025227659303c36f95d000 | obexd/client/main.c | obexd/client/main.c | /*
*
* OBEX Client
*
* Copyright (C) 2007-2008 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 by
* the Free Software Foundation; either version 2 of the License, or
* (a... | Add skeleton for OBEX client implementation | obexd: Add skeleton for OBEX client implementation
| C | lgpl-2.1 | pkarasev3/bluez,mapfau/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,pkarasev3/bluez,mapfau/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,pkarasev3/bluez,silent-snowman/bluez,pkarasev3/bluez,si... | |
a067e96511a774f2398d6b222072926c2917f84c | include/thai/thinp.h | include/thai/thinp.h | /*
* $Id: thinp.h,v 1.2 2001-05-17 17:58:56 thep Exp $
* thinp.h - Thai string input sequence filtering
* Created: 2001-05-17
*/
#ifndef THAI_THINP_H
#define THAI_THINP_H
#include <thai/thailib.h>
BEGIN_CDECL
/*
* strictness of input sequence checking, according to WTT 2.0
*/
typedef enum {
ISC_PASSTHROUG... | /*
* $Id: thinp.h,v 1.3 2001-05-17 18:15:04 thep Exp $
* thinp.h - Thai string input sequence filtering
* Created: 2001-05-17
*/
#ifndef THAI_THINP_H
#define THAI_THINP_H
#include <thai/thailib.h>
BEGIN_CDECL
/*
* strictness of input sequence checking, according to WTT 2.0
*/
typedef enum {
ISC_PASSTHROUG... | Change the spec (comment) of th_validate() | Change the spec (comment) of th_validate()
| C | lgpl-2.1 | tlwg/libthai,tlwg/libthai |
a718c85a2d55da2372278dcd9ae8977fd53197c3 | ios/KontaktBeacons.h | ios/KontaktBeacons.h | #if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#if __has_include("RCTEventEmitter.h")
#import "RCTEventEmitter.h"
#else
#import <React/RCTEventEmitter.h>
#endif
@interface KontaktBeacons : RCTEventEmitter <RCTBridgeModule>
@end
| #if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#if __has_include(<React/RCTEventEmitter.h>)
#import <React/RCTEventEmitter.h>
#else
#import "RCTEventEmitter.h"
#endif
@interface KontaktBeacons : RCTEventEmitter <RCTBridgeModule>
@end
| Fix imports for React Native 0.48.x. | Fix imports for React Native 0.48.x.
| C | mit | Artirigo/react-native-kontaktio,Artirigo/react-native-kontaktio,Artirigo/react-native-kontaktio,Artirigo/react-native-kontaktio,Artirigo/react-native-kontaktio |
958c121cda713ba50ff37cb58ff2c8964d18a8d5 | crypto/rng/rand_linux_kernel.c | crypto/rng/rand_linux_kernel.c | /*
* rand_linux_kernel.c
*
* implements a random source using Linux kernel functions
*
* Marcus Sundberg
* Ingate Systems AB
*/
/*
*
* Copyright(c) 2005 Ingate Systems AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... | Implement a random source using Linux kernel functions. | Implement a random source using Linux kernel functions.
| C | bsd-3-clause | persmule/libsrtp,cuijinquan/libsrtp,persmule/libsrtp,ksophocleous/libsrtp,Distrotech/libsrtp,Distrotech/libsrtp,ksophocleous/libsrtp,yarrcc/libsrtp-ios,cuijinquan/libsrtp,yarrcc/libsrtp-ios,cuijinquan/libsrtp,persmule/libsrtp,yarrcc/libsrtp-ios | |
8b55ba7d6d1fbd3244ce9e1bc19e691099274172 | 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 6
#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 9
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | Update the version number to 0.9 for a beta build. | Update the version number to 0.9 for a beta build.
| C | mit | TacoCoin/tacocoin,TacoCoin/tacocoin,TacoCoin/tacocoin,TacoCoin/tacocoin,TacoCoin/tacocoin |
647a75160df6d53d26724038b3bfe0d836513f58 | test/Analysis/default-diagnostic-visitors.c | test/Analysis/default-diagnostic-visitors.c | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -analyze -analyzer-checker=core -analyzer-store=region -analyzer-output=text -verify %s
// This file is for testing enhanced diagnostics produced by the default BugReporterVisitors.
int getPasswordAndItem()
{
int err = 0;
int *password; // expected-note {{Variable ... | Add a test for checking that custom diagnostic visitors are working. | Add a test for checking that custom diagnostic visitors are working.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@137970 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
86471f5a466e1f89e04c66fc634c75b393fb65ed | src/crypto/aes/aes-x64/aes-gcm.h | src/crypto/aes/aes-x64/aes-gcm.h |
struct gcm_args {
unsigned char* plaintext;
unsigned int plain_len;
unsigned char* additional_data;
unsigned int additional_data_len;
unsigned char* iv;
unsigned char* expanded_key_ptr;
unsigned char* ciphertext_ptr;
unsigned char* tag_ptr;
unsigned char* tmp_ptr; // Should point to a buffer of... | Add a small C header file to wrap our assembly. | Add a small C header file to wrap our assembly.
| C | apache-2.0 | project-everest/vale,project-everest/vale,project-everest/vale,project-everest/vale | |
8ffd3e71a3a1ef59ee1d634326094b59cf316c93 | lib/LLVMPasses/LLVMARCOpts.h | lib/LLVMPasses/LLVMARCOpts.h | //===--- LLVMARCOpts.h - LLVM level ARC Opts Utility Declarations ---------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | Add missing file from OptimizeARC => LLVMPasses transition. | Add missing file from OptimizeARC => LLVMPasses transition.
Swift SVN r21657
| C | apache-2.0 | allevato/swift,Ivacker/swift,deyton/swift,jopamer/swift,kusl/swift,mightydeveloper/swift,karwa/swift,therealbnut/swift,practicalswift/swift,therealbnut/swift,apple/swift,deyton/swift,sdulal/swift,CodaFi/swift,return/swift,gregomni/swift,gmilos/swift,tinysun212/swift-windows,codestergit/swift,sschiau/swift,hughbe/swift,... | |
ce9d3b5bb566afb72d5d7ba4623f4f73b5dab830 | cantranslator/tests/bitfield_tests.c | cantranslator/tests/bitfield_tests.c | #include <check.h>
#include "bitfield.h"
START_TEST (test_foo)
{
fail_unless(1 == 2);
}
END_TEST
Suite* bitfieldSuite(void) {
Suite* s = suite_create("bitfield");
TCase *tc_core = tcase_create("core");
tcase_add_test(tc_core, test_foo);
suite_add_tcase(s, tc_core);
return s;
}
int main(void)... | #include <check.h>
#include <stdint.h>
#include "bitfield.h"
START_TEST (test_size)
{
uint8_t data = 0xFF;
fail_unless(getBitField(&data, 0, 4) == 0xF);
}
END_TEST
Suite* bitfieldSuite(void) {
Suite* s = suite_create("bitfield");
TCase *tc_core = tcase_create("core");
tcase_add_test(tc_core, test_... | Add a real test case for bitfield. | Add a real test case for bitfield.
This currently fails because we're not linking the test with the objects we want
to test. I tried adding the $(OBJS) variable to the build line, but because
those objects are all compiled with pic32-gcc it's not going to work.
I think the solution is to either:
Manually list the ob... | C | bsd-3-clause | mgiannikouris/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware |
c0e3faa7fc57ddefe8ecab3eca1fc866809c5def | sort_algorithms.c | sort_algorithms.c | /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleS... | /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleS... | Add swap counting in bubbleSort | Add swap counting in bubbleSort
| C | mit | sentientWilder/Search-and-Sort,sentientWilder/Search-and-Sort |
e812028de50245da9984aedc326093b0364332d1 | libarchivist/archivist/cache.h | libarchivist/archivist/cache.h | #ifndef ARCH_CACHE_H
#define ARCH_CACHE_H 1
#include "uuid.h"
#include "record.h"
#define ARCH_CACHE_MIN 31
typedef struct arch_cache_bucket {
arch_uuid_t uuid;
arch_record_t *record;
struct arch_cache_bucket *next;
} arch_cache_bucket_t;
typedef struct arch_cache {
struct arch_cache *old;
size_t size, entr... | #ifndef ARCH_CACHE_H
#define ARCH_CACHE_H 1
#include "uuid.h"
#include "record.h"
#define ARCH_CACHE_MIN 31
typedef struct arch_cache_bucket {
arch_uuid_t uuid;
arch_record_t *record;
struct arch_cache_bucket *next;
} arch_cache_bucket_t;
typedef struct arch_cache {
struct arch_cache *old;
size_t size, entr... | Add allocation helper macro ARCH_CACHE_BYTES() | Add allocation helper macro ARCH_CACHE_BYTES()
| C | bsd-2-clause | LambdaOS/Archivist |
b0fd54165257fa2c62c1e700c547b597778683bb | ionWindow/CWindowManager.h | ionWindow/CWindowManager.h |
#pragma once
#include <ionMath.h>
#include "CWindow.h"
#undef CreateWindow
enum class EWindowType
{
Fullscreen,
Windowed
};
class CWindowManager : public Singleton<CWindowManager>, public IEventListener
{
public:
void Init();
void PollEvents();
bool ShouldClose() const;
bool Run();
... |
#pragma once
#include <ionMath.h>
#include "CWindow.h"
enum class EWindowType
{
Fullscreen,
Windowed
};
class CWindowManager : public Singleton<CWindowManager>, public IEventListener
{
public:
void Init();
void PollEvents();
bool ShouldClose() const;
bool Run();
#undef CreateWindo... | Move CreateWindow undef to make its purpose more clear | Move CreateWindow undef to make its purpose more clear
| C | mit | iondune/ionEngine,iondune/ionEngine |
aa1c5191494846d7a7ce11a485bd24176be36886 | creator/plugins/tools/vcs/vcstoolplugin.h | creator/plugins/tools/vcs/vcstoolplugin.h | /******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2011 Laszlo Papp <lpapp@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | /******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2011 Laszlo Papp <lpapp@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | Add an empty initialize implementation in order to avoid the compilation error | Add an empty initialize implementation in order to avoid the compilation error
CCMAIL: ashwin_rajeev@hotmail.com
Commit "17496753" added a pure virtual initialize method to the plugin interface
without extending the vcstoolplugin subclass even just with an empty body, so
that is the reason why it got broken. It was n... | C | lgpl-2.1 | KDE/gluon,KDE/gluon,KDE/gluon,KDE/gluon |
19c9cc48d98add5e1f0414ce7d1885e6f3ed1e82 | src/homie-node-collection.h | src/homie-node-collection.h | #pragma once
#include "misc/welcome.hpp"
#include "misc/ota.hpp"
#include "Bme280Node.hpp"
#include "ContactNode.hpp"
#include "DHT22Node.hpp"
#include "RelayNode.hpp"
| #pragma once
#include "misc/welcome.hpp"
#include "misc/ota.hpp"
#include "Bme280Node.hpp"
#include "ButtonNode.hpp"
#include "ContactNode.hpp"
#include "DHT22Node.hpp"
#include "RelayNode.hpp"
| Include ButtonNode in header file | Include ButtonNode in header file
| C | mit | luebbe/homie-node-collection |
ee3c4d78acdfd67d161a3d9bac79e6597393d414 | tests/test_util.c | tests/test_util.c | /* Unit tests for small utility routines.
*
* SCL; 2016
*/
#include <stdlib.h>
#include "common.h"
#include "tests_common.h"
#include "gr1c_util.h"
int main( int argc, char **argv )
{
vartype bv[] = {0,1,0,1};
if (bitvec_to_int( bv, 4 ) != 0xA) {
ERRPRINT( "bitvec_to_int( [0,1,0,1], 4) != 0xA" )... | /* Unit tests for small utility routines.
*
* SCL; 2016
*/
#include <stdlib.h>
#include <assert.h>
#include "common.h"
#include "tests_common.h"
#include "gr1c_util.h"
void print_arr( FILE *fp, vartype *arr, int len )
{
int k;
assert( len > 0 );
fprintf( fp, "[" );
for (k = 0; k < len; k++) {
... | Implement generic check of bitvec_to_int() | TEST: Implement generic check of bitvec_to_int()
| C | bsd-3-clause | slivingston/gr1c,slivingston/gr1c,slivingston/gr1c |
8253535b09532ff8b788611ffec5161aad910d6a | src/vast/util/hash_combine.h | src/vast/util/hash_combine.h | #ifndef VAST_UTIL_HASH_COMBINE_H
#define VAST_UTIL_HASH_COMBINE_H
#include <cstddef>
namespace vast {
namespace util {
// Hashes 128-bit input down to 64 bits.
// @note Taken from Google's CityHash; licence: MIT
inline size_t hash_128_to_64(size_t upper, size_t lower)
{
static size_t const k_mul = 0x9ddfea08eb382d... | Add function to combine multiple hash digests. | Add function to combine multiple hash digests.
| C | bsd-3-clause | vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,mavam/vast,pmos69/vast,pmos69/vast,mavam/vast,pmos69/vast,vast-io/vast,pmos69/vast,mavam/vast,vast-io/vast | |
f6ed7824c55ef2f915eca3965b06cb67fd16335c | test/FrontendC/cstring-align.c | test/FrontendC/cstring-align.c | // RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32
// RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86_64 -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64
extern void func(const char *, const char *);
voi... | // RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32
// RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64
extern void func(const char *, const char *);
voi... | Fix -march= name for x86-64. | Fix -march= name for x86-64.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@89445 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,app... |
3dc5cfa7d542651af425a6c9870b00fd24248b4e | opencog/cython/agent_finder_types.h | opencog/cython/agent_finder_types.h | namespace opencog
{
// This type is returned from the agent_finder_api when loading a python module
// containing agents or requests
struct requests_and_agents_t {
std::vector<std::string> agents;
std::vector<std::string> requests;
std::vector<std::string> req_summary;
std::vector<std::string> req_desc... |
#include <opencog/atomspace/AtomSpace.h>
namespace opencog
{
// This type is returned from the agent_finder_api when loading a python module
// containing agents or requests
struct requests_and_agents_t {
std::vector<std::string> agents;
std::vector<std::string> requests;
std::vector<std::string> req_sum... | Add missing include; fixes build break | Add missing include; fixes build break
| C | agpl-3.0 | inflector/opencog,ArvinPan/atomspace,ceefour/opencog,sanuj/opencog,rodsol/opencog,zhaozengguang/opencog,rohit12/opencog,eddiemonroe/opencog,iAMr00t/opencog,sumitsourabh/opencog,printedheart/atomspace,kinoc/opencog,misgeatgit/atomspace,tim777z/opencog,gavrieltal/opencog,tim777z/opencog,misgeatgit/atomspace,yantrabuddhi/... |
43d14f58dde1f6589cd11c14ce56d31ddfdca027 | Chapter5/expr.c | Chapter5/expr.c | #include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
// Exercise 5-11
#define MAX 1000
int pop(void);
void push(int n);
int main(int argc, char *argv[])
{
while (--argc > 0 && argv++ != NULL)
{
printf("%s\n", *argv);
if(*argv[0] == '+')
{
push(pop() + pop());
}
else if(*argv[0] == ... | #include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
// Exercise 5-11
#define MAX 1000
int pop(void);
void push(int n);
int main(int argc, char *argv[])
{
while (--argc > 0 && argv++ != NULL)
{
printf("%s\n", *argv);
if(*argv[0] == '+')
{
push(pop() + pop());
}
else if(*argv[0] == ... | Implement Exercise 5-10 for multiplication | Implement Exercise 5-10 for multiplication
| C | mit | Kunal57/C_Problems,Kunal57/C_Problems |
15a3fa7b4d5ad5dd911e43661e0f1eba796933ff | TitanHide/log.h | TitanHide/log.h | #ifndef _LOG_H
#define _LOG_H
#include "_global.h"
void Log(const char* format, ...);
#endif | #ifndef _LOG_H
#define _LOG_H
#include "_global.h"
#if defined(__RESHARPER__)
#define PRINTF_ATTR(FormatIndex, FirstToCheck) \
[[gnu::format(printf, FormatIndex, FirstToCheck)]]
#elif defined(__GNUC__)
#define PRINTF_ATTR(FormatIndex, FirstToCheck) \
__attribute__((format(printf, FormatIndex, FirstT... | Add Resharper printf argument type checking and formatting to Log() | Add Resharper printf argument type checking and formatting to Log()
| C | mit | mrexodia/TitanHide,mrexodia/TitanHide,mrexodia/TitanHide |
7ae9bb1196aa3c5c56d12da09d465b63106713f0 | slow.c | slow.c | #define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "arg.h"
char *argv0;
void usage() {
printf("usage: %s [-t usec] [-F]\n", argv0);
exit(EXIT_FAILURE);
}
int main(int argc, char *argv[]) {
char buffer;
size_t nread;
useconds_t useconds = 1000000; // default 1 second... | #define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "arg.h"
char *argv0;
void usage() {
fprintf(stderr, "usage: %s [-t usec] [-F]\n", argv0);
exit(EXIT_FAILURE);
}
int main(int argc, char *argv[]) {
char buffer;
size_t nread;
useconds_t useconds = 1000000; // default... | Write usage() message on stderr. | Write usage() message on stderr.
| C | mit | pips-/slow |
73406f6a857a6f603e446c3b750170dfb8b865d3 | tests/ctests/error_string.c | tests/ctests/error_string.c | int main() {
// Issue: 3: error: empty character constant
'';
// Issue: 6: error: multiple characters in character constant
'ab';
}
| int main() {
// Issue: 3: error: empty character constant
'';
// Issue: 6: error: multiple characters in character constant
'ab';
// Issue: 9: error: multiple characters in character constant
'/*';
}
| Add character string comment test | Add character string comment test
| C | mit | ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC |
8f759d3c5cf80b2d6d154705cf31a8423fd7ec07 | euler.h | euler.h | #ifndef __EULER__
#define __EULER__
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
int check(int, int, int);
void error(const char *str);
#endif
| #ifndef __EULER__
#define __EULER__
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
int check(int, int, int);
void error(const char *str);
#endif
| Add macros for min and max | Add macros for min and max
| C | bsd-2-clause | skreuzer/euler |
1e701c096ad1ec3b866e2b254ae7ced780faa2e6 | dictionary.c | dictionary.c | #include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "spellutil.h"
#include "dictionary.h"
typedef struct word_count {
int value;
} count;
int
parse_file(const char *filename, spell_hashtable *table)
{
FILE *file = fopen(filename, "r");
int _errno;
char *line = NULL;... | #include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "spellutil.h"
typedef struct word_count {
int value;
} count;
int
parse_file(const char *filename, spell_hashtable *table)
{
FILE *file = fopen(filename, "r");
int _errno;
char *line = NULL;
size_t len = 0;
... | Remove inclusion of a non-existing header file | Remove inclusion of a non-existing header file
| C | bsd-2-clause | abhinav-upadhyay/spell,abhinav-upadhyay/spell |
195e54d55c0b03e68ab46914d3d5e9f985395331 | kernel/irq.c | kernel/irq.c | #include <irq.h>
void irq_enable()
{
__asm__ __volatile__ (
"mrs r0, cpsr\n"
"bic r0, r0, #0x80\n"
"msr cpsr, r0\n"
);
}
void irq_disable()
{
__asm__ __volatile__ (
"mrs r0, cpsr\n"
"orr r0, #0xc0\n"
"msr cpsr, r0\n"
);
}
void handler_swi()
{
uart0_send("In SWI!\n");
irq_enable();
}
void handler_i... | #include <irq.h>
#include <uart.h>
void (*pl190_isr_vectors[IRQ_COUNT])(void) =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
uart0_irq_handler,
0, 0, 0
};
void irq_enable()
{
__asm__ __volatile__ (
"mrs r0, cpsr\n"
"bic r0, r0, #0x80\n"
"msr cpsr, r0\n"
);
}
void irq_disable()
{
__asm__ __volatile__ (
"mrs ... | Remove conditional branch in IRQ handler | Remove conditional branch in IRQ handler
| C | mit | waynecw/cwos,waynecw/cwos |
857025b72f3496ac93bb102f9f265592401117b1 | test/Misc/thinlto.c | test/Misc/thinlto.c | // RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s
// CHECK: <FUNCTION_SUMMARY_BLOCK
// CHECK-NEXT: <PERMODULE_ENTRY
// CHECK-NEXT: <PERMODULE_ENTRY
// CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK
__attribute__((noinline)) void foo() {}
int main() { foo(); }
| // RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s
// CHECK: <GLOBALVAL_SUMMARY_BLOCK
// CHECK-NEXT: <PERMODULE
// CHECK-NEXT: <PERMODULE
// CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK
__attribute__((noinline)) void foo() {}
int main() { foo(); }
| Update test case for llvm summary format changes in D17592. | Update test case for llvm summary format changes in D17592.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@263276 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
0e70a5167953692bb96d0d84e7337ed7f833b0d5 | Wangscape/noise/module/codecs/ModuleCodecs.h | Wangscape/noise/module/codecs/ModuleCodecs.h | #pragma once
#include "AbsWrapperCodec.h"
#include "AddWrapperCodec.h"
#include "BillowWrapperCodec.h"
#include "BlendWrapperCodec.h"
#include "CacheWrapperCodec.h"
#include "CheckerboardWrapperCodec.h"
#include "ClampWrapperCodec.h"
#include "ConstWrapperCodec.h"
#include "CornerCombinerBaseWrapperCodec.h"
#include "... | #pragma once
#include "AbsWrapperCodec.h"
#include "AddWrapperCodec.h"
#include "BillowWrapperCodec.h"
#include "BlendWrapperCodec.h"
#include "CacheWrapperCodec.h"
#include "CheckerboardWrapperCodec.h"
#include "ClampWrapperCodec.h"
#include "ConstWrapperCodec.h"
#include "CornerCombinerBaseWrapperCodec.h"
#include "... | Add Gradient* codec header to all-codecs header | Add Gradient* codec header to all-codecs header
| C | mit | serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape |
dbdcd34d8dfea30fcfcbb176db89e2a14f88eabc | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | // 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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility ... | C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
48604212f8046625c0392b53b65d5f8440ae35e8 | src/test_interface.c | src/test_interface.c | #include <stdio.h>
#include "decode.h"
#include "event_detection.h"
#include "fast5_interface.h"
#include "homopolymer.h"
#include "kseq.h"
#include "layers.h"
#include "networks.h"
#include "nnfeatures.h"
#include "scrappie_common.h"
#include "scrappie_licence.h"
#include "scrappie_matrix.h"
#include "scrappie_seq_he... | #include <stdio.h>
#include "decode.h"
#include "event_detection.h"
#include "fast5_interface.h"
#include "homopolymer.h"
#include "kseq.h"
#include "layers.h"
#include "networks.h"
#include "nnfeatures.h"
#include "scrappie_common.h"
#include "scrappie_matrix.h"
#include "scrappie_seq_helpers.h"
#include "scrappie_st... | Remove licence from interface test | Remove licence from interface test
| C | mpl-2.0 | nanoporetech/scrappie,nanoporetech/scrappie,nanoporetech/scrappie |
2d3728610e716835f1d54606dee0f7c5cb404f66 | backend/tests/grouter/openflow_flowtable_t.c | backend/tests/grouter/openflow_flowtable_t.c | #include "openflow_flowtable.h"
#include "mut.h"
#include <stdint.h>
#include "common_def.h"
extern void openflow_flowtable_set_defaults(void);
extern uint8_t openflow_flowtable_ip_compare(uint32_t ip_1, uint32_t ip_2,
uint8_t ip_len);
TESTSUITE_BEGIN
TEST_BEGIN("Flowtable Modification")
openflow_flowtabl... | #include "openflow_flowtable.h"
#include "mut.h"
#include <stdint.h>
#include "common_def.h"
extern void openflow_flowtable_set_defaults(void);
extern uint8_t openflow_flowtable_ip_compare(uint32_t ip_1, uint32_t ip_2,
uint8_t ip_len);
TESTSUITE_BEGIN
TEST_BEGIN("Flowtable Modification")
openflow_flowtabl... | Clean up test, use proper structuring functions | Clean up test, use proper structuring functions
| C | mit | anrl/gini3,anrl/gini3,anrl/gini3,anrl/gini3,michaelkourlas/gini,michaelkourlas/gini,anrl/gini3,michaelkourlas/gini,michaelkourlas/gini,michaelkourlas/gini |
2a608956279a2bc37c762f3f2b5e20ee38b1f43c | ui/reflectionview.h | ui/reflectionview.h | #pragma once
#include <QtGui/QMouseEvent>
#include <QtGui/QPaintEvent>
#include <QtWidgets/QWidget>
#include "binaryninjaapi.h"
#include "dockhandler.h"
#include "uitypes.h"
class ContextMenuManager;
class DisassemblyContainer;
class Menu;
class ViewFrame;
class BINARYNINJAUIAPI ReflectionView: public QWidget, publ... | #pragma once
#include <QtGui/QMouseEvent>
#include <QtGui/QPaintEvent>
#include <QtWidgets/QWidget>
#include "binaryninjaapi.h"
#include "dockhandler.h"
#include "uitypes.h"
class ContextMenuManager;
class DisassemblyContainer;
class Menu;
class ViewFrame;
class BINARYNINJAUIAPI ReflectionView: public QWidget, publ... | Add some synchronization modes to reflection view along with a context menu. | Add some synchronization modes to reflection view along with a context menu.
| C | mit | Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api |
2137ddf9dc59273c6444330246fd1c2c34586679 | driver/driver.c | driver/driver.c | /*
* driver - driver for loading mruby source code
*/
#include <stdio.h>
#include "mruby.h"
#include "mruby/compile.h"
#include "mruby/irep.h"
/* The generated mruby bytecodes are stored in this array */
extern const char app_irep[];
int webruby_internal_run(mrb_state* mrb)
{
mrb_load_irep(mrb, app_irep);
ret... | /*
* driver - driver for loading mruby source code
*/
#include <stdio.h>
#include "mruby.h"
#include "mruby/compile.h"
#include "mruby/irep.h"
/* The generated mruby bytecodes are stored in this array */
extern const char app_irep[];
static int check_and_print_errors(mrb_state* mrb)
{
if (mrb->exc) {
mrb_p(... | Print exceptions to console if exist. | Print exceptions to console if exist.
| C | mit | sadasant/webruby,sadasant/webruby,xxuejie/webruby,xxuejie/webruby |
7df596443ac992039d239aa34212ff83943f6d7f | test/time-test.c | test/time-test.c | #include <stdlib.h>
#include <time.h>
#include <detest/detest.h>
#include <disco/time.h>
void test_zero_milliseconds_to_timeval() {
size_t milliseconds = 0;
struct timeval t = milliseconds_to_timeval(milliseconds);
expect(t.tv_sec == 0 && t.tv_usec == 0);
}
void test_one_millisecond_to_timeval() {
... | #include <stdlib.h>
#include <time.h>
#include <detest/detest.h>
#include <disco/time.h>
void test_zero_milliseconds_to_timeval() {
size_t milliseconds = 0;
struct timeval t = milliseconds_to_timeval(milliseconds);
expect(t.tv_sec == 0 && t.tv_usec == 0);
}
void test_one_millisecond_to_timeval() {
... | Add milliseconds to timeval test | Add milliseconds to timeval test
| C | unlicense | mmurdoch/disco,mmurdoch/disco |
574f35bfae6ea591603ead5a8a7db2154058ca6d | firmware/greatfet_usb/usb_api_dac.c | firmware/greatfet_usb/usb_api_dac.c | /*
* This file is part of GreatFET
*/
#include "usb_api_dac.h"
#include "usb.h"
#include "usb_queue.h"
#include "usb_endpoint.h"
#include <stddef.h>
#include <greatfet_core.h>
#include <dac.h>
#include <pins_greatfet.h>
usb_request_status_t usb_vendor_request_dac_set(
usb_endpoint_t* const endpoint, const usb_tr... | /*
* This file is part of GreatFET
*/
#include "usb_api_dac.h"
#include "usb.h"
#include "usb_queue.h"
#include "usb_endpoint.h"
#include <stddef.h>
#include <greatfet_core.h>
#include <dac.h>
#include <pins.h>
usb_request_status_t usb_vendor_request_dac_set(
usb_endpoint_t* const endpoint, const usb_transfer_st... | Fix wrong pins header from being included, add mask to DAC control register | Fix wrong pins header from being included, add mask to DAC control register
| C | bsd-3-clause | dominicgs/GreatFET-experimental,greatscottgadgets/greatfet,greatscottgadgets/greatfet,greatscottgadgets/greatfet,greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,dominicgs/GreatFET-experimental |
21e21481fc3887bf87731c045e72e5a4b78ec2d7 | lib/image/pgm.c | lib/image/pgm.c | #include "image.h"
#include <inttypes.h>
static unsigned char* read_pgm(const char* filename, size_t* width, size_t* height, size_t* nimages) {
*nimages = 1;
unsigned char* image = NULL;
FILE* f = strcmp(filename,"-") ? fopen(filename,"r") : stdin;
uint16_t depth;
if(
f &&
fscanf(f,"P5 %zu %zu %" PRIu16,widt... | #include "image.h"
#include <inttypes.h>
static unsigned char* read_pgm(const char* filename, size_t* width, size_t* height, size_t* nimages) {
*nimages = 1;
unsigned char* image = NULL;
FILE* f = strcmp(filename,"-") ? fopen(filename,"r") : stdin;
uint16_t depth;
if(
f &&
fscanf(f,"P5 %zu %zu %" SCNu16,widt... | Use proper u16 macro for scanf | Use proper u16 macro for scanf
The PRIu16 macro only guarantees that the resulting conversion
specifier will be suitable for printing, not scanning.
SCNu16 provides the appropriate specifier for the latter.
Some libcs define PRIu16 to just "%u" rather than defining both as
"%hu", which is makes sense but results in u... | C | lgpl-2.1 | 0x09/resdet,0x09/resdet,0x09/resdet,0x09/resdet |
72e5c6bb8c0df5b6b0812155474065b30f9e95e2 | firmware/BlynkWidgets.h | firmware/BlynkWidgets.h | /**
* @file BlynkWidgets.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Mar 2015
* @brief
*/
#include "WidgetLED.h"
#include "WidgetLCD.h"
//#include <WidgetTerminal.h> // No Print.... | /**
* @file BlynkWidgets.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Mar 2015
* @brief
*/
#include "WidgetLED.h"
#include "WidgetLCD.h"
#include "WidgetTerminal.h"
#include "Widg... | Add terminal to common widgets | Add terminal to common widgets
| C | mit | vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,yaneexy/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark |
98e6747307ff09935766012ec715e8161722c069 | numpy/core/src/multiarray/buffer.h | numpy/core/src/multiarray/buffer.h | #ifndef _NPY_PRIVATE_BUFFER_H_
#define _NPY_PRIVATE_BUFFER_H_
#ifdef NPY_ENABLE_MULTIPLE_COMPILATION
extern NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#else
NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#endif
#endif
| #ifndef _NPY_PRIVATE_BUFFER_H_
#define _NPY_PRIVATE_BUFFER_H_
#ifdef NPY_ENABLE_SEPARATE_COMPILATION
extern NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#else
NPY_NO_EXPORT PyBufferProcs array_as_buffer;
#endif
#endif
| Fix mispelled separate compilation macro. | Fix mispelled separate compilation macro.
git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@6965 94b884b6-d6fd-0310-90d3-974f1d3f35e1
| C | bsd-3-clause | Ademan/NumPy-GSoC,efiring/numpy-work,efiring/numpy-work,teoliphant/numpy-refactor,chadnetzer/numpy-gaurdro,efiring/numpy-work,teoliphant/numpy-refactor,teoliphant/numpy-refactor,teoliphant/numpy-refactor,Ademan/NumPy-GSoC,Ademan/NumPy-GSoC,illume/numpy3k,illume/numpy3k,Ademan/NumPy-GSoC,chadnetzer/numpy-gaurdro,illume/... |
ed0f3ad3cc2fb70eabdd0d8dc09936d51c18639c | Classes/Statistics.h | Classes/Statistics.h | /*
Copyright (c) 2008, Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the foll... | /*
Copyright (c) 2008, Stig Brautaset. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the foll... | Fix for include path slighlty incorrect | Fix for include path slighlty incorrect
| C | bsd-3-clause | aug2uag/Statistics |
af7e443cb2e40a8c5c3886cf7c37c9a762eaf3b2 | source/common/game_state_manager_base.h | source/common/game_state_manager_base.h | /* The Halfling Project - A Graphics Engine and Projects
*
* The Halfling Project is the legal property of Adrian Astley
* Copyright Adrian Astley 2013
*/
#ifndef GAME_STATE_MANAGER_H
#define GAME_STATE_MANAGER_H
namespace Common {
class GameStateManagerBase
{
public:
virtual bool Initialize() = 0;
virtual vo... | /* The Halfling Project - A Graphics Engine and Projects
*
* The Halfling Project is the legal property of Adrian Astley
* Copyright Adrian Astley 2013
*/
#ifndef GAME_STATE_MANAGER_H
#define GAME_STATE_MANAGER_H
namespace Common {
class GameStateManagerBase
{
public:
virtual bool Initialize() = 0;
virtual vo... | Add virtual functions to handle mouse movments and Resize | COMMON: Add virtual functions to handle mouse movments and Resize
| C | apache-2.0 | RichieSams/thehalflingproject,RichieSams/thehalflingproject,RichieSams/thehalflingproject |
45aaeef14a06f927c8ebcd31a36c97f180087a1f | include/rapidcheck/Classify.h | include/rapidcheck/Classify.h | #pragma once
/// Tags the current test case if the specified condition is true. If any tags
/// are specified after the condition, those will be used. Otherwise, a string
/// version of the condition itself will be used as the tag.
#define RC_CLASSIFY(condition, ...) \
do {... | #pragma once
/// Tags the current test case if the specified condition is true. If any tags
/// are specified after the condition, those will be used. Otherwise, a string
/// version of the condition itself will be used as the tag.
#define RC_CLASSIFY(condition, ...) \
do {... | Fix missing namespace qualification in classify macros | Fix missing namespace qualification in classify macros
| C | bsd-2-clause | emil-e/rapidcheck,unapiedra/rapidfuzz,emil-e/rapidcheck,emil-e/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,whoshuu/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,whoshuu/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck |
c0bfe92bc801e451e746c8eb8b36d26cb669aa28 | src/polyChecksum.h | src/polyChecksum.h | /**
Copyright (c) 2017 Ryan Porter
You may use, distribute, or modify this code under the terms of the MIT license.
*/
#ifndef POLY_CHECKSUM_H
#define POLY_CHECKSUM_H
// based on code found at http://www.relisoft.com/science/CrcOptim.html
class PolyChecksum
{
public:
PolyChecksum(... | /**
Copyright (c) 2017 Ryan Porter
You may use, distribute, or modify this code under the terms of the MIT license.
*/
#ifndef POLY_CHECKSUM_H
#define POLY_CHECKSUM_H
#include <cstddef>
// based on code found at http://www.relisoft.com/science/CrcOptim.html
class PolyChecksum
{
public:
... | Add include required to compile on linux. | Add include required to compile on linux.
| C | mit | yantor3d/polySymmetry,yantor3d/polySymmetry |
f8f561cce68c06ccf63d1ba9e3503c230daf0f8b | src/input.c | src/input.c | #include "input.h"
#include "command.h"
TreeNode curNode;
char curPlane, extra;
void initializeInput() {
initializeCommands();
curPlane = 0;
}
void handleInput(char ch, AtcsoData *data, WINDOW *msgWin) {
if (!curPlane) {
if (ch >= 'a' && ch <= 'z') {
curPlane = ch;
curNode... | #include "input.h"
#include "command.h"
TreeNode curNode;
char curPlane, extra;
void initializeInput() {
initializeCommands();
curPlane = 0;
}
void handleInput(char ch, AtcsoData *data, WINDOW *msgWin) {
if (!curPlane) {
if (ch >= 'a' && ch <= 'z') {
curPlane = ch;
curNode... | Fix bizarre bug in "altitude [climb|descend]" | Fix bizarre bug in "altitude [climb|descend]"
Climb was descending, and descend was climbing. Turns out it's because
they were trying to climb/descend... newline amount. O_o
| C | mit | KeyboardFire/atcso |
f66be80aa2aedddf20d62cdaeb613cf26037ff11 | src/nsafepass.c | src/nsafepass.c | #include <stdio.h>
#include <config.h>
int main(void)
{
puts("This is " PACKAGE_STRING);
return 0;
}
| /* This file is part of nsafepass
Copyright 2015 Sergey Kvachonok
nsafepass is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | Add AGPLv3 legalese boilerplate to the source files. | Add AGPLv3 legalese boilerplate to the source files.
Use the shortened version because nobody really cares
about warranties and liabilities.
| C | agpl-3.0 | ravenexp/nsafepass,ravenexp/nsafepass |
35bd31f2613bd766b89ad94cbaf1c7b10791bbe5 | tests/padfactory.c | tests/padfactory.c | #include <gst/gst.h>
static GstCapsFactory mpeg2dec_sink_caps = {
"mpeg2deccaps",
"video/mpeg",
"mpegtype", GST_PROPS_LIST (
GST_PROPS_INT(1),
GST_PROPS_INT(2)
),
NULL
};
static GstCapsFactory mpeg2dec_src_caps = {
"name",
"video/raw",
"fourcc", GST_PROPS_LIS... | Test program for the pad factory | Test program for the pad factory
Original commit message from CVS:
Test program for the pad factory
| C | lgpl-2.1 | surround-io/gstreamer,krieger-od/gstreamer,centricular/gstreamer,ylatuya/gstreamer,cablelabs/gstreamer,magcius/gstreamer,krieger-od/gstreamer,Lachann/gstreamer,collects/gstreamer,ahmedammar/platform_external_gst_gstreamer,surround-io/gstreamer,jpakkane/gstreamer,Lachann/gstreamer,collects/gstreamer,Distrotech/gstreamer... | |
63bd713f7609ffb72b8592b772ef525224e6ffdf | test/mocks/Servo.h | test/mocks/Servo.h | /**
* Servo "mock" class. Ideally our ServoMotor class would be using composition
* to become an (Arduino) Servo motor. However, we want to make usage easier and
* transparent to the user, so we are extending the Arduino Servo class.
* The inheritance instead of composition makes things a little bit trickier
* to ... | /**
* Servo "mock" class. Ideally our ServoMotor class would be using composition
* to become an (Arduino) Servo motor. However, we want to make usage easier and
* transparent to the user, so we are extending the Arduino Servo class.
* The inheritance instead of composition makes things a little bit trickier
* to ... | Remove unecessary checks from mock class | Remove unecessary checks from mock class
| C | mit | platisd/smartcar_shield,platisd/smartcar_shield |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.