commit
stringlengths 40
40
| old_file
stringlengths 4
112
| new_file
stringlengths 4
112
| old_contents
stringlengths 0
2.05k
| new_contents
stringlengths 28
3.9k
| subject
stringlengths 17
736
| message
stringlengths 18
4.78k
| lang
stringclasses 1
value | license
stringclasses 13
values | repos
stringlengths 7
111k
|
---|---|---|---|---|---|---|---|---|---|
82c7b125af3eae9e65c1854c53fa1c8633508a2e | src/libsodium/include/sodium/export.h | src/libsodium/include/sodium/export.h |
#ifndef __SODIUM_EXPORT_H__
#define __SODIUM_EXPORT_H__
#ifndef __GNUC__
# ifdef __attribute__
# undef __attribute__
# endif
# define __attribute__(a)
#endif
#ifndef SODIUM_STATIC
# if defined(_MSC_VER)
# ifdef DLL_EXPORT
# define SODIUM_EXPORT __declspec(dllexport)
# else
# define SODIUM_EXPORT __declspec(dllimport)
# endif
# else
# if defined(__SUNPRO_C)
# define SODIUM_EXPORT __attribute__ __global
# elif defined(_MSG_VER)
# define SODIUM_EXPORT extern __declspec(dllexport)
# else
# define SODIUM_EXPORT __attribute__ ((visibility ("default")))
# endif
# endif
#endif
#endif
|
#ifndef __SODIUM_EXPORT_H__
#define __SODIUM_EXPORT_H__
#ifndef __GNUC__
# ifdef __attribute__
# undef __attribute__
# endif
# define __attribute__(a)
#endif
#ifdef SODIUM_STATIC
# define SODIUM_EXPORT
#else
# if defined(_MSC_VER)
# ifdef DLL_EXPORT
# define SODIUM_EXPORT __declspec(dllexport)
# else
# define SODIUM_EXPORT __declspec(dllimport)
# endif
# else
# if defined(__SUNPRO_C)
# define SODIUM_EXPORT __attribute__ __global
# elif defined(_MSG_VER)
# define SODIUM_EXPORT extern __declspec(dllexport)
# else
# define SODIUM_EXPORT __attribute__ ((visibility ("default")))
# endif
# endif
#endif
#endif
| Define an empty SODIUM_EXPORT if SODIUM_STATIC is defined. | Define an empty SODIUM_EXPORT if SODIUM_STATIC is defined.
| C | isc | netroby/libsodium,optedoblivion/android_external_libsodium,pyparallel/libsodium,SpiderOak/libsodium,Payshare/libsodium,SpiderOak/libsodium,donpark/libsodium,SpiderOak/libsodium,Payshare/libsodium,kytvi2p/libsodium,paragonie-scott/libsodium,eburkitt/libsodium,donpark/libsodium,Payshares/libsodium,paragonie-scott/libsodium,netroby/libsodium,akkakks/libsodium,kytvi2p/libsodium,optedoblivion/android_external_libsodium,mvduin/libsodium,JackWink/libsodium,JackWink/libsodium,pyparallel/libsodium,soumith/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,mvduin/libsodium,soumith/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,GreatFruitOmsk/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,optedoblivion/android_external_libsodium,akkakks/libsodium,HappyYang/libsodium,eburkitt/libsodium,GreatFruitOmsk/libsodium,JackWink/libsodium,zhuqling/libsodium,Payshares/libsodium,mvduin/libsodium,paragonie-scott/libsodium,rustyhorde/libsodium,pmienk/libsodium,GreatFruitOmsk/libsodium,pmienk/libsodium,HappyYang/libsodium,akkakks/libsodium,akkakks/libsodium,Payshares/libsodium,Payshare/libsodium,tml/libsodium,zhuqling/libsodium,eburkitt/libsodium,soumith/libsodium,tml/libsodium,rustyhorde/libsodium,rustyhorde/libsodium,donpark/libsodium,rustyhorde/libsodium,pyparallel/libsodium,HappyYang/libsodium,tml/libsodium,zhuqling/libsodium,pmienk/libsodium,SpiderOak/libsodium,netroby/libsodium,kytvi2p/libsodium |
42b8a1ed96ee13738b52cfe9ce9a48abc90c1e09 | Fountain/Common/FTMutableDataSource.h | Fountain/Common/FTMutableDataSource.h | //
// FTMutableDataSource.h
// Fountain
//
// Created by Tobias Kraentzer on 15.09.15.
// Copyright © 2015 Tobias Kräntzer. All rights reserved.
//
#import "FTDataSource.h"
@protocol FTMutableDataSource <FTDataSource>
#pragma mark Insertion
- (BOOL)canInsertItem:(id)item;
- (NSIndexPath *)insertItem:(id)item atProposedIndexPath:(NSIndexPath *)proposedIndexPath error:(NSError **)error;
#pragma mark Editing
- (BOOL)canEditItemAtIndexPath:(NSIndexPath *)indexPath;
#pragma mark Deletion
- (BOOL)canDeleteItemAtIndexPath:(NSIndexPath *)indexPath;
- (void)deleteItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((deprecated));
- (BOOL)deleteItemAtIndexPath:(NSIndexPath *)indexPath error:(NSError **)error;
@end
| //
// FTMutableDataSource.h
// Fountain
//
// Created by Tobias Kraentzer on 15.09.15.
// Copyright © 2015 Tobias Kräntzer. All rights reserved.
//
#import "FTDataSource.h"
@protocol FTMutableDataSource <FTDataSource>
#pragma mark Insertion
- (BOOL)canInsertItem:(id)item;
- (NSIndexPath *)insertItem:(id)item atProposedIndexPath:(NSIndexPath *)proposedIndexPath error:(NSError **)error;
#pragma mark Editing
- (BOOL)canEditItemAtIndexPath:(NSIndexPath *)indexPath;
#pragma mark Deletion
- (BOOL)canDeleteItemAtIndexPath:(NSIndexPath *)indexPath;
- (BOOL)deleteItemAtIndexPath:(NSIndexPath *)indexPath error:(NSError **)error;
@end
| Remove leftover method in protocol | Remove leftover method in protocol
| C | bsd-3-clause | anagromataf/Fountain,anagromataf/Fountain |
60f27ff87983ef1fe55095c6ff10ce7406e3f3bd | include/llvm/CodeGen/MachineLocation.h | include/llvm/CodeGen/MachineLocation.h | //===-- llvm/CodeGen/MachineLocation.h --------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// The MachineLocation class is used to represent a simple location in a machine
// frame. Locations will be one of two forms; a register or an address formed
// from a base address plus an offset.
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_MACHINELOCATION_H
#define LLVM_CODEGEN_MACHINELOCATION_H
namespace llvm {
class MachineLocation {
private:
bool IsRegister; // True if location is a register.
unsigned Register; // gcc/gdb register number.
int Offset; // Displacement if not register.
public:
MachineLocation()
: IsRegister(false)
, Register(0)
, Offset(0)
{}
MachineLocation(unsigned R)
: IsRegister(true)
, Register(R)
, Offset(0)
{}
MachineLocation(unsigned R, int O)
: IsRegister(false)
, Register(R)
, Offset(0)
{}
// Accessors
bool isRegister() const { return IsRegister; }
unsigned getRegister() const { return Register; }
int getOffset() const { return Offset; }
void setIsRegister(bool Is) { IsRegister = Is; }
void setRegister(unsigned R) { Register = R; }
void setOffset(int O) { Offset = O; }
void set(unsigned R) {
IsRegister = true;
Register = R;
Offset = 0;
}
void set(unsigned R, int O) {
IsRegister = false;
Register = R;
Offset = O;
}
};
} // End llvm namespace
#endif
| Support for locating of debug items in frames. | Support for locating of debug items in frames.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@26984 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap |
|
05f753b996a6ea712ab06787190fb3287610fc59 | include/clang/AST/TargetBuiltins.h | include/clang/AST/TargetBuiltins.h | //===--- TargetBuiltins.h - Target specific builtin IDs -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Anders Carlsson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_AST_TARGET_BUILTINS_H
#define LLVM_CLANG_AST_TARGET_BUILTINS_H
#include "clang/AST/Builtins.h"
namespace clang {
/// X86 builtins
namespace X86 {
enum {
LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "X86Builtins.def"
LastTSBuiltin
};
}
/// PPC builtins
namespace PPC {
enum {
LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "PPCBuiltins.def"
LastTSBuiltin
};
}
}
#endif
| //===--- TargetBuiltins.h - Target specific builtin IDs -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Anders Carlsson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_AST_TARGET_BUILTINS_H
#define LLVM_CLANG_AST_TARGET_BUILTINS_H
#include "clang/AST/Builtins.h"
/// X86 builtins
namespace X86 {
enum {
LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "X86Builtins.def"
LastTSBuiltin
};
}
/// PPC builtins
namespace PPC {
enum {
LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "PPCBuiltins.def"
LastTSBuiltin
};
}
#endif
| Revert change that broke the build. | Revert change that broke the build.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@44808 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang |
310f90109c4f4aeaaa50417e467ec7fc8c66d08b | chapter01/log.h | chapter01/log.h | #ifndef LOG_H
#define LOG_H
#include <time.h>
typedef struct data_struct {
time_t time;
char *string;
} data_t;
int addmsg(data_t data);
void clearlog(void);
char *getlog(void);
int savelog(char *filename);
#endif
| #ifndef LOG_H
#define LOG_H
#include <time.h>
typedef struct data_struct {
time_t time;
char *string;
} data_t;
int addmsg(data_t data);
void clearlog(void);
char *getlog(void);
int savelog(const char *filename);
#endif
| Make the char * parameter as const char * | Make the char * parameter as const char *
| C | bsd-2-clause | abhinav-upadhyay/unix-systems-programming |
1bc8e14e5857e509cda58858e101641a7c7ea4a4 | src/kernel/sched/strategy/sched_strategy.h | src/kernel/sched/strategy/sched_strategy.h | /**
* @file
* @brief
*
* @date 06.03.2013
* @author Anton Bulychev
*/
#ifndef KERNEL_THREAD_SCHED_STRATEGY_H_
#define KERNEL_THREAD_SCHED_STRATEGY_H_
#include <kernel/sched/affinity.h>
#include <kernel/sched/runq.h>
#include <kernel/sched/sched_timing.h>
#include <kernel/sched/sched_priority.h>
struct runq {
runq_t queue;
};
struct sched_attr {
runq_item_t runq_link;
affinity_t affinity;
sched_timing_t sched_time;
thread_priority_t thread_priority;
};
#endif /* KERNEL_THREAD_SCHED_STRATEGY_H_ */
| /**
* @file
* @brief
*
* @date 06.03.2013
* @author Anton Bulychev
*/
#ifndef KERNEL_THREAD_SCHED_STRATEGY_H_
#define KERNEL_THREAD_SCHED_STRATEGY_H_
#include <kernel/spinlock.h>
#include <kernel/sched/affinity.h>
#include <kernel/sched/runq.h>
#include <kernel/sched/sched_timing.h>
#include <kernel/sched/sched_priority.h>
struct runq {
runq_t queue;
spinlock_t lock;
};
struct sched_attr {
runq_item_t runq_link;
affinity_t affinity;
sched_timing_t sched_time;
thread_priority_t thread_priority;
};
#endif /* KERNEL_THREAD_SCHED_STRATEGY_H_ */
| Add lock to runq struct | sched: Add lock to runq struct | C | bsd-2-clause | Kefir0192/embox,embox/embox,Kakadu/embox,abusalimov/embox,Kefir0192/embox,gzoom13/embox,gzoom13/embox,gzoom13/embox,abusalimov/embox,vrxfile/embox-trik,Kakadu/embox,Kakadu/embox,mike2390/embox,abusalimov/embox,mike2390/embox,mike2390/embox,Kefir0192/embox,gzoom13/embox,vrxfile/embox-trik,Kakadu/embox,embox/embox,gzoom13/embox,abusalimov/embox,embox/embox,Kefir0192/embox,embox/embox,vrxfile/embox-trik,gzoom13/embox,mike2390/embox,Kefir0192/embox,vrxfile/embox-trik,abusalimov/embox,mike2390/embox,gzoom13/embox,vrxfile/embox-trik,embox/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,vrxfile/embox-trik,Kakadu/embox,Kakadu/embox,mike2390/embox,mike2390/embox,embox/embox,Kakadu/embox,vrxfile/embox-trik |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.