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 |
|---|---|---|---|---|---|---|---|---|---|
a4e7d742d66ed4fa4f5d0af9c57a2e5c5026d976 | content/public/browser/notification_observer.h | content/public/browser/notification_observer.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_BROWSER_NOTIFICATION_OBSERVER_H_
#define CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_
#pragma once
#include "content/common... | // 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_BROWSER_NOTIFICATION_OBSERVER_H_
#define CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_
#pragma once
#include "content/common... | Remove unnecessary constructor from NotificationObserver. | content: Remove unnecessary constructor from NotificationObserver.
BUG=98716
R=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10449076
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@139931 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,patrickm/chromium.src,mogoweb/chromium-crosswalk,dushu1203/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.... |
6f5644a98919e0583f134876de768497a769f5fe | messagebox.c | messagebox.c | #include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <windows.h>
#define URL "https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505\
(v=vs.85).aspx"
#define VERSION "0.1.0"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine,
int nShowCmd)
{
... | #include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <windows.h>
#define URL "https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505\
(v=vs.85).aspx"
#define VERSION "0.1.0"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine,
int nCmdShow)
{
... | Rename WinMain argument nShowCmd "nCmdShow" | Rename WinMain argument nShowCmd "nCmdShow"
| C | mit | dbohdan/messagebox,dbohdan/messagebox |
54c1def2b9395c3f159df69d826832352168d837 | src/hello.c | src/hello.c | /*
* Challenger 1P Hello World Program for cc65.
*/
#include <conio.h>
#define VIDEO_RAM_START ((char *) 0xd000)
int main()
{
static const char hello_world[] = "Hello world!";
int scrpos;
const char *cp;
clrscr();
for (cp = hello_world, scrpos = 0x083; *cp; scrpos += 1, cp +... | /*
* Challenger 1P Hello World Program for cc65.
*/
#include <conio.h>
#define VIDEO_RAM_START ((char *) 0xd000)
int main()
{
static const char hello_world[] = "Hello world!\n";
const char *cp;
unsigned int i;
clrscr();
for (cp = hello_world; *cp; cp += 1)
{
cp... | Replace direct video memory access with cputc() for character output. | Replace direct video memory access with cputc()
for character output. | C | mit | smuehlst/c1pctest,smuehlst/c1pctest |
a24bd7176760b057b20560d3a55fcae61dc836fe | src/uri_judge/begginer/1160_population_increase.c | src/uri_judge/begginer/1160_population_increase.c | /**
https://www.urionlinejudge.com.br/judge/en/problems/view/1160
TODO:
Test this conjecture:
Since f(x) is the number of inhabitants as a function of x years, such f is a function defined in natural numbers.
Then f(x) = rx/100 + s, such that r and s are real (floating) constants,
where r is the growing hate p... | Add 1160 solution, but it can be improved! | Add 1160 solution, but it can be improved!
| C | unknown | Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs | |
ff54c764470857acc39c47da7c2adcecf09865f8 | examples/complex_struct.c | examples/complex_struct.c | #include <stdio.h>
typedef struct {
int *x;
int **y;
} inner ;
typedef struct {
int *g;
inner in[3];
} outer;
int *ep;
int main(int argc, char *argv[])
{
outer o;
int z = 5;
int zzz;
printf("%d\n" , z);
ep = &z;
o.in[2].x = ep;
*o.in[2].x = 3;
printf("%d\n" , z);... | #include <stdio.h>
typedef struct {
int *x;
int **y;
} inner ;
typedef struct {
int *g;
inner in[3];
} outer;
int *ep;
int main(int argc, char *argv[])
{
outer o;
int z = 5;
int zzz;
printf("%d\n" , z);
ep = &z;
o.in[2].x = ep;
*(o.in[2].x) = 3;
printf("%d\n" , z... | Add parentheses to make example clearer. | Add parentheses to make example clearer.
| C | mit | plast-lab/cclyzer,plast-lab/llvm-datalog |
a8dcf158b8f6a62e65c8c5fc9b066be8c53260fb | Plugins/Displays/Bezel/GrowlBezelWindowView.h | Plugins/Displays/Bezel/GrowlBezelWindowView.h | //
// GrowlBezelWindowView.h
// Display Plugins
//
// Created by Jorge Salvador Caffarena on 09/09/04.
// Copyright 2004 Jorge Salvador Caffarena. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GrowlNotificationView.h"
@interface GrowlBezelWindowView : GrowlNotificationView {
NSImage *icon;
NSString... | //
// GrowlBezelWindowView.h
// Display Plugins
//
// Created by Jorge Salvador Caffarena on 09/09/04.
// Copyright 2004 Jorge Salvador Caffarena. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GrowlNotificationView.h"
@interface GrowlBezelWindowView : GrowlNotificationView {
NSImage *icon;
NSString... | Remove duplicate members so this compiles again | Remove duplicate members so this compiles again
| C | bsd-3-clause | an0nym0u5/growl,Shalaco/shalzers-growl,SalrJupiter/growl,chashion/growl,an0nym0u5/growl,nagyistoce/growl,ylian/growl,ylian/growl,SalrJupiter/growl,chashion/growl,coltonfisher/coltonfisher-growl,ylian/growl,nochkin/growl,CarlosCD/growl,coltonfisher/coltonfisher-growl,timbck2/growl,nagyistoce/growl,nkhorman/archive-growl... |
c2c430877f6ccdcc12c6e832fffdbcfed799b087 | LinkList_reverse_print.c | LinkList_reverse_print.c | #include <stdio.h>
#include <stdlib.h>
/* Linked List Implementation in C */
// This program aims at "Revering the Link List"
typedef struct node{
int data;
struct node *link;
} node;
node* head; //global variable
void insert_append(int x){
node* temp;
temp = (node*)malloc(sizeof(node));
temp->data = x;
temp->li... | Add Link List Recusrive Print and reverse print | Add Link List Recusrive Print and reverse print
| C | mit | anaghajoshi/C_DataStructures_Algorithms | |
4dd45b3e9e6c487950117c50336b6d59b9baeb46 | libavfilter/allfilters.c | libavfilter/allfilters.c | /*
* filter registration
* copyright (c) 2008 Vitor Sessak
*
* 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
* version 2.1 of the License, or (a... | Add last file of main filter framework | Add last file of main filter framework
git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@12076 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
| C | lgpl-2.1 | prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg | |
d91dc98abb3ebda043eb97d554fe79e83320e9e2 | libopenspotify/sp_user.c | libopenspotify/sp_user.c | #include <spotify/api.h>
#include "debug.h"
#include "sp_opaque.h"
SP_LIBEXPORT(const char *) sp_user_canonical_name(sp_user *user) {
DSFYDEBUG("FIXME: Not yet implemented");
return "not-yet-implemented";
}
SP_LIBEXPORT(const char *) sp_user_display_name(sp_user *user) {
DSFYDEBUG("FIXME: Not yet implemented");... | #include <spotify/api.h>
#include "debug.h"
#include "sp_opaque.h"
SP_LIBEXPORT(const char *) sp_user_canonical_name(sp_user *user) {
DSFYDEBUG("FIXME: Not yet implemented\n");
return "not-yet-implemented";
}
SP_LIBEXPORT(const char *) sp_user_display_name(sp_user *user) {
DSFYDEBUG("FIXME: Not yet implemented\... | Add missing newlines to DSFYDEBUG() calls | Add missing newlines to DSFYDEBUG() calls
| C | bsd-2-clause | noahwilliamsson/openspotify,noahwilliamsson/openspotify |
2ed55f8d7eef0709bf1c96356d98605dd28ce442 | machine/include/config.h | machine/include/config.h | #ifndef KERN_CONFIG
#define KERN_CONFIG
#define NUM_STACK_PAGES 2
#define MAX_AMOUNT_OF_CONTEXTS 32
#define NUM_FDS 32
// The trampoline must be mapped at the same vaddr for both the kernel and
// the userspace processes. The page is mapped to the last VPN slot available
// Sv39 has 39bit adresses: 2^39 - PAGESIZE =... | #ifndef KERN_CONFIG
#define KERN_CONFIG
#define NUM_STACK_PAGES 2
#define MAX_AMOUNT_OF_CONTEXTS 32
#define NUM_FDS 32
// The trampoline must be mapped at the same vaddr for both the kernel and
// the userspace processes. The page is mapped to the last VPN slot available
// Sv39 has 39bit adresses: 2^39 - PAGESIZE =... | Fix trap trampoline virtual address | Fix trap trampoline virtual address [skip ci]
We want to map the trap trampoline to the highest possible virtual
address, i.e. the last PTE possible. However, Sv39 specifies that bits
39-63 must reflect bit 38's state lest the CPU raises a page fault.
| C | bsd-2-clause | cksystemsteaching/selfie,ChristianMoesl/selfie,cksystemsteaching/selfie,ChristianMoesl/selfie,cksystemsteaching/selfie |
97d015ba572002c65fab1d4d8256678a9ff7d841 | elang/base/zone_vector.h | elang/base/zone_vector.h | // Copyright 2014 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELANG_BASE_ZONE_VECTOR_H_
#define ELANG_BASE_ZONE_VECTOR_H_
#include <vector>
#include "elang/base/zone.h"
#include "elang/base/zone_allocator.h"
name... | // Copyright 2014 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELANG_BASE_ZONE_VECTOR_H_
#define ELANG_BASE_ZONE_VECTOR_H_
#include <vector>
#include "elang/base/zone.h"
#include "elang/base/zone_allocator.h"
name... | Make |ZoneVector| constructor to take const reference. | elang/base: Make |ZoneVector| constructor to take const reference.
| C | apache-2.0 | eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang |
f4ef4ff9d744adcc8424e6993674b20000c750bf | src/clock_posix.c | src/clock_posix.c | #include <time.h>
#include "clock.h"
#include "clock_type.h"
extern int clock_init(struct Clock **clockp, struct Allocator *allocator)
{
struct timespec res;
if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) {
/* unknown clock or insufficient resolution */
... | #include <time.h>
#include "clock.h"
#include "clock_type.h"
extern int clock_init(struct SPDR_Clock **clockp, struct SPDR_Allocator *allocator)
{
struct timespec res;
if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) {
/* unknown clock or insufficient resolution */... | Fix compilation on posix platforms | Fix compilation on posix platforms
| C | mit | uucidl/uu.spdr,uucidl/uu.spdr,uucidl/uu.spdr |
5cd8261adec0f6b5de939ecf826ee8638a5a93e4 | src/output.c | src/output.c | #include <format.h>
#include <string.h> /* strlen */
#include <output.h>
#include <unistd.h> /* write */
/* Initially we put data to stdout. */
int cur_out = 1;
/* Put data to current output. */
void putd(const char *data, unsigned long len)
{
(void)write(cur_out,data,len);
}
void put(const char *data)
{
putd(d... | #include <format.h>
#include <string.h> /* strlen */
#include <output.h>
#include <unistd.h> /* write */
/* Initially we put data to stdout. */
int cur_out = 1;
/* Put data to current output. */
void putd(const char *data, unsigned long len)
{
ssize_t n = write(cur_out,data,len);
(void)n;
}
void put(const char *... | Work around incompatibility of warn_unused_result on one machine. | Work around incompatibility of warn_unused_result on one machine.
On one machine, the call to "write" in output.c gave this compiler error:
ignoring return value of ‘write’, declared with attribute warn_unused_result
To work around that, the code now grabs the return value and ignores it with
(void).
| C | mit | chkoreff/Fexl,chkoreff/Fexl |
7a0ffdc64e8e522035a7bc74ee3cea0bfeb55cd1 | eval/src/vespa/eval/eval/hamming_distance.h | eval/src/vespa/eval/eval/hamming_distance.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib::eval {
inline double hamming_distance(double a, double b) {
uint8_t x = (uint8_t) a;
uint8_t y = (uint8_t) b;
return __builtin_popcount(x ^ y);
}
}
| // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib::eval {
inline double hamming_distance(double a, double b) {
uint8_t x = (uint8_t) (int8_t) a;
uint8_t y = (uint8_t) (int8_t) b;
return __builtin_popcount(x ^ y);
}
}
| Convert from double to signed data type for reference hamming distance. | Convert from double to signed data type for reference hamming distance.
| 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 |
09a2b4f4234f66c2dc89c269743ba04bf78ae8ba | src/interfaces/odbc/md5.h | src/interfaces/odbc/md5.h | /* File: connection.h
*
* Description: See "md.h"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/*... | /* File: md5.h
*
* Description: See "md5.c"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/* From ... | Fix comment at top of file to match file name. | Fix comment at top of file to match file name.
| C | apache-2.0 | Quikling/gpdb,ashwinstar/gpdb,Quikling/gpdb,Chibin/gpdb,tangp3/gpdb,chrishajas/gpdb,yuanzhao/gpdb,zaksoup/gpdb,zaksoup/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,rvs/gpdb,foyzur/gpdb,foyzur/gpdb,rvs/gpdb,yuanzhao/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,xinzweb/gpdb,lintzc/gpdb,rubikloud/gpdb,zeroae/postgres-xl,... |
8573926253391f103e73c7b4ec77a6e61b662186 | src/utils.h | src/utils.h | #pragma once
#include <memory>
#include <cstdio> // fopen, fclose
#include <openssl/evp.h>
#include <openssl/ec.h>
namespace JWTXX
{
namespace Utils
{
struct FileCloser
{
void operator()(FILE* fp) { fclose(fp); }
};
typedef std::unique_ptr<FILE, FileCloser> FilePtr;
struct EVPKeyDeleter
{
void operator()(... | #pragma once
#include <memory>
#include <cstdio> // fopen, fclose
#include <openssl/evp.h>
#include <openssl/ec.h>
namespace JWTXX
{
namespace Utils
{
struct EVPKeyDeleter
{
void operator()(EVP_PKEY* key) { EVP_PKEY_free(key); }
};
typedef std::unique_ptr<EVP_PKEY, EVPKeyDeleter> EVPKeyPtr;
struct EVPMDCTXDel... | Move file closer out from public. | Move file closer out from public.
| C | mit | madf/jwtxx,madf/jwtxx,RealImage/jwtxx,RealImage/jwtxx |
56f322d7e40c891d396ede91242b0c4a05b7e383 | bst.c | bst.c | #include "bst.h"
static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v);
struct BSTNode
{
BSTNode* left;
BSTNode* right;
BSTNode* p;
void* k;
};
struct BST
{
BSTNode* root;
};
| #include "bst.h"
static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v);
struct BSTNode
{
BSTNode* left;
BSTNode* right;
BSTNode* p;
void* k;
};
struct BST
{
BSTNode* root;
};
BST* BST_Create(void)
{
BST* T = (BST* )malloc(sizeof(BST));
T->root = NULL;
return T;
}
| Add BST Create function implementation | Add BST Create function implementation
| C | mit | MaxLikelihood/CADT |
68bf16f8d1e7c8dff8732f8aae4b4b418054216f | test/Driver/darwin-asan-nofortify.c | test/Driver/darwin-asan-nofortify.c | // Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.
// REQUIRES: system-darwin
// RUN: %clang -faddress-sanitizer %s -E -dM -o - | FileCheck %s
// CHECK: #define _FORTIFY_SOURCE 0
| // Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.
// RUN: %clang -faddress-sanitizer %s -E -dM -target x86_64-darwin - | FileCheck %s
// CHECK: #define _FORTIFY_SOURCE 0
| Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer. | Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@164485 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
67e210737f3c084e3957bfd6bb1a3821180425c1 | SymbolicMathFunctions.h | SymbolicMathFunctions.h | #ifndef SYMBOLICMATHNODE_H
#define SYMBOLICMATHNODE_H
#include <vector>
#include "SymbolicMathNode.h"
namespace SymbolicMath
{
// clang-format off
Node abs(Node a) { return Node(UnaryFunctionType::ABS, a); }
Node acos(Node a) { return Node(UnaryFunctionType::ACOS, a); }
Node acosh(Node a) { return Node(UnaryFunctio... | Add functions to build SM trees | Add functions to build SM trees
| C | lgpl-2.1 | dschwen/mathparse,dschwen/mathparse | |
76879c5d5204ad38a36e183d8a03e20d9dc0ae56 | src/search/util/timeout.h | src/search/util/timeout.h | /* -*- mode:linux -*- */
/**
* \file timeout.h
*
*
*
* \author Ethan Burns
* \date 2008-12-16
*/
#define _POSIX_C_SOURCE 200112L
void timeout(unsigned int sec);
| /* -*- mode:linux -*- */
/**
* \file timeout.h
*
*
*
* \author Ethan Burns
* \date 2008-12-16
*/
void timeout(unsigned int sec);
| Remove the _POSIX_C_SOURCE def that the sparc doesn't like | Remove the _POSIX_C_SOURCE def that the sparc doesn't like
| C | mit | eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf |
43afb1bad3a927217f002bb9c3181a59e38839a7 | daemon/mcbp_validators.h | daemon/mcbp_validators.h | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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://w... | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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://w... | Drop C linkage for message validators | Drop C linkage for message validators
Change-Id: I5a95a6ddd361ee2009ea399479a7df51733af709
Reviewed-on: http://review.couchbase.org/54979
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
| C | bsd-3-clause | daverigby/kv_engine,owendCB/memcached,owendCB/memcached,daverigby/kv_engine,daverigby/kv_engine,daverigby/memcached,couchbase/memcached,owendCB/memcached,owendCB/memcached,couchbase/memcached,daverigby/memcached,daverigby/memcached,couchbase/memcached,daverigby/memcached,daverigby/kv_engine,couchbase/memcached |
920a78097ae079fc6a77fb808c989078134479d7 | DeepLinkKit/Categories/NSObject+DPLJSONObject.h | DeepLinkKit/Categories/NSObject+DPLJSONObject.h | @import Foundation;
@interface NSObject (DPLJSONObject)
/**
Returns a JSON compatible version of the receiver.
@discussion
- NSDictionary and NSArray will call `DPLJSONObject' on all of their items.
- Objects in an NSDictionary not keyed by an NSString will be removed.
- NSNumbers that are NaN or Inf will be... | @import Foundation;
@interface NSObject (DPLJSONObject)
/**
Returns a JSON compatible version of the receiver.
@discussion
- NSDictionary and NSArray will call `DPLJSONObject' on all of their items.
- Objects in an NSDictionary not keyed by an NSString will be removed.
- NSNumbers that are NaN or Inf will be r... | Fix warning 'Empty paragraph passed to '@discussion' command' | Fix warning 'Empty paragraph passed to '@discussion' command'
| C | mit | button/DeepLinkKit,button/DeepLinkKit,button/DeepLinkKit,button/DeepLinkKit |
436ff08a08318e1f6cb9ce5e1b8517b6ea00c0c0 | tmcd/decls.h | tmcd/decls.h | /*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* All rights reserved.
*/
#define TBSERVER_PORT 7777
#define TBSERVER_PORT2 14447
#define MYBUFSIZE 2048
#define BOSSNODE_FILENAME "bossnode"
/*
* As the tmcd changes, incompatable changes with older version of
* the softw... | /*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* All rights reserved.
*/
#define TBSERVER_PORT 7777
#define TBSERVER_PORT2 14447
#define MYBUFSIZE 2048
#define BOSSNODE_FILENAME "bossnode"
/*
* As the tmcd changes, incompatable changes with older version of
* the softw... | Update to version 9 to match libsetup/tmcd. | Update to version 9 to match libsetup/tmcd.
| C | agpl-3.0 | nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome |
08a9882cc8cbec97947215a7cdb1f60effe82b15 | server/gwkv_ht_wrapper.h | server/gwkv_ht_wrapper.h | #ifndef GWKV_HT_WRAPPER
#define GWKV_HT_WRAPPER
#include <stdlib.h>
typedef enum {
GET,
SET
} method;
/* Defines for result codes */
#define STORED 0
#define NOT_STORED 1
#define EXISTS 2
#define NOT_FOUND 3
struct {
method method_type,
const char* key,
size_t key_length,
... | #ifndef GWKV_HT_WRAPPER
#define GWKV_HT_WRAPPER
#include <stdlib.h>
#include "../hashtable/hashtable.h"
typedef enum {
GET,
SET
} method;
/* Defines for result codes */
#define STORED 0
#define NOT_STORED 1
#define EXISTS 2
#define NOT_FOUND 3
struct {
method method_type,
const char*... | Change server set/get function names | Change server set/get function names
| C | mit | gwAdvNet2015/gw-kv-store |
e54d4a7ec72354285ba4b8202a45693b83b75835 | common.h | common.h | #ifndef _COMMON_H
#define _COMMON_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#ifdef _LINUX
#include <bsd/string.h>
#endif
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlsave.h>
#include <libxml/encoding.h>
#include <libxml/xmlstring.h>... | #ifndef _COMMON_H
#define _COMMON_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#ifdef _LINUX
#include <bsd/string.h>
#endif
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlsave.h>
#include <libxml/encoding.h>
#include <libxml/xmlstring.h>... | Tag 2.1.1 because of the segfault fix. | Tag 2.1.1 because of the segfault fix.
| C | bsd-2-clause | levaidaniel/kc,levaidaniel/kc,levaidaniel/kc |
2fcac93f99c329fb1d9e7ccf1644db865bada106 | gen_message_hashes/hash_func.h | gen_message_hashes/hash_func.h | static inline unsigned int hash_func_string(const char* key)
{
unsigned int hash = 0;
int c;
while ((c = *key++) != 0)
hash = c + (hash << 6) + (hash << 16) - hash;
return hash;
}
| Add file that holds the string hash function. | Add file that holds the string hash function.
| C | mit | gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet | |
1d80b38e935401e40bdca2f3faaec4aeba77a716 | src/random.h | src/random.h | /**
* @file random.h
* @ingroup CppAlgorithms
* @brief Random utility functions.
*
* Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
/**
* @brief Random... | /**
* @file random.h
* @ingroup CppAlgorithms
* @brief Random utility functions.
*
* Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <cstddef> ... | Fix Travis build (missing include for size_t) | Fix Travis build (missing include for size_t)
| C | mit | SRombauts/cpp-algorithms,SRombauts/cpp-algorithms |
fe18c5e9ff7070f2eefb3d5e922523143929f616 | tests/regression/36-octapron/70-signed-overflows.c | tests/regression/36-octapron/70-signed-overflows.c | // SKIP PARAM: --sets ana.activated[+] octApron --sets sem.int.signed_overflow assume_none --disable ana.int.interval
// copied from signed-overflows/intervals for octApron
int main(void) {
int x = 0;
while(x != 42) {
x++;
assert(x >= 1);
}
}
| Add octApron test on signed overflows | Add octApron test on signed overflows
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
b1321ce850ae77ea8d4a3fc0958ec58b404ec10d | chapter3/GameObject.h | chapter3/GameObject.h | #ifndef __GAME_OBJECT_H__
#define __GAME_OBJECT_H__
#include<iostream>
#include<SDL2/SDL.h>
class GameObject
{
public:
void load(int pX, int pY, int pWidth, int pHeight, std::string pTextureId);
void draw(SDL_Renderer *renderer);
void update();
void clean() { std::cout << "clean ga... | #ifndef __GAME_OBJECT_H__
#define __GAME_OBJECT_H__
#include<iostream>
#include<SDL2/SDL.h>
class GameObject
{
public:
virtual void load(int pX, int pY, int pWidth, int pHeight, std::string pTextureId);
virtual void draw(SDL_Renderer *renderer);
virtual void update();
virtual void c... | Include virtual in all methods. | Include virtual in all methods.
| C | bsd-2-clause | caiotava/SDLBook |
b01a4463c1dbd4854f9fba47af8fa30394640375 | TokenArray.h | TokenArray.h | #ifndef _EXCELFORMUAL_TOKEN_ARRAY_H__
#define _EXCELFORMUAL_TOKEN_ARRAY_H__
#include <vector>
using std::vector;
namespace ExcelFormula{
class Token;
class TokenArray{
public:
TokenArray();
void toVector(vector<Token*>&);
void fromVector(vector<Token*>&);
size_t size() {return m_tokens.size();}
... | #ifndef _EXCELFORMUAL_TOKEN_ARRAY_H__
#define _EXCELFORMUAL_TOKEN_ARRAY_H__
#include <vector>
#include <cstddef>
using std::vector;
namespace ExcelFormula{
class Token;
class TokenArray{
public:
TokenArray();
void toVector(vector<Token*>&);
void fromVector(vector<Token*>&);
size_t size() {return... | Add missing include for size_t | Add missing include for size_t
Fixes compile error:
[...]
g++ -c -g TokenArray.cpp
In file included from TokenArray.cpp:1:0:
TokenArray.h:20:4: error: ‘size_t’ does not name a type
size_t size() {return m_tokens.size();}
^
TokenArray.h:41:4: error: ‘size_t’ does not name a type
size_t m_index;
^
| C | mit | lishen2/Excel_formula_parser_cpp |
a60af963642a31734c0a628fa79090fa5b7c58b2 | include/libport/unistd.h | include/libport/unistd.h | #ifndef LIBPORT_UNISTD_H
# define LIBPORT_UNISTD_H
# include <libport/detect-win32.h>
# include <libport/windows.hh> // Get sleep wrapper
# include <libport/config.h>
// This is traditional Unix file.
# ifdef LIBPORT_HAVE_UNISTD_H
# include <unistd.h>
# endif
// OSX does not have O_LARGEFILE. No information was f... | #ifndef LIBPORT_UNISTD_H
# define LIBPORT_UNISTD_H
# include <libport/detect-win32.h>
# include <libport/windows.hh> // Get sleep wrapper
# include <libport/config.h>
// This is traditional Unix file.
# ifdef LIBPORT_HAVE_UNISTD_H
# include <unistd.h>
# endif
// OSX does not have O_LARGEFILE. No information was f... | Define chdir as a macro. | Define chdir as a macro.
The previous definition was uselessly complicated, and lacked the
proper API declaration.
* include/libport/unistd.h (chdir): Define as "_chdir".
| C | bsd-3-clause | aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport |
5c43c3ef287b4aebdddbbf66a6afcdd4d2c47124 | TeamSnapSDK/SDK/CollectionJSON/TSDKCollectionJSON.h | TeamSnapSDK/SDK/CollectionJSON/TSDKCollectionJSON.h | //
// TSDKCollectionJSON.h
// TeamSnapSDK
//
// Created by Jason Rahaim on 1/10/14.
// Copyright (c) 2014 TeamSnap. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TSDKCollectionJSON : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) NSURL *_Nullable href;
@property (nonatomic, s... | //
// TSDKCollectionJSON.h
// TeamSnapSDK
//
// Created by Jason Rahaim on 1/10/14.
// Copyright (c) 2014 TeamSnap. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TSDKCollectionJSON : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) NSURL *_Nullable href;
@property (nonatomic, s... | Add type to Collection Property | Add type to Collection Property
| C | mit | teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS |
f2c9e4ef2fd88ddebec6d885eb6a9b40efdea4de | simple-examples/static.c | simple-examples/static.c | #include <stdio.h>
/* Static functions and static global variables are only visible in
* the file that it is declared in. Static variables inside of a
* function have a different meaning and is described below */
void foo()
{
int x = 0;
static int staticx = 0; // initialized once; keeps value between invocations ... | // Scott Kuhl
#include <stdio.h>
/* Static functions and static global variables are only visible in
* the file that it is declared in. Static variables inside of a
* function have a different meaning and is described below */
void foo()
{
int x = 0;
static int staticx = 0; // initialized once; keeps value betwee... | Add name to top of file. | Add name to top of file. | C | unlicense | skuhl/sys-prog-examples,skuhl/sys-prog-examples,skuhl/sys-prog-examples |
ce94377523f8e0aeff726e30222974022dfaae59 | src/config.h | src/config.h | /******************************
** Tsunagari Tile Engine **
** config.h **
** Copyright 2011 OmegaSDG **
******************************/
#ifndef CONFIG_H
#define CONFIG_H
// === Default Configuration Settings ===
/* Tsunagari config file. -- Command Line */
#define CLIENT_CONF_FILE "./client.... | /******************************
** Tsunagari Tile Engine **
** config.h **
** Copyright 2011 OmegaSDG **
******************************/
#ifndef CONFIG_H
#define CONFIG_H
// === Default Configuration Settings ===
/* Tsunagari config file. -- Command Line */
#define CLIENT_CONF_FILE "./client.... | Fix snprintf on VisualC++ with a conditional define. | Fix snprintf on VisualC++ with a conditional define.
| C | mit | pmer/TsunagariC,pariahsoft/Tsunagari,pariahsoft/Tsunagari,pariahsoft/TsunagariC,pariahsoft/Tsunagari,pariahsoft/Tsunagari,pmer/TsunagariC,pariahsoft/TsunagariC,pariahsoft/TsunagariC,pmer/TsunagariC |
d1bc54a8c50707918b85e311d3e32c7870eb983f | webkit/glue/screen_info.h | webkit/glue/screen_info.h | // Copyright (c) 2008 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_SCREEN_INFO_H_
#define WEBKIT_GLUE_SCREEN_INFO_H_
#include "base/gfx/rect.h"
namespace webkit_glue {
struct ScreenInfo {
int... | Add missing file. Oops :( | Add missing file. Oops :(
TBR=dglazkov
Review URL: http://codereview.chromium.org/8789
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@4338 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | M4sse/chromium.src,zcbenz/cefode-chromium,Fireblend/chromium-crosswalk,patrickm/chromium.src,M4sse/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,anirudhSK/chromium,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk... | |
c54058d7b015ad60403f7996a98ba08dc30bf868 | src/importers/kredbimporter.h | src/importers/kredbimporter.h | /***************************************************************************
* Copyright © 2004 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under th... | /***************************************************************************
* Copyright © 2004 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under th... | Fix Krazy warnings: explicit - KreDBImporter | Fix Krazy warnings: explicit - KreDBImporter
svn path=/trunk/extragear/utils/krecipes/; revision=1119833
| C | lgpl-2.1 | eliovir/krecipes,eliovir/krecipes,eliovir/krecipes,eliovir/krecipes |
c1f31e37e3ed046237c04ef0dddcb6587d4f88fb | src/libdpdkif/configuration.h | src/libdpdkif/configuration.h | /*
* Configurables. Adjust these to be appropriate for your system.
*/
/* change blacklist parameters (-b) if necessary */
static const char *ealargs[] = {
"if_dpdk",
"-b 00:00:03.0",
"-c 1",
"-n 1",
};
/* change PORTID to the one your want to use */
#define IF_PORTID 0
/* change to the init method of your NI... | /*
* Configurables. Adjust these to be appropriate for your system.
*/
/* change blacklist parameters (-b) if necessary
* If you have more than one interface, you will likely want to blacklist
* at least one of them.
*/
static const char *ealargs[] = {
"if_dpdk",
"-b 00:00:03.0",
"-c 1",
"-n 1",
};
/* chang... | Add note about blacklisting interfaces | Add note about blacklisting interfaces | C | bsd-2-clause | jqyy/drv-netif-dpdk,jqyy/drv-netif-dpdk |
600d895282d9e8fe6d2505902ec3e3970a9e19f7 | src/mixal_parser_lib/include/mixal/parser.h | src/mixal_parser_lib/include/mixal/parser.h | #pragma once
#include <mixal/config.h>
#include <mixal/parsers_utils.h>
namespace mixal {
class MIXAL_PARSER_LIB_EXPORT IParser
{
public:
std::size_t parse_stream(std::string_view str, std::size_t offset = 0);
protected:
~IParser() = default;
virtual void do_clear() = 0;
virtual std::size_t do_pa... | #pragma once
#include <mixal/config.h>
#include <mixal/parsers_utils.h>
namespace mixal {
class MIXAL_PARSER_LIB_EXPORT IParser
{
public:
std::size_t parse_stream(std::string_view str, std::size_t offset = 0);
bool is_valid() const;
std::string_view str() const;
protected:
IParser() = default;
... | Extend IParser interface: remember parse state - succesfull or not; what part of string was parsed | Extend IParser interface: remember parse state - succesfull or not; what part of string was parsed
| C | mit | grishavanika/mix,grishavanika/mix,grishavanika/mix |
fc8db80964b22fd9355745c4efe0e58b37cc02a5 | hard_way/ex9.c | hard_way/ex9.c | #include <stdio.h>
int main(int argc, char *argv[]){
int numbers[4] = {0};
char name[4] = {'a'};
//first print them out raw
printf("numbers: %d %d %d %d.\n",
numbers[0],
numbers[1],
numbers[2],
numbers[3]);
printf("name each: %c %c %c %c.\n",
name[0],
... | Print out values of first two arrays | Print out values of first two arrays
| C | mit | thewazir/learning_c | |
2924da319e5a0d76d1ce8462c7029e6395884662 | test/CodeGen/2010-07-14-overconservative-align.c | test/CodeGen/2010-07-14-overconservative-align.c | // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
// PR 5995
struct s {
int word;
struct {
int filler __attribute__ ((aligned (8)));
};
};
void func (struct s *s)
{
// CHECK: load %struct.s** %s.addr, align 8
s->word = 0;
}
| // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
// PR 5995
struct s {
int word;
struct {
int filler __attribute__ ((aligned (8)));
};
};
void func (struct s *s)
{
// CHECK: load %struct.s**{{.*}}align 8
s->word = 0;
}
| Rewrite matching line to be friendlier to misc buildbots. | Rewrite matching line to be friendlier to misc buildbots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136168 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
82050d5da0e4be70b0131eb996873e1f686b8d68 | ep_testsuite.h | ep_testsuite.h | #ifndef EP_TESTSUITE_H
#define EP_TESTSUITE_H 1
#include <memcached/engine.h>
#include <memcached/engine_testapp.h>
#ifdef __cplusplus
extern "C" {
#endif
MEMCACHED_PUBLIC_API
engine_test_t* get_tests(void);
MEMCACHED_PUBLIC_API
bool setup_suite(struct test_harness *th);
#ifdef __cplusplus
}
#endif
#endif
| #ifndef EP_TESTSUITE_H
#define EP_TESTSUITE_H 1
#include <memcached/engine.h>
#include <memcached/engine_testapp.h>
#ifdef __cplusplus
extern "C" {
#endif
MEMCACHED_PUBLIC_API
engine_test_t* get_tests(void);
MEMCACHED_PUBLIC_API
bool setup_suite(struct test_harness *th);
MEMCACHED_PUBLIC_API
bool teardown_suite();... | Fix test suite compilation errors | Fix test suite compilation errors
This fixes some missing function declaration errors:
CXX ep_testsuite_la-ep_testsuite.lo
cc1plus: warnings being treated as errors
ep_testsuite.cc: In function ‘test_result prepare(engine_test_t*)’:
ep_testsuite.cc:5425: error: no previous declaration for ‘test_result prepare(en... | C | apache-2.0 | zbase/ep-engine,daverigby/kv_engine,couchbase/ep-engine,abhinavdangeti/ep-engine,hisundar/ep-engine,couchbaselabs/ep-engine,owendCB/ep-engine,daverigby/kv_engine,jimwwalker/ep-engine,abhinavdangeti/ep-engine,couchbaselabs/ep-engine,couchbase/ep-engine,daverigby/kv_engine,sriganes/ep-engine,jimwwalker/ep-engine,couchbas... |
2929c302e27280a7060fc35e1bf1f82719066909 | fmpz_mpoly/test/t-init.c | fmpz_mpoly/test/t-init.c | /*
Copyright (C) 2016 William Hart
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) a... | Add empty test to prevent build system complaining. | Add empty test to prevent build system complaining.
| C | lgpl-2.1 | dsroche/flint2,dsroche/flint2,fredrik-johansson/flint2,wbhart/flint2,fredrik-johansson/flint2,dsroche/flint2,wbhart/flint2,dsroche/flint2,fredrik-johansson/flint2,wbhart/flint2 | |
33b703740fd3ade5192bb61492b14cf5cfcebc2c | InputState.h | InputState.h | #ifndef INPUTSTATE_H
#define INPUTSTATE_H
#include <SDL2/SDL.h>
#undef main
#include <map>
class InputState
{
public:
enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN };
InputState();
void readInputState();
bool getKeyState(KeyFunction f);
int getAbsoluteMouseX() { return mouse_x; };
int ge... | #ifndef INPUTSTATE_H
#define INPUTSTATE_H
#include <SDL2/SDL.h>
#undef main
#include <map>
class InputState
{
public:
enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN };
InputState();
void readInputState();
bool getKeyState(KeyFunction f);
int getAbsoluteMouseX() { return mouse_x; };
int ge... | Fix InputSize symbol array size. | Fix InputSize symbol array size.
| C | mit | pstiasny/derpengine,pstiasny/derpengine |
11d45b0090be38423587ef8d1a0215937932223e | src/memory.c | src/memory.c | /*
* Copyright (c) 2009-2012 Petri Lehtinen <petri@digip.org>
* Copyright (c) 2011-2012 Basile Starynkevitch <basile@starynkevitch.net>
*
* Jansson is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include <stdlib.h>
#include <string.h>
... | /*
* Copyright (c) 2009-2012 Petri Lehtinen <petri@digip.org>
* Copyright (c) 2011-2012 Basile Starynkevitch <basile@starynkevitch.net>
*
* Jansson is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include <stdlib.h>
#include <string.h>
... | Fix integer overflow in jsonp_strdup() | Fix integer overflow in jsonp_strdup()
Fixes #129.
| C | mit | AmesianX/jansson,markalanj/jansson,Vorne/jansson,OlehKulykov/jansson,bstarynk/jansson,simonfojtu/FireSight,markalanj/jansson,firepick1/jansson,chrullrich/jansson,Mephistophiles/jansson,markalanj/jansson,firepick-delta/FireSight,liu3tao/jansson,rogerz/jansson,firepick1/FireSight,liu3tao/jansson,firepick-delta/FireSight,... |
8f020cf00dff0ae6d40f68ba7f901c1c0f784093 | ui/base/ime/character_composer.h | ui/base/ime/character_composer.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 UI_BASE_IME_CHARACTER_COMPOSER_H_
#define UI_BASE_IME_CHARACTER_COMPOSER_H_
#pragma once
#include <vector>
#include "base/basictypes.h"
#inc... | // 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 UI_BASE_IME_CHARACTER_COMPOSER_H_
#define UI_BASE_IME_CHARACTER_COMPOSER_H_
#pragma once
#include <vector>
#include "base/basictypes.h"
#inc... | Fix link error when component=shared_library is set | Fix link error when component=shared_library is set
BUG=103789
TEST=Manual
Review URL: http://codereview.chromium.org/8515013
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@109554 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | keishi/chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,keishi/chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,robclark/chromium,krieger-od/nwjs_chromium.s... |
580305a8cda0cb85ee837cf8d8a15ee80ba0c41d | cint/include/iosfwd.h | cint/include/iosfwd.h | #ifndef G__IOSFWD_H
#define G__IOSFWD_H
#include <iostream.h>
typedef basic_streambuf<char, char_traits<char> > streambuf;
#endif
| #ifndef G__IOSFWD_H
#define G__IOSFWD_H
#include <iostream.h>
#endif
| Undo change proposed by Philippe. Too many side effects. | Undo change proposed by Philippe. Too many side effects.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@5468 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT |
f3d275984b116f79fbb8568e72d1707ef12230c5 | unix/image.c | unix/image.c | // 13 september 2016
#include "uipriv_unix.h"
struct uiImage {
uiUnixControl c;
GtkWidget *widget;
};
uiUnixControlAllDefaults(uiImage)
uiImage *uiNewImage(const char *filename)
{
uiImage *img;
uiUnixNewControl(uiImage, img);
img->widget = gtk_image_new_from_file(filename);
return img;
}
| // 13 september 2016
#include "uipriv_unix.h"
struct uiImage {
uiUnixControl c;
GtkWidget *widget;
};
uiUnixControlAllDefaults(uiImage)
void uiImageSetSize(uiImage *i, unsigned int width, unsigned int height)
{
GdkPixbuf *pixbuf;
pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(i->widget));
pixbuf = gdk_pixbuf_scale_si... | Implement getting and setting uiImage size in Gtk | Implement getting and setting uiImage size in Gtk
| C | mit | sclukey/libui,sclukey/libui |
af7c239ac6629f7bd102b3e648c0dd86c2054407 | os/gl/gl_context_nsgl.h | os/gl/gl_context_nsgl.h | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_NSGL_INCLUDED
#define OS_GL_CONTEXT_NSGL_INCLUDED
#pragma once
#include "os/gl/gl_context.h"
namespace os {
class GLContextNSGL :... | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_NSGL_INCLUDED
#define OS_GL_CONTEXT_NSGL_INCLUDED
#pragma once
#include "os/gl/gl_context.h"
namespace os {
class GLContextNSGL :... | Replace nil with nullptr in GLContextNSGL to compile correctly | [osx] Replace nil with nullptr in GLContextNSGL to compile correctly
| C | mit | aseprite/laf,aseprite/laf |
46e2418fc661eb2d58272c995d8579ec67accf69 | packages/grpc-native-core/ext/completion_queue.h | packages/grpc-native-core/ext/completion_queue.h | /*
*
* Copyright 2016 gRPC 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 2016 gRPC 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... | Update completion queue header to match code changes | Update completion queue header to match code changes
| C | apache-2.0 | grpc/grpc-node,grpc/grpc-node,grpc/grpc-node,grpc/grpc-node |
18442c5cf486e16f4cb418a0d7ef2a2dd9ea7c34 | Fastor/tensor/ScalarIndexing.h | Fastor/tensor/ScalarIndexing.h | #ifndef SCALAR_INDEXING_NONCONST_H
#define SCALAR_INDEXING_NONCONST_H
// Scalar indexing non-const
//----------------------------------------------------------------------------------------------------------//
template<typename... Args, typename std::enable_if<sizeof...(Args)==dimension_t::value &&
... | #ifndef SCALAR_INDEXING_NONCONST_H
#define SCALAR_INDEXING_NONCONST_H
// Scalar indexing non-const
//----------------------------------------------------------------------------------------------------------//
template<typename... Args, typename std::enable_if<sizeof...(Args)==dimension_t::value &&
... | Allow indexing by operator[] when dimension is 1 | Allow indexing by operator[] when dimension is 1
| C | mit | romeric/Fastor,romeric/Fastor,romeric/Fastor |
d7519565d22249fa2c0f2ec4c60a2c0e3981b916 | features/mbedtls/platform/inc/platform_mbed.h | features/mbedtls/platform/inc/platform_mbed.h | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | Disable MBEDTLS_HAVE_DATE_TIME as ARMCC does not support gmtime | Disable MBEDTLS_HAVE_DATE_TIME as ARMCC does not support gmtime
| C | apache-2.0 | andcor02/mbed-os,andcor02/mbed-os,betzw/mbed-os,mbedmicro/mbed,c1728p9/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,m... |
6ddc15b9ba5b3b0c811a1ad22131005360474692 | libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c | libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/tvmd.h>
#include "vdp-internal.h"
void
vdp2_tvmd_display_clear(void)
{
_state_vdp2()->regs.tvmd &= 0x7FFF;
/* Change the DISP bit during VBLANK */
vdp2_tvmd_vb... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/tvmd.h>
#include "vdp-internal.h"
void
vdp2_tvmd_display_clear(void)
{
_state_vdp2()->regs.tvmd &= 0x7EFF;
/* Change the DISP bit during VBLANK */
vdp2_tvmd_vb... | Clear bit when writing to VDP2(TVMD) | Clear bit when writing to VDP2(TVMD)
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
f24e70fa3a204565a656594b48ac84c390aa1e8f | libcef_dll/cef_macros.h | libcef_dll/cef_macros.h | // Copyright (c) 2014 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_CEF_MACROS_H_
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
#pragma once
#ifdef BUILDING_CEF_SHARED
#include "base/m... | // Copyright (c) 2014 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_CEF_MACROS_H_
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
#pragma once
#ifdef BUILDING_CEF_SHARED
#include "base/m... | Remove duplicate content in file. | Remove duplicate content in file.
git-svn-id: 66addb63d0c46e75f185859367c4faf62af16cdd@1734 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
| C | bsd-3-clause | kuscsik/chromiumembedded,kuscsik/chromiumembedded,kuscsik/chromiumembedded,kuscsik/chromiumembedded |
f908528a004812c36a27a6705f8d2453cc9084c4 | sesman/libscp/libscp_init.c | sesman/libscp/libscp_init.c | /**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) Jay Sorg 2004-2012
*
* 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
... | /**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) Jay Sorg 2004-2012
*
* 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
... | Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line number | Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line number
It's a bad style to start the log with a cryptic warning.
| C | apache-2.0 | metalefty/xrdp,moobyfr/xrdp,itamarjp/xrdp,PKRoma/xrdp,PKRoma/xrdp,jsorg71/xrdp,cocoon/xrdp,ubuntu-xrdp/xrdp,ubuntu-xrdp/xrdp,itamarjp/xrdp,neutrinolabs/xrdp,itamarjp/xrdp,moobyfr/xrdp,proski/xrdp,jsorg71/xrdp,metalefty/xrdp,moobyfr/xrdp,neutrinolabs/xrdp,neutrinolabs/xrdp,cocoon/xrdp,metalefty/xrdp,proski/xrdp,cocoon/x... |
af2092f1be7ab6af6bd67fcc59009adb2ee51470 | mudlib/mud/home/Text/sys/verb/wiz/ooc/system/btune.c | mudlib/mud/home/Text/sys/verb/wiz/ooc/system/btune.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2013 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 tune bulkd | Add command to tune bulkd
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
7359740eaddf6e4c01ccd91fe1044932d019d8e3 | Settings/Controls/Label.h | Settings/Controls/Label.h | #pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
}; | #pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
Label(int id, DialogBase &parent, bool translate = true) :
Control(id, parent, false) {
}
}; | Add a new-style constructor for labels | Add a new-style constructor for labels
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
4160de1a24f5ca414508e396e43ba756d73f8338 | Source/PPSSignatureView.h | Source/PPSSignatureView.h | #import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
@interface PPSSignatureView : GLKView
@property (assign, nonatomic) UIColor *strokeColor;
@property (assign, nonatomic) BOOL hasSignature;
@property (strong, nonatomic) UIImage *signatureImage;
- (void)erase;
@end
| #import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
@interface PPSSignatureView : GLKView
@property (assign, nonatomic) IBInspectable UIColor *strokeColor;
@property (assign, nonatomic) BOOL hasSignature;
@property (strong, nonatomic) UIImage *signatureImage;
- (void)erase;
@end
| Make stroke color an IBInspectable property. | Make stroke color an IBInspectable property.
| C | mit | ronaldsmartin/PPSSignatureView |
e636d645deee9bf088091fba525ca18f55c516c9 | src/common/angleutils.h | src/common/angleutils.h | //
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// angleutils.h: Common ANGLE utilities.
#ifndef COMMON_ANGLEUTILS_H_
#define COMMON_ANGLEUTILS_H_
// A macro to disallow the copy c... | //
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// angleutils.h: Common ANGLE utilities.
#ifndef COMMON_ANGLEUTILS_H_
#define COMMON_ANGLEUTILS_H_
// A macro to disallow the copy c... | Add helper functions to safely release Windows COM resources, and arrays of COM resources. | Add helper functions to safely release Windows COM resources, and arrays of COM resources.
TRAC #22656
Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill
git-svn-id: 2a1ef23f1c4b6a1dbccd5f9514022461535c55c0@2014 736b8ea6-26fd-11df-bfd4-992fa37f6226
| C | bsd-3-clause | ehsan/angle,xuxiandi/angleproject,xin3liang/platform_external_chromium_org_third_party_angle_dx11,MIPS/external-chromium_org-third_party-angle_dx11,shairai/angleproject,MIPS/external-chromium_org-third_party-angle,xin3liang/platform_external_chromium_org_third_party_angle,RepublicMaster/angleproject,vvuk/angle-old,andr... |
aa18a176915c652969964763a767b00453655423 | source/system/Array.h | source/system/Array.h | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | Set pointer to array data to null after free | Set pointer to array data to null after free
| C | mit | firog/ooc-kean,magic-lang/ooc-kean,thomasfanell/ooc-kean,simonmika/ooc-kean,simonmika/ooc-kean,sebastianbaginski/ooc-kean,sebastianbaginski/ooc-kean,thomasfanell/ooc-kean,fredrikbryntesson/ooc-kean,firog/ooc-kean,fredrikbryntesson/ooc-kean,magic-lang/ooc-kean |
a7074f2fe3c4f0eac5efb79ea6896319038dbe9f | test/asan/TestCases/printf-4.c | test/asan/TestCases/printf-4.c | // RUN: %clang_asan -O2 %s -o %t
// RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// FIXME: sprintf is not intercepted on Windows yet.
// XFAIL: win32
#include <stdio.h>
int main() {
volatile char c = '0';
... | // RUN: %clang_asan -O2 %s -o %t
// RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// FIXME: sprintf is not intercepted on Windows yet.
// XFAIL: win32
#include <stdio.h>
int main() {
volatile char c = '0';
... | Fix order of arguments to fputs | Fix order of arguments to fputs
This time actually tested on Linux, where the test is not XFAILed.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263294 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
24aa328ddab86fd861961b1d68091d334d773d75 | slobrok/src/vespa/slobrok/server/reconfigurable_stateserver.h | slobrok/src/vespa/slobrok/server/reconfigurable_stateserver.h | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/config/helper/configfetcher.h>
#include <vespa/config/subscription/configuri.h>
#include <vespa/config-stateserver.h>
namespace vespalib {
class HealthProducer;
class MetricsP... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/config/helper/configfetcher.h>
#include <vespa/config/subscription/configuri.h>
#include <vespa/config-stateserver.h>
namespace vespalib {
struct HealthProducer;
struct Metric... | Adjust forward declarations in slobrok. | Adjust forward declarations in slobrok.
| 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 |
4fe769ebf1a4a71fb90ac7e37a747aadc07052ea | numpy/core/src/multiarray/convert_datatype.h | numpy/core/src/multiarray/convert_datatype.h | #ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
#endif
| #ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
NPY_NO_EXPORT int
PyArray_CastTo(PyArrayObject *out, PyArrayObject *mp);
NPY_NO_EXPORT PyArray_VectorUnaryFunc *
PyArray_GetCastFunc(PyArray_De... | Add API for datatype conversion. | Add API for datatype conversion.
| C | bsd-3-clause | rgommers/numpy,WarrenWeckesser/numpy,larsmans/numpy,ssanderson/numpy,numpy/numpy-refactor,rudimeier/numpy,Dapid/numpy,tynn/numpy,ddasilva/numpy,sigma-random/numpy,dimasad/numpy,githubmlai/numpy,skymanaditya1/numpy,BMJHayward/numpy,chatcannon/numpy,numpy/numpy-refactor,Yusa95/numpy,hainm/numpy,ewmoore/numpy,ogrisel/nump... |
05375b10cfd6e060242c9786fb7887dcd3850ebc | Wangscape/noise/module/codecs/NoiseQualityCodec.h | Wangscape/noise/module/codecs/NoiseQualityCodec.h | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
static codec::enumeration_t<NoiseQuality, codec::string_t> codec()
{
auto codec = codec::enume... | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
static codec::one_of_t<
codec::enumeration_t<NoiseQuality, codec::number_t<int>>,
codec::e... | Allow specification of NoiseQuality with an int | Allow specification of NoiseQuality with an int
| C | mit | Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape |
23439b2341320a973b1c135abc541236de6550bf | hack_malloc.c | hack_malloc.c | #define _GNU_SOURCE
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <sys/mman.h>
void* malloc(size_t size) {
printf("malloc... ");
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, siz... | #define _GNU_SOURCE
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <sys/mman.h>
void* malloc(size_t size) {
write(STDOUT_FILENO, "malloc... ", 10);
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* ... | Replace printf with safe write to stdout | Replace printf with safe write to stdout
| C | mit | vmarkovtsev/hack_malloc,vmarkovtsev/hack_malloc |
885f4c45b69e79b59acd437fd14d7243e5c55d73 | blaze/util/Misalignment.h | blaze/util/Misalignment.h | //=================================================================================================
/*!
// \file blaze/util/Misalignment.h
// \brief Header file for the misalignment function
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can redistri... | Add the 'misalignment' utitlity function | Add the 'misalignment' utitlity function
| C | bsd-3-clause | byzhang/blaze,byzhang/blaze,byzhang/blaze | |
500af378f68af6e6438ad7375d933b0b788e8142 | src/plugins/test_swap.c | src/plugins/test_swap.c | #include <glib/gprintf.h>
int main (int argc, char **argv) {
gboolean succ = FALSE;
gchar *err_msg = NULL;
succ = bd_swap_mkswap ("/dev/xd1", "SWAP", &err_msg);
if (succ)
puts ("Succeded.");
else
g_printf ("Not succeded: %s\n", err_msg);
succ = bd_swap_swapon ("/dev/xd1", 5, &... | #include <glib/gprintf.h>
int main (int argc, char **argv) {
gboolean succ = FALSE;
gchar *err_msg = NULL;
succ = bd_swap_mkswap ("/dev/xd1", "SWAP", &err_msg);
if (succ)
puts ("Succeded.");
else
g_printf ("Not succeded: %s", err_msg);
succ = bd_swap_swapon ("/dev/xd1", 5, &er... | Remove newlines from the swap test outputs | Remove newlines from the swap test outputs
They are already included in the utility's output.
| C | lgpl-2.1 | atodorov/libblockdev,snbueno/libblockdev,rhinstaller/libblockdev,atodorov/libblockdev,atodorov/libblockdev,vpodzime/libblockdev,dashea/libblockdev,rhinstaller/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,vpodzime/libblockdev,vpodzime/libblockdev,dashea/libblockdev |
41b1df604617bdde59bb722b9247c16fa4677d94 | lib/memzip/lexermemzip.c | lib/memzip/lexermemzip.c | #include <stdlib.h>
#include "py/lexer.h"
#include "memzip.h"
mp_lexer_t *mp_lexer_new_from_file(const char *filename)
{
void *data;
size_t len;
if (memzip_locate(filename, &data, &len) != MZ_OK) {
return NULL;
}
return mp_lexer_new_from_str_len(qstr_from_str(filename), (const char *)dat... | #include <stdlib.h>
#include "py/lexer.h"
#include "py/runtime.h"
#include "py/mperrno.h"
#include "memzip.h"
mp_lexer_t *mp_lexer_new_from_file(const char *filename)
{
void *data;
size_t len;
if (memzip_locate(filename, &data, &len) != MZ_OK) {
mp_raise_OSError(MP_ENOENT);
}
return mp_l... | Make lexer constructor raise exception when file not found. | lib/memzip: Make lexer constructor raise exception when file not found.
| C | mit | blazewicz/micropython,cwyark/micropython,infinnovation/micropython,selste/micropython,cwyark/micropython,bvernoux/micropython,PappaPeppar/micropython,pozetroninc/micropython,chrisdearman/micropython,henriknelson/micropython,AriZuu/micropython,MrSurly/micropython,micropython/micropython-esp32,torwag/micropython,Peetz0r/... |
67d9df24bf6ac9d6a3397971605cb563fb35c54d | src/roman_convert_to_int.c | src/roman_convert_to_int.c | #include <string.h>
#include <stdbool.h>
#include "roman_convert_to_int.h"
#include "roman_clusters.h"
static const int ERROR = -1;
static bool starts_with(const char *str, RomanCluster cluster);
int roman_convert_to_int(const char *numeral)
{
if (!numeral) return ERROR;
int total = 0;
for (int cluster_index = ... | #include <string.h>
#include <stdbool.h>
#include "roman_convert_to_int.h"
#include "roman_clusters.h"
static const int ERROR = -1;
static bool starts_with(const char *str, RomanCluster cluster);
int roman_convert_to_int(const char *numeral)
{
if (!numeral) return ERROR;
int total = 0;
for (const RomanCluster *... | Use cluster iterator in to_int function | Use cluster iterator in to_int function
| C | mit | greghaskins/roman-calculator.c |
2c0f601424bb82be02e2334c54b2b6ccb0cae9bc | Wangscape/codecs/OptionsCodec.h | Wangscape/codecs/OptionsCodec.h | #pragma once
#include <spotify/json.hpp>
#include "Options.h"
#include "metaoutput/codecs/FilenamesCodec.h"
#include "TerrainSpecCodec.h"
#include "TileFormatCodec.h"
using namespace spotify::json::codec;
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<Options>
{
static object_t<Options>... | #pragma once
#include <spotify/json.hpp>
#include "Options.h"
#include "metaoutput/codecs/FilenamesCodec.h"
#include "TerrainSpecCodec.h"
#include "TileFormatCodec.h"
using namespace spotify::json::codec;
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<Options>
{
static object_t<Options>... | Revert to AlphaCalculatorMode in options codec | Revert to AlphaCalculatorMode in options codec
| C | mit | Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape |
6dee7b6820ee89ef41561a005645f0ecda59c2ea | kernel/port/data.c | kernel/port/data.c | #include <stddef.h>
#include <kernel/port/data.h>
void enq(Queue *q, List *item) {
item->next = NULL;
if(!q->tail) {
q->head = item;
q->tail = item;
} else {
q->tail->next = item;
}
}
List *deq(Queue *q) {
if(!q->head) {
return NULL;
}
List *ret = q->head;
q->head = q->head->next;
if(!q->head) {
q-... | #include <stddef.h>
#include <kernel/port/data.h>
void enq(Queue *q, List *item) {
item->next = NULL;
if(!q->tail) {
q->head = item;
q->tail = item;
} else {
q->tail->next = item;
q->tail = item;
}
}
List *deq(Queue *q) {
if(!q->head) {
return NULL;
}
List *ret = q->head;
q->head = q->head->next;
i... | Fix a bug in the queue implementation | Fix a bug in the queue implementation
Unfortunately this was not the problem with the scheduler. For some
reason we're never getting a second timer interrupt.
| C | isc | zenhack/zero,zenhack/zero,zenhack/zero |
b58c6841e09d91905747830d2d4471f55392765d | libevmjit/CompilerHelper.h | libevmjit/CompilerHelper.h | #pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelpe... | #pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelpe... | Reimplement InsertPointGuard to avoid LLVM ABI incompatibility. | Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
In general, the NDEBUG flag should match cpp-ethereum and LLVM builds. But this is hard to satisfy as we usually have one system-wide build of LLVM and different builds of cpp-ethereum. This ABI incompatibility hit OSX only in release builds as LLVM is bu... | C | mit | ethereum/evmjit,ethereum/evmjit,ethereum/evmjit |
f4836c754a5b37064d49220e1be97d46a28b9d8b | include/llvm/Intrinsics.h | include/llvm/Intrinsics.h | //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===//
//
// This file defines a set of enums which allow processing of intrinsic
// functions. Values of these enum types are returned by
// Function::getIntrinsicID.
//
//===---------------------------------------------------------------------... | //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===//
//
// This file defines a set of enums which allow processing of intrinsic
// functions. Values of these enum types are returned by
// Function::getIntrinsicID.
//
//===---------------------------------------------------------------------... | Add alpha intrinsics, contributed by Rahul Joshi | Add alpha intrinsics, contributed by Rahul Joshi
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@7372 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swif... |
68c4d8ab89f17d621f69786cbb751976afce72f4 | lib/assert2.h | lib/assert2.h |
#pragma once
#include <cassert>
#include <string>
#define assert2(expr, str) \
((expr) \
? __ASSERT_VOID_CAST (0)\
: __assert_fail ((std::string(__STRING(expr)) + "; " + (str)).c_str(), __FILE__, __LINE__, __ASSERT_FUNCTION))
|
#pragma once
#include <cassert>
#include <string>
#if __GNUC__
#define assert2(expr, str) \
((expr) \
? __ASSERT_VOID_CAST (0)\
: __assert_fail ((std::string(__STRING(expr)) + "; " + (str)).c_str(), __FILE__, __LINE__, __ASSERT_FUNCTION))
#elif __clang__
#define assert2(expr, str) \
((exp... | Work better on various versions of clang. | Work better on various versions of clang.
| C | mit | tewalds/morat,yotomyoto/morat,tewalds/morat,tewalds/morat,yotomyoto/morat,yotomyoto/morat |
359ce984aa895a88248856bb338f7c5484da1443 | crypto/openssh/version.h | crypto/openssh/version.h | /* $OpenBSD: version.h,v 1.37 2003/04/01 10:56:46 markus Exp $ */
/* $FreeBSD$ */
#ifndef SSH_VERSION
#define SSH_VERSION (ssh_version_get())
#define SSH_VERSION_BASE "OpenSSH_3.6.1p1"
#define SSH_VERSION_ADDENDUM "FreeBSD-20030423"
const char *ssh_version_get(void);
void ssh_version_set_addend... | /* $OpenBSD: version.h,v 1.37 2003/04/01 10:56:46 markus Exp $ */
/* $FreeBSD$ */
#ifndef SSH_VERSION
#define SSH_VERSION (ssh_version_get())
#define SSH_VERSION_BASE "OpenSSH_3.6.1p1"
#define SSH_VERSION_ADDENDUM "FreeBSD-20030916"
const char *ssh_version_get(void);
void ssh_version_set_addend... | Update the OpenSSH addendum string for the buffer handling fix. | Update the OpenSSH addendum string for the buffer handling fix.
| 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 |
77a03785213b62287c316cf819430457078f713f | src/condor_ckpt/fcntl.h | src/condor_ckpt/fcntl.h | #if defined(AIX32) && defined(__cplusplus )
# include "fix_gnu_fcntl.h"
#elif defined(AIX32) && !defined(__cplusplus )
typedef unsigned short ushort;
# include <fcntl.h>
#elif defined(ULTRIX42) && defined(__cplusplus )
# include "fix_gnu_fcntl.h"
#else
# include <fcntl.h>
#endif
| #if defined(__cplusplus) && !defined(OSF1) /* GNU G++ */
# include "fix_gnu_fcntl.h"
#elif defined(AIX32) /* AIX bsdcc */
# typedef unsigned short ushort;
# include <fcntl.h>
#else /* Everybody else */
# include <fcntl.h>
#endif
| Make things depend on the compiler (G++, bsdcc, others) rather than on specific platforms. | Make things depend on the compiler (G++, bsdcc, others) rather than
on specific platforms.
| C | apache-2.0 | djw8605/condor,djw8605/condor,zhangzhehust/htcondor,htcondor/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,bbockelm/condor-network-accounting,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,htcondor/htcondor,djw8605/condor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,... |
3bbe9e5aab0bcd51b95b3f718cb790807931d82b | chrome/browser/extensions/extension_message_handler.h | chrome/browser/extensions/extension_message_handler.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_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | // 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_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | Clarify class comment for ExtensionMessageHandler. | Clarify class comment for ExtensionMessageHandler.
TBR=jam@chromium.org
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/ch... |
f978f33427f4f3d5273f5b13b776bfbab9e66f16 | ReactiveAlamofire/ReactiveAlamofire.h | ReactiveAlamofire/ReactiveAlamofire.h | //
// ReactiveAlamofire.h
// ReactiveAlamofire
//
// Created by Srdan Rasic on 23/04/16.
// Copyright © 2016 ReactiveKit. All rights reserved.
//
//! Project version number for ReactiveAlamofire.
FOUNDATION_EXPORT double ReactiveAlamofireVersionNumber;
//! Project version string for ReactiveAlamofire.
FOUNDATION_... | //
// ReactiveAlamofire.h
// ReactiveAlamofire
//
// Created by Srdan Rasic on 23/04/16.
// Copyright © 2016 ReactiveKit. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for ReactiveAlamofire.
FOUNDATION_EXPORT double ReactiveAlamofireVersionNumber;
//! Project version string... | Use Foundation framework instead of UIKit. | Use Foundation framework instead of UIKit.
| C | mit | ReactiveKit/ReactiveAlamofire,ReactiveKit/ReactiveAlamofire |
e2971406eb3b2ecdd211b9e7403fa02ae725b115 | misc/miscfn.h | misc/miscfn.h | #ifndef H_MISCFN
#define H_MISCFN
#include "config.h"
#if HAVE_FNMATCH_H
#include <fnmatch.h>
#else
#include "misc-fnmatch.h"
#endif
#if HAVE_GLOB_H
#include <glob.h>
#else
#include "misc-glob.h"
#endif
#if ! HAVE_S_IFSOCK
#define S_IFSOCK (0)
#endif
#if ! HAVE_S_ISLNK
#define S_ISLNK(mode) ((mode) & S_IFLNK)
#end... | #ifndef H_MISCFN
#define H_MISCFN
#include "config.h"
#if HAVE_FNMATCH_H
#include <fnmatch.h>
#else
#include "misc-fnmatch.h"
#endif
#if HAVE_GLOB_H
#include <glob.h>
#else
#include "misc-glob.h"
#endif
#if ! HAVE_S_IFSOCK
#define S_IFSOCK (0)
#endif
#if ! HAVE_S_ISLNK
#define S_ISLNK(mode) ((mode) & S_IFLNK)
#end... | Include <limits.h> if it's available. | Include <limits.h> if it's available.
| C | lgpl-2.1 | devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5 |
971068ecfa82cea5b21a3ccc962e95b7cdb5f38d | app/tx/main.c | app/tx/main.c | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "nrf51.h"
#include "nrf_delay.h"
#include "error.h"
#include "gpio.h"
#include "leds.h"
#include "radio.h"
void error_handler(uint32_t err_code, uint32_t line_num, char * file_name)
{
while (1)
{
for (uint8_t i = LED_START; i < LED_S... | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "nrf51.h"
#include "nrf_delay.h"
#include "error.h"
#include "gpio.h"
#include "leds.h"
#include "radio.h"
void error_handler(uint32_t err_code, uint32_t line_num, char * file_name)
{
while (1)
{
for (uint8_t i = LED_START; i < LED_S... | Send only one packet at a time. | Send only one packet at a time.
| C | bsd-3-clause | hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio |
922128855ca81ca6d5cad13df91eb312e81057b9 | GITBlob.h | GITBlob.h | //
// GITBlob.h
// CocoaGit
//
// Created by Geoffrey Garside on 29/06/2008.
// Copyright 2008 ManicPanda.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GITObject.h"
@interface GITBlob : GITObject {
NSData * data;
}
#pragma mark -
#pragma mark Properties
@property(retain) NSData * data;
#prag... | //
// GITBlob.h
// CocoaGit
//
// Created by Geoffrey Garside on 29/06/2008.
// Copyright 2008 ManicPanda.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GITObject.h"
@interface GITBlob : GITObject {
NSData * data;
}
#pragma mark -
#pragma mark Properties
@property(retain) NSData * data;
#prag... | Add pragmas to differentiate init method types | Add pragmas to differentiate init method types
| C | mit | schacon/cocoagit,schacon/cocoagit,geoffgarside/cocoagit,geoffgarside/cocoagit |
e9d6b3358ac35901ccc6a4a5a317670fa469db25 | arch/arm/include/asm/smp_scu.h | arch/arm/include/asm/smp_scu.h | #ifndef __ASMARM_ARCH_SCU_H
#define __ASMARM_ARCH_SCU_H
#define SCU_PM_NORMAL 0
#define SCU_PM_DORMANT 2
#define SCU_PM_POWEROFF 3
#ifndef __ASSEMBLER__
unsigned int scu_get_core_count(void __iomem *);
void scu_enable(void __iomem *);
int scu_power_mode(void __iomem *, unsigned int);
#endif
#endif
| #ifndef __ASMARM_ARCH_SCU_H
#define __ASMARM_ARCH_SCU_H
#define SCU_PM_NORMAL 0
#define SCU_PM_DORMANT 2
#define SCU_PM_POWEROFF 3
#ifndef __ASSEMBLER__
#include <asm/cputype.h>
static inline bool scu_a9_has_base(void)
{
return read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9;
}
static inline unsigned long scu_... | Add API to detect SCU base address from CP15 | ARM: Add API to detect SCU base address from CP15
Add API to detect SCU base address from CP15.
Signed-off-by: Hiroshi Doyu <7e37d737f0c384c0dce297667d084735fade9098@nvidia.com>
Acked-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
Signed-off-by: Stephen Warren <5ef2a23ba3aff51d1cfc8c113c... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
65dd7026a906f7a70ef326f18540c0b648a0ffed | include/asm-mips/mach-ip22/cpu-feature-overrides.h | include/asm-mips/mach-ip22/cpu-feature-overrides.h | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Ralf Baechle
*/
#ifndef __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
#define __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
/*
*... | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Ralf Baechle
*/
#ifndef __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
#define __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
/*
*... | Define some more common ip22 CPU features. | Define some more common ip22 CPU features.
Signed-off-by: Thiemo Seufer <8e77f49f827b66c39fd886f99e6ef704c1fecc26@networkno.de>
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,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_k... |
b191a0b5165cd6b4f8103c71719058e7b1869c0e | src/net/cearth_network.c | src/net/cearth_network.c | #include "cearth_network.h"
void
blob_init(blob *b)
{
b->size = 0;
}
void
blob_add_int8(blob *b, int8_t i)
{
b->data[b->size] = i;
b->size++;
}
void
blob_add_str(blob *b, char *str)
{
int len = strlen(str);
strcpy((char *)b->data+b->size, str);
b->size += len;
}
| #include "cearth_network.h"
| Remove all trace functions from pre 0.0.1 prototyping | Remove all trace functions from pre 0.0.1 prototyping
| C | mit | nyanpasu/cearth |
91d38f59aca2d0becaa38fb2e4b7db53f3b30e49 | src/single_linked_list.c | src/single_linked_list.c | #include <stdio.h>
#include <stdlib.h>
typedef struct list_t {
int data;
struct list_t *next;
} list_t;
list_t *insert_start(list_t *list, int data) {
list_t *node = malloc(sizeof(list_t));
node->data = data;
node->next = list;
return node;
}
list_t *insert_end(list_t *list, int data) {
list_t *node = m... | Add a single linked list | Add a single linked list
| C | mit | jimouris/transaction-processing,jimouris/transaction-processing,jimouris/transaction-processing | |
c162af7b20680c4b1ff45cfb245a2dd8a507c29a | ruby/rpm-rb.h | ruby/rpm-rb.h | #ifndef H_RPM_RB
#define H_RPM_RB
/**
* \file ruby/rpm-rb.h
* \ingroup rb_c
*
* RPM Ruby bindings "RPM" module
*/
#include "system.h"
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#undef xmalloc
#undef xcalloc
#undef xrealloc
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#inclu... | #ifndef H_RPM_RB
#define H_RPM_RB
/**
* \file ruby/rpm-rb.h
* \ingroup rb_c
*
* RPM Ruby bindings "RPM" module
*/
#include "system.h"
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
/**
* The "RPM" Ruby module.
*/
extern VALUE rpmModule;
#ifdef __cplusplus
extern "C" {
#endif
/**
*... | Fix header file inclusion/define problems with xmalloc & Co and ruby | Fix header file inclusion/define problems with xmalloc & Co and ruby
| C | lgpl-2.1 | devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5 |
3128e416c6fff9a353a913f09d94b0ccc342e8ee | kernel/cpu/stack_frame.h | kernel/cpu/stack_frame.h | #pragma once
namespace cpu {
struct stack_frame {
uint32_t ebx;
uint32_t ecx;
uint32_t edx;
uint32_t esi;
uint32_t edi;
uint32_t ebp;
uint32_t eax;
uint16_t ds, __ds;
uint16_t es, __es;
uint16_t fs, __fs;
uint16_t gs, __gs;
uint32_t eip;
uint16_t cs, __cs;
uint3... | Add structure for stack frame | Add structure for stack frame
| C | mit | Mrokkk/objective-kernel,Mrokkk/objective-kernel | |
697549c5dc3f200b4bc13971fe4cc19aa4bd2c74 | include/rsa.h | include/rsa.h | #ifndef _RSA_H_
#define _RSA_H_
#include "mpi.h"
/* Everything must be kept private except for n and e.
* (n,e) is the public key, (n,d) is the private key. */
typedef struct {
mpi_t n; /* modulus n = pq */
mpi_t phi; /* phi = (p-1)(q-1) */
mpi_t e; /* public exponent 1 < e < phi s.t. gcd(e,phi)=1 */
mpi_t d; ... | #ifndef _RSA_H_
#define _RSA_H_
#include "mpi.h"
/* Everything must be kept private except for n and e.
* (n,e) is the public key, (n,d) is the private key. */
typedef struct {
mpi_t n; /* modulus n = pq */
mpi_t phi; /* phi = (p-1)(q-1) */
mpi_t e; /* public exponent 1 < e < phi s.t. gcd(e,phi)=1 */
mpi_t d; ... | Use mt64_context instead of mp_rand_ctx | Use mt64_context instead of mp_rand_ctx
| C | bsd-2-clause | fmela/weecrypt,fmela/weecrypt |
2a0bb212bbe96125fc0a4f9e5859949ba7360fd9 | test/sanitizer_common/TestCases/Linux/clock_gettime.c | test/sanitizer_common/TestCases/Linux/clock_gettime.c | // RUN: %clang %s -Wl,-as-needed -o %t && %run %t
// Regression test for PR15823
// (http://llvm.org/bugs/show_bug.cgi?id=15823).
#include <stdio.h>
#include <time.h>
int main() {
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
return 0;
}
| Add regression test for PR15823 | Add regression test for PR15823
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@215941 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt | |
c06b5c5985127d50d137673e5862909e07b590a6 | inspector/ios-inspector/ForgeModule/file/file_API.h | inspector/ios-inspector/ForgeModule/file/file_API.h | //
// file_API.h
// Forge
//
// Copyright (c) 2020 Trigger Corp. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface file_API : NSObject
+ (void)getImage:(ForgeTask*)task;
+ (void)getVideo:(ForgeTask*)task;
+ (void)getFileFromSourceDirectory:(ForgeTask*)task resource:(NSString*)resource;
+ (void... | //
// file_API.h
// Forge
//
// Copyright (c) 2020 Trigger Corp. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface file_API : NSObject
+ (void)getImage:(ForgeTask*)task;
+ (void)getVideo:(ForgeTask*)task;
+ (void)getFileFromSourceDirectory:(ForgeTask*)task resource:(NSString*)resource;
+ (void... | Rename isFile -> exists in header file too | Rename isFile -> exists in header file too
| C | bsd-2-clause | trigger-corp/trigger.io-file,trigger-corp/trigger.io-file |
7603c10e309db118e06cef5c998d7d16c0218e98 | src/models/src/NIMutableTableViewModel+Private.h | src/models/src/NIMutableTableViewModel+Private.h | //
// Copyright 2011-2014 NimbusKit
//
// 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 t... | //
// Copyright 2011-2014 NimbusKit
//
// 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 t... | Add proper import for NIMutableViewModel | Add proper import for NIMutableViewModel | C | apache-2.0 | kisekied/nimbus,chanffdavid/nimbus,quyixia/nimbus,panume/nimbus,JyHu/nimbus,Arcank/nimbus,bangquangvn/nimbus,bogardon/nimbus,michaelShab/nimbus,marcobgoogle/nimbus,dmishe/nimbus,dachaoisme/nimbus,dmishe/nimbus,zilaiyedaren/nimbus,bangquangvn/nimbus,Arcank/nimbus,panume/nimbus,zilaiyedaren/nimbus,quyixia/nimbus,dachaois... |
230ea3b21a8daabde9b2e0dcd93dedb5b5a87003 | ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h | ppapi/native_client/src/shared/ppapi_proxy/ppruntime.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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#include "native_client/sr... | /*
* 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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#include "native_client/sr... | Remove declaration of IrtInit(), which is no longer defined anywhere | NaCl: Remove declaration of IrtInit(), which is no longer defined anywhere
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3186
TEST=build
Review URL: https://codereview.chromium.org/157803004
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@250121 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | Jonekee/chromium.src,jaruba/chromium.src,Jonekee/chromium.src,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,mohamed--abdel-maksoud/... |
af7220c2bebbcc2f1c49ec190d26724a0c4aed25 | drivers/sds011/sds011_saul.c | drivers/sds011/sds011_saul.c | /*
* Copyright (C) 2018 HAW-Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
*/
/**
* @ingroup drivers_sds011
* @{
*
* @file
* @brief SAUL adaption for SDS011 sensor
... | /*
* Copyright (C) 2018 HAW-Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
*/
/**
* @ingroup drivers_sds011
* @{
*
* @file
* @brief SAUL adaption for SDS011 sensor
... | Fix SAUL read error return | drivers/sds011: Fix SAUL read error return
| C | lgpl-2.1 | RIOT-OS/RIOT,cladmi/RIOT,OlegHahm/RIOT,authmillenon/RIOT,authmillenon/RIOT,rfuentess/RIOT,josephnoir/RIOT,yogo1212/RIOT,smlng/RIOT,josephnoir/RIOT,mfrey/RIOT,cladmi/RIOT,x3ro/RIOT,A-Paul/RIOT,mtausig/RIOT,BytesGalore/RIOT,smlng/RIOT,toonst/RIOT,mfrey/RIOT,RIOT-OS/RIOT,OlegHahm/RIOT,yogo1212/RIOT,kaspar030/RIOT,ant9000/... |
07bf91bd54bf71c4431072091b725f7b2efcea4c | mcp2515_dfs.h | mcp2515_dfs.h | #ifndef MCP2515_LIB_DEFINITIONS_H_
#define MCP2515_LIB_DEFINITIONS_H_
/*******************************************************************************
SPI Commands
*******************************************************************************/
#define SPI_READ 0x03
/***********************************************... | #ifndef MCP2515_LIB_DEFINITIONS_H_
#define MCP2515_LIB_DEFINITIONS_H_
/*******************************************************************************
SPI Commands
*******************************************************************************/
#define SPI_READ 0x03
#define SPI_BIT_MODIFY 0x05
/************... | Add SPI bit modify command definition | Add SPI bit modify command definition
| C | apache-2.0 | jnod/mcp2515_lib,jnod/mcp2515_lib |
67189e4682c9f0a3b7aeffdea5d05cd39ec5f5c5 | cmd/gvedit/csettings.h | cmd/gvedit/csettings.h |
#ifndef CSETTINGS_H
#define CSETTINGS_H
class MdiChild;
#include <QDialog>
#include <QString>
#include "ui_settings.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gvc.h"
#include "gvio.h"
class CFrmSettings : public QDialog
{
Q_OBJECT
public:
CFrmSettings();
int runSettings(MdiChild*... |
#ifndef CSETTINGS_H
#define CSETTINGS_H
class MdiChild;
#include <QDialog>
#include <QString>
#include "ui_settings.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gvc.h"
/* #include "gvio.h" */
class CFrmSettings : public QDialog
{
Q_OBJECT
public:
CFrmSettings();
int runSettings(Mdi... | Comment out unnecessary use of gvio.h | Comment out unnecessary use of gvio.h
| C | epl-1.0 | jho1965us/graphviz,pixelglow/graphviz,MjAbuz/graphviz,pixelglow/graphviz,MjAbuz/graphviz,jho1965us/graphviz,kbrock/graphviz,BMJHayward/graphviz,tkelman/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,jho1965us/graphviz,jho1965us/graphviz,MjAbuz/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelman/graphviz,ellson/gr... |
48aef9784ec1f68281c03d735bfcca0b60262752 | Modules/ThirdParty/OssimPlugins/src/ossim/ossimTraceHelpers.h | Modules/ThirdParty/OssimPlugins/src/ossim/ossimTraceHelpers.h | //----------------------------------------------------------------------------
//
// "Copyright Centre National d'Etudes Spatiales"
//
// License: LGPL-2
//
// See LICENSE.txt file in the top level directory for more details.
//
//----------------------------------------------------------------------------
// $Id$
#... | Add helper macro to log scope entry and exit | ENH: Add helper macro to log scope entry and exit
| C | apache-2.0 | orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB | |
861e37ad5969f764574722f4cfc0734511cbac7f | include/asm-arm/mach/flash.h | include/asm-arm/mach/flash.h | /*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASMARM_MACH_FLA... | /*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASMARM_MACH_FLA... | Add memory control method to support OneNAND sync burst read | [ARM] 3057/1: Add memory control method to support OneNAND sync burst read
Patch from Kyungmin Park
This patch is required for OneNAND MTD to passing the OneNAND sync. burst read
Signed-off-by: Kyungmin Park
Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... |
6dcac4a16d43bc76b5e4492233cd170699f30875 | CollapsibleTable/GWCollapsibleTable/GWCollapsibleTable.h | CollapsibleTable/GWCollapsibleTable/GWCollapsibleTable.h | //
// GWCollapsibleTable.h
// CollapsibleTable
//
// Created by Greg Wang on 13-1-3.
// Copyright (c) 2013年 Greg Wang. All rights reserved.
//
@protocol GWCollapsibleTableDataSource <NSObject>
- (BOOL)tableView:(UITableView *)tableView canCollapseSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITable... | //
// GWCollapsibleTable.h
// CollapsibleTable
//
// Created by Greg Wang on 13-1-3.
// Copyright (c) 2013年 Greg Wang. All rights reserved.
//
#import "NSObject+GWCollapsibleTable.h"
#import "UITableView+GWCollapsibleTable.h"
@protocol GWCollapsibleTableDataSource <NSObject>
- (BOOL)tableView:(UITableView *)tabl... | Add necessary interfaces Add optional delegate methods | Add necessary interfaces
Add optional delegate methods
| C | mit | yocaminobien/GWCollapsibleTable,gregwym/GWCollapsibleTable |
e419ea01407d4fa1fcb4c422d0169edb59dafddb | cpp/ql/test/library-tests/dataflow/fields/struct_init.c | cpp/ql/test/library-tests/dataflow/fields/struct_init.c | void sink(void *o);
void *user_input(void);
struct AB {
void *a;
void *b;
};
struct Outer {
struct AB nestedAB;
struct AB *pointerAB;
};
void absink(struct AB *ab) {
sink(ab->a); // flow x3 [NOT DETECTED]
sink(ab->b); // no flow
}
int struct_init(void) {
struct AB ab = { user_input(), 0 };
sink(ab.... | Test showing no flow through aggregate init | C++: Test showing no flow through aggregate init
| C | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | |
61768b0b8e04f3a2c8353db4c2e332b499a5c03a | Test/MathLib.h | Test/MathLib.h | #pragma once
//MathLib.h
#ifndef _MATHLIB_
#define _MATHLIB_
#endif | #pragma once
//MathLib.h
#ifndef _MATHLIB_
#define _MATHLIB_
//Make some change to check if new branch is created.
#endif | Make some change to check if new branch is created. | Make some change to check if new branch is created.
| C | mit | mrlitong/fpsgame,mrlitong/fpsgame,mrlitong/Game-Engine-Development-Usage,mrlitong/fpsgame |
7fb448ae7e6ad876b225f67d8ef064a0f93e0988 | src/medida/reporting/abstract_polling_reporter.h | src/medida/reporting/abstract_polling_reporter.h | //
// Copyright (c) 2012 Daniel Lundin
//
#ifndef MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#define MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#include <memory>
#include "medida/types.h"
namespace medida {
namespace reporting {
class AbstractPollingReporter {
public:
Abstract... | //
// Copyright (c) 2012 Daniel Lundin
//
#ifndef MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#define MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#include <memory>
#include "medida/types.h"
namespace medida {
namespace reporting {
class AbstractPollingReporter {
public:
Abstract... | Comment on abstract-polling-reporter to handle the shutdown followed by start racing to modify thread before it can be joined, it is not a valid usecase anyway, so handling it thru comment. | Comment on abstract-polling-reporter to handle the shutdown followed by start racing to modify thread before it can be joined, it is not a valid usecase anyway, so handling it thru comment.
| C | apache-2.0 | janmejay/medida,janmejay/medida,janmejay/medida,janmejay/medida |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.