commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
9cdef1b46feb742a91e926f03cf6edc5a074bc4d | test/test_theft_aux.c | test/test_theft_aux.c | #include "test_theft.h"
#include "theft_aux.h"
SUITE(aux) {
// builtins
}
| #include "test_theft.h"
#include "theft_aux.h"
struct a_squared_lte_b_env {
struct theft_print_trial_result_env print_env;
};
static enum theft_trial_res
prop_a_squared_lte_b(void *arg_a, void *arg_b) {
int8_t a = *(int8_t *)arg_a;
uint16_t b = *(uint16_t *)arg_b;
if (0) {
fprintf(stdout, "\n... | Add test using built-in generators. | theft_aux: Add test using built-in generators.
| C | isc | silentbicycle/theft |
d0adf82885e8d650575f9290ca2e2620e240bec5 | treeplayer/inc/LinkDef.h | treeplayer/inc/LinkDef.h | /* @(#)root/treeplayer:$Name: $:$Id: LinkDef.h,v 1.1.1.1 2000/05/16 17:00:44 rdm Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | /* @(#)root/treeplayer:$Name: $:$Id: LinkDef.h,v 1.2 2000/07/06 17:20:52 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Declare option "+" for TTreePlayer | Declare option "+" for TTreePlayer
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@986 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | root-mirror/root,mattkretz/root,krafczyk/root,olifre/root,root-mirror/root,mhuwiler/rootauto,omazapa/root-old,krafczyk/root,veprbl/root,perovic/root,smarinac/root,esakellari/root,sawenzel/root,buuck/root,ffurano/root5,beniz/root,zzxuanyuan/root,Duraznos/root,veprbl/root,krafczyk/root,jrtomps/root,mkret2/root,abhinavmou... |
3ff245f667167309ec41941036daa358bc60209d | nrf5/sdk/nrf5_sdk_conf.h | nrf5/sdk/nrf5_sdk_conf.h | #ifndef NRF_SDK_CONF_H__
#define NRF_SDK_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 100)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_6LOWPAN (1)
#define MICROPY_PY_USOCKET (1)
#define MICROPY_PY_NETWORK (1)
#elif (BLUETOOTH_SD == 110)
#def... | #ifndef NRF_SDK_CONF_H__
#define NRF_SDK_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 100)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_6LOWPAN (1)
#define MICROPY_PY_USOCKET (1)
#define MICROPY_PY_NETWORK (1)
#elif (BLUETOOTH_SD == 110)
#def... | Enable ubluepy module if s110 bluetooth stack is enabled. | nrf5/sdk: Enable ubluepy module if s110 bluetooth stack is enabled.
| C | mit | tralamazza/micropython,tralamazza/micropython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/micropython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,tralamazza/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafru... |
55793ac91e2491d9c9af88aa82792be759ac2039 | i2c.h | i2c.h | #ifndef _I2C_H
#define _I2C_H
#define I2C_FREQ 100000
struct i2c_iovec_s {
uint8_t *base;
uint8_t len;
};
void i2c_init(void);
void i2c_open(void);
void i2c_close(void);
int8_t i2c_readv(uint8_t address, struct i2c_iovec_s *iov, uint8_t iovcnt);
int8_t i2c_writev(uint8_t address, struct i2c_iovec_s *iov, uin... | #ifndef _I2C_H
#define _I2C_H
#ifndef I2C_FREQ
#define I2C_FREQ 100000
#endif
struct i2c_iovec_s {
uint8_t *base;
uint8_t len;
};
void i2c_init(void);
void i2c_open(void);
void i2c_close(void);
int8_t i2c_readv(uint8_t address, struct i2c_iovec_s *iov, uint8_t iovcnt);
int8_t i2c_writev(uint8_t address, stru... | Allow I2C_FREQ to be defined externally | Allow I2C_FREQ to be defined externally
| C | mit | pietern/avr-tasks,pietern/avr-tasks |
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... |
11e80dae6366516bca9e59c807f171073a596885 | libraries/libmdb/mdb_stat.c | libraries/libmdb/mdb_stat.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "mdb.h"
int main(int argc,char * argv[])
{
int i = 0, rc;
MDB_env *env;
MDB_db *db;
MDB_stat *mst;
char *envname = argv[1];
char *subname = NULL;
if (argc > 2)
subname = argv[2];
rc = mdbenv_create(&env, 0);
rc = mdbenv_open(env, envname... | Return statistics for a DB | Return statistics for a DB
Eventually this will have to grow up to be like BDB db_stat...
| C | mit | bobek-balinek/BlueJet | |
617257ce33aeaede4f9756b3ad1bebc099901955 | resource.h | resource.h | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Glide2x.rc
//
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_V... | Add forgotten file. Created when the .rc file was added to provide the dll with a version to keep Red Baron happy. | Add forgotten file. Created when the .rc file was added
to provide the dll with a version to keep Red Baron happy.
| C | lgpl-2.1 | voyageur/openglide,voyageur/openglide,voyageur/openglide | |
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... |
a3d91cd6a6384478d88ed3022ea4bda8646fedea | test/FrontendC/struct-matching-constraint.c | test/FrontendC/struct-matching-constraint.c | // RUN: %llvmgcc -S -march=armv7a %s
// XFAIL: *
// XTARGET: arm
typedef struct __simd128_uint16_t
{
__neon_uint16x8_t val;
} uint16x8_t;
void b(uint16x8_t sat, uint16x8_t luma)
{
__asm__("vmov.16 %1, %0 \n\t"
"vtrn.16 %0, %1 \n\t"
:"=w"(luma), "=w"(sat)
:"0"... | Add a testcase, enabled only on arm, for llvm-gcc r132366. | Add a testcase, enabled only on arm, for llvm-gcc r132366.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@132409 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm... | |
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 |
2f6e06781241e3db0d1b7d21402915fe4e02c159 | src/exttextcat-version.h | src/exttextcat-version.h | #ifndef EXTTEXTCAT_VERSION_H
#define EXTTEXTCAT_VERSION_H
#define EXTTEXTCAT_VERSION "3.1.0"
#define EXTTEXTCAT_VERSION_MAJOR 3
#define EXTTEXTCAT_VERSION_MINOR 1
#define EXTTEXTCAT_VERSION_MICRO 0
#endif
| Revert "Don't put under source control generated file" | Revert "Don't put under source control generated file"
This reverts commit 482955edc082c5aac04176194150c0fa5ff1d247.
| C | bsd-3-clause | freedesktop-unofficial-mirror/libreoffice__libexttextcat,freedesktop-unofficial-mirror/libreoffice__libexttextcat,giuliopaci/libexttextcat,giuliopaci/libexttextcat,tripleee/libexttextcat,tripleee/libexttextcat,freedesktop-unofficial-mirror/libreoffice__libexttextcat,giuliopaci/libexttextcat,tripleee/libexttextcat | |
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 |
bb076f20a329b171930f18ac5e4efb39fd8a6288 | libmue/team_container.h | libmue/team_container.h | #ifndef MUE__TEAM_CONTAINER
#define MUE__TEAM_CONTAINER
#include <array>
#include <vector>
#include <string.h>
#include <boost/assert.hpp>
#include "config.h"
namespace mue {
template <typename T, std::size_t NUM>
class Limited_array
{
private:
using _Value_type = T;
using _Array = std::array<_Value_type, NU... | Add a simple wrapper around std::array | Add a simple wrapper around std::array
This is a simple container backed by a std::array that can be limited
in it length. It should be faster that std::vector because it has no
need for dynamic memory management.
Signed-off-by: Jan Losinski <577c4104c61edf9f052c616c0c23e67bef4a9955@wh2.tu-dresden.de>
| C | bsd-3-clause | janLo/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool | |
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 |
56315b979b4a10e3f722f63d6e042e217712c6c0 | include/gpu/GrTBackendEffectFactory.h | include/gpu/GrTBackendEffectFactory.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrTBackendEffectFactory_DEFINED
#define GrTBackendEffectFactory_DEFINED
#include "GrBackendEffectFactory.h"
#include "GrEffectStage.h"
/**
* Implements GrBackendEff... | Add file accidentally omitted from r6182. | Add file accidentally omitted from r6182.
git-svn-id: fe2049e5d81cf1423cb2a2a3211c731fbdf7e559@6186 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | MonkeyZZZZ/platform_external_skia,YUPlayGodDev/platform_external_skia,sombree/android_external_skia,Tesla-Redux/android_external_skia,Infinitive-OS/platform_external_skia,houst0nn/external_skia,MinimalOS-AOSP/platform_external_skia,AOSP-YU/platform_external_skia,TeamTwisted/external_skia,Samsung/skia,Hybrid-Rom/externa... | |
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-... |
cd5cc255334e414d2390101b600ce1734368d86e | ir/be/test/boolsimplify.c | ir/be/test/boolsimplify.c | int range0(int a)
{
return 0 <= a && a < 10;
}
int range1(int a)
{
return 1 <= a && a < 10;
}
int test_lt_and_lt(int a)
{
return a < 5 && a < 10;
}
int test_lt_and_eq(int a)
{
return a < 5 && a == 10;
}
int test_lt_and_gt(int a)
{
return a < 5 && a > 10;
}
int test_eq_and_lt(int a)
{
return a == 5 && a < 10;... | Add crude tests for bool simplifications. | Add crude tests for bool simplifications.
[r16494]
| C | lgpl-2.1 | killbug2004/libfirm,jonashaag/libfirm,MatzeB/libfirm,8l/libfirm,killbug2004/libfirm,MatzeB/libfirm,davidgiven/libfirm,killbug2004/libfirm,davidgiven/libfirm,8l/libfirm,jonashaag/libfirm,8l/libfirm,davidgiven/libfirm,libfirm/libfirm,killbug2004/libfirm,8l/libfirm,jonashaag/libfirm,jonashaag/libfirm,8l/libfirm,libfirm/li... | |
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 |
06db3f988ef26a3be0c0040409288e4ad449aa94 | March-29th-2016/squeezeStrings.c | March-29th-2016/squeezeStrings.c | #include <limits.h>
#include <stdio.h>
#include <errno.h>
/* K&R C (Dennis M. Ritchie & Brian W. Kernighan)
Exercise 2-4. Write an alternative version of squeeze(s1,s2)
that deletes each character in s1 that matches any character
in the string s2.
*/
// O(n) solution
int Squeeze(char* s1, const char* s2) {
... | Remove all chars from s2 in s1 O(n) | Remove all chars from s2 in s1 O(n) | C | mit | CptDemocracy/The-C-Blues,CptDemocracy/The-C-Blues | |
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 |
3217b8affa0b61ccdee76c8e6b59b87484707a2c | problem_1/solution.c | problem_1/solution.c | #include <stdio.h>
#define LIST_SIZE 1000
int divisible_by(int x, int y){
return x % y == 0;
}
int sum_multiples_of(int n1, int n2){
int list[LIST_SIZE], i, s;
s = 0;
for(i = 0; i < LIST_SIZE; i++){
if(divisible_by(i, n1) == 1 || divisible_by(i, n2) == 1){
list[i] = i;
s += i;
}
}
ret... | Add C implementation for problem 1 | Add C implementation for problem 1
| C | mit | mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler | |
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... |
9dbb2ff853ade8b9af671904add3d1b8e34fbe7c | common/include/special_test.h | common/include/special_test.h | /**
* Copyright (c) 2015 Google Inc.
* 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 conditions an... | Build Tools: Moved special test flags into -spec | Bootrom: Build Tools: Moved special test flags into -spec
Converted the gear_change_test and suspend/resume tests from individual
compile flags into the special-test (-spec <num>) mechanism. (includes
file missing from original commit.
Testing Done: multiple builds and compile tests to ensure that the right
flags wer... | C | bsd-3-clause | projectara/bootrom,gregkh/bootrom | |
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 |
501525eed454bc815b4ab5bfd7fb7d58609a026e | tools/ccc/test/ccc/pth.c | tools/ccc/test/ccc/pth.c | // RUN: cp %s %t &&
// RUN: xcc -x c-header %t -o %t.pth &&
// RUN: xcc -### -S -include %t -x c /dev/null &> %t.log &&
// RUN: grep '"-token-cache" ".*/pth.c.out.tmp.pth"' %t.log
// RUN: true
| Test case for transparent PTH support. | ccc: Test case for transparent PTH support.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@64420 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... | |
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... |
f0383f0d310a33c8c925e9c41f02eba54c4ff905 | lib/Target/Mips/MipsABIInfo.h | lib/Target/Mips/MipsABIInfo.h | //===---- MipsABIInfo.h - Information about MIPS ABI's --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add file that should have been in r223027 | Add file that should have been in r223027
git-svn-id: 1a981f132218c5d985e5b5a896e7a8b8201781d6@223028 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap | |
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 |
7b5b5d10206d8d492ca5823639a2828d43d85536 | src/lib/dom/Egueb_Dom_Private.h | src/lib/dom/Egueb_Dom_Private.h | /* Egueb_Dom - DOM
* Copyright (C) 2011 - 2013 Jorge Luis Zapata
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later... | Add a private header for user-provided dom libs | Add a private header for user-provided dom libs
| C | lgpl-2.1 | turran/egueb,turran/egueb,turran/egueb | |
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 |
12bcbfff311bb2a17f545b3bd7f259f150604096 | test2/structs/function_passing/stret_large.c | test2/structs/function_passing/stret_large.c | // RUN: %ocheck 0 %s
struct A
{
int x, y, z;
int e, f;
};
void clobber_args()
{
}
struct A f(void)
{
clobber_args(0, 1, 2); // clobber the stret pointer
return (struct A){ 1, 2, 3, 4, 5};
}
int main()
{
struct A a;
a = f();
if(a.x != 1
|| a.y != 2
|| a.z != 3
|| a.e != 4
|| a.f != 5)
{
abort();
}
... | Test for struct return-by-value, both caller and callee | Test for struct return-by-value, both caller and callee
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler | |
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 |
4f16756123d6203bc1ce4977032fb93c632a5a56 | src/setjmp/longjmp.c | src/setjmp/longjmp.c | /* libunwind - a platform-independent unwind library
Copyright (C) 2003-2004 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (... | Include "setjmp_i.h". Abstract ia64-specific code into bsp_match() routine. Support any platform with at least 2 EH argument registers. | Include "setjmp_i.h".
Abstract ia64-specific code into bsp_match() routine.
Support any platform with at least 2 EH argument registers.
2004/12/06 01:33:16-08:00 mostang.com!davidm
Rename: src/longjmp.c -> src/setjmp/longjmp.c
(Logical change 1.290)
| C | mit | bo-on-software/libunwind,geekboxzone/mmallow_external_libunwind,zeldin/platform_external_libunwind,fillexen/libunwind,lat/libunwind,ehsan/libunwind,djwatson/libunwind,rantala/libunwind,bo-on-software/libunwind,fdoray/libunwind,maltek/platform_external_libunwind,tkelman/libunwind,maltek/platform_external_libunwind,proje... | |
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 |
f55431e897ce62a2f4697a488467e8b7a1bdedcd | hello.c | hello.c | /* hello.c
build with:
gcc -nostartfiles -fno-asynchronous-unwind-tables -Os -static -o hello hello.c
strip -R .comment -s hello
*/
#include <unistd.h>
const char message[] = "\n"
"Hello from Docker.\n"
"This message shows that your installation appears to be working correctly.\n"
"\n"
"To generate this message,... | Replace with portable version in C | Replace with portable version in C
Build a minimal version in C instead of assembly so it easily can be
ported to other archs.
This statically linked C version builds a binary that is 1472 bytes.
fixes #7
| C | mit | infosiftr/hello-world,Posytron/teste,docker-library/hello-world,docker-library/hello-world,infosiftr/hello-world,Posytron/teste | |
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... |
805fc1080042295111421907863163f362b856d6 | IMU/readImuDMP/blinkio.c | IMU/readImuDMP/blinkio.c | #include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include "mraa.h"
#define thumb_f 8
#define index_f 9
#define middle_f 10
#define ring_f 11
#define pinky_f 12
int running = 0;
int
main(int argc, char** argv)
{
mraa_result_t r = MRAA_SUCCESS;
mraa_init();
... | ADD - Added functional GPIO code to IMU folder | ADD - Added functional GPIO code to IMU folder
| C | mit | danielholanda/Tactile-Glove,danielholanda/Tactile-Glove,danielholanda/Tactile-Glove | |
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... |
b194a61515f0585ef632e934f05d4b4bbac8b50d | pgf+/include/gf/stringutil.h | pgf+/include/gf/stringutil.h | //
// string.h
// pgf+
//
// Created by Emil Djupfeldt on 2012-06-25.
// Copyright (c) 2012 Chalmers University of Technology. All rights reserved.
//
#ifndef pgf__string_h
#define pgf__string_h
#include <string>
#include <vector>
namespace gf {
static inline std::vector<std::string> split(const std::st... | Add some string utility functions. | Add some string utility functions.
| C | bsd-2-clause | egladil/mscthesis,egladil/mscthesis,egladil/mscthesis | |
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 |
58825b976bd868c9006e12f39e350f1bd42e116d | tests/regression/06-symbeq/34-var_eq-exponential-context.c | tests/regression/06-symbeq/34-var_eq-exponential-context.c | // SKIP PARAM: --set ana.activated[+] var_eq
void level0(int *p) {
}
void level1(int *p, int *q) {
level0(p);
level0(q);
}
void level2(int *p, int *q) {
level1(p, q);
level1(q, p);
}
void level3(int *p, int *q) {
level2(p, q);
level2(q, p);
}
void level4(int *p, int *q) {
level3(p, q);
level3(q, p... | Add skipped test where var_eq gets exponentially many contexts | Add skipped test where var_eq gets exponentially many contexts
See https://github.com/goblint/bench/issues/16#issuecomment-1100067978.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.