commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
83159dee4c0c1408ade1fd5b6fe737533045a9a3 | Interpolator/IPSourceController.h | Interpolator/IPSourceController.h | #import <Cocoa/Cocoa.h>
#import "IPCurveStorage.h"
#import "IPCurveView.h"
@interface IPSourceController : NSObject <NSTableViewDelegate>
{
IBOutlet NSTableView * curveSetChooser;
IBOutlet IPCurveView * controlPointView;
IBOutlet IPCurveStorage * curveStorage;
}
- (int)numberOfRowsInTableView:(NSTableVi... | #import <Cocoa/Cocoa.h>
#import "IPCurveStorage.h"
#import "IPCurveView.h"
@interface IPSourceController : NSObject <NSTableViewDelegate>
{
IBOutlet NSTableView * curveSetChooser;
IBOutlet IPCurveView * controlPointView;
IBOutlet IPCurveStorage * curveStorage;
}
- (int)numberOfRowsInTableView:(NSTableVi... | Add tableview editing function to header | Add tableview editing function to header
| C | bsd-2-clause | hortont424/particles,hortont424/particles,hortont424/particles,hortont424/particles |
2ba7ec1680f6462122a11f1748f04e1747d8d2e0 | tensorflow/core/platform/variant_coding.h | tensorflow/core/platform/variant_coding.h | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Fix link time bug caused by missing header include. | Fix link time bug caused by missing header include.
PiperOrigin-RevId: 165952248
| C | apache-2.0 | aselle/tensorflow,manipopopo/tensorflow,ArtsiomCh/tensorflow,lukeiwanski/tensorflow,dongjoon-hyun/tensorflow,arborh/tensorflow,seanli9jan/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,alsrgv/tensorflow,adamtiger/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,av8ramit/tensorflow,tensorflow/tensorfl... |
caee45194ec668e0c15c9cc9dd35e498b3ce7f93 | src/master/main.c | src/master/main.c | #include <unistd.h>
#include <stdio.h>
#include <master/usage.h>
#include <master/arg.h>
#include <share/socket.h>
#define IP "88.176.106.132"
int main(int argc, char *argv[])
{
int socket_fd;
config_t *config;
if (argc < 5)
{
usage();
return 0;
}
/* Error on processing a... | #include <unistd.h>
#include <stdio.h>
#include <master/usage.h>
#include <master/arg.h>
#include <share/socket.h>
#define IP "88.176.106.132"
int main(int argc, char *argv[])
{
int socket_fd;
config_t *config;
if (argc < 5)
{
usage();
return 0;
}
/* Error on processing a... | Add correct work of client | Add correct work of client
| C | mit | Nakrez/multi |
91a97b288227ef863d327ab7aa0db1970114864e | src/api/QmlComponentInfo.h | src/api/QmlComponentInfo.h | /****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... | /****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... | Change NULL or 0 to nullptr | api: Change NULL or 0 to nullptr
| C | agpl-3.0 | Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol |
f55af7c049c00c39aecc38572ab18b7f11d88d40 | tests/embedded/do_test.c | tests/embedded/do_test.c | #include <hwloc.h>
#include <stdio.h>
/* The body of the test is in a separate .c file and a separate
library, just to ensure that hwloc didn't force compilation with
visibility flags enabled. */
int do_test(void)
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_set;
/* Ju... | #include <hwloc.h>
#include <stdio.h>
/* The body of the test is in a separate .c file and a separate
library, just to ensure that hwloc didn't force compilation with
visibility flags enabled. */
int do_test(void)
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_bitmap_t cpu_set;
/* Ju... | Convert the embedded test to the bitmap API | Convert the embedded test to the bitmap API
git-svn-id: bb34cd5123d2f821b9f934b050c449c8bfd5d5c1@2512 4b44e086-7f34-40ce-a3bd-00e031736276
| C | bsd-3-clause | BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc |
dda47eadfe9158630eb41297bb1c0c1d7c6136d4 | You-DataStore/internal/operation.h | You-DataStore/internal/operation.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../task_typedefs.h"
namespace You {
namespace DataStore {
namespace Internal {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
vir... | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../task_typedefs.h"
#include "internal_datastore.h"
namespace You {
namespace DataStore {
namespace Internal {
/// A pure virtual class of operations to be put into transaction stack... | Include InternalDataStore into Operation interface | Include InternalDataStore into Operation interface
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
7c00fb727fd67a65044feb9d10a6b839602751cf | src/kms-media-handler-manager.c | src/kms-media-handler-manager.c | #include "kms-media-handler-manager.h"
static void
kms_media_handler_manager_base_init (gpointer g_class) {
static gboolean is_initialized = FALSE;
if (!is_initialized) {
/* add properties and signals to the interface here */
is_initialized = TRUE;
}
}
GType
kms_media_handler_manager_get_type(void) {
static... | #include "kms-media-handler-manager.h"
static void
kms_media_handler_manager_base_init (gpointer g_class) {
static gboolean is_initialized = FALSE;
if (!is_initialized) {
/* add properties and signals to the interface here */
is_initialized = TRUE;
}
}
GType
kms_media_handler_manager_get_type(void) {
static... | Check if the interface method is not null before using it | Check if the interface method is not null before using it
| C | apache-2.0 | Kurento/kurento-media-server,shelsonjava/kurento-media-server,lulufei/kurento-media-server,lulufei/kurento-media-server,TribeMedia/kurento-media-server,Kurento/kurento-media-server,mparis/kurento-media-server,todotobe1/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-media-server,todotobe1/kurento-me... |
d8f8412f90baf469c70b1da6903b853d83a14293 | PhotoWheel/FlickrViewController.h | PhotoWheel/FlickrViewController.h | //
// FlickrViewController.h
// PhotoWheel
//
// Created by Kirby Turner on 12/16/12.
// Copyright (c) 2012 White Peak Software Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class PhotoAlbum;
@interface FlickrViewController : UIViewController <UICollectionViewDataSource, UICollectionViewDelegate, UISearc... | //
// FlickrViewController.h
// PhotoWheel
//
// Created by Kirby Turner on 12/16/12.
// Copyright (c) 2012 White Peak Software Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class PhotoAlbum;
@interface FlickrViewController : UIViewController <UICollectionViewDataSource, UICollectionViewDelegate, UISearc... | Change outlets from strong to weak references. | Change outlets from strong to weak references.
| C | mit | kirbyt/PhotoWheel,kirbyt/PhotoWheel |
76698748d645a1dd73589313405e2aefcdba5d90 | include/nmlib.h | include/nmlib.h | // All-in-one header of nmlib
#ifndef NMLIB_H
#define NMLIB_H
#include "chrono.h"
#include "diff.h"
#include "fft.h"
#include "integral.h"
#include "io.h"
#include "kalman.h"
#include "lp.h"
#include "matrix.h"
#include "matrix_decomp.h"
#include "optimization.h"
#include "polynomial.h"
#include "random.h"
#include... | // All-in-one header of nmlib
#ifndef NMLIB_H
#define NMLIB_H
#include "chrono.h"
#include "diff.h"
#include "fft.h"
#include "integral.h"
#include "io.h"
#include "kalman.h"
#include "lp.h"
#include "matrix.h"
#include "matrix_decomp.h"
#include "ode.h"
#include "optimization.h"
#include "polynomial.h"
#include "r... | Update all-in-one header (add ode.h) | Update all-in-one header (add ode.h)
| C | mit | nmakimoto/nmlib,nmakimoto/nmlib |
eb6f58307e488a8468c725af20cd482d62b37136 | Pod/Classes/TTRangeSliderDelegate.h | Pod/Classes/TTRangeSliderDelegate.h | //
// YLRangeSliderViewDelegate.h
// FantasyRealFootball
//
// Created by Tom Thorpe on 16/04/2014.
// Copyright (c) 2014 Yahoo inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class TTRangeSlider;
@protocol TTRangeSliderDelegate <NSObject>
-(void)rangeSlider:(TTRangeSlider *)sender didChangeSelec... | //
// YLRangeSliderViewDelegate.h
// FantasyRealFootball
//
// Created by Tom Thorpe on 16/04/2014.
// Copyright (c) 2014 Yahoo inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class TTRangeSlider;
@protocol TTRangeSliderDelegate <NSObject>
/**
* Called when the RangeSlider values are changed
*/... | Comment on didEndTouchesInRangeSlider and other delegate method | Comment on didEndTouchesInRangeSlider and other delegate method
Adding a comment on didEndTouchesInRangeSlider and the other didChange... method to explain it's purpose (fairly explanatory names anyway, but just for completeness) | C | mit | TomThorpe/TTRangeSlider |
cb562a87d85965b9e3ed9db86c7af036db7ee485 | main.c | main.c | /* The contents of this file is in the public domain. */
#include <ipify.h>
int main(void)
{
char addr[256];
#if 0
int sd;
sd = ipify_connect();
if (sd < 0)
return 1;
if (!ipify_query(sd, addr, sizeof(addr)))
printf("%s\n", addr);
return ipify_disconnect(sd);
#else
if (ipify(addr, sizeof(addr)))
return... | /* The contents of this file is in the public domain. */
#include <ipify.h>
int main(void)
{
char addr[256];
int sd;
sd = ipify_connect();
if (sd < 0)
return 1;
if (!ipify_query(sd, addr, sizeof(addr)))
printf("%s\n", addr);
return ipify_disconnect(sd);
}
| Drop ifdefs in favor of more comprehensive code | Drop ifdefs in favor of more comprehensive code
Signed-off-by: Joachim Wiberg <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>
| C | isc | troglobit/lipify |
a56195292bc9d68da9b496b253411df2cac40500 | 021.calling_c/c_code.c | 021.calling_c/c_code.c | void
PokeBitplanePointers(unsigned short* copper, unsigned char* bitplanes, unsigned offset, unsigned numBitplanes, unsigned screenWidthBytes)
{
int i;
copper += offset;
for (i = 0; i < numBitplanes; i++) {
*(copper+1) = (unsigned)bitplanes;
*(copper+3) = ((unsigned)bitplanes >> 16);
bitplanes += sc... | typedef union {
unsigned char* ptr;
unsigned short word[2];
} word_extract_t;
void
PokeBitplanePointers(unsigned short* copper, unsigned char* bitplanes, unsigned offset, unsigned numBitplanes, unsigned screenWidthBytes)
{
int i;
copper += offset;
for (i = 0; i < numBitplanes; i++) {
word_extract_t ext... | Make C example more C, less asm | Make C example more C, less asm
| C | bsd-2-clause | alpine9000/amiga_examples,alpine9000/amiga_examples,alpine9000/amiga_examples |
3c7420fe27927849cd53452fefde7bfff0cec30b | debug.h | debug.h |
/**
* `debug.h' - debug.c
*
* copyright (c) 2014 joseph werle <joseph.werle@gmail.com>
*/
#ifndef DEBUG_H
#define DEBUG_H 1
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#define DEBUG_MAX_BUFFER 1024
/**
* Debug function type
*/
typedef void (* debug_t) (const char *, ...);
/**
* Initialize a... |
/**
* `debug.h' - debug.c
*
* copyright (c) 2014 joseph werle <joseph.werle@gmail.com>
*/
#ifndef DEBUG_H
#define DEBUG_H 1
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
/**
* Debug function type
*/
typedef void (* debug_t) (const char *, ...);
/**
* Initialize a debug function
*/
#define de... | Fix possible memory overflow and remove DEBUG_MAX_BUFFER | Fix possible memory overflow and remove DEBUG_MAX_BUFFER
| C | mit | clibs/debug |
cabe5c6e4b05460cc8320f96197a1246b555ea76 | hello.c | hello.c | /*
* hello.c - Say hello to the world.
* Susumu Ishihara 2015/4/12
*/
#include <stdio.h>
int main() {
printf("Hello world.\n.");
printf("Hello susumu.\n");
printf("Added new branch.\n");
return 0;
}
| /*
* hello.c - Say hello to the world.
* Susumu Ishihara 2015/4/12
*/
#include <stdio.h>
int main() {
printf("Hello world.\n.");
printf("Hello susumu.\n");
printf("Added new branch.\n");
printf("Hello universe.\n");
return 0;
}
| Make it say "Hello universe." | Make it say "Hello universe."
| C | mit | ishihara-su/firsttest |
c14b63a0b916969d4bd1cdaa0e58a7761edeab74 | lib/libc/sparc64/gen/fpsetmask.c | lib/libc/sparc64/gen/fpsetmask.c | /*
* Written by J.T. Conklin, Apr 10, 1995
* Public domain.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <ieeefp.h>
fp_except_t
fpsetmask(mask)
fp_except_t mask;
{
fp_except_t old;
fp_except_t new;
__asm__("st %%fsr,%0" : "=m" (*&old));
new = old;
new &= ~(0x1f << 23);
new |= ((mask & 0x1f)... | /*
* Written by J.T. Conklin, Apr 10, 1995
* Public domain.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <machine/fsr.h>
#include <ieeefp.h>
fp_except_t
fpsetmask(mask)
fp_except_t mask;
{
fp_except_t old;
fp_except_t new;
__asm__("st %%fsr,%0" : "=m" (old));
new = old;
new &= ~FSR_TEM_MASK;
... | Use the macros from machine/fsr.h; some minor cleanups. | Use the macros from machine/fsr.h; some minor cleanups.
| 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 |
adee120a170ac38009f875d4819f89be5eac9198 | src/lib/llist.h | src/lib/llist.h | #ifndef LLIST_H
#define LLIST_H
/* Doubly linked list */
#define DLLIST_PREPEND(list, item) STMT_START { \
(item)->prev = NULL; \
(item)->next = *(list); \
if (*(list) != NULL) (*(list))->prev = (item); \
*(list) = (item); \
} STMT_END
#define DLLIST_REMOVE(list, item) STMT_START { \
if ((item)->prev == NULL) \... | #ifndef LLIST_H
#define LLIST_H
/* Doubly linked list */
#define DLLIST_PREPEND(list, item) STMT_START { \
(item)->prev = NULL; \
(item)->next = *(list); \
if (*(list) != NULL) (*(list))->prev = (item); \
*(list) = (item); \
} STMT_END
#define DLLIST_REMOVE(list, item) STMT_START { \
if ((item)->prev == NULL) \... | Set removed item's prev/next pointers to NULL. | DLLIST_REMOVE(): Set removed item's prev/next pointers to NULL.
| C | mit | Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot |
1bda1ddc5ccd30b92da0511428055b4d3230e6d4 | chrome/app/scoped_ole_initializer.h | chrome/app/scoped_ole_initializer.h | // Copyright (c) 2009 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_APP_SCOPED_OLE_INITIALIZER_H_
#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
// Wraps OLE initialization in a cross-platform class meant... | // Copyright (c) 2009 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_APP_SCOPED_OLE_INITIALIZER_H_
#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#include "base/logging.h"
#include "build/build_config.h"
... | Make ScopedOleInitializer work on windows if you aren't including build_config already. | Make ScopedOleInitializer work on windows if you aren't including
build_config already.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/19640
git-svn-id: http://src.chromium.org/svn/trunk/src@8835 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 11ecac55348eb103e2cbcd25cb01178584faa57f | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
6c9ccbc59bb5d98785b5e45acd139704241ecebb | test/Interop/Cxx/class/Inputs/access-specifiers.h | test/Interop/Cxx/class/Inputs/access-specifiers.h | class PublicPrivate {
public:
int PublicMemberVar;
static int PublicStaticMemberVar;
void publicMemberFunc();
typedef int PublicTypedef;
struct PublicStruct {};
enum PublicEnum { PublicEnumValue1 };
enum { PublicAnonymousEnumValue };
enum PublicClosedEnum {
PublicClosedEnumValue1
} __attribute__(... | #ifndef TEST_INTEROP_CXX_CLASS_INPUTS_ACCESS_SPECIFIERS_H
#define TEST_INTEROP_CXX_CLASS_INPUTS_ACCESS_SPECIFIERS_H
class PublicPrivate {
public:
int PublicMemberVar;
static int PublicStaticMemberVar;
void publicMemberFunc();
typedef int PublicTypedef;
struct PublicStruct {};
enum PublicEnum { PublicEnumV... | Add header guards for test input headers | Add header guards for test input headers
| C | apache-2.0 | harlanhaskins/swift,roambotics/swift,harlanhaskins/swift,gregomni/swift,JGiola/swift,stephentyrone/swift,allevato/swift,CodaFi/swift,rudkx/swift,gregomni/swift,JGiola/swift,jmgc/swift,apple/swift,jmgc/swift,rudkx/swift,atrick/swift,hooman/swift,tkremenek/swift,jckarter/swift,nathawes/swift,harlanhaskins/swift,roambotic... |
deb71d745847f5b923ef798fc813d71f5bf9e675 | folly/executors/SequencedExecutor.h | folly/executors/SequencedExecutor.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | Mark some destructors that are overriden as `override` | Mark some destructors that are overriden as `override`
Summary: This satisfies a new error in llvm11
Reviewed By: smeenai
Differential Revision: D27421459
fbshipit-source-id: 963d809a4f430a365223786ea7d2591fe239062f
| C | apache-2.0 | facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly |
bc22dc60adc9d59e9a0b5d940ce6222056d35acc | task1.c | task1.c | #include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
int main(int argc, char* argv[]) {
if (argc > 1) {
int fdWrite = open(argv[1], O_WRONLY | O_CREAT, 0666);
if (fdWrite == -1) {
write(2, "Cannot open file", 16);
return 1;
}
int fdRead = open(argv[1], O_RDONLY);
if (fdRead == -1... | #include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
int main(int argc, char* argv[]) {
if (argc > 1) {
int stdoutCopy = dup(1);
close(1);
int fdWrite = open(argv[1], O_WRONLY | O_CREAT | O_APPEND, 0666);
if (fdWrite == -1) {
write(2, "Cannot open file", 16);
return 1;
}
clos... | Add stdin and stdout redirects | Add stdin and stdout redirects
| C | mit | zdravkoandonov/sysprog |
4d26eeb21841892bbab01c023a32f285e94a84bb | cc/CatchCvExceptionWorker.h | cc/CatchCvExceptionWorker.h | #include "NativeNodeUtils.h"
#ifndef __FF_CATCHCVEXCEPTIONWORKER_H__
#define __FF_CATCHCVEXCEPTIONWORKER_H__
struct CatchCvExceptionWorker : public FF::SimpleWorker {
public:
std::string execute() {
try {
return executeCatchCvExceptionWorker();
} catch (std::exception e) {
return std::string(e.what());
}... | #include "NativeNodeUtils.h"
#ifndef __FF_CATCHCVEXCEPTIONWORKER_H__
#define __FF_CATCHCVEXCEPTIONWORKER_H__
struct CatchCvExceptionWorker : public FF::SimpleWorker {
public:
std::string execute() {
try {
return executeCatchCvExceptionWorker();
} catch (std::exception &e) {
return std::string(e.what());
... | Add more helpful C++ error messages | Add more helpful C++ error messages
| C | mit | justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs |
ad6fff03ba1840e7b62fdf2a2f1da1dda7600bc2 | main.c | main.c | #include "siphash.h"
#include <stdio.h>
int main(void)
{
uint8_t key[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
uint64_t k0 = *(uint64_t*)(key + 0);
uint64_t k1 = *(uint64_t*)(key + 8);
uint8_t msg[] = {0x00, 0x01, 0x02, ... | #include "siphash.h"
#include <stdio.h>
int main(void)
{
uint8_t key[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
uint64_t k0 = *(uint64_t*)(key + 0);
uint64_t k1 = *(uint64_t*)(key + 8);
uint8_t msg[] = {0x00, 0x01, 0x02, ... | Make expected test result endianness-neutral | Make expected test result endianness-neutral
Signed-off-by: Gregory Petrosyan <60f6837da39a129899062fdb5e652b06dce7deb5@gmail.com>
| C | mit | flyingmutant/siphash |
abc56d775ef19f709b75c676a23fcb9b6c99762d | test/CodeGen/debug-info-version.c | test/CodeGen/debug-info-version.c | // RUN: %clang -g -S -emit-llvm -o - %s | FileCheck %s
// RUN: %clang -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NO_DEBUG
int main (void) {
return 0;
}
// CHECK: i32 2, !"Debug Info Version", i32 2}
// NO_DEBUG-NOT: metadata !"Debug Info Version"
| // RUN: %clang -g -S -emit-llvm -o - %s | FileCheck %s
// RUN: %clang -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NO_DEBUG
int main (void) {
return 0;
}
// CHECK: i32 2, !"Debug Info Version", i32 2}
// NO_DEBUG-NOT: !"Debug Info Version"
| Update this testcase for the new metadata assembler syntax. | Update this testcase for the new metadata assembler syntax.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@224262 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
594f834700f5dc7c3881195db73d299b5d47ac14 | src/modules/os/methods/homedir.c | src/modules/os/methods/homedir.c | #include "duktape.h"
#include "mininode.h"
#include "uv.h"
#include <unistd.h>
duk_ret_t mn_bi_os_homedir(duk_context *ctx) {
char buf[PATH_MAX];
size_t len = sizeof(buf);
const int err = uv_os_homedir(buf, &len);
if (err) {
duk_push_string(ctx, "uv_os_homedir() error!");
duk_throw(ctx);
}
duk_push_string(... | #include "duktape.h"
#include "mininode.h"
#include "uv.h"
#include <unistd.h>
duk_ret_t mn_bi_os_homedir(duk_context *ctx) {
char buf[PATH_MAX];
size_t len = sizeof(buf);
const int err = uv_os_homedir(buf, &len);
if (err) {
duk_push_string(ctx, "uv_os_homedir() error!");
duk_throw(ctx);
} else {
duk_push_... | Make the branches explicit rather than implicit | Make the branches explicit rather than implicit
| C | mit | hypoalex/mininode,hypoalex/mininode,hypoalex/mininode |
907b0aa7b72d7786b824a573868df93723acafd3 | Source/Typhoon.h | Source/Typhoon.h | ////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2013 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
///... | ////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2013 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
///... | Add Logger for dealloc methods. | Add Logger for dealloc methods.
| C | apache-2.0 | eyeem/Typhoon,gaurav1981/Typhoon,dmueller39/Typhoon,literator/Typhoon,1yvT0s/Typhoon,zjh171/Typhoon,pomozoff/Typhoon,r2B3Challenge/Typhoon,1yvT0s/Typhoon,eyeem/Typhoon,manicakes/Typhoon,zjh171/Typhoon,eyeem/Typhoon,eyeem/Typhoon,r2B3Challenge/Typhoon,dmueller39/Typhoon,nickynick/Typhoon,mbaltaks/Typhoon,r2B3Challenge/T... |
dcc03187070b26677f38056ab4f7b3209202a52e | constants.h | constants.h | #ifndef CONSTANTS_H_
#define CONSTANTS_H_
#include <math.h>
#define PRIME_FIELD_BINARY_BIT_LENGTH (64)
#define LIMB_SIZE_IN_BITS (64)
#define LIMB_SIZE_IN_BYTES (LIMB_SIZE_IN_BITS / 8)
#define LIMB_SIZE_IN_HEX (LIMB_SIZE_IN_BITS / 4)
// +1 is important for basic operations like addition that may overflow to the
// n... | #ifndef CONSTANTS_H_
#define CONSTANTS_H_
#include <math.h>
// Modify PRIME_FIELD_BINARY_BIT_LENGTH at will
#define PRIME_FIELD_BINARY_BIT_LENGTH (131)
// Do not modify anything below
#define LIMB_SIZE_IN_BITS (64)
#define LIMB_SIZE_IN_BYTES (LIMB_SIZE_IN_BITS / 8)
#define LIMB_SIZE_IN_HEX (LIMB_SIZE_IN_BITS / 4)
#d... | Add compile-time check for bit length of prime field | Add compile-time check for bit length of prime field
| C | unlicense | sahandKashani/prime-field-arithmetic-AVX2,sahandKashani/prime-field-arithmetic-AVX2,sahandKashani/prime-field-arithmetic-AVX2 |
4d3b86d589a605c04cde6af4e483adc7d58c994e | plugins.h | plugins.h | /*
This file is part of MAMBO, a low-overhead dynamic binary modification tool:
https://github.com/beehive-lab/mambo
Copyright 2013-2016 Cosmin Gorgovan <cosmin at linux-geek dot org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... | /*
This file is part of MAMBO, a low-overhead dynamic binary modification tool:
https://github.com/beehive-lab/mambo
Copyright 2013-2016 Cosmin Gorgovan <cosmin at linux-geek dot org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... | Add the decoder and field decoder headers to plugin.h | Add the decoder and field decoder headers to plugin.h
This header file is included by plugins.
| C | apache-2.0 | beehive-lab/mambo,beehive-lab/mambo |
83c3058f205532ba510dbbc5e95b96fd228f0125 | texor.c | texor.c | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | Add a carriage return with the newline | Add a carriage return with the newline
| C | bsd-2-clause | kyletolle/texor |
33a5982e32963ed1e0e86608acc9ef116006e32a | src/reverse_iterator.h | src/reverse_iterator.h | // Taken from https://gist.github.com/arvidsson/7231973
#ifndef BITCOIN_REVERSE_ITERATOR_HPP
#define BITCOIN_REVERSE_ITERATOR_HPP
/**
* Template used for reverse iteration in C++11 range-based for loops.
*
* std::vector<int> v = {1, 2, 3, 4, 5};
* for (auto x : reverse_iterate(v))
* std::cout << x << "... | // Taken from https://gist.github.com/arvidsson/7231973
#ifndef BITCOIN_REVERSE_ITERATOR_H
#define BITCOIN_REVERSE_ITERATOR_H
/**
* Template used for reverse iteration in C++11 range-based for loops.
*
* std::vector<int> v = {1, 2, 3, 4, 5};
* for (auto x : reverse_iterate(v))
* std::cout << x << " ";
... | Rename member field according to the style guide. | Rename member field according to the style guide.
| C | mit | Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnli... |
bbd8d17bee25486c09a6d255d3a43c4a66ad1399 | include/tiramisu/MainPage.h | include/tiramisu/MainPage.h | /** \file
* This file only exists to contain the front-page of the documentation
*/
/** \mainpage Documentation of the API if the Tiramisu Compiler
*
* Tiramisu provides few classes to enable users to represent their program:
* - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio... | /** \file
* This file only exists to contain the front-page of the documentation
*/
/** \mainpage Documentation of the Tiramisu Compiler API
*
* Tiramisu provides few classes to enable users to represent their program:
* - The \ref tiramisu::function class: used to declare Tiramisu functions. A function in Tiram... | Fix the documentation main page | Fix the documentation main page
| C | mit | rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/ISIR,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/COLi |
a2daf4586b6ffd054d2ba8471e83808d06e65509 | examples/getartist_c.c | examples/getartist_c.c | /* Get artist by id.
*
* Usage:
* getartist 'artist id'
*
* $Id$
*/
#include <stdio.h>
#include <musicbrainz3/mb_c.h>
int
main(int argc, char **argv)
{
MBQuery query;
MBArtist artist;
char data[256];
if (argc < 2) {
printf("Usage: getartist 'artist id'\n");
return 1;
}
mb_webservice_init();
... | /* Get artist by id.
*
* Usage:
* getartist 'artist id'
*
* $Id$
*/
#include <stdio.h>
#include <musicbrainz3/mb_c.h>
int
main(int argc, char **argv)
{
MbQuery query;
MbArtist artist;
char data[256];
if (argc < 2) {
printf("Usage: getartist 'artist id'\n");
return 1;
}
mb_webservice_init();
... | Rename MBArtist to MbArtist to make it compile. | Rename MBArtist to MbArtist to make it compile.
| C | lgpl-2.1 | matthewruhland/libmusicbrainz,metabrainz/libmusicbrainz,ianmcorvidae/libmusicbrainz,matthewruhland/libmusicbrainz,sebastinas/libmusicbrainz,ianmcorvidae/libmusicbrainz,matthewruhland/libmusicbrainz,metabrainz/libmusicbrainz,metabrainz/libmusicbrainz,sebastinas/libmusicbrainz,sebastinas/libmusicbrainz |
f1c400b56e0bd233a28553053e6fbf70f2d87331 | TestSupport/QCOMockAlertVerifier.h | TestSupport/QCOMockAlertVerifier.h | // MockUIAlertController by Jon Reid, http://qualitycoding.org/about/
// Copyright 2015 Jonathan M. Reid. See LICENSE.txt
#import <UIKit/UIKit.h>
#import "QCOMockPopoverPresentationController.h" // Convenience import instead of @class
/**
Captures QCOMockAlertController arguments.
*/
@interface QCOMockAle... | // MockUIAlertController by Jon Reid, http://qualitycoding.org/about/
// Copyright 2015 Jonathan M. Reid. See LICENSE.txt
#import <UIKit/UIKit.h>
#import "QCOMockPopoverPresentationController.h" // Convenience import instead of @class
/**
Captures mocked UIAlertController arguments.
*/
@interface QCOMockA... | Change comment to eliminate reference to eliminated test double | Change comment to eliminate reference to eliminated test double
| C | mit | foulkesjohn/MockUIAlertController,yas375/MockUIAlertController,carabina/MockUIAlertController |
595c211b7e9e60b34564a9fe0239ea4d88bf9546 | include/WOCStdLib/winnt.h | include/WOCStdLib/winnt.h | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | Fix ARM build in CoreFoundation | Fix ARM build in CoreFoundation
Description:
winnt.h includes some ARM intrinsics that aren't supported in
clang and cause front end compilation breaks. Because of this,
change the MSC version to be less than what is needed to
support that option.
How verified:
Builds now
Reviewed by: jaredh, duhowett, jordansa
| C | mit | pradipd/WinObjC,bbowman/WinObjC,bbowman/WinObjC,bbowman/WinObjC,bSr43/WinObjC,yweijiang/WinObjC,nathpete-msft/WinObjC,bSr43/WinObjC,bSr43/WinObjC,rajsesh-msft/WinObjC,ehren/WinObjC,Microsoft/WinObjC,MSFTFox/WinObjC,autodesk-forks/WinObjC,autodesk-forks/WinObjC,nathpete-msft/WinObjC,afaruqui/WinObjC,ehren/WinObjC,autode... |
e2262de49c039d58bdff68da136bb08309ef57d2 | test/default/cmptest.h | test/default/cmptest.h |
#ifndef __CMPTEST_H__
#define __CMPTEST_H__
#include <stdio.h>
#include "sodium.h"
#define TEST_NAME_RES TEST_NAME ".res"
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
#ifdef HAVE_ARC4RANDOM
# undef rand
# define rand(X) arc4random(X)
#endif
FILE *fp_res;
int xmain(void);
int main(void)
{
FILE *fp... |
#ifndef __CMPTEST_H__
#define __CMPTEST_H__
#include <stdio.h>
#include "sodium.h"
#ifndef TEST_SRCDIR
# define TEST_SRCDIR "."
#endif
#define TEST_NAME_RES TEST_NAME ".res"
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
#ifdef HAVE_ARC4RANDOM
# undef rand
# define rand(X) arc4random(X)
#endif
FILE *fp_r... | Add a default value for TEST_SRCDIR | Add a default value for TEST_SRCDIR
| C | isc | optedoblivion/android_external_libsodium,optedoblivion/android_external_libsodium,pyparallel/libsodium,paragonie-scott/libsodium,rustyhorde/libsodium,rustyhorde/libsodium,donpark/libsodium,mvduin/libsodium,zhuqling/libsodium,donpark/libsodium,kytvi2p/libsodium,SpiderOak/libsodium,CyanogenMod/android_external_dnscrypt_l... |
ee185b401e49842c5a12dcf76bb82f853ba6c947 | firmware/src/Channel.h | firmware/src/Channel.h | #include <inttypes.h>
#include "Effect.h"
#include "Inputs.h"
#include "Output.h"
class Channel {
public:
Channel(uint8_t _inputId, Output *_output);
void read(Inputs *inputs);
void setEffect(Effect *newEffect);
void runEffect();
inline Effect *getEffect() {return effect;};
uint8_t inputId;
Effect *effect;
priv... | #include <inttypes.h>
#include "Effect.h"
#include "Inputs.h"
#include "Output.h"
class Channel {
public:
Channel(uint8_t _inputId, Output *_output);
void read(Inputs *inputs);
void setEffect(Effect *newEffect);
void runEffect();
inline Effect *getEffect() {return effect;};
uint8_t inputId;
Effect *effect;
Out... | Make vu meter react to trigger level | Make vu meter react to trigger level
| C | apache-2.0 | Miceuz/leds-got-waxed,Miceuz/leds-got-waxed,Miceuz/leds-got-waxed,Miceuz/leds-got-waxed,Miceuz/leds-got-waxed |
3350085ed7177cdc387d162a71073b787ba401be | simulator/mips/mips.h | simulator/mips/mips.h | /**
* mips.h - all the aliases to MIPS ISA
* @author Aleksandr Misevich
* Copyright 2018 MIPT-MIPS
*/
#ifndef MIPS_H_
#define MIPS_H_
#include <infra/instrcache/instr_cache_memory.h>
#include "mips_instr.h"
struct MIPS
{
using FuncInstr = MIPSInstr;
using Register = MIPSRegister;
using Memory = Inst... | /**
* mips.h - all the aliases to MIPS ISA
* @author Aleksandr Misevich
* Copyright 2018 MIPT-MIPS
*/
#ifndef MIPS_H_
#define MIPS_H_
#include <infra/instrcache/instr_cache_memory.h>
#include "mips_instr.h"
struct MIPS
{
using FuncInstr = MIPSInstr;
using Register = MIPSRegister;
using Memory = Inst... | Use doubled_t for MIPS defines | Use doubled_t for MIPS defines | C | mit | MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015 |
df8d6af61cacabf64ec3e470f2bb4d0f985a86bb | src/utility/pimpl_impl.h | src/utility/pimpl_impl.h | #ifndef PIMPL_IMPL_H
#define PIMPL_IMPL_H
#include <utility>
template<typename T>
pimpl<T>::pimpl() : m{ new T{} } { }
template<typename T>
template<typename ...Args>
pimpl<T>::pimpl( Args&& ...args )
: m{ new T{ std::forward<Args>(args)... } } { }
template<typename T>
pimpl<T>::~pimpl() { }
template<typename T>... | #ifndef PIMPL_IMPL_H
#define PIMPL_IMPL_H
#include "make_unique.h"
#include <utility>
template<typename T>
pimpl<T>::pimpl() : m{ make_unique<T>() } { }
template<typename T>
template<typename ...Args>
pimpl<T>::pimpl( Args&& ...args )
: m{ make_unique<T>(std::forward<Args>(args)...) } { }
template<typename T>
pim... | Use make_unique in pimpl helper | Use make_unique in pimpl helper
| C | mit | adolby/Kryvos,adolby/Kryvos,adolby/Kryvos |
61f591fe949c76b918ae3342ae8d87b2bd5ce072 | DDMathParser/DDMathParserMacros.h | DDMathParser/DDMathParserMacros.h | //
// DDMathParserMacros.h
// DDMathParser
//
// Created by Dave DeLong on 2/19/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DDTypes.h"
#ifndef ERR_ASSERT
#define ERR_ASSERT(_e) NSAssert((_e) != nil, @"NULL out error")
#endif
#ifndef ERR
#define DD_... | //
// DDMathParserMacros.h
// DDMathParser
//
// Created by Dave DeLong on 2/19/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DDTypes.h"
#ifndef ERR_ASSERT
#define ERR_ASSERT(_e) NSAssert((_e) != nil, @"NULL out error")
#endif
#ifndef DD_ERR
#define ... | Correct conditional on DD_ERR macro | Correct conditional on DD_ERR macro
| C | mit | mrackwitz/DDMathParser,carabina/DDMathParser,davedelong/DDMathParser,carabina/DDMathParser,mrackwitz/DDMathParser,davedelong/DDMathParser |
734b14cd1de225a5cdf82ef14c1cd697fbc01b6d | src/condor_ckpt/condor_syscalls.h | src/condor_ckpt/condor_syscalls.h | #ifndef _CONDOR_SYSCALLS_H
#define _CONDOR_SYSCALLS_H
#if defined( AIX32)
# include "syscall.aix32.h"
#else
# include <syscall.h>
#endif
typedef int BOOL;
static const int SYS_LOCAL = 1;
static const int SYS_REMOTE = 0;
static const int SYS_RECORDED = 2;
static const int SYS_MAPPED = 2;
static const int SYS_UNRE... | #ifndef _CONDOR_SYSCALLS_H
#define _CONDOR_SYSCALLS_H
#if defined( AIX32)
# include "syscall.aix32.h"
#else
# include <syscall.h>
#endif
typedef int BOOL;
static const int SYS_LOCAL = 1;
static const int SYS_REMOTE = 0;
static const int SYS_RECORDED = 2;
static const int SYS_MAPPED = 2;
static const int SYS_UNRE... | Set up syscall() prototype for HP-UX 9 machines. | Set up syscall() prototype for HP-UX 9 machines.
| C | apache-2.0 | bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/condor,htcondor/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/condor,neurodebian/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,htcondor/h... |
6f6f54e6c55154ae69e8d835ff2eba1ba590b2d4 | SDWebImage/NSData+ImageContentType.h | SDWebImage/NSData+ImageContentType.h | /*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
* (c) Fabrice Aneche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "SDWebImageCompat.h"
type... | /*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
* (c) Fabrice Aneche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "SDWebImageCompat.h"
type... | Mark one function which return value should follow the GET rule | Mark one function which return value should follow the GET rule
| C | mit | zhang-yawei/SDWebImage,awkward/SDWebImage,dreampiggy/SDWebImage,dreampiggy/SDWebImage,awkward/SDWebImage,dreampiggy/SDWebImage,tualatrix/SDWebImage,rs/SDWebImage,awkward/SDWebImage |
d131cc1413550bbc489a0b42b32bc381575fd0a6 | include/PhysicsLX56.h | include/PhysicsLX56.h | /*
OpenLieroX
physic simulation interface
code under LGPL
created on 9/2/2008
*/
#ifndef __PHYSICSLX56_H__
#define __PHYSICSLX56_H__
#include "Physics.h"
PhysicsEngine* CreatePhysicsEngineLX56();
#define LX56PhysicsFixedFPS 100
#define LX56PhysicsDT TimeDiff(1000 / LX56PhysicsFixedFPS)
#endif
| /*
OpenLieroX
physic simulation interface
code under LGPL
created on 9/2/2008
*/
#ifndef __PHYSICSLX56_H__
#define __PHYSICSLX56_H__
#include "Physics.h"
PhysicsEngine* CreatePhysicsEngineLX56();
#define LX56PhysicsFixedFPS 84
#define LX56PhysicsDT TimeDiff(1000 / LX56PhysicsFixedFPS)
#endif
| Put physics FPS to 84 - that's the common value in LX .56. So far it seems it behaves exactly like old LX, needs still testing though. | Put physics FPS to 84 - that's the common value in LX .56. So far it seems it behaves exactly like old LX, needs still testing though.
git-svn-id: 0634bf30b6d7a21f2003d4a9f34c102a3ffa6fda@4471 34602234-ff1f-0410-a465-ea8f3b77ab7f
| C | lgpl-2.1 | ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox |
82a1df8942be8551ab365db20e35ca6a2b7e0d85 | include/sha1prng.h | include/sha1prng.h | /*************************************************
* SHA1PRNG RNG Header File *
* (C) 2007 FlexSecure GmbH / Manuel Hartl *
* (C) 2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_SHA1PRNG_H__
#define BOTAN_SHA1PRNG_H__
#include ... | /*************************************************
* SHA1PRNG RNG Header File *
* (C) 2007 FlexSecure GmbH / Manuel Hartl *
* (C) 2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_SHA1PRNG_H__
#define BOTAN_SHA1PRNG_H__
#include ... | Add missing BOTAN_DLL decl to SHA1PRNG class declaration | Add missing BOTAN_DLL decl to SHA1PRNG class declaration
| C | bsd-2-clause | webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurit... |
e9f9848a4f93f2114ceb770f22c481ccd76de64e | ObjectivePGP/PGPPublicKeyPacket.h | ObjectivePGP/PGPPublicKeyPacket.h | //
// OpenPGPPublicKey.h
// ObjectivePGP
//
// Created by Marcin Krzyzanowski on 04/05/14.
// Copyright (c) 2014 Marcin Krzyżanowski. All rights reserved.
//
// Tag 6
#import <Foundation/Foundation.h>
#import "PGPTypes.h"
#import "PGPPacketFactory.h"
#import "PGPKeyID.h"
#import "PGPFingerprint.h"
@class PGPMPI;... | //
// OpenPGPPublicKey.h
// ObjectivePGP
//
// Created by Marcin Krzyzanowski on 04/05/14.
// Copyright (c) 2014 Marcin Krzyżanowski. All rights reserved.
//
// Tag 6
#import <Foundation/Foundation.h>
#import "PGPTypes.h"
#import "PGPPacketFactory.h"
#import "PGPKeyID.h"
#import "PGPFingerprint.h"
@class PGPMPI;... | Fix NSDate property management attribute assign->strong | Fix NSDate property management attribute assign->strong
| C | bsd-2-clause | alexkunitsa/ObjectivePGP,1and1/ObjectivePGP |
a748dcc2b1d0723d229e13c97e8e3b0602eda593 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k7"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k8"
| Update driver version to 5.02.00-k8 | [SCSI] qla4xxx: Update driver version to 5.02.00-k8
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Reviewed-by: Mike Christie <6fe105eefab41990d7ec714c6c25ade3095cdb48@cs.wisc.edu>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... |
88397c279d6d113ef67be254bc145d198e733844 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k1"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k2"
| Update driver version to 5.04.00-k2 | [SCSI] qla4xxx: Update driver version to 5.04.00-k2
Signed-off-by: Adheer Chandravanshi <7890d7472d5d21859aa8c530110140678588acf6@qlogic.com>
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
892b1603154e1b8271016cb2920ac098c091df7d | la-log.h | la-log.h | #ifndef _LA_LOG_H
#define _LA_LOG_H
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#ifndef _WIN32
#include <syslog.h>
#else
#define LOG_INFO 1
#define LOG_ERR 2
#define LOG_CRIT 3
#endif
#include <time.h>
void la_log_syslog_open();
void la_log(int priority, const char *format, ...);
void la_log_unsuppress... | #ifndef _LA_LOG_H
#define _LA_LOG_H
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#ifndef _WIN32
#include <syslog.h>
#else
#define LOG_DEBUG 0
#define LOG_INFO 1
#define LOG_ERR 2
#define LOG_CRIT 3
#endif
#include <time.h>
void la_log_syslog_open();
void la_log(int priority, const char *format, ...);
vo... | Fix obvious issue which probably broke build on windows. | Fix obvious issue which probably broke build on windows.
| C | apache-2.0 | dronekit/dronekit-la,peterbarker/dronekit-la,dronekit/dronekit-la,peterbarker/dronekit-la,peterbarker/dronekit-la,peterbarker/dronekit-la,dronekit/dronekit-la,dronekit/dronekit-la |
bb7aa6ace39ad6ce1e71f9f177441a6744814855 | Additions/FSFrequencyPlotView.h | Additions/FSFrequencyPlotView.h | /*
* This file is part of the FreeStreamer project,
* (C)Copyright 2011-2015 Matias Muhonen <mmu@iki.fi>
* See the file ''LICENSE'' for using the code.
*
* https://github.com/muhku/FreeStreamer
*/
#include "FSFrequencyDomainAnalyzer.h"
#define kFSFrequencyPlotViewMaxCount 64
@interface FSFrequencyPlotView : UI... | /*
* This file is part of the FreeStreamer project,
* (C)Copyright 2011-2015 Matias Muhonen <mmu@iki.fi>
* See the file ''LICENSE'' for using the code.
*
* https://github.com/muhku/FreeStreamer
*/
#import <UIKit/UIKit.h>
#include "FSFrequencyDomainAnalyzer.h"
#define kFSFrequencyPlotViewMaxCount 64
@interface... | Add a missing UIKit import. | Add a missing UIKit import.
| C | bsd-3-clause | mjasa/FreeStreamer,christophercotton/FreeStreamer,alecgorge/FreeStreamer,alecgorge/FreeStreamer,mjasa/FreeStreamer,christophercotton/FreeStreamer,ren6/FreeStreamer,zdw19840929/FreeStreamer,christophercotton/FreeStreamer,zdw19840929/FreeStreamer,zdw19840929/FreeStreamer,ren6/FreeStreamer,mjasa/FreeStreamer,nKey/FreeStre... |
ea8eed7e9540ff9136df34ecb70255cd2ab74dd4 | logger.c | logger.c |
#include "logger.h"
#include <stdio.h>
#include <errno.h>
#include <libpp/map-lists.h>
#include <libpp/separators.h>
#include <libtypes/types.h>
Logger
logger__new_( Logger options )
{
if ( options.log == NULL ) {
options.log = logger__default_log;
}
return options;
}
int
logger__default_log(... |
#include "logger.h"
#include <stdio.h>
#include <errno.h>
#include <libpp/map-lists.h>
#include <libpp/separators.h>
#include <libtypes/types.h>
Logger
logger__new_( Logger options )
{
if ( options.log == NULL ) {
options.log = logger__default_log;
}
return options;
}
int
logger__default_log(... | Fix member access issue stopping compile | Fix member access issue stopping compile
| C | agpl-3.0 | mcinglis/liblogging |
b09cbbdb383a73ad46a016cc4dcc54ad62c92732 | jets/c/xeb.c | jets/c/xeb.c | /* j/3/xeb.c
**
*/
#include "all.h"
/* functions
*/
u3_noun
u3qc_xeb(u3_atom a)
{
mpz_t a_mp;
if ( __(u3a_is_dog(a)) ) {
u3r_mp(a_mp, a);
size_t log = mpz_sizeinbase(a_mp, 2);
mpz_t b_mp;
mpz_init_set_ui(b_mp, log);
return u3i_mp(b_mp);
}
else {
mpz_init_set_... | /* j/3/xeb.c
**
*/
#include "all.h"
/* functions
*/
u3_noun
u3qc_xeb(u3_atom a)
{
mpz_t a_mp;
if ( __(u3a_is_dog(a)) ) {
u3r_mp(a_mp, a);
c3_d x = mpz_sizeinbase(a_mp, 2);
mpz_t b_mp;
mpz_init_set_ui(b_mp, x);
return u3i_mp(b_mp);
}
else {
mpz_init_set_ui(a_m... | Use urbit types instead of size_t | Use urbit types instead of size_t
| C | mit | cgyarvin/urbit-1,ohAitch/urbit,cgyarvin/urbit-1,ohAitch/urbit,max19/urbit,juped/your-urbit,jfranklin9000/urbit,juped/your-urbit,juped/your-urbit,ngzax/urbit,ohAitch/urbit,max19/urbit,ngzax/urbit,urbit/urbit,urbit/urbit,juped/urbit,max19/urbit,ngzax/urbit,jfranklin9000/urbit,juped/your-urbit,juped/your-urbit,ngzax/urbit... |
5b5437349aa475c23b624e9b0f5919250cd0ab8c | libvirt-utils.h | libvirt-utils.h | /*
* libvirt-utils.h: misc helper APIs for python binding
*
* Copyright (C) 2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licens... | /*
* libvirt-utils.h: misc helper APIs for python binding
*
* Copyright (C) 2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licens... | Add decl of MIN macro | Add decl of MIN macro
Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>
| C | lgpl-2.1 | libvirt/libvirt-python,libvirt/libvirt-python,libvirt/libvirt-python |
142bbaf120ee82473e557c2b1d0b8fd1c1de0603 | ops/eq.h | ops/eq.h | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Remove redundant == in Eq | Remove redundant == in Eq
| C | apache-2.0 | chromium/subspace,chromium/subspace |
b2192eb67960c6943b266a0456b672ee93483952 | libjc/arch/i386/i386_definitions.h | libjc/arch/i386/i386_definitions.h |
/*
* Copyright 2005 The Apache Software Foundation or its licensors,
* as applicable.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... |
/*
* Copyright 2005 The Apache Software Foundation or its licensors,
* as applicable.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | Add Cygwin fixes for sched_get_priority_min() and sched_get_priority_max(). | Add Cygwin fixes for sched_get_priority_min() and sched_get_priority_max().
svn path=/incubator/harmony/enhanced/jchevm/; revision=379838
| C | apache-2.0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM |
54a13d2d9754a44f26dbe5f8b4485267a13a0217 | drudge/canonpy.h | drudge/canonpy.h | /* vim: set filetype=cpp: */
/** Header file for canonpy.
*
* Currently it merely contains the definition of the object structure of the
* classes defined in canonpy. They are put here in case a C API is intended
* to be added for canonpy.
*/
#ifndef DRUDGE_CANONPY_H
#define DRUDGE_CANONPY_H
#include <Python.h... | /* vim: set filetype=cpp: */
/** Header file for canonpy.
*
* Currently it merely contains the definition of the object structure of the
* classes defined in canonpy. They are put here in case a C API is intended
* to be added for canonpy.
*/
#ifndef DRUDGE_CANONPY_H
#define DRUDGE_CANONPY_H
#include <Python.h... | Add type aliases for Group | Add type aliases for Group
With these aliases, the code for permutation group manipulation can be
written more succinctly.
| C | mit | tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge |
3d9077bafe6cb2f97ce16157d1db252a719e24a0 | src/appjs_window.h | src/appjs_window.h | #ifndef APPJS_WINDOW_H
#define APPJS_WINDOW_H
#pragma once
#include "appjs.h"
// GTK+ binding for linux
#if defined(__LINUX__)
#include "linux/mainwindow.h"
// Mac files
#elif defined(__MAC__)
#include "mac/mainwindow.h"
// Windows necessary files
#elif defined(__WIN__)
#include "windows/mainwindow.h"
#endif
... | #ifndef APPJS_WINDOW_H
#define APPJS_WINDOW_H
#pragma once
#include "appjs.h"
// GTK+ binding for linux
#if defined(__LINUX__)
#include "linux/mainwindow.h"
// Mac files
#elif defined(__MAC__)
#include "mac/mainwindow.h"
// Windows necessary files
#elif defined(__WIN__)
#include "windows/mainwindow.h"
#endif
... | Add minimize and maximize function on Linux | Add minimize and maximize function on Linux
| C | mit | reekoheek/appjs,reekoheek/appjs,reekoheek/appjs |
6c0a304f881440303b1fe1af781b2cf1ddccc3ef | src/data/linkedlist.h | src/data/linkedlist.h | /**
* An efficient c++ simulation demo
*
* @author Skylar Kelty <skylarkelty@gmail.com>
*/
#pragma once
#include "src/common.h"
/**
* A linked list
*/
template <typename T>
class LinkedList {
private:
LLNode<T> *head;
LLNode<T> *tail;
public:
LinkedList();
~LinkedList();
void append(LLNode<T> *node);
... | /**
* An efficient c++ simulation demo
*
* @author Skylar Kelty <skylarkelty@gmail.com>
*/
#pragma once
#include "src/common.h"
/**
* A linked list
*/
template <typename T>
class LinkedList {
friend class Engine;
private:
LLNode<T> *head;
LLNode<T> *tail;
protected:
void append(LLNode<T> *node);
public:
... | Enforce actor addition through Engine | Enforce actor addition through Engine
| C | apache-2.0 | SkylarKelty/Simulation |
196992d9be7b1dcbb706a1c229ff3786d7c4935b | libplatsupport/plat_include/pc99/platsupport/plat/pit.h | libplatsupport/plat_include/pc99/platsupport/plat/pit.h | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _PLATSUPPORT_PIT_H
#define _PLATSUPPORT_PIT_H
#include <platsupport/timer.h>... | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _PLATSUPPORT_PIT_H
#define _PLATSUPPORT_PIT_H
#include <autoconf.h>
#include... | Define PIT interrupt more correctly if using the IOAPIC | libplatsupport: Define PIT interrupt more correctly if using the IOAPIC
The definition is not really correct as you cannot really talk about
interrupts by a single number. But this does provide the path of least
resistance for legacy code using the PIT when the IOAPIC is enabled
| C | bsd-2-clause | agacek/util_libs,agacek/util_libs,agacek/util_libs,agacek/util_libs |
313f680c4ff21c2fb5d33d472090f9a41d2fd063 | tests/ifds/reach/pass-address-of-aggregate.c | tests/ifds/reach/pass-address-of-aggregate.c | #include <stdlib.h>
int y;
int *g = &y;
int* arr[100];
void f(int *p) {
g = p;
}
int main() {
y = rand();
/* y = 1; */
/* y *= 10; */
f(&arr[y]);
y = y / 4;
return 0;
}
| #include <stdlib.h>
int y;
int *g = &y;
int arr[100];
void f(int *p) {
g = p;
}
int main() {
y = rand();
/* y = 1; */
/* y *= 10; */
f(&arr[y]);
y = y / 4;
return 0;
}
| Fix types in this test case | Fix types in this test case
| C | bsd-3-clause | wangxiayang/llvm-analysis,wangxiayang/llvm-analysis,travitch/llvm-analysis,travitch/llvm-analysis |
36881897a4d772e3141bfe08953c63e08cb5c317 | packages/conf-openblas/conf-openblas.0.2.1/files/test.c | packages/conf-openblas/conf-openblas.0.2.1/files/test.c | #include <cblas.h>
#include <lapacke.h>
int main(int argc, char **argv)
{
int N = 3;
double X[] = { 1, 2, 3 };
int INCX = 1;
double res = cblas_dnrm2(N, X, INCX);
return 0;
}
| #define _GNU_SOURCE
#include <cblas.h>
#include <lapacke.h>
int main(int argc, char **argv)
{
int N = 3;
double X[] = { 1, 2, 3 };
int INCX = 1;
double res = cblas_dnrm2(N, X, INCX);
return 0;
}
| Fix alpine (cblas bug fixed in 0.3.16. cpu_set_t isn't defined unless _GNU_SOURCE is) | conf-openblas: Fix alpine (cblas bug fixed in 0.3.16. cpu_set_t isn't defined unless _GNU_SOURCE is)
| C | cc0-1.0 | jonludlam/opam-repository,nberth/opam-repository,mjambon/opam-repository,nberth/opam-repository,djs55/opam-repository,codinuum/opam-repository,Leonidas-from-XIV/opam-repository,pirbo/opam-repository,emillon/opam-repository,kkirstein/opam-repository,djs55/opam-repository,Chris00/opam-repository,pirbo/opam-repository,ast... |
6f245f8f098efa6c9c9e2dcafec83670921c8ea6 | src/scanner/scanner.c | src/scanner/scanner.c | #include "scanner.h"
| #include "scanner.h"
void scanner_init() {
scanner_token_init();
current_symbol = T_EOF;
scanner_get_symbol();
}
void scanner_token_init() {
T_EOF = -1;
}
void scanner_get_symbol() {
} | Add first (dummy) implementation of functions to make it compile | Add first (dummy) implementation of functions to make it compile
| C | mit | danielkocher/ocelot2 |
b41ef42f8f551006949b177015ca5792b9d093a0 | inc/ogvr/Util/DeviceCallbackTypesC.h | inc/ogvr/Util/DeviceCallbackTypesC.h | /** @file
@brief Header declaring device callback types
Must be c-safe!
@date 2014
@author
Ryan Pavlik
<ryan@sensics.com>
<http://sensics.com>
*/
/*
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Versio... | /** @file
@brief Header declaring device callback types
Must be c-safe!
@date 2014
@author
Ryan Pavlik
<ryan@sensics.com>
<http://sensics.com>
*/
/*
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Versio... | Include a header we use. | Include a header we use.
| C | apache-2.0 | Armada651/OSVR-Core,feilen/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,leemichaelRazer/OSVR-Core,godbyk/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,d235j/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,d235... |
d480cb74aca87fb0b8f371c8ccaba5a771a01166 | YZLibrary/NSData+YZLibrary.h | YZLibrary/NSData+YZLibrary.h | //
// NSData+YZLibrary.h
// YZLibrary
//
// Copyright (c) 2016 Yichi Zhang
// https://github.com/yichizhang
// zhang-yi-chi@hotmail.com
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the So... | //
// NSData+YZLibrary.h
// YZLibrary
//
// Copyright (c) 2016 Yichi Zhang
// https://github.com/yichizhang
// zhang-yi-chi@hotmail.com
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the So... | Add comment to NSData's MD5 category method | Add comment to NSData's MD5 category method
| C | mit | yichizhang/YZLibrary,yichizhang/YZLibrary,yichizhang/YZLibrary |
8c2a1124874edf83fab68bac1df3e1f5a4a45baa | avogadro/core/mutex.h | avogadro/core/mutex.h | /******************************************************************************
This source file is part of the Avogadro project.
Copyright 2013 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distri... | /******************************************************************************
This source file is part of the Avogadro project.
Copyright 2013 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distri... | Update the documentation - no more Boost | Update the documentation - no more Boost
This was missed when moving away from the Boost fallback - it is just a
simple wrapper for the C++11 class now.
Signed-off-by: Marcus D. Hanwell <cf7042e2e8eee958b5bcde1ae2cbefef82efc184@kitware.com>
| C | bsd-3-clause | OpenChemistry/avogadrolibs,OpenChemistry/avogadrolibs,ghutchis/avogadrolibs,OpenChemistry/avogadrolibs,ghutchis/avogadrolibs,ghutchis/avogadrolibs,ghutchis/avogadrolibs,ghutchis/avogadrolibs,OpenChemistry/avogadrolibs,OpenChemistry/avogadrolibs |
98387099470e2909fabc63c392b034424be13584 | src/HunspellContext.h | src/HunspellContext.h | #ifndef HunspellContext_H
#define HunspellContext_H
#include <hunspell.hxx>
#include <napi.h>
#include <mutex>
#include <shared_mutex>
class HunspellContext {
public:
Hunspell* instance;
HunspellContext(Hunspell* instance): instance(instance) {};
~HunspellContext() {
if (instance) {
delete ins... | #ifndef HunspellContext_H
#define HunspellContext_H
#include <hunspell.hxx>
#include <napi.h>
#include <mutex>
#include <shared_mutex>
#include <uv.h>
class HunspellContext {
public:
Hunspell* instance;
HunspellContext(Hunspell* instance): instance(instance) {
uv_rwlock_init(&rwLock);
};
~HunspellCont... | Switch from std::shared_mutex to libuv's uv_rwlock | Switch from std::shared_mutex to libuv's uv_rwlock
| C | mit | Wulf/nodehun,nathanjsweet/nodehun,Wulf/nodehun,nathanjsweet/nodehun,Wulf/nodehun,Wulf/nodehun |
02436bea03b1f9a61fb0bc39b2a9f821ac4f6118 | src/node.h | src/node.h | #ifndef SRC_NODE_H_
#define SRC_NODE_H_
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/nvp.hpp>
#include <memory>
#include "./graphics/render_data.h"
#include "./math/obb.h"
#include "./graphics/gl.h"
/**
* \brief Base class for nodes which ... | #ifndef SRC_NODE_H_
#define SRC_NODE_H_
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/nvp.hpp>
#include <memory>
#include "./graphics/render_data.h"
#include "./math/obb.h"
#include "./graphics/gl.h"
#include "./graphics/ha_buffer.h"
/**
* \... | Store haBuffer shared_ptr in Node. | Store haBuffer shared_ptr in Node.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
cdb2eaafed65da729c51179cab0d0b31692cfea7 | src/imap/cmd-create.c | src/imap/cmd-create.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(struct client *client)
{
struct mail_storage *storage;
const char *mailbox;
int directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
storage = client_find_stora... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(struct client *client)
{
struct mail_storage *storage;
const char *mailbox, *full_mailbox;
int directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
full_mailbox ... | CREATE was broken if namespace prefixes were set. Patch by Andreas Fuchs. | CREATE was broken if namespace prefixes were set. Patch by Andreas Fuchs.
| C | mit | LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,LTD-Beget/dovecot,damoxc/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot,LTD-Beget/dovecot |
ce2291a23cef5aba2b58bfce2cc57751f58a1c2c | common/guiddatabase.h | common/guiddatabase.h | /* guiddatabase.h
Copyright (c) 2017, LongSoft. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-licens... | /* guiddatabase.h
Copyright (c) 2017, LongSoft. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-licens... | Fix CMAKE_CXX_STANDARD 17 build on Windows | Fix CMAKE_CXX_STANDARD 17 build on Windows
| C | bsd-2-clause | LongSoft/UEFITool,LongSoft/UEFITool,LongSoft/UEFITool |
2c0940f05fc6c53a20fb4f3d6ad1b1e39459dbbb | mud/include/kotaka/paths/utility.h | mud/include/kotaka/paths/utility.h | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2018 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2018 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Remove MATHD and SORTD macros | Remove MATHD and SORTD macros
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
eeb2918922a49522b73cb10d41ea0fbd03af1180 | libc/sysdeps/linux/common/getgid.c | libc/sysdeps/linux/common/getgid.c | /* vi: set sw=4 ts=4: */
/*
* getgid() for uClibc
*
* Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include "syscalls.h"
#include <unistd.h>
#if defined __NR_getxgid
# define __NR_getgid __NR_getxgid
#endif
_syscall0(g... | /* vi: set sw=4 ts=4: */
/*
* getgid() for uClibc
*
* Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include "syscalls.h"
#include <unistd.h>
#if defined __NR_getxgid
# define __NR_getgid __NR_getxgid
#endif
libc_hidden... | Make gcc4 happy as well | Make gcc4 happy as well
| C | lgpl-2.1 | waweber/uclibc-clang,czankel/xtensa-uclibc,skristiansson/uClibc-or1k,ChickenRunjyd/klee-uclibc,ndmsystems/uClibc,mephi42/uClibc,ChickenRunjyd/klee-uclibc,waweber/uclibc-clang,foss-for-synopsys-dwc-arc-processors/uClibc,brgl/uclibc-ng,groundwater/uClibc,atgreen/uClibc-moxie,hwoarang/uClibc,kraj/uClibc,ysat0/uClibc,gittu... |
ad3ed34bd544c0edc4a6afbe0e3278be2f3bcc06 | src/modtypes/socket.h | src/modtypes/socket.h | #pragma once
#include "../main.h"
class Socket {
public:
virtual ~Socket() {}
virtual unsigned int apiVersion() = 0;
virtual void connect(const std::string& server, const std::string& port, const std::string& bindAddr = "") {}
virtual std::string receive() { return ""; }
virtual void send(const std::string&... | #pragma once
#include "../main.h"
class Socket {
public:
virtual ~Socket() {}
virtual unsigned int apiVersion() = 0;
virtual void connectServer(const std::string& server, const std::string& port, const std::string& bindAddr = "") {}
virtual std::string receive() { return ""; }
virtual void send(const std::s... | Rename function to not be the same as another function that does the actual job | Rename function to not be the same as another function that does the actual job
| C | mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo |
e285db1f6f9f42e98ac7f3f36de4cc21d743e9ad | source/Pictus/actionmap.h | source/Pictus/actionmap.h | #ifndef PICTUS_ACTIONMAP_H
#define PICTUS_ACTIONMAP_H
#include <boost/function.hpp>
#include <map>
namespace App {
template <typename _key, typename _param>
class ActionMapParam {
public:
typedef boost::function<void(_param)> Function_Type;
void AddAction(_key id, Function_Type f) {
m_map[id] = f;
}
bo... | #ifndef PICTUS_ACTIONMAP_H
#define PICTUS_ACTIONMAP_H
#include <functional>
#include <map>
namespace App {
template <typename _key, typename _param>
class ActionMapParam {
public:
typedef typename std::function<void(_param)> Function_Type;
void AddAction(_key id, Function_Type f) {
m_map[id] = f;
}
boo... | Use std::function instead of boost::function | Use std::function instead of boost::function
| C | mit | poppeman/Pictus,poppeman/Pictus,poppeman/Pictus |
7379cffcf2c992c22f948ce379d19061be4ef310 | src/shk/src/dummy_invocation_log.h | src/shk/src/dummy_invocation_log.h | #pragma once
#include "invocation_log.h"
namespace shk {
class DummyInvocationLog : public InvocationLog {
public:
void createdDirectory(const std::string &path) throw(IoError) {}
void removedDirectory(const std::string &path) throw(IoError) {}
void ranCommand(
const Hash &build_step_hash,
std::... | #pragma once
#include "invocation_log.h"
namespace shk {
class DummyInvocationLog : public InvocationLog {
public:
void createdDirectory(const std::string &path)
throw(IoError) override {}
void removedDirectory(const std::string &path)
throw(IoError) override {}
void ranCommand(
const Hash... | Use override keyword on methods in DummyInvocationLog | Use override keyword on methods in DummyInvocationLog
| C | apache-2.0 | per-gron/shuriken,per-gron/shuriken,per-gron/shuriken,per-gron/shuriken |
3a7eff1835fa925382f1130d6fdc34cf4d2966b1 | sys/boot/i386/libi386/biosmem.c | sys/boot/i386/libi386/biosmem.c | /*
* mjs copyright
*/
/*
* Obtain memory configuration information from the BIOS
*
* Note that we don't try too hard here; knowing the size of
* base memory and extended memory out to 16 or 64M is enough for
* the requirements of the bootstrap.
*
* We also maintain a pointer to the top of physical memory
* o... | /*
* mjs copyright
*/
/*
* Obtain memory configuration information from the BIOS
*
* Note that we don't try too hard here; knowing the size of
* base memory and extended memory out to 16 or 64M is enough for
* the requirements of the bootstrap.
*
* We also maintain a pointer to the top of physical memory
* o... | Fix typos.. The vector for "int 0x12" (get base mem) is not written in hex as "0x1a". :-) Fix a comment about the extended memory checks, that's int 0x15. | Fix typos.. The vector for "int 0x12" (get base mem) is not written in
hex as "0x1a". :-)
Fix a comment about the extended memory checks, that's int 0x15.
| 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 |
92fc5c6fd7c347abf8e8b63c9714981630b0612f | src/condor_ckpt/condor_syscalls.c | src/condor_ckpt/condor_syscalls.c | /*******************************************************************
**
** Manage system call mode and do remote system calls.
**
*******************************************************************/
#define _POSIX_SOURCE
#include <stdio.h>
#include "condor_syscalls.h"
static int SyscallMode;
int
SetSyscalls( int mo... | /*******************************************************************
**
** Manage system call mode and do remote system calls.
**
*******************************************************************/
#define _POSIX_SOURCE
#include <stdio.h>
#include "condor_syscalls.h"
static int SyscallMode;
int
SetSyscalls( int mo... | Add dummy "syscall()" routine for AIX so we can at least test compiling and linking. | Add dummy "syscall()" routine for AIX so we can at least test
compiling and linking.
| C | apache-2.0 | mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,clalancette/condor-dcloud,clalancette/condor-dcloud,djw8605/htcondor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,zhangzhehust/htcondor,htcondor/htcondor,clalancett... |
bb3f92d53d0051862d7351650c327cab0a6e1065 | unittests/core/main.c | unittests/core/main.c | #include <stdio.h>
#include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
#include "hashtable/hashtable.h"
#include "dll/dll.h"
int main(int argc, char *argv[]) {
CU_initialize_registry();
test_hashtable_init();
test_dll_init();
CU_basic_set_mode(CU_BRM_VERBOSE);
CU_basic_run_tests();
unsigned i... | #include <stdio.h>
#include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
#include "hashtable/hashtable.h"
#include "dll/dll.h"
int main(int argc, char *argv[]) {
CU_initialize_registry();
test_hashtable_init();
test_dll_init();
CU_basic_set_mode(CU_BRM_VERBOSE);
CU_basic_run_tests();
unsigned i... | Add success / error message | unittests: Add success / error message
| C | bsd-3-clause | steazzalini/saffire,Drarok/saffire,saffire/saffire,saffire/saffire,saffire/saffire,saffire/saffire,jaytaph/saffire,jaytaph/saffire,steazzalini/saffire,steazzalini/saffire,jaytaph/saffire,steazzalini/saffire,Drarok/saffire,jaytaph/saffire,jaytaph/saffire,steazzalini/saffire,saffire/saffire,Drarok/saffire,Drarok/saffire,... |
44757e8d5b49d27a1dce19039100b9e2d2196ec9 | DocFormats/DFCommon.h | DocFormats/DFCommon.h | // Copyright 2012-2014 UX Productivity Pty Ltd
//
// 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 ... | // Copyright 2012-2014 UX Productivity Pty Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | Add macros for common functions like strdup | Win32: Add macros for common functions like strdup
For some reason, Microsoft have an aversion to including functions like
strdup, open, read, write, and close that are part of the POSIX
standard, but still keep them present with a _ prefix.
This commit adds #defines for some of these functions so that we can
keep us... | C | apache-2.0 | corinthia/corinthia-docformats,apache/incubator-corinthia,corinthia/corinthia-docformats,apache/incubator-corinthia,corinthia/corinthia-docformats,apache/incubator-corinthia,apache/incubator-corinthia,apache/incubator-corinthia,apache/incubator-corinthia,corinthia/corinthia-docformats,corinthia/corinthia-docformats,apa... |
3f683f5b6f6e77a8453bc578c330d08f57284331 | src/vistk/image/instantiate.h | src/vistk/image/instantiate.h | /*ckwg +5
* Copyright 2011-2012 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <boost/cstdint.hpp>
#define VISTK_IMAGE_INSTANTIATE(cls) \
template class cl... | /*ckwg +5
* Copyright 2011-2012 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_IMAGE_INSTANTIATE_H
#define VISTK_IMAGE_INSTANTIATE_H
#include <boost/cst... | Split int from float instantiations | Split int from float instantiations
| C | bsd-3-clause | linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,mathstuf/sprokit,mathstuf/sprokit,mathstuf/sprokit,Kitware/sprokit |
e2e0d27071f3314068b5adf990d54dd978ce966b | libctest.h | libctest.h | #ifndef __testing__
#define __testing__
extern void ct_init(const char * module_name);
extern void ct_report(const char * test_name, int success);
extern void ct_terminate(void);
#endif
| #ifndef __ctest__
#define __ctest__
extern void ct_init(const char * module_name);
extern void ct_report(const char * test_name, int success);
extern void ct_print_stats(void);
extern void ct_terminate(void);
extern void ct_print_stats_and_terminate(void);
#endif
| Split statistics printing from memory cleanup | Split statistics printing from memory cleanup
Created ct_print_stats that outputs stats without freeing
memory, and ct_print_stats_and_terminate which does both, along with
ct_terminate which only frees memory.
| C | unlicense | Mikko-Finell/ctest |
d09c68789741abff55f51ac60a8600d9ee0264cc | tensorflow/core/platform/init_main.h | tensorflow/core/platform/init_main.h | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Clarify the need for calling tensorflow::port::InitMain() before using the rest of TensorFlow. | Clarify the need for calling tensorflow::port::InitMain() before using the rest of TensorFlow.
PiperOrigin-RevId: 219185259
| C | apache-2.0 | brchiu/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,dongjoon-hyun/tensorflow,ppwwyyxx/tensorflow,ghchinoy/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,asimshankar/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,karllessard/tenso... |
4d1a3e0b677dd00a5233ea50d944b11079468483 | ports/gtk-webkit/next-gtk-webkit.c | ports/gtk-webkit/next-gtk-webkit.c | /*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "server.h"
static void on_name_acquired(GDBusConnection *connection,
const gchar *name,
gpointer user_data) {
g_message("Starting platform port... | /*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "server.h"
static void on_name_acquired(GDBusConnection *connection,
const gchar *name,
gpointer user_data) {
g_message("Starting platform port... | Fix crash when hardware acceleration is disabled. | ports/gtk-webkit: Fix crash when hardware acceleration is disabled.
| C | bsd-3-clause | jmercouris/NeXT,jmercouris/NeXT |
184509531a7477bfa89bc075e3873a2a504a9448 | tests/gc_instrumentation/gc_noinst.c | tests/gc_instrumentation/gc_noinst.c | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
/*
* gc_noinst.c : Functions that shouldn't be instrumented by the compiler
*/
__thread unsigned int thread_suspend_if_needed_count = 0;
... | /*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* gc_noinst.c : Functions that shouldn't be instrumented by the compiler
*/
__thread unsigned int thread_suspend_if_needed_count = 0... | Fix the gc_instrumentation test on toolchain bots. | Fix the gc_instrumentation test on toolchain bots.
The compiler now inserts explicit references to the suspension flag, which then
fails to link when the flag is not present.
BUG=none
TEST=run_gc_instrumentation_test # with freshly uploaded toolchain
Review URL: http://codereview.chromium.org/8336018
git-svn-id: 72... | C | bsd-3-clause | nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client |
6cfdf1a8a98e6fd02227724fb6cab225671cb016 | iOS/FBDefines/FBMacros.h | iOS/FBDefines/FBMacros.h | /*
* Copyright (c) 2004-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#ifndef FB_SK_MACROS_H
#define FB_SK_MACROS_H
#define FB_LINK_REQUIRE_(NAME, UNIQUE)
#define FB_LINKABLE(NAME)
... | /*
* Copyright (c) 2004-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#ifndef FB_SK_MACROS_H
#define FB_SK_MACROS_H
#define FB_LINK_REQUIRE_(NAME)
#define FB_LINKABLE(NAME)
#define FB_LINK_... | Delete second argument to FB_LINK_REQUIRE_ | Delete second argument to FB_LINK_REQUIRE_
Summary: It is now always NAME.
Reviewed By: adamjernst
Differential Revision: D13577665
fbshipit-source-id: 9d9330fd17b7e214ef807760d0314c34bd06ebd5
| C | mit | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper |
4903f961a88751e684f703aaf08511cd5c486a84 | wangle/concurrent/FiberIOExecutor.h | wangle/concurrent/FiberIOExecutor.h | /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma onc... | /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma onc... | Move fibers out of experimental | Move fibers out of experimental
Summary: folly::fibers have been used by mcrouter for more than 2 years, so not really experimental.
Reviewed By: pavlo-fb
Differential Revision: D3320595
fbshipit-source-id: 68188f92b71a4206d57222993848521ca5437ef5
| C | apache-2.0 | facebook/wangle,facebook/wangle,facebook/wangle |
290c4c88ae6bf7ff5b9f89632f374017a8189e57 | include/JSON_checker.h | include/JSON_checker.h | /* JSON_checker.h */
#ifdef JSON_checker_EXPORTS
#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
#define JSON_CHECKER_PUBLIC_API __global
#elif defined __GNUC__
#define JSON_CHECKER_PUBLIC_API __attribute__ ((visibility("default")))
#elif defined(_MSC_VER)
#define JSON_CHECKER_PUBLIC_API __declspec(dllexport)
#else... | /* JSON_checker.h */
#pragma once
#ifdef JSON_checker_EXPORTS
#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
#define JSON_CHECKER_PUBLIC_API __global
#elif defined __GNUC__
#define JSON_CHECKER_PUBLIC_API __attribute__ ((visibility("default")))
#elif defined(_MSC_VER)
#define JSON_CHECKER_PUBLIC_API __declspec(dl... | Fix 'redundant redeclaration' warning due to missing include guard | Fix 'redundant redeclaration' warning due to missing include guard
Change-Id: Ifa8273d9e95ec4d16e52fec64db2d3ebd50e4e4b
Reviewed-on: http://review.couchbase.org/51690
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.c... | C | apache-2.0 | vmx/platform,vmx/platform |
e17efd0f000b06be56c1608e783e0718c8419076 | Hauth/HauthStreamsController.h | Hauth/HauthStreamsController.h | //
// HauteStreamsController.h
// Hauth
//
// Created by Rizwan Sattar on 11/7/15.
// Copyright © 2015 Rizwan Sattar. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HauthStreamsController : NSObject
@property (strong, nonatomic, nullable) NSInputStream *inputStream;
@property (strong, nonat... | //
// HauteStreamsController.h
// Hauth
//
// Created by Rizwan Sattar on 11/7/15.
// Copyright © 2015 Rizwan Sattar. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HauthStreamsController : NSObject
@property (strong, nonatomic, nullable) NSInputStream *inputStream;
@property (strong, nonat... | Fix warning for a missing nonnull | Fix warning for a missing nonnull
| C | mit | rsattar/Voucher,rsattar/Voucher,almas73/Voucher,almas73/Voucher |
95bc604b9b54258e3ea6d0bed280a4a0a1545d35 | base/message_pump_uv.h | base/message_pump_uv.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 BASE_MESSAGE_PUMP_UV_H_
#define BASE_MESSAGE_PUMP_UV_H_
#pragma once
#include "base/message_pump.h"
#include "base/time.h"
#include "base/bas... | // 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 BASE_MESSAGE_PUMP_UV_H_
#define BASE_MESSAGE_PUMP_UV_H_
#pragma once
#include "base/message_pump.h"
#include "base/time.h"
#include "base/bas... | Put destructor to private according to chromium style | Put destructor to private according to chromium style
| C | bsd-3-clause | littlstar/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,littlstar/chromium.src,littlstar/chromium.src,patrickm/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,patrickm/chromium.src,patrickm/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,patrickm/chrom... |
0792fc5f0e66031338143ee8ed46a91907b37f81 | PHPHub/Constants/APIConstant.h | PHPHub/Constants/APIConstant.h | //
// APIConstant.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"]
#define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier"
#if DEBUG
#define APIBaseURL ... | //
// APIConstant.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"]
#define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier"
#if DEBUG
#define APIBaseURL ... | Change scan to login guide url | Change scan to login guide url
| C | mit | Aufree/phphub-ios |
a1acae4dc417e3f138a4a924754f376fffed9ef0 | src/core/mutex.h | src/core/mutex.h | /**
* Mutex management astraction layer
*/
#ifndef EPYX_MUTEX_H
#define EPYX_MUTEX_H
#include <pthread.h>
#include "exception.h"
namespace Epyx
{
class Mutex
{
private:
pthread_mutex_t mutex;
public:
inline Mutex ()
{
int status = pthread_mutex_init (&(this->mute... | /**
* Mutex management astraction layer
*/
#ifndef EPYX_MUTEX_H
#define EPYX_MUTEX_H
#include <pthread.h>
#include "exception.h"
namespace Epyx
{
class Mutex
{
private:
pthread_mutex_t mutex;
// Disable copy construction and assignment.
Mutex (const Mutex&);
const Mutex ... | Disable copy on Mutex objects | Disable copy on Mutex objects
| C | apache-2.0 | Kangz/epyx,Kangz/epyx |
fb96a6bf54b67cf147fc1e8b95721be69b031a3c | Future/toImplement/macroClassInfo.c | Future/toImplement/macroClassInfo.c | #define GET_CLASS_INFO_EXTENDS(extends, ...) \
extends
#define GET_CLASS_INFO_IMPLEMENTS(x, y, implements...) \
implements
#define GET_CLASS_INFO_NB_IMPLEMENTS(x, nb, ...) \
nb
#define GET_CLASS_INFO(what, extends, nbInter, interfaces...) \
GET_CLASS_INFO_ ## what(extends, nbInter, ... | #define GET_CLASS_INFO_EXTENDS(extends, ...) \
extends
#define GET_CLASS_INFO_IMPLEMENTS(x, y, implements...) \
implements
#define GET_CLASS_INFO_NB_IMPLEMENTS(x, nb, ...) \
nb
#define CLASS_INFO_String(what) \
GET_CLASS_INFO_ ## what(Object, 2, toString, Serializable)
#d... | Improve new file in future | Improve new file in future
| C | mit | DaemonSnake/ObjectC,swac31/ObjectC,DaemonSnake/ObjectC,DaemonSnake/ObjectC,swac31/ObjectC,swac31/ObjectC |
8be3b4631892e10b18d0a4cc8cad6099c1f6803b | tensorflow/core/platform/regexp.h | tensorflow/core/platform/regexp.h | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Migrate ::StringPiece to absl::string_view. PiperOrigin-RevId: 222828687 | Migrate ::StringPiece to absl::string_view.
PiperOrigin-RevId: 222828687
| C | apache-2.0 | aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,apark263/tensorflow,jendap/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,apark263/tensorflow,arborh/tensorflow,theflofly/tensorflow,aam-at/tensorflow,jendap/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,cxx... |
42e4da04ad4740ab12e955f67c36b557d8a56169 | drake/solvers/LinearSystemSolver.h | drake/solvers/LinearSystemSolver.h | #pragma once
#include "drake/drakeOptimization_export.h"
#include "drake/solvers/MathematicalProgram.h"
namespace drake {
namespace solvers {
class DRAKEOPTIMIZATION_EXPORT LinearSystemSolver :
public MathematicalProgramSolverInterface {
public:
// This solver is implemented in various pieces depending on... | #pragma once
#include "drake/drakeOptimization_export.h"
#include "drake/solvers/MathematicalProgram.h"
namespace drake {
namespace solvers {
class DRAKEOPTIMIZATION_EXPORT LinearSystemSolver :
public MathematicalProgramSolverInterface {
public:
bool available() const override;
SolutionResult Solve(Opti... | Remove errant comment from copypasta | Remove errant comment from copypasta
| C | bsd-3-clause | billhoffman/drake,sheim/drake,sheim/drake,billhoffman/drake,billhoffman/drake,sheim/drake,billhoffman/drake,billhoffman/drake,sheim/drake,billhoffman/drake,sheim/drake,billhoffman/drake,sheim/drake,sheim/drake,billhoffman/drake,sheim/drake |
6d76222e1a57deaba1562ce3d3312b5f21888bd1 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k15"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k16"
| Update driver version to 5.02.00-k16 | [SCSI] qla4xxx: Update driver version to 5.02.00-k16
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
56163c233d35c20698a9de0d4f640bb02251a926 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k20"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k0"
| Update driver version to 5.03.00-k0 | [SCSI] qla4xxx: Update driver version to 5.03.00-k0
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
bb20ba06733ae80756392b75198de2b813bdd0eb | runtime/src/chplexit.c | runtime/src/chplexit.c | #include <stdio.h>
#include <stdlib.h>
#include "chplcomm.h"
#include "chplexit.h"
#include "chplmem.h"
#include "chplrt.h"
#include "gdb.h"
#undef exit
static void _chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status != 0) {
gdbShouldBreakHere();
}
if (all) {
exitChpl... | #include <stdio.h>
#include <stdlib.h>
#include "chplcomm.h"
#include "chplexit.h"
#include "chplmem.h"
#include "chplrt.h"
#include "gdb.h"
#undef exit
static void _chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status != 0) {
gdbShouldBreakHere();
}
if (all) {
_chpl_co... | Move a call to exitChplThreads() to after the final barrier | Move a call to exitChplThreads() to after the final barrier
When it was before the barrier, all nodes except 0 called it very early, but
it should only be called at the very end of execution.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@15138 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| C | apache-2.0 | sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,sungeuncho... |
b0c8228755e6d86a77f3a74999216b31feb44a6b | webrtc/experiments.h | webrtc/experiments.h | /*
* Copyright (c) 2013 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2013 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Remove no longer used SkipEncodingUnusedStreams. | Remove no longer used SkipEncodingUnusedStreams.
R=andrew@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/18829004
git-svn-id: 917f5d3ca488f358c4d40eaec14422cf392ccec9@6753 4adac7df-926f-26a2-2b94-8c16560cd09d
| C | bsd-3-clause | mwgoldsmith/libilbc,TimothyGu/libilbc,mwgoldsmith/ilbc,mwgoldsmith/ilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/ilbc,mwgoldsmith/libilbc,mwgoldsmith/ilbc,TimothyG... |
5ec3db45d6b637c695baa406b4128ef95edef02b | include/flatcc/portable/pstdalign.h | include/flatcc/portable/pstdalign.h | #ifndef PSTDALIGN_H
#define PSTDALIGN_H
#ifndef __alignas_is_defined
#ifndef __cplusplus
#if ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) || defined(__IBMC__)
#undef PORTABLE_C11_STDALIGN_MISSING
#define PORTABLE_C11_STDALIGN_MISSING
#endif
#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__)... | #ifndef PSTDALIGN_H
#define PSTDALIGN_H
#ifndef __alignas_is_defined
#ifndef __cplusplus
#if ((defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 7))) || defined(__IBMC__))
#undef PORTABLE_C11_STDALIGN_MISSING
#define PORTABLE_C11_STDALIGN_MISSING
#endif
#if (defined(__STDC__) && __STDC__ && ... | Check for GCC before checking version | Check for GCC before checking version
| C | apache-2.0 | skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,dvidelabs/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc |
e62b57a8e9fce54fc356a8379b22a065e510450b | deps/libressl-2.0.0/include/string.h | deps/libressl-2.0.0/include/string.h | #include_next <string.h>
#ifndef LIBCRYPTOCOMPAT_STRING_H
#define LIBCRYPTOCOMPAT_STRING_H
#include <sys/types.h>
#ifdef __sun
/* Some functions historically defined in string.h were placed in strings.h by
* SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris.
*/
#include <strings.h>
#endif
s... | #include_next <string.h>
#ifndef LIBCRYPTOCOMPAT_STRING_H
#define LIBCRYPTOCOMPAT_STRING_H
#include <sys/types.h>
#ifdef __sun
/* Some functions historically defined in string.h were placed in strings.h by
* SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris.
*/
#include <strings.h>
#endif
s... | Fix multiple def errors for strcasecmp && strncasecmp. | Fix multiple def errors for strcasecmp && strncasecmp.
| C | mpl-2.0 | DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi |
7a193d8267c2d21a9236c8950a8f5e896535d5cf | link-grammar/dict-file/word-file.h | link-grammar/dict-file/word-file.h | /*************************************************************************/
/* Copyright (c) 2004 */
/* Daniel Sleator, David Temperley, and John Lafferty */
/* Copyright (c) 2014 Linas Vepstas */
/* All rights re... | /*************************************************************************/
/* Copyright (c) 2004 */
/* Daniel Sleator, David Temperley, and John Lafferty */
/* Copyright (c) 2014 Linas Vepstas */
/* All rights re... | Add a comment that "changed" is unused. | Word_file_struct: Add a comment that "changed" is unused.
| C | lgpl-2.1 | linas/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,ampli/link-grammar,linas/link-grammar,ampli/link-grammar,ampli/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,linas/link-grammar,ampli/link-grammar,linas/link-grammar,ampli/link-grammar,ampli/link-grammar,opencog/link... |
9ba94e34a669269b923799cfba6cd12363d78be0 | src/libpcp/src/avahi.h | src/libpcp/src/avahi.h | /*
* Copyright (c) 2013 Red Hat.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distrib... | /*
* Copyright (c) 2013 Red Hat.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distrib... | Remove a duplicate definition of __pmServerPresence | Remove a duplicate definition of __pmServerPresence
| C | lgpl-2.1 | mbaldessari/pcp,tjanez/pcp,aeg-aeg/pcpfans,prasincs/pcp,mbaldessari/pcp,adfernandes/pcp,adfernandes/pcp,wuliming/pcp,andyvand/cygpcpfans,adfernandes/pcp,tjanez/pcp,edwardt/pcp,edwardt/pcp,wuliming/pcp,wuliming/pcp,aeg-aeg/pcpfans,aeg-aeg/pcpfans,mbaldessari/pcp,edwardt/pcp,mbaldessari/pcp,edwardt/pcp,adfernandes/pcp,ad... |
3238c448c6e26d7c26d2e9b070ef149d066cb6c2 | include/asm-arm/arch-iop3xx/timex.h | include/asm-arm/arch-iop3xx/timex.h | /*
* linux/include/asm-arm/arch-iop3xx/timex.h
*
* IOP3xx architecture timex specifications
*/
#include <linux/config.h>
#if defined(CONFIG_ARCH_IQ80321) || defined(CONFIG_ARCH_IQ31244)
#define CLOCK_TICK_RATE IOP321_TICK_RATE
#elif defined(CONFIG_ARCH_IQ80331) || defined(CONFIG_MACH_IQ80332)
#define CLOCK_TIC... | /*
* linux/include/asm-arm/arch-iop3xx/timex.h
*
* IOP3xx architecture timex specifications
*/
#include <linux/config.h>
#include <asm/hardware.h>
#if defined(CONFIG_ARCH_IQ80321) || defined(CONFIG_ARCH_IQ31244)
#define CLOCK_TICK_RATE IOP321_TICK_RATE
#elif defined(CONFIG_ARCH_IQ80331) || defined(CONFIG_MACH_IQ... | Fix to allow 2.6.15-rc2 to compile for IOP3xx boards | [ARM] 3173/1: Fix to allow 2.6.15-rc2 to compile for IOP3xx boards
Patch from Adam Brooks
Fixes an issue in 2.6.15-rc2 that prevented compilation of kernels for IOP3xx boards.
Signed-off-by: Adam Brooks <09361c82a05d8914f37dd480ca8e6220ace11550@intel.com>
Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... |
201ba3681790ed109be1502cfa9ad891de1e2097 | copasi/output/output.h | copasi/output/output.h | /* include files for the package output */
#include "CDatum.h"
#include "COutput.h"
#include "COutputLine.h"
#include "COutputList.h"
#include "COutputEvent.h"
| /* include files for the package output */
#include "CDatum.h"
#include "COutput.h"
#include "COutputLine.h"
#include "COutputList.h"
#include "COutputEvent.h"
#include "CNodeO.h"
#include "CUDFunction.h"
#include "CUDFunctionDB.h" | Add 3 new classes about User Defined Functions | Add 3 new classes about User Defined Functions
| C | artistic-2.0 | copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.