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 |
|---|---|---|---|---|---|---|---|---|---|
b5491f9029675cc364ae0e8d262f9d73c272bc3c | TDTHotChocolate/FoundationAdditions/NSDate+TDTComparisons.h | TDTHotChocolate/FoundationAdditions/NSDate+TDTComparisons.h | #import <Foundation/Foundation.h>
/**
Simple wrappers over `[NSDate compare:]` to make comparisons more readable.
*/
@interface NSDate (TDTComparisons)
- (BOOL)isEarlierThanDate:(NSDate *)date;
- (BOOL)isEarlierThanOrEqualToDate:(NSDate *)date;
@end
| #import <Foundation/Foundation.h>
/**
Wrappers over `[NSDate compare:]` to make comparisons more readable.
*/
@interface NSDate (TDTComparisons)
- (BOOL)isEarlierThanDate:(NSDate *)date;
- (BOOL)isEarlierThanOrEqualToDate:(NSDate *)date;
@end
| Remove unnecessary adjective from description | Remove unnecessary adjective from description
| C | bsd-3-clause | talk-to/Chocolate,talk-to/Chocolate |
5c488182daaf8e11789bd0a16528900ae4042dc2 | lib/Target/CBackend/CTargetMachine.h | lib/Target/CBackend/CTargetMachine.h | //===-- CTargetMachine.h - TargetMachine for the C backend ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | //===-- CTargetMachine.h - TargetMachine for the C backend ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | Fix a bug in Owen's checkin that broke the CBE on all non sparc v9 platforms. | Fix a bug in Owen's checkin that broke the CBE on all non sparc v9 platforms.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@28081 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-... |
0182fa2e384034fbbe1326fa887bb537c05d4525 | test/FrontendC/2010-05-18-asmsched.c | test/FrontendC/2010-05-18-asmsched.c | // RUN: %llvmgcc %s -c -O3 -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
// XFAIL: *
// XTARGET: x86,i386,i686
// r9 used to be clobbered before its value was moved to r10. 7993104.
void foo(int x, int y) {
// CHECK: bar
// CHECK: movq %r9, %r10
// CHECK: movq %rdi, %r9
// CHE... | // RUN: %llvmgcc %s -c -O3 -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
// r9 used to be clobbered before its value was moved to r10. 7993104.
void foo(int x, int y) {
// CHECK: bar
// CHECK: movq %r9, %r10
// CHECK: movq %rdi, %r9
// CHECK: bar
register int lr9 asm("r9") =... | Test passed on ppc, to my surprise; if it worked there it may work everywhere... | Test passed on ppc, to my surprise; if it worked
there it may work everywhere...
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@104053 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,... |
80e3504b8bd57974c86cafa9a9fbe0614c965bdf | stf/NBodylib/src/NBody/SwiftParticle.h | stf/NBodylib/src/NBody/SwiftParticle.h | /*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
#ifdef SWIFTINTERFACE
/**
* @brief The default struct alignment in SWIFT.
*/
#define SWIFT_STRUCT_ALIGNMENT 32
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMEN... | /*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
#ifdef SWIFTINTERFACE
namespace Swift
{
/* SWIFT enum of part types. Should match VELOCIraptor type values. */
enum part_type {
swift_type_gas = 0,
swift_type_dark_matter... | Use unaligned particle structure to save memory. | Use unaligned particle structure to save memory.
| C | mit | pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF |
56de4f7f2434bfb7b22f83bdb87744a8e6ca28de | MoPubSDK/MPConstants.h | MoPubSDK/MPConstants.h | //
// MPConstants.h
// MoPub
//
// Created by Nafis Jamal on 2/9/11.
// Copyright 2011 MoPub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#define MP_DEBUG_MODE 1
#define HOSTNAME @"ads.mopub.com"
#define HOSTNAME_FOR_TESTING @"testing.ads.mopub.com"
#define DEFAUL... | //
// MPConstants.h
// MoPub
//
// Created by Nafis Jamal on 2/9/11.
// Copyright 2011 MoPub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#if DEBUG
#define MP_DEBUG_MODE 1
#else
#define MP_DEBUG_MODE 0
#endif
#define HOSTNAME @"ads.mopub.com"
#define HOSTNA... | Disable MoPub logging for release builds. | Disable MoPub logging for release builds.
| C | bsd-3-clause | skillz/mopub-ios-sdk,skillz/mopub-ios-sdk,skillz/mopub-ios-sdk,skillz/mopub-ios-sdk |
aa9981d1d777855b79a4779e4b2cac3b3463023e | src/SimpleAmqpClient/Version.h | src/SimpleAmqpClient/Version.h | #ifndef SIMPLEAMQPCLIENT_VERSION_H
#define SIMPLEAMQPCLIENT_VERSION_H
/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MIT
*
* Copyright (c) 2013 Alan Antonuk
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"),... | #ifndef SIMPLEAMQPCLIENT_VERSION_H
#define SIMPLEAMQPCLIENT_VERSION_H
/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MIT
*
* Copyright (c) 2013 Alan Antonuk
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"),... | Increment version to v2.6 (take 2) | Increment version to v2.6 (take 2)
v2.5.1 was release to correct a problem with install directories on
Debian.
| C | mit | alanxz/SimpleAmqpClient,alanxz/SimpleAmqpClient |
2ec20f8408bfc92bb15b982f2b06456ca48c5074 | webkit/plugins/ppapi/ppp_pdf.h | webkit/plugins/ppapi/ppp_pdf.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#inclu... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#inclu... | Add missing unversioned interface-name macro for PPP_Pdf. | Add missing unversioned interface-name macro for PPP_Pdf.
BUG=107398
Review URL: http://codereview.chromium.org/9114010
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@116504 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,Chilledheart/chromium,ChromiumWebApps/chromium,Jonekee/chromium.src,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,markY... |
5113f1622d5c6b0d00975ada0e0827403383e3e8 | list.c | list.c | #include "list.h"
struct ListNode
{
ListNode* prev;
ListNode* next;
void* k;
};
struct List
{
ListNode* head;
};
List* List_Create(void)
{
List* l = (List *)malloc(sizeof(List));
l->head = NULL;
return l;
}
ListNode* ListNode_Create(void* k)
{
ListNode* n = (ListNode *)malloc(sizeof(ListNode));
n->prev = N... | #include "list.h"
struct ListNode
{
ListNode* prev;
ListNode* next;
void* k;
};
struct List
{
ListNode* head;
};
List* List_Create(void)
{
List* l = (List *)malloc(sizeof(List));
l->head = NULL;
return l;
}
ListNode* ListNode_Create(void* k)
{
ListNode* n = (ListNode *)malloc(sizeof(ListNode));
n->prev = N... | Add List Delete function implementation | Add List Delete function implementation
| C | mit | MaxLikelihood/CADT |
5bee973dd0c1ba2ba5b473398429c2f4c5f6447e | main.c | main.c | #include <stdio.h>
#include <stdlib.h>
int main(int argc,char* argv)
{
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc,char* argv)
{
FILE *ps;
char date_str[32]={0};
if((ps = popen("date +%Y%m%d-%H%M%S", "r")) == NULL )
{
printf("popen() error!\n");
return 1;
}
fgets(date_str, sizeof(date_str),ps);
printf("%s\n",date_str);
pclose(ps);
if((ps... | Add date and storage percent functions. | Add date and storage percent functions.
| C | mit | wigcheng/pi_apps |
6f49fe976a26bbf302f4a9c1ee82f11e0652417c | DKNightVersion/DKNightVersion.h | DKNightVersion/DKNightVersion.h | //
// DKNightVersion.h
// DKNightVerision
//
// Created by Draveness on 4/14/15.
// Copyright (c) 2015 Draveness. All rights reserved.
//
//! Project version string for MyFramework.
FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[];
//! Project version number for MyFramework.
FOUNDATION_EXPORT do... | //
// DKNightVersion.h
// DKNightVerision
//
// Created by Draveness on 4/14/15.
// Copyright (c) 2015 Draveness. All rights reserved.
//
//! Project version string for MyFramework.
FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[];
//! Project version number for MyFramework.
FOUNDATION_EXPORT do... | Use " instead of angle bracket | Use " instead of angle bracket
| C | mit | Draveness/DKNightVersion,Draveness/DKNightVersion,Draveness/DKNightVersion,ungacy/DKNightVersion,ungacy/DKNightVersion,ungacy/DKNightVersion |
4f1646b404a3ee061679b47e5f284605866a5e74 | gui/webdisplay/inc/LinkDef.h | gui/webdisplay/inc/LinkDef.h | /*************************************************************************
* Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing... | /*************************************************************************
* Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing... | Add +: use the proper streamer. | Add +: use the proper streamer.
| C | lgpl-2.1 | root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,karies/root,karies/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,karies/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,olifre/root,root-mirror/root,kari... |
ce37c4c11c5fb76788b2b6a04c51107941b6f518 | src/main.c | src/main.c | //
// main.c
// converter - Command-line number converter to Mac OS
//
// Created by Paulo Ricardo Paz Vital on 23/05/15.
// Copyright (c) 2015 pvital Solutions. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
void usage(void) {
printf("usage: convert decimal_number \n");
}
... | //
// main.c
// converter - Command-line number converter to Mac OS
//
// Created by Paulo Ricardo Paz Vital on 23/05/15.
// Copyright (c) 2015 pvital Solutions. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
void usage(void) {
printf("usage: convert decimal_number \n");
}
... | Add decimal to binary conversion. | Add decimal to binary conversion.
Add function to convert decimal to binary.
Signed-off-by: Paulo Vital <56235ab4620bb40c4cfee535b2e93f80c23e9ac8@gmail.com>
| C | mit | pvital/converter |
0d0f6c5793f01a6ef27140ec881d2f5605d5260e | src/main.h | src/main.h | #ifndef _MAIN_H_
#define _MAIN_H_
#define PROGRAM_MAJOR_VERSION 0
#define PROGRAM_MINOR_VERSION 0
#define PROGRAM_PATCH_VERSION 6
#endif /* _MAIN_H_ */
| #ifndef _MAIN_H_
#define _MAIN_H_
#define PROGRAM_MAJOR_VERSION 0
#define PROGRAM_MINOR_VERSION 1
#define PROGRAM_PATCH_VERSION 0
#endif /* _MAIN_H_ */
| Increase game version to 0.1.0. | Increase game version to 0.1.0.
| C | mit | zear/HomingFever |
b076232c0cf6240f09f28b89bacfafd09cee61f9 | src/user.c | src/user.c | task usercontrol(){
int DY, DT;
bool armsLocked = false;
while(true){
//Driving
DY = threshold(PAIRED_CH2, 15) + (PAIRED_BTN8U * MAX_POWER) - (PAIRED_BTN8D * MAX_POWER);
DT = threshold(PAIRED_CH1, 15) + (PAIRED_BTN8R * MAX_POWER) - (PAIRED_BTN8L * MAX_POWER);
drive(DY, DT);
//Pistons (toggle)
if(PAIRED... | task usercontrol(){
int DY, DT;
bool armsLocked = false;
while(true){
//Driving
DY = threshold(PAIRED_CH2, 15) + (PAIRED_BTN8U * MAX_POWER) - (PAIRED_BTN8D * MAX_POWER);
DT = threshold(PAIRED_CH1, 15) + (PAIRED_BTN8R * MAX_POWER) - (PAIRED_BTN8L * MAX_POWER);
drive(DY, DT);
//Pistons (toggle)
if(PAIRED... | Swap back the arm and intake buttons | Swap back the arm and intake buttons
Erik didn't like the change since he was very used to the old
layout. It made sense at the time to put the arm joystick and
buttons on the same side, but I guess not.
| C | mit | 18moorei/code-red-in-the-zone |
c5108966b7554cacde02ea0b141e54639e1dcd1d | src/stdafx.h | src/stdafx.h |
#pragma once
// std headers
#include <string>
#include <vector>
#include <set>
#include <functional>
// windows header
#ifdef _WIN32
#define NOMINMAX
#include <windows.h>
#endif
// common ogre headers
#include "OgrePrerequisites.h"
#include "OgreString.h"
#include "OgreRoot.h"
#include "OgreRenderWindow.h"
#includ... |
#pragma once
// std headers
#include <string>
#include <vector>
#include <functional>
// windows header
#ifdef _WIN32
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
// common ogre headers
#include "OgrePrerequisites.h"
#include "OgreString.h"
#include "OgreRoot.h"
#include "OgreRenderWind... | Define WIN32_LEAN_AND_MEAN to reduce the pre-compiled header size | Define WIN32_LEAN_AND_MEAN to reduce the pre-compiled header size
| C | mit | chchwy/ogre-v2-mesh-viewer,chchwy/ogre-v2-mesh-viewer |
3423a5f810efdc0125b4a25e74ecb5c6a4b31e5f | src/main.c | src/main.c | /*
* main.c
*
* Created: 4/3/2014 8:36:43 AM
* Author: razius
*/
#include <avr/io.h>
#include <avr/interrupt.h>
int main(void){
// Clear Timer on Compare Match (CTC) Mode with OCRnA as top.
TCCR4B |= _BV(WGM42);
// Toggle OCnA on compare match
TCCR4A |= _BV(COM4A0);
// clk / (2 * prescaler... | /*
* main.c
*
* Created: 4/3/2014 8:36:43 AM
* Author: razius
*/
#include <avr/io.h>
#include <avr/interrupt.h>
uint8_t SECONDS = 0x00;
int main(void){
// Clear Timer on Compare Match (CTC) Mode with OCRnA as top.
TCCR1A |= _BV(WGM12);
// clk / (2 * prescaler * (1 + OCRnA))
OCR1AH = 0x7A;
... | Increment seconds and show them using LED's. | Increment seconds and show them using LED's.
| C | mit | razius/nixie-clock,razius/nixie-clock |
36a20e62b3a48ba52633f9009010fc3547263026 | src/main.c | src/main.c | /*
* main.c - where it all begins
*/
#include <std.h>
#include <io.h>
#include <vt100.h>
#include <clock.h>
void function( ) {
kprintf_string( "Interrupt!\n" );
vt_flush();
__asm__ ( "movs pc, lr" );
}
int main(int argc, char* argv[]) {
UNUSED(argc);
UNUSED(argv);
uart_init();
vt_blan... | /*
* main.c - where it all begins
*/
#include <std.h>
#include <io.h>
#include <vt100.h>
#include <clock.h>
void function( ) {
kprintf_string( "Interrupt!\n" );
vt_flush();
__asm__ ( "movs pc, lr" );
}
int main(int argc, char* argv[]) {
UNUSED(argc);
UNUSED(argv);
uart_init();
vt_blan... | Use build number instead of version number in startup message | Use build number instead of version number in startup message | C | mit | ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme |
b0699787c413baf93974a2b39f89117acfe55780 | src/sys_io.h | src/sys_io.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)
*/
#define STDOUT_FD 1
#define STDERR_FD 2
#define FIRST_USER_FD 3
#define FIL... | /*
* 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 __LIBSEL4MUSLCCAMKES_H__
#define __LIBSEL4MUSLCCAMKES_H__
#include <utils/p... | Add include guard and retrieve PAGE_SIZE_4K definition from libutils | Add include guard and retrieve PAGE_SIZE_4K definition from libutils
| C | bsd-2-clause | smaccm/camkes-tool,smaccm/camkes-tool,smaccm/camkes-tool,smaccm/camkes-tool |
6692b58d8121ebc82f4f8625b41d52261e37a1e9 | src/main.c | src/main.c | /*
* Copyright 2019 Andrey Terekhov, Victor Y. Fadeev
*
* 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 applicabl... | /*
* Copyright 2019 Andrey Terekhov, Victor Y. Fadeev
*
* 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 applicabl... | Add default flag for Xcode usage | Add default flag for Xcode usage
| C | apache-2.0 | andrey-terekhov/RuC,andrey-terekhov/RuC,andrey-terekhov/RuC |
b99a32d6435babff2f8dec6498252f088ea176cc | src/uwatec.h | src/uwatec.h | #ifndef UWATEC_H
#define UWATEC_H
#include "device.h"
#define UWATEC_SUCCESS 0
#define UWATEC_ERROR -1
#define UWATEC_ERROR_IO -2
#define UWATEC_ERROR_MEMORY -3
#define UWATEC_ERROR_PROTOCOL -4
#define UWATEC_ERROR_TIMEOUT -5
#include "uwatec_aladin.h"
#include "uwatec_memomouse.h"
#include... | #ifndef UWATEC_H
#define UWATEC_H
#include "uwatec_aladin.h"
#include "uwatec_memomouse.h"
#include "uwatec_smart.h"
#endif /* UWATEC_H */
| Remove all remaining pieces of the legacy api from the Uwatec code. | Remove all remaining pieces of the legacy api from the Uwatec code.
| C | lgpl-2.1 | Poltsi/libdivecomputer-vms,josh-wambua/libdivecomputer,andysan/libdivecomputer,andysan/libdivecomputer,henrik242/libdivecomputer,glance-/libdivecomputer,venkateshshukla/libdivecomputer,glance-/libdivecomputer,henrik242/libdivecomputer,josh-wambua/libdivecomputer,venkateshshukla/libdivecomputer |
37fa82f138043b8503c2a05b5959145da46b5062 | Alc/evtqueue.h | Alc/evtqueue.h | #ifndef AL_EVTQUEUE_H
#define AL_EVTQUEUE_H
#include "AL/al.h"
typedef struct MidiEvent {
ALuint time;
ALuint event;
ALuint param[2];
} MidiEvent;
typedef struct EvtQueue {
MidiEvent *events;
ALsizei pos;
ALsizei size;
ALsizei maxsize;
} EvtQueue;
void InitEvtQueue(EvtQueue *queue);
void... | #ifndef AL_EVTQUEUE_H
#define AL_EVTQUEUE_H
#include "AL/al.h"
#include "alMain.h"
typedef struct MidiEvent {
ALuint64 time;
ALuint event;
ALuint param[2];
} MidiEvent;
typedef struct EvtQueue {
MidiEvent *events;
ALsizei pos;
ALsizei size;
ALsizei maxsize;
} EvtQueue;
void InitEvtQueue... | Use a 64-bit uint for MIDI event times | Use a 64-bit uint for MIDI event times
| C | lgpl-2.1 | alexxvk/openal-soft,mmozeiko/OpenAL-Soft,irungentoo/openal-soft-tox,franklixuefei/openal-soft,Wemersive/openal-soft,BeamNG/openal-soft,franklixuefei/openal-soft,aaronmjacobs/openal-soft,aaronmjacobs/openal-soft,arkana-fts/openal-soft,BeamNG/openal-soft,arkana-fts/openal-soft,Wemersive/openal-soft,alexxvk/openal-soft,mm... |
176939282e3097fd8b597ca6dcfdbc733a2ce1b0 | vm/scope.h | vm/scope.h | #ifndef SCOPE_DEF
#define SCOPE_DEF
#include "hashmap.h"
#include <stdint.h>
typedef struct Scope
{
V file;
V func;
V parent;
int index;
bool is_func_scope;
bool is_error_handler;
uint32_t linenr;
uint32_t* pc;
struct HashMap hm;
} Scope;
typedef struct
{
Value v;
Scope sc;
} ValueScope;
#define MAXCACH... | #ifndef SCOPE_DEF
#define SCOPE_DEF
#include "hashmap.h"
#include <stdint.h>
typedef struct Scope
{
V file;
V func;
V parent;
int index;
uint32_t is_func_scope : 4;
uint32_t is_error_handler : 4;
uint32_t linenr : 24;
uint32_t* pc;
struct HashMap hm;
} Scope;
typedef struct
{
Value v;
Scope sc;
} ValueSc... | Make Scope 8 bytes smaller | Make Scope 8 bytes smaller
| C | isc | gvx/deja,gvx/deja,gvx/deja |
85786354597a8c195bcabdf264d5b9046fa51a99 | zuzeelik.c | zuzeelik.c | #include <stdio.h>
static char input[2048]; //declaring buffer for user input, size 2048
int main(int argc, char** argv) {
puts("zuzeelik Version 0.0.0-0.0.1");
puts("Press Ctrl+c to Exit \n");
/* Starting REPL */
while(1){
/* output from the prompt*/
fputs("zuzeelik> ", stdout);
/* read a line of th... | #include <stdio.h>
#include <stdlib.h>
#include <editline/readline.h>
#include <editline/history.h>
int main(int argc, char** argv) {
puts("zuzeelik [version: v0.0.0-0.0.2]");
puts("Press Ctrl+C to Exit \n");
/* Starting REPL */
while(1){
/* output from the prompt*/
char* input = readline("zuzeelik> ");
... | Add support for line editing and arrow keys | Add support for line editing and arrow keys
Added support for line editing in REPL and also added support for
arrow keys.
| C | bsd-3-clause | shadow-stranger/zuzeelik,Mr-Kumar-Abhishek/zuzeelik |
c1870a489c914b4d32c561dc59991dd05768488f | src/tokenizer/string_piece.h | src/tokenizer/string_piece.h | // This file is part of MorphoDiTa.
//
// Copyright 2013 by Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// MorphoDiTa is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public Li... | // This file is part of MorphoDiTa.
//
// Copyright 2013 by Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// MorphoDiTa is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public Li... | Add forgotten comment on namespace closing. | Add forgotten comment on namespace closing.
| C | mpl-2.0 | ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita |
6b2564c5d968657a35025239ee681f288d83be41 | test/Sema/vla.c | test/Sema/vla.c | // RUN: clang %s -verify -fsyntax-only
int test1() {
typedef int x[test1()]; // vla
static int y = sizeof(x); // expected-error {{not constant}}
}
// PR2347
void f (unsigned int m)
{
extern int e[2][m];
e[0][0] = 0;
}
| // RUN: clang %s -verify -fsyntax-only
int test1() {
typedef int x[test1()]; // vla
static int y = sizeof(x); // expected-error {{not constant}}
}
// PR2347
void f (unsigned int m)
{
int e[2][m];
e[0][0] = 0;
}
| Fix this test so that it's valid; the point is to test for the crash, not the missing diagnostic. | Fix this test so that it's valid; the point is to test for the crash,
not the missing diagnostic.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@51365 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
1b64723ef89dc74d6b6079332dfc1a6aacf81a5a | timeout_getaline.c | timeout_getaline.c | #include "leafnode.h"
#include "ln_log.h"
#include <signal.h>
#include <setjmp.h>
#include <unistd.h>
static jmp_buf to;
static void
timer(int sig)
{
(void)sig;
longjmp(to, 1);
}
/*
* call getaline with timeout
*/
char *
timeout_getaline(FILE * f, int timeout)
{
char *l;
if (setjmp(to)) {
ln_log(... | #include "leafnode.h"
#include "ln_log.h"
#include <signal.h>
#include <setjmp.h>
#include <unistd.h>
static jmp_buf to;
static void
timer(int sig)
{
(void)sig;
longjmp(to, 1);
}
/*
* call getaline with timeout
*/
char *
timeout_getaline(FILE * f, int timeout)
{
char *l;
if (setjmp(to)) {
ln_log(... | Change timeout from 2 to 5 minutes, Jörg Dietrich had suggested to Change timeout from 2 to 5 minutes, Jörg Dietrich had suggested to increase it to 3 minutes, to correspond with current NNTP drafts. | Change timeout from 2 to 5 minutes, Jörg Dietrich had suggested to
Change timeout from 2 to 5 minutes, Jörg Dietrich had suggested to
increase it to 3 minutes, to correspond with current NNTP drafts.
| C | lgpl-2.1 | BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode |
c11b389556d4feec943ced7eeb3125a598d3bba4 | test/Driver/darwin-eabi.c | test/Driver/darwin-eabi.c | // RUN: %clang -arch armv7 -target thumbv7-apple-darwin-eabi -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-AAPCS
// RUN: %clang -arch armv7 -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-APCS
// RUN: %clang -arch armv7s -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-APCS
// RUN: %clang -arch armv7s -tar... | // RUN: %clang -arch armv7 -target thumbv7-apple-darwin-eabi -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-AAPCS
// RUN: %clang -arch armv7s -target thumbv7-apple-ios -### -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-APCS
// RUN: %clang -arch armv7s -target thumbv7-apple-darwin -### -c %s 2>&1 | FileCheck %s --... | Fix test to work on Linux hosts by specifying triple. | Fix test to work on Linux hosts by specifying triple.
Thought I'd checked that before
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@191901 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
c665d9cee82b12dc9ab1eff25d445eb74a6e5863 | test/CodeGen/thinlto-debug-pm.c | test/CodeGen/thinlto-debug-pm.c | // Test to ensure -fdebug-pass-manager works when invoking the
// ThinLTO backend path with the new PM.
// RUN: %clang -O2 %s -flto=thin -c -o %t.o
// RUN: llvm-lto -thinlto -o %t %t.o
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O2 -o %t2.o -x ir %t.o -fthinlto-index=%t.thinlto.bc -fdebug-pass-manage... | // Test to ensure -fdebug-pass-manager works when invoking the
// ThinLTO backend path with the new PM.
// REQUIRES: x86-registered-target
// RUN: %clang -O2 %s -flto=thin -c -o %t.o
// RUN: llvm-lto -thinlto -o %t %t.o
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O2 -o %t2.o -x ir %t.o -fthinlto-inde... | Add x86-registered-target to REQUIRES for new test | Add x86-registered-target to REQUIRES for new test
Should fix test added in r317951.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@317952 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
cb63e07c588dc7030f3f41812dea73f3571e449a | test/Frontend/diagnostic-name.c | test/Frontend/diagnostic-name.c | // RUN: %clang -Wunused-parameter -fdiagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 1
// RUN: %clang -Wunused-parameter -fno-diagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 0
int main(int argc, char *argv[]) {
return argc;
}
| // RUN: %clang -fsyntax-only -Wunused-parameter -fdiagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 1
// RUN: %clang -fsyntax-only -Wunused-parameter -fno-diagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 0
int main(int argc, char *argv[]) {
return argc;
}
| Stop leaving a.out files around. | Stop leaving a.out files around.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@131396 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
88cd7aa7965d5a7bade3f943e1419cf0c59d225b | config_vc.h | config_vc.h | #ifndef HMLIB_CONFIGVC_INC
#define HMLIB_CONFIGVC_INC 101
#
/*===config_vc===
VisualStudio C/C++の設定用マクロ
config_vc_v1_01/121204 hmIto
拡張子をhppからhに変更
インクルードガードマクロの不要なアンダーバーを消去
*/
#ifdef _MSC_VER
# //windows.hのmin,maxを使わせない
# ifndef NOMINMAX
# define NOMINMAX
# endif
# //古いunsafeな関数群使用による警告回避
# define _CRT_SECURE_NO_W... | #ifndef HMLIB_CONFIGVC_INC
#define HMLIB_CONFIGVC_INC 101
#
/*===config_vc===
VisualStudio C/C++の設定用マクロ
config_vc_v1_01/121204 hmIto
拡張子をhppからhに変更
インクルードガードマクロの不要なアンダーバーを消去
*/
#ifdef _MSC_VER
# //windows.hのmin,maxを使わせない
# ifndef NOMINMAX
# define NOMINMAX
# endif
# //古いunsafeな関数群使用による警告回避
# define _CRT_SECURE_NO_W... | Add C++17 depricated error ignore tag. | Add C++17 depricated error ignore tag.
| C | mit | hmito/hmLib,hmito/hmLib |
a7089ed884ed2227fc45671eda3fe979e43545b9 | tests/files/transpiler/base_class.h | tests/files/transpiler/base_class.h | #ifndef BASE_CLASS_H_
#define BASE_CLASS_H_
class BaseAutoFunction {
public:
bool Init(CitrusRobot *robot, std::vector<void *>);
bool Periodic(CitrusRobot *robot, std::vector<void *>);
private:
//none
};
#endif
| #ifndef BASE_CLASS_H_
#define BASE_CLASS_H_
class CitrusRobot;
class BaseAutoFunction {
public:
bool Init(CitrusRobot *robot, std::vector<void *>);
bool Periodic(CitrusRobot *robot, std::vector<void *>);
private:
//none
};
#endif
| Fix compilation issue in tests by forward-declaring CitrusRobot | Fix compilation issue in tests by forward-declaring CitrusRobot
| C | mit | WesleyAC/lemonscript-transpiler,WesleyAC/lemonscript-transpiler,WesleyAC/lemonscript-transpiler |
60288500c0eca5d620a81637bc4d0d7e290befd4 | lib/qtcamimagemode.h | lib/qtcamimagemode.h | // -*- c++ -*-
#ifndef QT_CAM_IMAGE_MODE_H
#define QT_CAM_IMAGE_MODE_H
#include "qtcammode.h"
#include <gst/pbutils/encoding-profile.h>
class QtCamDevicePrivate;
class QtCamImageModePrivate;
class QtCamImageSettings;
class QtCamImageMode : public QtCamMode {
Q_OBJECT
public:
QtCamImageMode(QtCamDevicePrivate *... | // -*- c++ -*-
#ifndef QT_CAM_IMAGE_MODE_H
#define QT_CAM_IMAGE_MODE_H
#include "qtcammode.h"
#include <gst/pbutils/encoding-profile.h>
class QtCamDevicePrivate;
class QtCamImageModePrivate;
class QtCamImageSettings;
class QtCamImageMode : public QtCamMode {
Q_OBJECT
public:
QtCamImageMode(QtCamDevicePrivate *... | Remove imageSaved() signal as it is old code. | Remove imageSaved() signal as it is old code.
| C | lgpl-2.1 | mlehtima/cameraplus,mer-hybris-kis3/cameraplus,mer-hybris-kis3/cameraplus,alinelena/cameraplus,mer-hybris-kis3/cameraplus,alinelena/cameraplus,mlehtima/cameraplus,alinelena/cameraplus,foolab/cameraplus,mer-hybris-kis3/cameraplus,foolab/cameraplus,foolab/cameraplus,mlehtima/cameraplus,foolab/cameraplus,mlehtima/camerapl... |
43e98256254baeacdbc6a9af90385ec68c1cda3d | include/rocksdb/utilities/convenience.h | include/rocksdb/utilities/convenience.h | // Copyright (c) 2014, 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 once
#include "utiliti... | // Copyright (c) 2014, 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 once
// #include "util... | Fix mongo build -take 2 | Fix mongo build -take 2
Summary: quick fix for now. will figure out a better fix soon
Test Plan: build
Reviewers: sdong, igor, kradhakrishnan
Subscribers: dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D42381
| C | bsd-3-clause | flabby/rocksdb,wenduo/rocksdb,vmx/rocksdb,kaschaeffer/rocksdb,anagav/rocksdb,biddyweb/rocksdb,JohnPJenkins/rocksdb,SunguckLee/RocksDB,wskplho/rocksdb,anagav/rocksdb,JohnPJenkins/rocksdb,luckywhu/rocksdb,RyanTech/rocksdb,anagav/rocksdb,norton/rocksdb,dkorolev/rocksdb,JackLian/rocksdb,JohnPJenkins/rocksdb,RyanTech/rocksd... |
0829a30f266284d58acfc0e03f37d08be733ae02 | test/CFrontend/2004-11-27-StaticFunctionRedeclare.c | test/CFrontend/2004-11-27-StaticFunctionRedeclare.c | // RUN: %llvmgcc -c -emit-llvm 2004-11-27-StaticFunctionRedeclare.c -o - | \
// RUN: opt -std-compile-opts | llvm-dis | not grep {declare int.*func}
// There should not be an unresolved reference to func here. Believe it or not,
// the "expected result" is a function named 'func' which is internal and
// reference... | // RUN: %llvmgcc -c -emit-llvm %s -o - | \
// RUN: opt -std-compile-opts | llvm-dis | not grep {declare int.*func}
// There should not be an unresolved reference to func here. Believe it or not,
// the "expected result" is a function named 'func' which is internal and
// referenced by bar().
// This is PR244
sta... | Use %s, not explicit name. | Use %s, not explicit name.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@36136 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-... |
35a8f748863cccdbd2b97c4cbbfc57c3757dfedc | demo/main.c | demo/main.c | #include <stdio.h>
#include "TM4C123GH6PM.h"
#include "lm4f120h5qr.h"
#include "interrupt.h"
#include "larson.h"
#include "led.h"
#include "UART.h"
int main(void){
UART_Init(); // Initialize UART before outputting...
printf("%s\n", "Initializing...");
LED_Init(); // Initialize LEDs on GPIOF
Larson... | #include <stdio.h>
#include "TM4C123GH6PM.h"
#include "lm4f120h5qr.h"
#include "interrupt.h"
#include "larson.h"
#include "led.h"
#include "UART.h"
int main(void){
UART_Init(); // Initialize UART before outputting...
printf("%s\n", "Initializing...");
LED_Init(); // Initialize LEDs on GPIOF
Larson... | Add unique and obvious register values for AAPCS demo. | Add unique and obvious register values for AAPCS demo.
| C | mit | eigenholser/embedded_programming_intro,eigenholser/embedded_programming_intro |
ea1cb775db1666406796f506da0fa98e21dccbad | experiment.c | experiment.c | #include "stdio.h"
#include "stdlib.h"
#define TRIALS 4
#define MATRIX_SIZE 2048
short A[MATRIX_SIZE][MATRIX_SIZE],
B[MATRIX_SIZE][MATRIX_SIZE],
C[MATRIX_SIZE][MATRIX_SIZE] = {{0}};
int main(int argc, char* argv[])
{
// Initalize array A and B with '1's
for (int i = 0; i < MATRIX_SIZE; ++i)
for (int... | #include "stdio.h"
#include "stdlib.h"
#include "sys/time.h"
#define TRIALS 4
#define MATRIX_SIZE 2048
short A[MATRIX_SIZE][MATRIX_SIZE],
B[MATRIX_SIZE][MATRIX_SIZE],
C[MATRIX_SIZE][MATRIX_SIZE] = {{0}};
int main(int argc, char* argv[])
{
// Initalize array A and B with '1's
for (int i = 0; i < MATRIX... | Add timing and formating for times | Add timing and formating for times
| C | mit | EvanPurkhiser/CS-Matrix-Multiplication |
7aa8ff477b577c147adc723c6f3029b4d01a544f | example/linux/main.c | example/linux/main.c | /* INCLUDES */
#include <stdio.h>
#include "commands.h"
#define MAX_MSG_LENGTH 200 //For the receiving frame... (circular buffer)
int main(int argc, char *argv[]) {
char input_buffer[MAX_MSG_LENGTH];
int input_argc;
char *input_argv[CMD_MAX_N_OPTIONS+CMD_MAX_N_OPTIONS_WITH_ARGS];
... | /* INCLUDES */
#include <stdio.h>
#include "commands.h"
#define MAX_MSG_LENGTH 200 //For the receiving frame... (circular buffer)
int main(int argc, char *argv[]) {
char input_buffer[MAX_MSG_LENGTH];
int input_argc;
char *input_argv[CMD_MAX_N_OPTIONS+CMD_MAX_N_OPTIONS_WITH_ARGS];
... | Solve a bug with line endings | Solve a bug with line endings
| C | mit | guyikcgg/UniversalShellBuilder,guyikcgg/UniversalShellBuilder |
afc9778e858677d6cbadfbe80cbc2e4d00e96bec | SSPSolution/SSPSolution/DoorEntity.h | SSPSolution/SSPSolution/DoorEntity.h | #ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H
#define SSPAPPLICATION_ENTITIES_DOORENTITY_H
#include "Entity.h"
#include <vector>
class DoorEntity :
public Entity
{
private:
/*struct ElementState {
int entityID;
EVENT desiredState;
bool desiredStateReached;
};
std::vector<ElementState> m_elementStates;*/
... | #ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H
#define SSPAPPLICATION_ENTITIES_DOORENTITY_H
#include "Entity.h"
#include <vector>
class DoorEntity :
public Entity
{
private:
struct ElementState {
int entityID;
EVENT desiredState;
bool desiredStateReached;
};
std::vector<ElementState> m_elementStates;
bool... | UPDATE Uncommented door variables for reacting | UPDATE Uncommented door variables for reacting
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
3a8226f5bc42f17478a59e63827a5e646527cf5f | ionGUI/imGUI.h | ionGUI/imGUI.h |
#pragma once
#include <ionMath.h>
//---- Define constructor and implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4.
#define IM_VEC2_CLASS_EXTRA \
ImVec2(const ion::vec2f& f) { x = f.X; y = f.Y; } ... |
#pragma once
#include <ionCore.h>
//---- Define constructor and implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4.
#define IM_VEC2_CLASS_EXTRA \
ImVec2(const ion::vec2f& f) { x = f.X; y = f.Y; } ... | Switch to 32bit indices for gui rendering | [ionGUI] Switch to 32bit indices for gui rendering
| C | mit | iondune/ionEngine,iondune/ionEngine |
dd6237b0e8aa8b3d80f05e9fa4a225fd80d2d84c | dec/types.h | dec/types.h | /* Copyright 2013 Google Inc. 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 ag... | /* Copyright 2013 Google Inc. 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 ag... | Allow use of inline keyword in c++/c99 mode. | Allow use of inline keyword in c++/c99 mode.
| C | apache-2.0 | luzhongtong/brotli,koolhazz/brotli,yonchev/brotli,Bulat-Ziganshin/brotli,google/brotli,rgordeev/brotli,daltonmaag/brotli,BuildAPE/brotli,emil-io/brotli,yonchev/brotli,PritiKumr/brotli,andrebellafronte/brotli,iamjbn/brotli,anthrotype/brotli,ya7lelkom/brotli,silky/brotli,archiveds/brotli,google/brotli,chinanjjohn2012/bro... |
bfff8b87632f5ab450243a0a4e7c7f2ed83f9e68 | src/common/common.h | src/common/common.h | #ifndef BERRY_COMMON_COMMON_H
#define BERRY_COMMON_COMMON_H
#if defined(__APPLE__)
#include "TargetConditionals.h"
#if ANGEL_MOBILE
#include <sys/time.h>
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iPhone SDK 5.0 and l... | #ifndef BERRY_COMMON_COMMON_H
#define BERRY_COMMON_COMMON_H
#if defined(__APPLE__)
#include "TargetConditionals.h"
#if ANGEL_MOBILE
#include <sys/time.h>
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iPhone SDK 5.0 and l... | Fix compile warning of hash_map in OS X | Fix compile warning of hash_map in OS X
| C | mit | pixelpicosean/Mural-Deprecated,pixelpicosean/Mural-Deprecated,pixelpicosean/Mural-Deprecated,pixelpicosean/Mural-Deprecated,pixelpicosean/Mural-Deprecated |
6ff0b90eca9ac6021e18692a5a747ae14ac01c69 | Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBSDKKeychain.h | Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBSDKKeychain.h | ///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
#import <Foundation/Foundation.h>
#import "DBHandlerTypes.h"
///
/// Keychain class for storing OAuth tokens.
///
@interface DBSDKKeychain : NSObject
/// Stores a key / value pair in the keychain.
+ (BOOL)storeValueWithKey:(NSString * _Nonnull)key va... | ///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
#import <Foundation/Foundation.h>
#import "DBHandlerTypes.h"
NS_ASSUME_NONNULL_BEGIN
///
/// Keychain class for storing OAuth tokens.
///
@interface DBSDKKeychain : NSObject
/// Stores a key / value pair in the keychain.
+ (BOOL)storeValueWithKey:(N... | Switch to NS_ASSUME_NONNULL_BEGIN and _END | Switch to NS_ASSUME_NONNULL_BEGIN and _END
This leaves us free to only define the nullable parameters in each method signature.
| C | mit | dropbox/dropbox-sdk-obj-c,dropbox/dropbox-sdk-obj-c,dropbox/dropbox-sdk-obj-c,dropbox/dropbox-sdk-obj-c |
de6d353302c812e4345de6eb44c4b890ff5cff14 | src/classes/Window.h | src/classes/Window.h | #ifndef WINDOW_H
#define WINDOW_H
#include <ncurses.h>
#include <array>
#include "../game.h"
// Used to define a datatype for calls to wborder
struct Border {
chtype ls, rs, ts, bs;
chtype tl, tr, bl, br;
};
class Window {
public:
Window(rect dim); // ctor
~Window(); // dtor
... | #ifndef WINDOW_H
#define WINDOW_H
#include <ncurses.h>
#include <string>
#include <array>
#include "../game.h"
// Used to define a datatype for calls to wborder
struct Border {
chtype ls, rs, ts, bs;
chtype tl, tr, bl, br;
};
class Window {
public:
Window(rect dim); // ctor
~Window(); ... | Fix missing string in namespace std compiler error | Fix missing string in namespace std compiler error
On some systems
| C | mit | jm-janzen/termq,jm-janzen/termq,jm-janzen/termq |
4d9532bedbb71796ace2833aeb3d279b8a18df57 | Clue/Classes/Extensions/Views/UIView+CLUViewRecordableAdditions.h | Clue/Classes/Extensions/Views/UIView+CLUViewRecordableAdditions.h | //
// UIView+CLUViewRecordableAdditions.h
// Clue
//
// Created by Ahmed Sulaiman on 5/27/16.
// Copyright © 2016 Ahmed Sulaiman. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CLUViewRecordableProperties.h"
@interface UIView (CLUViewRecordableAdditions) <CLUViewRecordableProperties>
- (NSDictionary *)... | //
// UIView+CLUViewRecordableAdditions.h
// Clue
//
// Created by Ahmed Sulaiman on 5/27/16.
// Copyright © 2016 Ahmed Sulaiman. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CLUViewRecordableProperties.h"
@interface UIView (CLUViewRecordableAdditions) <CLUViewRecordableProperties>
- (NSDictionary *)... | Move layoutMargin method and Frame method to public interface of UIView additions category. (mostly for testing purposes and those method should be public IMO anyway) | Move layoutMargin method and Frame method to public interface of UIView additions category. (mostly for testing purposes and those method should be public IMO anyway)
| C | mit | Geek-1001/Clue,Geek-1001/Clue,Geek-1001/Clue,Geek-1001/Clue |
d5fe78a66aa26ae430c9137ce5c7244b06d550b2 | experiments.h | 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
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: b0c8228755e6d86a77f3a74999216b31feb44a6b
| C | bsd-3-clause | sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc |
bb47d7db349b6de54440b2298fb0c6377a4a7e0a | thingc/thingc/thingc/NumberInstance.h | thingc/thingc/thingc/NumberInstance.h | #pragma once
#include <string>
#include "Program.h"
#include "ThingInstance.h"
class NumberInstance : public ThingInstance {
public:
NumberInstance(int val) : val(val), ThingInstance(NumberInstance::methods) {};
virtual std::string text() const override {
return std::to_string(val);
}
const int val;
stat... | #pragma once
#include <string>
#include "Program.h"
#include "ThingInstance.h"
class NumberInstance : public ThingInstance {
public:
NumberInstance(int val) : val(val), ThingInstance(NumberInstance::methods) {};
virtual std::string text() const override {
return std::to_string(val);
}
static void add() {
... | Implement + support in numbers | Implement + support in numbers
| C | mit | ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang |
bbef5652aa760beb83ef3116ecec3bd5eb76af35 | src/hash/mdx_hash/mdx_hash.h | src/hash/mdx_hash/mdx_hash.h | /**
* MDx Hash Function
* (C) 1999-2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_MDX_BASE_H__
#define BOTAN_MDX_BASE_H__
#include <botan/hash.h>
namespace Botan {
/**
* MDx Hash Function Base Class
*/
class BOTAN_DLL MDx_HashFunction : public HashFunction
{
public:
... | /**
* MDx Hash Function
* (C) 1999-2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_MDX_BASE_H__
#define BOTAN_MDX_BASE_H__
#include <botan/hash.h>
namespace Botan {
/**
* MDx Hash Function Base Class
*/
class BOTAN_DLL MDx_HashFunction : public HashFunction
{
public:
... | Make the member variables of MDx_HashFunction private instead of protected - no subclass needs access to any of these variables. | Make the member variables of MDx_HashFunction private instead of protected -
no subclass needs access to any of these variables.
| C | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster1... |
b4bf84df34dd90041f076eb777454d01c41042c0 | SVNetworking/SVNetworking/SVNetworking.h | SVNetworking/SVNetworking/SVNetworking.h | //
// SVNetworking.h
// SVNetworking
//
// Created by Nate Stedman on 3/14/14.
// Copyright (c) 2014 Svpply. All rights reserved.
//
#import "NSObject+SVBindings.h"
#import "NSObject+SVMultibindings.h"
#import "SVDataRequest.h"
#import "SVDiskCache.h"
#import "SVFunctional.h"
#import "SVImageView.h"
#import "SVJSO... | //
// SVNetworking.h
// SVNetworking
//
// Created by Nate Stedman on 3/14/14.
// Copyright (c) 2014 Svpply. All rights reserved.
//
#import "NSObject+SVBindings.h"
#import "NSObject+SVMultibindings.h"
#import "SVDataRequest.h"
#import "SVDiskCache.h"
#import "SVFunctional.h"
#import "SVImageView.h"
#import "SVJSO... | Add remote array classes to headers. | Add remote array classes to headers.
| C | bsd-3-clause | eBay/SVNetworking,eBay/SVNetworking |
5e33ef4b6724a72188da87ddc7e8af98c4658671 | src/tests/uiomux_tests.h | src/tests/uiomux_tests.h | /*
* UIOMux: a conflict manager for system resources, including UIO devices.
* Copyright (C) 2009 Renesas Technology Corp.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
... | /*
* UIOMux: a conflict manager for system resources, including UIO devices.
* Copyright (C) 2009 Renesas Technology Corp.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
... | Apply HAVE_CONFIG_H condition in src/tests/uiomux_test.h | Apply HAVE_CONFIG_H condition in src/tests/uiomux_test.h
config.h should be included only if HAVE_CONFIG_H defined
when autoconf used.
| C | lgpl-2.1 | kfish/libuiomux,kfish/libuiomux |
c55016bbab62ac77c8314cc79ece5aca87483e9f | ch1/ex3/farh_to_celsius_v2.c | ch1/ex3/farh_to_celsius_v2.c | #include <stdio.h>
float K_5_BY_9 = 5.0 / 9.0;
float K_32 = 32;
int SUCCESS = 0;
int main(void)
{
float fahrenheit, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
printf("|-----------|\n");
printf("|%4s|%6s|\n", "F", "C");
printf("|-----------|\n");
f... | #include <stdio.h>
float K_5_BY_9 = 5.0 / 9.0;
float K_32 = 32.0;
int SUCCESS = 0;
int main(void)
{
float fahrenheit, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
printf("|-----------|\n");
printf("|%4s|%6s|\n", "F", "C");
printf("|-----------|\n");
... | Change K_32 const value to more readable (with floating point) | Change K_32 const value to more readable (with floating point)
| C | bsd-3-clause | rmk135/the-c-programming-language |
8e5e8a7b8355cf0132b16dbaf3387845da13475c | rt/cgen/cowgol-cgen.c | rt/cgen/cowgol-cgen.c | #include "cowgol-cgen.h"
static i8 ram[0x10000 / 8];
i8* __top = (i8*) ram;
i8* __himem = (i8*) ((i1*)ram + sizeof(ram));
i8* global_argv;
extern void cmain(void);
int main(int argc, const char* argv[])
{
/* Remember that Cowgol is built for 64-bit systems, so we need
* to copy the argv array as we could be runni... | #include "cowgol-cgen.h"
/* Really we should only have 64kB of RAM, but cgen intptr is 8 bytes which
* quickly gobbles through it (cowlink can't load the entire compiler at
* once). So, use 128kB. */
static i8 ram[0x20000 / 8];
i8* __top = (i8*) ram;
i8* __himem = (i8*) ((i1*)ram + sizeof(ram));
i8* global_argv;
e... | Increase the amount of memory available to cgen --- those 8-byte pointers really add up. | Increase the amount of memory available to cgen --- those 8-byte pointers
really add up.
| C | bsd-2-clause | davidgiven/cowgol,davidgiven/cowgol |
71e936386443d7e71382dc6d0b9cfeccf47a89ea | base/sha1.h | base/sha1.h | // LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SHA1_H_INCLUDED
#define BASE_SHA1_H_INCLUDED
#pragma once
#include <vector>
#include <string>
extern "C" struct SHA1Context;
namespace b... | // LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SHA1_H_INCLUDED
#define BASE_SHA1_H_INCLUDED
#pragma once
#include <vector>
#include <string>
extern "C" struct SHA1Context;
namespace b... | Add Sha1 class methods digest() and size() | Add Sha1 class methods digest() and size()
| C | mit | aseprite/laf,aseprite/laf |
486fb2162080c695511c1708946b737524b5e8f2 | qocoa_mac.h | qocoa_mac.h | /*
Copyright (C) 2011 by Mike McQuaid
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... | /*
Copyright (C) 2011 by Mike McQuaid
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... | Make shared functions inline to avoid warnings. | Make shared functions inline to avoid warnings.
| C | mit | ArnaudBienner/Qocoa,mikemcquaid/Qocoa |
59c2b1f63b7c5756ff95538ef2277fd9262ee8a4 | security/nss/macbuild/NSSCommon.h | security/nss/macbuild/NSSCommon.h | /* Defines common to all versions of NSS */
#define NSPR20 1
#define MP_API_COMPATIBLE 1
| /* Defines common to all versions of NSS */
#define NSPR20 1
#define MP_API_COMPATIBLE 1
#define NSS_3_4_CODE 1 /* Remove this when we start building NSS 4.0 by default */ | Define NSS_3_4 so that we get the right code and not Stan code that isn't quite ready. | Define NSS_3_4 so that we get the right code and not Stan code that isn't quite ready.
| C | mpl-2.0 | nmav/nss,nmav/nss,ekr/nss-old,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,nmav/nss,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,nmav/nss |
23f9a8486cea1af4de8fca84fe5393114c9272a8 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 51
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 52
#endif
| Update Skia milestone to 52 | Update Skia milestone to 52
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868893003
TBR=reed@google.com
Review URL: https://codereview.chromium.org/1868893003
| C | apache-2.0 | qrealka/skia-hc,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,tmpvar/skia.cc,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,google/skia,google/skia,google/skia,tmpvar/skia.cc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_exte... |
bf9fcbf6fa42d204f3f6657f493061801546dc0a | misc/misc.h | misc/misc.h | #ifndef MISC__H__
#define MISC__H__
#include <sysdeps.h>
extern void random_init(uint32 seed);
extern uint32 random_int(void);
#define random_float() (random_int() * (double)(1.0/4294967296.0))
#define random_scale(S) ((unsigned int)(random_float() * (S)))
unsigned long strtou(const char* str, const char** end);
cons... | #ifndef MISC__H__
#define MISC__H__
#include <sysdeps.h>
extern void random_init(uint32 seed);
extern uint32 random_int(void);
#define random_float() (random_int() * (double)(1.0/4294967296.0))
#define random_scale(S) ((unsigned int)(random_float() * (S)))
#define random_trunc(T) (random_int() % (T))
unsigned long st... | Add random_trunc function, which truncates (with integer modulus) instead of scaling (with floating point divide and multiply) the base random number. | Add random_trunc function, which truncates (with integer modulus)
instead of scaling (with floating point divide and multiply) the base
random number.
| C | lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs |
9abb92a67240364f96c7e0408f2231600d6dd20d | enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c | enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | Make sure that the copy of the string is always null terminated | Make sure that the copy of the string is always null terminated
svn path=/harmony/; revision=601274
| C | apache-2.0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM |
5a2ed7d4ffe3a0d471c8865fe0a89044d0269891 | DicomCli/readquery.h | DicomCli/readquery.h | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2015 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied ... | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2015 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied ... | Remove double underscore from include guard. | Remove double underscore from include guard.
| C | bsd-3-clause | hendradarwin/vtk-dicom,hendradarwin/vtk-dicom,hendradarwin/vtk-dicom,dgobbi/vtk-dicom,dgobbi/vtk-dicom,dgobbi/vtk-dicom |
9e522dbd0bb17233bcb504c2d06c0889d0de33d9 | samplecode/GMSampleView.h | samplecode/GMSampleView.h |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
typedef skiagm::GM ... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
typedef skiagm::GM ... | Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows. | Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows.
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@2846 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | mrobinson/skia,mrobinson/skia,metajack/skia,Cue/skia,mrobinson/skia,Cue/skia,metajack/skia,metajack/skia,Cue/skia,metajack/skia,mrobinson/skia,mrobinson/skia,Cue/skia |
f762c741121a89c387071563b167e8f580bedb8f | src/config.h | src/config.h | /*****************************************************************************/
/* */
/* Logswan 2.0.2 */
/* Copyright (c) 2015-2018, Frederic Cambus */
... | /*****************************************************************************/
/* */
/* Logswan 2.0.2 */
/* Copyright (c) 2015-2018, Frederic Cambus */
... | Enable support for parsing HTTP/2.0 requests, for real this time | Enable support for parsing HTTP/2.0 requests, for real this time
| C | bsd-2-clause | fcambus/logswan,fcambus/logswan |
4beb18c788dfa988297e6604a51b572692f938da | sledge/model/llair_intrinsics.h | sledge/model/llair_intrinsics.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdbool.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
/* allocation that cannot fail */
void* __llair_a... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdbool.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
/* allocation that cannot fail */
void* __llair_a... | Adjust declared types of llair intrinsics | [sledge] Adjust declared types of llair intrinsics
Summary:
Internally __llair_alloc and __llair_choice are treated as full-width
signed integers, so use the `long` C type.
Differential Revision: D39136450
fbshipit-source-id: 1ebeff4fe2dcd3cb75d7d13e2798a82c275218a4
| C | mit | facebook/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer |
d2a6fe1cda60bf6dd025b24160e47707229e34fc | arc/arc/Model/FileObject.h | arc/arc/Model/FileObject.h | //
// FileObject.h
// arc
//
// Created by Jerome Cheng on 19/3/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface FileObject : NSObject {
@protected
NSURL* _url;
id _contents;
BOOL _needsRefresh;
}
// The name of this object.
@property (str... | //
// FileObject.h
// arc
//
// Created by Jerome Cheng on 19/3/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface FileObject : NSObject {
@protected
NSURL* _url;
id _contents;
BOOL _needsRefresh;
}
// The name of this object.
@property (str... | Add explaining comment for path property. | Add explaining comment for path property.
| C | mit | BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc |
158a3e9064a37f46d22b3ff4012da72489d2d381 | src/status.h | src/status.h | /**
* File: status.h
* Author: Alex Savarda
*/
#ifndef STATUS_H
#define STATUS_H
typedef struct {
unsigned int m_stat;
unsigned int W_stat;
} statusType;
#endif /* STATUS_H */
| /*
* File: status.h
* Author: Alex Savarda
*/
#ifndef STATUS_H
#define STATUS_H
typedef struct {
unsigned int m_stat;
unsigned int W_stat;
} statusType;
#endif /* STATUS_H */
| Change file header to C style | Change file header to C style
| C | isc | sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS |
46058a38137b55bace74a60ff9cdc1418e7ea440 | tmpmon_base/config.h | tmpmon_base/config.h | // Global configuration information
//
// Connection information
#define SERIAL_BAUD 115200
| // Global configuration information
//
// Connection information
#define SERIAL_BAUD 9600
| FIX - Lowered baud rates to 9600 | FIX - Lowered baud rates to 9600
| C | mit | gauravmm/Remote-Temperature-Monitor,gauravmm/Remote-Temperature-Monitor,gauravmm/Remote-Temperature-Monitor,gauravmm/Remote-Temperature-Monitor |
bcb54520eb9aaf2c25660380f7301ff3f4d284d5 | test/CodeGen/pr9614.c | test/CodeGen/pr9614.c | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
extern void foo_alias (void) __asm ("foo");
inline void foo (void) {
return foo_alias ();
}
extern void bar_alias (void) __asm ("bar");
inline __attribute__ ((__always_inline__)) void bar (void) {
return bar_alias ();
}
void f(void) {
foo();
bar();
}
// CHE... | // RUN: %clang_cc1 -emit-llvm %s -O1 -o - | FileCheck %s
extern void foo_alias (void) __asm ("foo");
inline void foo (void) {
return foo_alias ();
}
extern void bar_alias (void) __asm ("bar");
inline __attribute__ ((__always_inline__)) void bar (void) {
return bar_alias ();
}
void f(void) {
foo();
bar();
}
//... | Fix this on the bots and make the test more complete by enabling optimizations. | Fix this on the bots and make the test more complete by enabling optimizations.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143223 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
a23dcce1d04354a1fa4bd0a794e60ff74521db1b | test/Sema/128bitint.c | test/Sema/128bitint.c | // RUN: clang-cc -fsyntax-only -verify %s
typedef int i128 __attribute__((__mode__(TI)));
typedef unsigned u128 __attribute__((__mode__(TI)));
int a[((i128)-1 ^ (i128)-2) == 1 ? 1 : -1];
int a[(u128)-1 > 1LL ? 1 : -1];
// PR5435
__uint128_t b = (__uint128_t)-1;
| // RUN: clang-cc -fsyntax-only -verify -triple x86_64-apple-darwin9 %s
typedef int i128 __attribute__((__mode__(TI)));
typedef unsigned u128 __attribute__((__mode__(TI)));
int a[((i128)-1 ^ (i128)-2) == 1 ? 1 : -1];
int a[(u128)-1 > 1LL ? 1 : -1];
// PR5435
__uint128_t b = (__uint128_t)-1;
| Add a triple to try to fix the buildbot error. | Add a triple to try to fix the buildbot error.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@86563 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
65a04e22843f7777fe8e20a1433c033a44a30198 | DMNotificationObserver.h | DMNotificationObserver.h | //
// DMNotificationObserver.h
// Library
//
// Created by Jonathon Mah on 2011-07-11.
// Copyright 2011 Delicious Monster Software. All rights reserved.
//
#import <Foundation/Foundation.h>
/* The action block is passed the notification, the owner as a parameter (to avoid retain cycles),
* and the triggering o... | //
// DMNotificationObserver.h
// Library
//
// Created by Jonathon Mah on 2011-07-11.
// Copyright 2011 Delicious Monster Software. All rights reserved.
//
#import <Foundation/Foundation.h>
/* The action block is passed the notification, the owner as a parameter (to avoid retain cycles),
* and the triggering o... | Standardize on nonnull attribute (vs __nonnull__) | Standardize on nonnull attribute (vs __nonnull__)
| C | apache-2.0 | delicious-monster/DMAutoInvalidation |
0b963c5a4eccde9050903d6859faee9096d3ce2b | test/entrytestsuite.h | test/entrytestsuite.h | #ifndef ENTRYTESTSUITE
#define ENTRYTESTSUITE
#include <cxxtest/TestSuite.h>
#include "../src/entry.h"
class EntryTestSuite : public CxxTest::TestSuite
{
public:
void testEntryHasGivenTitle(void)
{
testEntry.setTitle("testTitle");
TS_ASSERT_SAME_DATA(testEntry.title().c_str(), "testTitle", 9);... | #ifndef ENTRYTESTSUITE
#define ENTRYTESTSUITE
#include <cxxtest/TestSuite.h>
#include <qt5/QtCore/QDateTime>
#include "../src/entry.h"
class EntryTestSuite : public CxxTest::TestSuite
{
public:
void testTitleCanBeSetCorrectly(void)
{
testEntry.setTitle("testTitle");
TS_ASSERT_SAME_DATA(testEntry.t... | Add tests for id generation and ISO date strings | Add tests for id generation and ISO date strings
| C | bsd-3-clause | Acce0ss/diary-engine |
543e3925dae7dbe3fb2d5f81b193f2f796e0cd8f | tree/treeplayer/inc/DataFrameLinkDef.h | tree/treeplayer/inc/DataFrameLinkDef.h | /*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing... | /*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing... | Add another autoload key for TDataFrameImpl' | [TDF] Add another autoload key for TDataFrameImpl'
| C | lgpl-2.1 | olifre/root,root-mirror/root,BerserkerTroll/root,bbockelm/root,BerserkerTroll/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,simonpf/root,olifre/root,simonpf/root,bbockelm/root,bbockelm/root,zzxuanyuan/root,BerserkerTroll/root,zzxuanyuan/root,mhuwiler/rootauto,bbockelm/root,zzxuanyuan/root,agarciamontoro/root,mh... |
7638cf06ae8312e7f8407354b5aae2eba318fa84 | test/Analysis/html-diags-multifile.c | test/Analysis/html-diags-multifile.c | // RUN: mkdir -p %t.dir
// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t.dir
// RUN: ls %t.dir | not grep report
// RUN: rm -fR %t.dir
// This tests that we do not currently emit HTML diagnostics for reports that
// cross file boundaries.
#include "html-diags-multifile.h"
#define CALL_H... | // RUN: mkdir -p %t.dir
// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t.dir %s
// RUN: ls %t.dir | not grep report
// RUN: rm -fR %t.dir
// This tests that we do not currently emit HTML diagnostics for reports that
// cross file boundaries.
#include "html-diags-multifile.h"
#define CAL... | Fix test that wasn't testing anything | Fix test that wasn't testing anything
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@194069 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
3340e66e82e74a89a5d81763b4ed7b21acb810ff | PKRevealController/PKAppDelegate.h | PKRevealController/PKAppDelegate.h | /*
PKRevealController - Copyright (C) 2012 Philip Kluz (Philip.Kluz@zuui.org)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u... | /*
PKRevealController - Copyright (C) 2012 Philip Kluz (Philip.Kluz@zuui.org)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u... | Use right order of nonatomic and strong | Use right order of nonatomic and strong
| C | mit | xiaotaijun/PKRevealController,ramoslin02/PKRevealController,SuPair/PKRevealController,wjszf/PKRevealController,adonoho/PKRevealController,BlessNeo/PKRevealController,SummerHF/PKRevealController,duanhjlt/PKRevealController,AlanJN/PKRevealController,pkluz/PKRevealController,cnbin/PKRevealController,andyFang1688/PKRevealC... |
3f431df8ec46b86090ad59ee153872c45d4d429d | usr.bin/systat/devs.h | usr.bin/systat/devs.h | int dsinit(int, struct statinfo *, struct statinfo *, struct statinfo *);
int dscmd(char *, char *, int, struct statinfo *);
| /*-
* Copyright (c) 1998 David E. O'Brien
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | Add copyright and RCS/CVS Id. | Add copyright and RCS/CVS Id.
Noticed by: ken
| 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 |
6df016fb205bec2c07872597ad126856b341cff7 | src/java/org_bitcoin_NativeSecp256k1.c | src/java/org_bitcoin_NativeSecp256k1.c | #include "org_bitcoin_NativeSecp256k1.h"
#include "include/secp256k1.h"
JNIEXPORT jint JNICALL Java_org_bitcoin_NativeSecp256k1_secp256k1_1ecdsa_1verify
(JNIEnv* env, jclass classObject, jobject byteBufferObject)
{
unsigned char* data = (unsigned char*) env->GetDirectBufferAddress(byteBufferObject);
int sigLen = *... | #include "org_bitcoin_NativeSecp256k1.h"
#include "include/secp256k1.h"
JNIEXPORT jint JNICALL Java_org_bitcoin_NativeSecp256k1_secp256k1_1ecdsa_1verify
(JNIEnv* env, jclass classObject, jobject byteBufferObject)
{
unsigned char* data = (unsigned char*) (*env)->GetDirectBufferAddress(env, byteBufferObject);
int si... | Fix JNI for C instead of C++ | Fix JNI for C instead of C++
(because apparently there is a significant difference...)
| C | mit | ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,BWallet/secp256k1,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,kleetus/secp256k1,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,Gustav-Simonsson/secp256k1,pmienk/secp256k1,01BTC10/secp256k1,pmienk/secp256k1,voisine/secp256k1,sipa/secp256k1-zkp,01BTC10/s... |
a97b433223d22e3050a16d0473dc52d247b74dab | include/PixelProcessing.h | include/PixelProcessing.h | #pragma once
#include "MyImage.h"
#define MASK_SIZE 5
class Pixel {
private:
BYTE blue;
BYTE green;
BYTE red;
public:
Pixel(){
blue;
green;
red;
}
~Pixel(){}
BYTE GetBlue() { return blue; }
BYTE GetGreen() { return green; }
BYTE GetRed() { return red; }
void Set(int _b, int _... | #pragma once
#include "MyImage.h"
#define MASK_SIZE 3
class Pixel {
private:
BYTE blue;
BYTE green;
BYTE red;
public:
Pixel(){
blue;
green;
red;
}
~Pixel(){}
BYTE GetBlue() { return blue; }
BYTE GetGreen() { return green; }
BYTE GetRed() { return red; }
void Set(int _b, int _... | Change mask size from 5 to 3 | Change mask size from 5 to 3 | C | bsd-3-clause | mystesPF/Defect-Pixel-Corrector,mystesPF/Defect-Pixel-Corrector |
7662ebe6de73bbada1f216590f3e8b15b496a46b | Src/lib/utils/swap.c | Src/lib/utils/swap.c | #include "swap.h"
#include <string.h>
/* Swap generic function */
void swap(void *vp1, void *vp2, int size)
{
char buffer[size];
memcpy(buffer, vp1, size);
memcpy(vp1,vp2,size);
memcpy(vp2,buffer,size);
}
| #include "swap.h"
#include <stdlib.h>
#include <string.h>
/* Swap generic function */
void swap(void *vp1, void *vp2, int size)
{
char* buffer = (char*) malloc(size*sizeof(char));
memcpy(buffer, vp1, size);
memcpy(vp1,vp2,size);
memcpy(vp2,buffer,size);
free(buffer);
}
| Use malloc/free as compile failed under MSVC. Ask rpmuller to check if okay. | Use malloc/free as compile failed under MSVC. Ask rpmuller to check if okay.
git-svn-id: 6e15fd90c9d760a7473dfa00402abf17076c345c@188 64417113-1622-0410-aef8-ef15d1a3721e
| C | bsd-3-clause | berquist/PyQuante,berquist/PyQuante,berquist/PyQuante,berquist/PyQuante,berquist/PyQuante,berquist/PyQuante |
610ff601af40fe5fb1978a7717eafe966b120dee | include/SafariServices/SFSafariViewControllerDelegate.h | include/SafariServices/SFSafariViewControllerDelegate.h | //******************************************************************************
//
// Copyright (c) 2016 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) 2016 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... | Add missing NSObject protocol declaration. | Add missing NSObject protocol declaration.
| C | mit | nathpete-msft/WinObjC,MSFTFox/WinObjC,Microsoft/WinObjC,pradipd/WinObjC,bbowman/WinObjC,rajsesh-msft/WinObjC,nathpete-msft/WinObjC,MSFTFox/WinObjC,rajsesh-msft/WinObjC,yweijiang/WinObjC,yweijiang/WinObjC,ehren/WinObjC,ehren/WinObjC,yweijiang/WinObjC,bbowman/WinObjC,Microsoft/WinObjC,autodesk-forks/WinObjC,rajsesh-msft/... |
acc060f6ee491b1eed93b45df2f1b37fb710aa7a | test/CodeGen/wchar-const.c | test/CodeGen/wchar-const.c | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// This should pass for any endianness combination of host and target.
// This bit is taken from Sema/wchar.c so we can avoid the wchar.h include.
typedef __WCHAR_TYPE__ wchar_t;
#if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \
|| defined(_M_X64) |... | // RUN: %clang_cc1 -emit-llvm %s -o - -triple i386-pc-win32 | FileCheck %s --check-prefix=WIN
// RUN: %clang_cc1 -emit-llvm %s -o - -triple x86_64-apple-darwin | FileCheck %s --check-prefix=DAR
// This should pass for any endianness combination of host and target.
// This bit is taken from Sema/wchar.c so we can avoid... | Handle different sized wchar_t for windows. | Handle different sized wchar_t for windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136192 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
9ed5a4910c477f418ba200252cd6696339ee5ba5 | include/tablet_mode.h | include/tablet_mode.h | /* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Header for tablet_mode.c */
#ifdef CONFIG_TABLET_MODE
/* Return 1 if in tablet mode, 0 otherwise */
int tablet_get_mode(void);
void tablet_set... | /* Copyright 2016 The Chromium OS 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 __CROS_EC_TABLET_MODE_H
#define __CROS_EC_TABLET_MODE_H
/**
* Get tablet mode state
*
* Return 1 if in tablet mode, 0 otherwise
*/
int... | Fix header file guard and API definitions | tablet-mode: Fix header file guard and API definitions
This patch adds a usual inclusion guard (#ifdef __CROS_EC_*_H) and
fixes API descriptions.
Signed-off-by: Daisuke Nojiri <fd5f93af191bf7e8f73ea71cc3c0f66b41b1dd49@chromium.org>
BUG=none
BRANCH=none
TEST=buildall
Change-Id: I96149cfe76cff7ab85be4785252a600b565e4... | C | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec |
bac1e84578c9b1a9ddc961814db6d46cc03bfa6a | demo/src/input.h | demo/src/input.h | // Copyright 2020 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 w... | // Copyright 2020 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 w... | Fix another bug in demo | Fix another bug in demo
| C | apache-2.0 | google/autocxx,google/autocxx,google/autocxx,google/autocxx |
87a6b78f84d1cc363fe7482ff0d7424a0477e26f | include/cssys/mac/osdefs.h | include/cssys/mac/osdefs.h | /*
This header file contains all definitions needed for compatibility issues
Most of them should be defined only if corresponding SYSDEF_XXX macro is
defined (see system/sysdef.h)
*/
#ifndef OSDEFS_H
#define OSDEFS_H
int strcasecmp (const char *str1, const char *str2);
int strncasecmp (char const *dst, ch... | /*
This header file contains all definitions needed for compatibility issues
Most of them should be defined only if corresponding SYSDEF_XXX macro is
defined (see system/sysdef.h)
*/
#ifndef OSDEFS_H
#define OSDEFS_H
int strcasecmp (const char *str1, const char *str2);
int strncasecmp (char const *dst, ch... | Move defines for error strings and dialogs into this file for central tracking of ids. | Move defines for error strings and dialogs into this file for central tracking of ids.
git-svn-id: 28d9401aa571d5108e51b194aae6f24ca5964c06@483 8cc4aa7f-3514-0410-904f-f2cc9021211c
| C | lgpl-2.1 | crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS |
96dea463e3cb261eb2625dc96a90b4993178580b | usr.sbin/nologin/nologin.c | usr.sbin/nologin/nologin.c | /*-
* This program is in the public domain. I couldn't bring myself to
* declare Copyright on a variant of Hello World.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/uio.h>
#include <syslog.h>
#include <unistd.h>
#define MESSAGE "This account is currently not available.\n"... | /*-
* Copyright (c) 2004 The FreeBSD Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | Add standard copyright notice; fix style bugs. (Reported by bde) Remove NO_NOLOGIN_LOG option now that we're off the root partition. | Add standard copyright notice; fix style bugs. (Reported by bde)
Remove NO_NOLOGIN_LOG option now that we're off the root partition.
| 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 |
38ee400049d579c60f3e0ddfb6c388093d53ac7a | Josh_Zane_Sebastian/src/parser/parser.c | Josh_Zane_Sebastian/src/parser/parser.c | #include types.c
#include <string.h>
/* We can:
Set something equal to something
Function calls
Function definitions
Returning things -- delimiter '<'
Printing things
Iffing */
struct call parseCall(char* statement);
struct function parseFunction(char* statement);
char* fixSpacing(char* code) {
c... | #include <stdlib.h>
#include <stdio.h>
#include types.c
#include <string.h>
/* We can:
Set something equal to something
Function calls
Function definitions
Returning things -- delimiter '<'
Printing things
Iffing */
struct call parseCall(char* statement);
struct function parseFunction(char* statemen... | Make parse() count the spaces in the regularized code string. | Make parse() count the spaces in the regularized code string.
| C | mit | aacoppa/final,aacoppa/final |
2567fa8188b27b97d550c546f7a83211940e91a1 | src/feng_utils.h | src/feng_utils.h | /* *
* This file is part of Feng
*
* Copyright (C) 2009 by LScube team <team@lscube.org>
* See AUTHORS for more details
*
* feng 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... | /* *
* This file is part of Feng
*
* Copyright (C) 2009 by LScube team <team@lscube.org>
* See AUTHORS for more details
*
* feng 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... | Remove the remaining ERR_ constants that are never used or tested for. | Remove the remaining ERR_ constants that are never used or tested for.
| C | lgpl-2.1 | winlinvip/feng,lscube/feng,winlinvip/feng,lscube/feng,winlinvip/feng,lscube/feng |
ba6d38ac0611239a1fa7d05b9c915dbff201c082 | ext/librtlsdr/librtlsdr.c | ext/librtlsdr/librtlsdr.c | #include "ruby.h"
#include "rtl-sdr.h"
VALUE m_turtleshell = Qnil;
static VALUE m_rtlsdr;
static VALUE turtleshell_count() {
return INT2NUM(rtlsdr_get_device_count());
}
static VALUE turtleshell_new_device() {
char *name;
rtlsdr_dev_t *device = NULL;
int count = rtlsdr_get_device_count();
// ensure we hav... | #include "ruby.h"
#include "rtl-sdr.h"
VALUE m_turtleshell = Qnil;
VALUE c_device;
static VALUE m_rtlsdr;
static VALUE turtleshell_count() {
return INT2NUM(rtlsdr_get_device_count());
}
static VALUE turtleshell_new_device() {
rtlsdr_dev_t *device = NULL;
VALUE wrapped_device;
VALUE hash;
int count = rtlsdr... | Fix a few warnings that prevented Travis from compiling | Fix a few warnings that prevented Travis from compiling
| C | mit | tjarratt/turtleshell,tjarratt/turtleshell |
e4cb644925142ac45cdfb70244a2751f6cab1e21 | backend-test.c | backend-test.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "expression.h"
#include "stream.h"
#include "parser.h"
#include "analyze.h"
#include "generator.h"
#include "backend.h"
#include "optimize.h"
int main(int argc, char *argv[]) {
if (argc < 3) {
fprintf(stderr, "usage: backend-test <input-file> <... | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "expression.h"
#include "stream.h"
#include "parser.h"
#include "analyze.h"
#include "generator.h"
#include "backend.h"
#include "optimize.h"
int main(int argc, char *argv[]) {
if (argc < 3) {
fprintf(stderr, "usage: backend-test <input-file> <... | Return with exit code from main functions | Return with exit code from main functions
Signed-off-by: Eli Skeggs <5085073edea185966a30aad7f06b91f6997b42e5@gmail.com>
| C | mit | bearhub/cub,bearhub/cub,bearhub/cub,bearhub/cub |
4b6c83f57874c2ac10b450ba0f57db0a0f22db67 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2006 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k1"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2006 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k2"
| Update driver version to 5.02.00-k2 | [SCSI] qla4xxx: Update driver version to 5.02.00-k2
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: Ravi Anand <399b6871085291e2c1578e38a71f59e8d20fafc0@qlogic.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
| C | mit | 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_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
73cfbf47cc0f13db91e461d98081503597d3d50b | Kiwi/KWFutureObject.h | Kiwi/KWFutureObject.h | //
// KWFutureObject.h
// iOSFalconCore
//
// Created by Luke Redpath on 13/01/2011.
// Copyright 2011 LJR Software Limited. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef id (^KWFutureObjectBlock)(void);
@interface KWFutureObject : NSObject {
__weak id *objectPointer;
KWFutureObjectBlock ... | //
// KWFutureObject.h
// iOSFalconCore
//
// Created by Luke Redpath on 13/01/2011.
// Copyright 2011 LJR Software Limited. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifdef __weak
#undef __weak
#define __weak __unsafe_unretained
#endif
typedef id (^KWFutureObjectBlock)(void);
@interface KWFutur... | Work arounf use of weak when deployment target it iOS 4 | Work arounf use of weak when deployment target it iOS 4
| C | bsd-3-clause | carezone/Kiwi,carezone/Kiwi,tcirwin/Kiwi,TaemoonCho/Kiwi,howandhao/Kiwi,tcirwin/Kiwi,unisontech/Kiwi,tangwei6423471/Kiwi,iosRookie/Kiwi,TaemoonCho/Kiwi,ecaselles/Kiwi,indiegogo/Kiwi,ashfurrow/Kiwi,TaemoonCho/Kiwi,unisontech/Kiwi,LiuShulong/Kiwi,weslindsay/Kiwi,ecaselles/Kiwi,depop/Kiwi,JoistApp/Kiwi,indiegogo/Kiwi,iosR... |
9e03ac35be0c5cf0a420b529752bbde619d60bac | src/collectionhashing.h | src/collectionhashing.h | // Copyright (c) 2017-2019 The Swipp developers
// Copyright (c) 2019-2020 The Neutron Developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING.daemon or http://www.opensource.org/licenses/mit-license.php.
#ifndef NEUTRON_COLLECTIONHASHING_H
#define NEUTRON_COLLECTIONHASHIN... | // Copyright (c) 2017-2019 The Swipp developers
// Copyright (c) 2019-2020 The Neutron Developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING.daemon or http://www.opensource.org/licenses/mit-license.php.
#ifndef NEUTRON_COLLECTIONHASHING_H
#define NEUTRON_COLLECTIONHASHIN... | Use <functional> instead of <tr/functional> | Use <functional> instead of <tr/functional>
This is deprecated and adopted by the standard since a long time.
| C | mit | neutroncoin/neutron,neutroncoin/neutron,neutroncoin/neutron,neutroncoin/neutron |
e7144a38b98164e74062c764747ce0ab1cbc514c | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
#define NUMERO_DE_TENTATIVAS 5
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
... | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
int tentativas = 1;
while(1... | Update files, Alura, Introdução a C, Aula 2.10 | Update files, Alura, Introdução a C, Aula 2.10
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
0205d0b2e73e5bda5c045ae31edd05d5b9b688ec | ossfuzz/matio_wrap.h | ossfuzz/matio_wrap.h | // Copyright 2019 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2019 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Remove comment and add include guard | Remove comment and add include guard
| C | bsd-2-clause | tbeu/matio,MaartenBent/matio,tbeu/matio,tbeu/matio,MaartenBent/matio,tbeu/matio,MaartenBent/matio,MaartenBent/matio |
980438ded0a0178799394a732c80c2d66817fe82 | xchainer/cuda/cuda_runtime.h | xchainer/cuda/cuda_runtime.h | #pragma once
#include <cuda_runtime.h>
#include "xchainer/error.h"
namespace xchainer {
namespace cuda {
class RuntimeError : public XchainerError {
public:
explicit RuntimeError(cudaError_t error);
cudaError_t error() const noexcept { return error_; }
private:
cudaError_t error_;
};
void CheckError(cu... | #pragma once
#include <cuda_runtime.h>
#include "xchainer/error.h"
namespace xchainer {
namespace cuda {
class RuntimeError : public XchainerError {
public:
explicit RuntimeError(cudaError_t error);
cudaError_t error() const noexcept { return error_; }
private:
cudaError_t error_;
};
void CheckError(cu... | Use const T& instead of T&& | Use const T& instead of T&&
| C | mit | tkerola/chainer,hvy/chainer,okuta/chainer,pfnet/chainer,ktnyt/chainer,wkentaro/chainer,niboshi/chainer,okuta/chainer,hvy/chainer,hvy/chainer,okuta/chainer,wkentaro/chainer,jnishi/chainer,ktnyt/chainer,hvy/chainer,chainer/chainer,keisuke-umezawa/chainer,wkentaro/chainer,niboshi/chainer,jnishi/chainer,jnishi/chainer,keis... |
07d0cafdf2018e8789e4e0671eb0ccc8bbc5c186 | contrib/sendmail/mail.local/pathnames.h | contrib/sendmail/mail.local/pathnames.h | /*-
* Copyright (c) 1998 Sendmail, Inc. All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distrib... | /*-
* Copyright (c) 1998 Sendmail, Inc. All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distrib... | Change location of temporary file from /tmp to /var/tmp. This is a repeat of an earlier commit which apparently got lost with the last import. It helps solve the frequently reported problem | Change location of temporary file from /tmp to /var/tmp. This is a
repeat of an earlier commit which apparently got lost with the last
import. It helps solve the frequently reported problem
pid 4032 (mail.local), uid 0 on /: file system full
(though there appears to be a lot of space) caused by idiots sending
30... | 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 |
83683ddd3d704e2d8c1fe9bef9eabb4639c0846a | plat/qemu/common/qemu_stack_protector.c | plat/qemu/common/qemu_stack_protector.c | /*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <arch_helpers.h>
#include <plat/common/platform.h>
#define RANDOM_CANARY_VALUE ((u_register_t) 3288484550995823360ULL)
u_register_t plat_get_stack_protector_canar... | /*
* Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <arch_helpers.h>
#include <arch_features.h>
#include <plat/common/platform.h>
#define RANDOM_CANARY_VALUE ((u_register_t) 3288484550995823360ULL)
u_register_t pla... | Use RNDR in stack protector | plat/qemu: Use RNDR in stack protector
When getting a stack protector canary value, check
if cpu supports FEAT_RNG and use that. Fallback to
old method of using a (hardcoded value ^ timer).
Signed-off-by: Tomas Pilar <2bc6038c3dfca09b2da23c8b6da8ba884dc2dcc2@nuviainc.com>
Change-Id: I8181acf8e31661d4cc82bc3a4078f8751... | C | bsd-3-clause | achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware |
0ef9cdb035524ebd26d350b364bb4b1520343f97 | Clue/Classes/Protocols/CLUInteractionObserverDelegate.h | Clue/Classes/Protocols/CLUInteractionObserverDelegate.h | //
// CLUInteractionObserver.h
// Clue
//
// Created by Ahmed Sulaiman on 6/7/16.
// Copyright © 2016 Ahmed Sulaiman. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol CLUInteractionObserverDelegate <NSObject>
@required
- (void)touchesBegan:(NSSet<UITouch *> *)touches;
-... | //
// CLUInteractionObserver.h
// Clue
//
// Created by Ahmed Sulaiman on 6/7/16.
// Copyright © 2016 Ahmed Sulaiman. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CLUTouch.h"
@protocol CLUInteractionObserverDelegate <NSObject>
@required
- (void)touchesBegan:(NSArray<CLUTouch *> *)touches;
-... | Change Interaction Observer Delegate to use Clue Touch model and NSArray instead of NSSet | Change Interaction Observer Delegate to use Clue Touch model and NSArray instead of NSSet
| C | mit | Geek-1001/Clue,Geek-1001/Clue,Geek-1001/Clue,Geek-1001/Clue |
43795e05bc7b112ba242ec7a9951f30dd4978a9e | io/file_descriptor.h | io/file_descriptor.h | #ifndef FILE_DESCRIPTOR_H
#define FILE_DESCRIPTOR_H
#include <io/channel.h>
class FileDescriptor : public Channel {
LogHandle log_;
protected:
int fd_;
public:
FileDescriptor(int);
~FileDescriptor();
Action *close(EventCallback *);
Action *read(size_t, EventCallback *);
Action *write(Buffer *, EventCallback *... | #ifndef FILE_DESCRIPTOR_H
#define FILE_DESCRIPTOR_H
#include <io/channel.h>
class FileDescriptor : public Channel {
LogHandle log_;
protected:
int fd_;
public:
FileDescriptor(int);
~FileDescriptor();
virtual Action *close(EventCallback *);
virtual Action *read(size_t, EventCallback *);
virtual Action *write(B... | Make close, read and write virtual. | Make close, read and write virtual.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@192 4068ffdb-0463-0410-8185-8cc71e3bd399
| C | bsd-2-clause | diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy,splbio/wanproxy,diegows/wanproxy |
bd08163aa2c0067a06638dcaefd1cd14461adea5 | gass/file/source/globus_gass_file.h | gass/file/source/globus_gass_file.h | /******************************************************************************
globus_gass_file_api.h
Description:
This header contains the GASS File Access API definitions
CVS Information:
$Source$
$Date$
$Revision$
$Author$
*******************************************************************... | /******************************************************************************
globus_gass_file_api.h
Description:
This header contains the GASS File Access API definitions
CVS Information:
$Source$
$Date$
$Revision$
$Author$
*******************************************************************... | Add inclusion of globus_gass_common.h so end user does not need this inclusion | Add inclusion of globus_gass_common.h so end user does not need this inclusion
| C | apache-2.0 | ellert/globus-toolkit,ellert/globus-toolkit,ellert/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,ellert/globus-toolkit,gridcf/gct,gridcf/gct,globus/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,gridcf/gct,gridcf/gct,ellert/globus-toolkit,globus/globus-toolkit,ellert/globus-toolkit,globus/globu... |
0a2d85484ad324195537b20c7691a4b49868b76f | Sensorama/Sensorama/SRUtils.h | Sensorama/Sensorama/SRUtils.h | //
// SRUtils.h
// Sensorama
//
// Created by Wojciech Koszek (home) on 3/1/16.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
@import Foundation;
@import UIKit;
@interface SRUtils : NSObject
+ (UIColor *)mainColor;
+ (NSDictionary *)deviceInfo;
+ (NSString*)computeSHA256DigestForString:(NSStr... | //
// SRUtils.h
// Sensorama
//
// Created by Wojciech Koszek (home) on 3/1/16.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
@import Foundation;
@import UIKit;
@import CoreMotion;
@interface SRUtils : NSObject
+ (UIColor *)mainColor;
+ (NSDictionary *)deviceInfo;
+ (NSString*)computeSHA256Di... | Add CoreMotion so that types can be detected | Add CoreMotion so that types can be detected
| C | bsd-2-clause | wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios |
bb45039fab4071893154345415ad961391733c2d | include/llvm/Transforms/SampleProfile.h | include/llvm/Transforms/SampleProfile.h | //===- Transforms/SampleProfile.h - SamplePGO pass--------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... | //===- Transforms/SampleProfile.h - SamplePGO pass--------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... | Fix wrong comment in header /NFC | Fix wrong comment in header /NFC
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@271825 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llv... |
ff2938e75c27521a0bfd13028ccd045a349f169b | gen-system.c | gen-system.c | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
printf("#include <stdint.h>\n"
"#include \"mako-vm.h\"\n"
"char *argv0;\n"
"int32_t mem[] = {");
while(!feof(stdin)) {
uint8_t buf[4];
int n = fread(buf, sizeof *buf, 4, stdin);
if(ferror(stdin)... | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
printf("#include <stdint.h>\n"
"#include <SDL.h>\n"
"#include \"mako-vm.h\"\n"
"char *argv0;\n"
"int32_t mem[] = {");
while(!feof(stdin)) {
uint8_t buf[4];
int n = fread(buf, sizeof *buf, ... | Include <SDL.h> in the baked VMs, so Windows works. | Include <SDL.h> in the baked VMs, so Windows works.
| C | mit | pikhq/cmako,pikhq/cmako |
8c18fe2562c45180c407872d05857c55c1e5e37b | include/asm-arm/mach/map.h | include/asm-arm/mach/map.h | /*
* linux/include/asm-arm/map.h
*
* Copyright (C) 1999-2000 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Page table mapping constructs and function p... | /*
* linux/include/asm-arm/map.h
*
* Copyright (C) 1999-2000 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Page table mapping constructs and function p... | Fix buggy __phys_to_pfn / __pfn_to_phys | [ARM] Fix buggy __phys_to_pfn / __pfn_to_phys
Macro arguments should _always_ be surrounded by parentheses
when used to prevent unexpected problems with operator precedence.
Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.