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 |
|---|---|---|---|---|---|---|---|---|---|
311c25085bd88d500450794547ad4cead98f4737 | bcl/stm/src/main.c | bcl/stm/src/main.c | #include <bc_scheduler.h>
#include <bc_module_core.h>
#include <stm32l0xx.h>
void application_init(void);
void application_task(void *param);
int main(void)
{
bc_module_core_init();
bc_scheduler_init();
bc_scheduler_register(application_task, NULL, 0);
application_init();
bc_scheduler_run();
}... | #include <bc_scheduler.h>
#include <bc_module_core.h>
#include <stm32l0xx.h>
void application_init(void);
void application_task(void *param);
int main(void)
{
bc_module_core_init();
while (bc_tick_get() < 500)
{
continue;
}
bc_scheduler_init();
bc_scheduler_register(application_task... | Add 500ms wait at startup | Add 500ms wait at startup
| C | mit | bigclownlabs/bc-core-module-sdk,bigclownlabs/bc-core-module-sdk,bigclownlabs/bc-core-module-sdk |
e4faf7ca0dad2d66b21425546ec3e9eec5b9352a | cpp/util/StringTesting.h | cpp/util/StringTesting.h | #include<stdint.h>
#include<string>
#include<stdexcept>
#include<vector>
// styled according to the Google C++ Style guide
// https://google.github.io/styleguide/cppguide.html
struct TestString {
std::string s;
uint8_t key;
uint32_t score;
};
TestString CreateTestString(std::string input_string, uint8_t input_key... | #include<stdint.h>
#include<string>
#include<stdexcept>
#include<vector>
// styled according to the Google C++ Style guide
// https://google.github.io/styleguide/cppguide.html
struct TestString {
std::string s;
uint8_t key;
int32_t score;
};
TestString CreateTestString(std::string input_string, uint8_t input_key)... | Change TestString score to signed int | Change TestString score to signed int
| C | mit | TheLunchtimeAttack/matasano-challenges,TheLunchtimeAttack/matasano-challenges |
e2cd05e4e0e3a41039d58f171023d66206fee3bd | tests/regression/13-privatized/59-smtprc_threadenter_path_minimal.c | tests/regression/13-privatized/59-smtprc_threadenter_path_minimal.c | #include <pthread.h>
struct options {
unsigned short number_of_threads ;
unsigned short cur_threads ;
};
struct flags {
unsigned char debug ;
};
struct options o ;
struct flags f ;
int cleaner_start(void)
{
// make unknown
int r;
o.cur_threads = r;
o.number_of_threads = r;
f.debug = r;
return 0... | Add regression test where mine-lazy used to crash due to multiple paths | Add regression test where mine-lazy used to crash due to multiple paths
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
df934456592ccd64dbe9ba4a394f6a9b62effa57 | stdafx.h | stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
#include <io.h>
#... | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
#include <io.h>
#... | Correct locaiton of msado15 for x64 dev platform | Correct locaiton of msado15 for x64 dev platform
| C | bsd-2-clause | duncansmart/sqlpipe,duncansmart/sqlpipe |
b6bca94cd4fe8096cf9c22c31c1cc4a988b51c70 | src/dsmcc-ts.h | src/dsmcc-ts.h | #ifndef DSMCC_TS_H
#define DSMCC_TS_H
#include <stdint.h>
#define DSMCC_TSPARSER_BUFFER_SIZE (4096 + 188)
struct dsmcc_tsparser_buffer
{
uint16_t pid;
int si_seen;
int in_section;
int cont;
uint8_t data[DSMCC_TSPARSER_BUFFER_SIZE];
struct dsmcc_tsparser_buffer *next;
};
#endif
| #ifndef DSMCC_TS_H
#define DSMCC_TS_H
#include <stdint.h>
#define DSMCC_TSPARSER_BUFFER_SIZE 8192
struct dsmcc_tsparser_buffer
{
uint16_t pid;
int si_seen;
int in_section;
int cont;
uint8_t data[DSMCC_TSPARSER_BUFFER_SIZE];
struct dsmcc_tsparser_buffer *next;
};
#endif
| Increase size of section buffer | Increase size of section buffer
| C | lgpl-2.1 | frogbywyplay/media_libdsmcc,frogbywyplay/media_libdsmcc |
297029a7e14db8fd6f30c578e1c1860dadc04096 | frame_tools.c | frame_tools.c | #include <clib/alib_stdio_protos.h>
#include <clib/graphics_protos.h>
#include <inline/graphics_protos.h>
#include <proto/graphics.h>
#include "frame_tools.h"
void RenderFrameNumber(int frameNumber) {
struct RastPort *rastPort = GetCurrentRastPort();
SetDrMd(rastPort, JAM1);
char number[4];
sprintf(number,... | #include <clib/alib_stdio_protos.h>
#include <clib/graphics_protos.h>
#include <inline/graphics_protos.h>
#include <proto/graphics.h>
#include "frame_tools.h"
void RenderFrameNumber(int frameNumber) {
struct RastPort *rastPort = GetCurrentRastPort();
SetDrMd(rastPort, JAM1);
char number[5];
sprintf(number,... | Fix a nasty crash on Z3 Fast RAM enabled WinUAE. | Fix a nasty crash on Z3 Fast RAM enabled WinUAE.
| C | artistic-2.0 | cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene |
ef0a815082ee32b1bb661cc0b91a6eae53a7e2c3 | inc/setting.h | inc/setting.h | #ifndef __SETTING_H__
#define __SETTING_H__
#define DITHERING_AMP 768;
#define BUFFER_NUM 4
#define STAGE_NUM 4
#define SAMPLE_NUM 256
#define SAMPLE_MAX 2047
#define SAMPLING_RATE 45 /* In Kilo Hz, Make Sure it can divide 45000*/
#define SAMPLE_PERIOD (1.0f / SAMPLING_RATE)
#define Q_1 1048576
#define Q_MULT_SHIF... | #ifndef __SETTING_H__
#define __SETTING_H__
#define DITHERING_AMP 768;
#define BUFFER_NUM 4
#define STAGE_NUM 4
#define SAMPLE_NUM 256
#define SAMPLE_MAX 2047
#define SAMPLING_RATE 44.1 /* In Kilo Hz, Make Sure it can divide 45000*/
#define SAMPLE_PERIOD (1.0f / SAMPLING_RATE)
#define Q_1 1048576
#define Q_MULT_SH... | Change SAMpling Rate to 44.1K, ready for wav playing | Change SAMpling Rate to 44.1K, ready for wav playing
| C | mit | sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,BeyondCloud/uRock,BeyondCloud/uRock |
caff0ab5a3a6557dfb052b79474c87d27674b551 | include/lightmodbus/lightmodbus.h | include/lightmodbus/lightmodbus.h | /*
liblightmodbus - a lightweight, multiplatform Modbus library
Copyright (C) 2017 Jacek Wieczorek <mrjjot@gmail.com>
This file is part of liblightmodbus.
Liblightmodbus is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software... | Add general library header file for user convenience | Add general library header file for user convenience
| C | mit | Jacajack/modlib | |
b11ab06cced551e9c13ded5aea5f753ab427b1af | lib/common/ArrayConverter.h | lib/common/ArrayConverter.h | //__________________________________________________________________________
// Author(s): Claudio Pizzolato - October 2013
// email: claudio.pizzolato@griffithuni.edu.au
//
// DO NOT REDISTRIBUTE WITHOUT PERMISSION
//__________________________________________________________________________
//
#ifndef ArrayConverter... | Add conversion from OpenSim array to vector | Add conversion from OpenSim array to vector
| C | apache-2.0 | CEINMS/CEINMS | |
ac5bfbbc8e46369f49816d8400d10dceceaa8b5a | 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: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@986 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT |
dd8141b9f910bda6a1f423dcdda0ca48fac8cdcf | src/capwap/dtls_gnutls.c | src/capwap/dtls_gnutls.c | /*
This file is part of libcapwap.
libcapwap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
libcapwap is distribut... | /*
This file is part of libcapwap.
libcapwap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
libcapwap is distribut... | Debug info for init dunction. | Debug info for init dunction.
FossilOrigin-Name: 7127f1670bedbfa09f000dcd4eff557f448184d0450b373e888856979877ccbe | C | bsd-2-clause | 7u83/actube,7u83/actube,7u83/actube,7u83/actube,7u83/actube |
43d18db47ade75c53db4fce9b521a96b01c75cec | inc/setting.h | inc/setting.h | #ifndef __SETTING_H__
#define __SETTING_H__
#define BUFFER_NUM 4
#define STAGE_NUM 4
#define SAMPLE_NUM 256
#define SAMPLE_MAX 2047
#define SAMPLING_RATE 100 /* In Kilo Hz, Make Sure it can divide 45000*/
#define SAMPLE_PREIOD 1 / SAMPLE_RATE
#define BLOCK_PREIOD SAMPLE_NUM / SAMPLING_RATE
#define DELAY_BANK(x) DE... | #ifndef __SETTING_H__
#define __SETTING_H__
#define BUFFER_NUM 4
#define STAGE_NUM 4
#define SAMPLE_NUM 256
#define SAMPLE_MAX 2047
#define SAMPLING_RATE 200 /* In Kilo Hz, Make Sure it can divide 45000*/
#define SAMPLE_PREIOD 1 / SAMPLE_RATE
#define BLOCK_PREIOD SAMPLE_NUM / SAMPLING_RATE
#define DELAY_BANK(x) DE... | Increase the sampling rate to 200khz | Increase the sampling rate to 200khz
| C | mit | sonicyang/uRock,BeyondCloud/uRock,BeyondCloud/uRock,sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,sonicyang/uRock,BeyondCloud/uRock |
f8cbdcc43038a1acb26f6643aa06c082b14c15ef | src/Game/Player.h | src/Game/Player.h | //
// WulfGame/Game/Player.h
// Copyright (C) 2012 Lexi Robinson
// This code is freely available under the MIT licence.
//
#pragma once
#include <glm/glm.hpp>
#include "WulfConstants.h"
#include "Game/InputManager.h"
#include "Game/Constants.h"
#include "Game/Entity.h"
#include "Map/Map.h"
namespace Wulf {
class Pla... | //
// WulfGame/Game/Player.h
// Copyright (C) 2012 Lexi Robinson
// This code is freely available under the MIT licence.
//
#pragma once
#include <glm/glm.hpp>
#include "WulfConstants.h"
#include "Game/InputManager.h"
#include "Game/Constants.h"
#include "Game/Entity.h"
#include "Map/Map.h"
namespace Wulf {
class Pla... | Add ammo and score fields to the player object | Add ammo and score fields to the player object
| C | mit | Lexicality/Wulf2012,Lexicality/Wulf2012 |
c4e291a94360b117fcdd4ea141599de0c670e70a | src/core/server.h | src/core/server.h | #ifndef APIMOCK_SERVER_H
#define APIMOCK_SERVER_H
#include <string>
#include <memory>
#include <functional>
#include "http/requestdata.h"
#include "http/responsedata.h"
namespace ApiMock {
class Server {
typedef std::function<ResponseData(RequestData)> CreateResponse;
struct ServerImpl;
std::unique_ptr<ServerIm... | #ifndef APIMOCK_SERVER_H
#define APIMOCK_SERVER_H
#include <string>
#include <memory>
#include <functional>
#include "http/requestdata.h"
#include "http/responsedata.h"
namespace ApiMock {
class Server {
struct ServerImpl;
std::unique_ptr<ServerImpl> _impl;
Server& operator=(const Server&);
Server(const Serv... | Make the CreateResponse typedef public | Make the CreateResponse typedef public
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
74163dc02b192de5b4286d5cc7bd0377a7d06a74 | CKTextField/CKTextField.h | CKTextField/CKTextField.h | //
// CKTextField.h
// CKTextField
//
// Created by Christian Klaproth on 12.09.14.
// Copyright (c) 2014 Christian Klaproth. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CKExternalKeyboardSupportedTextField.h"
@class CKTextField;
enum CKTextFieldValidationResult {
... | //
// CKTextField.h
// CKTextField
//
// Created by Christian Klaproth on 12.09.14.
// Copyright (c) 2014 Christian Klaproth. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CKExternalKeyboardSupportedTextField.h"
@class CKTextField;
enum CKTextFieldValidationResult {
... | Use of IBInspectable for user defined attributes. | Use of IBInspectable for user defined attributes.
Validation type and ranges can be specified using the attribute
inspector. #5
| C | mit | JaNd3r/CKTextField,JaNd3r/CKTextField |
1c38627f3851dbae42f216f3e74de7ccf7f09e7a | chap1/onnewline.c | chap1/onnewline.c | #include <stdio.h>
#define IN 1 /* inside a word */
#define OUT 0 /* outside a word */
/* print words on a new line */
int main()
{
int state = OUT;
int c = 0;
int nl = 0;
int nw = 0;
int nc = 0;
while ((c = getchar()) != EOF) {
++nc;
if (c == '\n') {
++nl;
... | Add program to print whole words on new line | Add program to print whole words on new line
| C | mit | jabocg/theclang | |
545aa5b0f40ba9967a60a53a0d802e1aac4bbc52 | include/ieeefp.h | include/ieeefp.h | /* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
* Public domain.
*/
#ifndef _IEEEFP_H_
#define _IEEEFP_H_
#include <sys/cdefs.h>
#include <machine/ieeefp.h>
#ifdef i386
#include <machine/floatingpoint.h>
#else
extern fp_rnd fpgetround __P((void));
exter... | /* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
* Public domain.
*/
#ifndef _IEEEFP_H_
#define _IEEEFP_H_
#include <sys/cdefs.h>
#include <machine/ieeefp.h>
#ifdef __i386__
#include <machine/floatingpoint.h>
#else /* !__i386__ */
extern fp_rnd fpgetroun... | Use __i386__ instead of i386 in an ifdef. | Use __i386__ instead of i386 in an ifdef.
| 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 |
842aca0623cbfe63d732996a2245e57982bf1d19 | tests/regression/23-partitioned_arrays_last/12-advantage_for_last.c | tests/regression/23-partitioned_arrays_last/12-advantage_for_last.c | // PARAM: --sets solver td3 --enable ana.int.interval --disable ana.int.trier --disable exp.fast_global_inits --sets exp.partition-arrays.keep-expr "last" --enable exp.partition-arrays.enabled --set ana.activated "['base','expRelation','octagon']"
void main(void) {
example1();
}
void example1(void) {
int a[42];... | Add example where it is better to keep last expression | Array: Add example where it is better to keep last expression
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
204cd8ac785d45c5fd3a45b019a489ffc408398e | kernel/cwos.c | kernel/cwos.c | #include <uart.h>
#include <irq.h>
void cwos_boot()
{
uart_init();
uart0_send("Hello CWOS World\n");
irq_enable();
trigger_swi();
while (1) {
}
}
| #include <uart.h>
#include <irq.h>
void cwos_boot()
{
uart_init();
uart0_send("Hello CWOS World\n");
uart0_send("Press any key to see echo:\n");
irq_enable();
while (1) {
}
}
| Update CWOS boot welcome messages | Update CWOS boot welcome messages
| C | mit | waynecw/cwos,waynecw/cwos |
fb1702cc9197a0a0c2792a86a3cdaa774ec03455 | chrome/browser/chromeos/login/mock_user_manager.h | chrome/browser/chromeos/login/mock_user_manager.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#pragma once
#include <string>
... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#pragma once
#include <string>
... | Fix clang warning in tests for Chrome OS | Fix clang warning in tests for Chrome OS
BUG=none
TEST=build with clang and gcc
Review URL: http://codereview.chromium.org/7002028
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@84970 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/c... |
37f3968096b6f326b3d6f54e8d805677665602aa | src/main.h | src/main.h | /**
*
* Copyright (C) Tyler Hackett 2016
*
* CUDA Triangle Counter
*
* A quickly-written program to determine all possible combinations of
* valid triangles from a grid, allowing for certain coordinates of the
* grid to be marked as unusable.
*
* main.h
*
* */
#define GRID_WIDTH 4
#define GRID_HEIGHT 4
const uint2 h_... | /**
*
* Copyright (C) Tyler Hackett 2016
*
* CUDA Triangle Counter
*
* A quickly-written program to determine all possible combinations of
* valid triangles from a grid, allowing for certain coordinates of the
* grid to be marked as unusable.
*
* main.h
*
* */
#define GRID_WIDTH 4
#define GRID_HEIGHT 4
const uint2 h_... | Set up parameters to coincide with Java counterpart | Set up parameters to coincide with Java counterpart
| C | mit | ByteSyze/CudaTriangleCounter |
35f852e50e1556fc79175dcaa62360c97981f038 | src/io/network/socketBase.h | src/io/network/socketBase.h | #ifndef SP2_IO_NETWORK_SOCKET_BASE_H
#define SP2_IO_NETWORK_SOCKET_BASE_H
#include <io/network/socketBase.h>
#include <SFML/System/NonCopyable.hpp>
namespace sp {
namespace io {
namespace network {
class SocketBase : sf::NonCopyable
{
public:
void setBlocking(bool blocking);
void setNoDelay(bool no_delay);... | #ifndef SP2_IO_NETWORK_SOCKET_BASE_H
#define SP2_IO_NETWORK_SOCKET_BASE_H
#include <io/network/socketBase.h>
#include <SFML/System/NonCopyable.hpp>
namespace sp {
namespace io {
namespace network {
class SocketBase : sf::NonCopyable
{
public:
void setBlocking(bool blocking);
void setTimeout(int millisecond... | Reduce jitter on network communication by enabling NO_DELAY, but still make large packets within a update cycle. | Reduce jitter on network communication by enabling NO_DELAY, but still make large packets within a update cycle.
| C | mit | daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton |
c878414354902f7800675ee0bf31d10892400a81 | sys/kern/stack_protector.c | sys/kern/stack_protector.c | #include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/libkern.h>
#if defined(__SSP__) || defined(__SSP_ALL__)
long __stack_chk_guard[8] = {};
void __stack_chk_fail(void);
void
__stack_chk_fail(void)
{
panic("stack ov... | #include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/libkern.h>
long __stack_chk_guard[8] = {};
void __stack_chk_fail(void);
void
__stack_chk_fail(void)
{
panic("stack overflow detected; backtrace may be corrupted")... | Fix a chicken-and-egg problem: this files implements SSP support, so we cannot compile it with -fstack-protector[-all] flags (or it will self-recurse); this is ensured in sys/conf/files. This OTOH means that checking for defines __SSP__ and __SSP_ALL__ to determine if we should be compiling the support is impossible (w... | Fix a chicken-and-egg problem: this files implements SSP support,
so we cannot compile it with -fstack-protector[-all] flags (or
it will self-recurse); this is ensured in sys/conf/files. This
OTOH means that checking for defines __SSP__ and __SSP_ALL__ to
determine if we should be compiling the support is impossible
(... | 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 |
209fb5332115499f76f347fdb5a376ba1d9deea3 | test/test_chip8.c | test/test_chip8.c | #include <assert.h>
#include "../src/chip8.c"
void test_clear_screen(void) {
int i;
chip8_t * chip8 = chip8_new();
chip8->memory[0x200] = 0x00;
chip8->memory[0x201] = 0xE0;
chip8_fetch_current_opcode(chip8);
chip8_decode_current_opcode(chip8);
i = 0;
while (i < 64 * 32) {
assert(chip8->memory[i+... | Add test for 0x00E0 (clear screen) | Add test for 0x00E0 (clear screen)
| C | mit | gsamokovarov/chip8.c,gsamokovarov/chip8.c | |
71bddbf5bdb5c90bd041e8e126d75e15001a62a7 | OrbitCore/Profiling.h | OrbitCore/Profiling.h | //-----------------------------------
// Copyright Pierric Gimmig 2013-2017
//-----------------------------------
#pragma once
#include "BaseTypes.h"
#include "Platform.h"
#include "Utils.h"
//-----------------------------------------------------------------------------
typedef uint64_t TickType;
//-----------------... | //-----------------------------------
// Copyright Pierric Gimmig 2013-2017
//-----------------------------------
#pragma once
#include "BaseTypes.h"
#include "Platform.h"
#include "Utils.h"
//-----------------------------------------------------------------------------
typedef uint64_t TickType;
//-----------------... | Use CLOCK_MONOTONIC as default timer clock to align with kenel events. | Use CLOCK_MONOTONIC as default timer clock to align with kenel events.
| C | bsd-2-clause | pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,google/orbit,google/orbit,google/orbit,google/orbit |
3c9e03bda57d33097b19eef1dbb06bc5b2876551 | test/Sema/format-string-percentm.c | test/Sema/format-string-percentm.c | // RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu
int printf(char const*,...);
void percentm(void) {
printf("%m");
}
| // RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu
// PR 4142 - support glibc extension to printf: '%m' (which prints strerror(errno)).
int printf(char const*,...);
void percentm(void) {
printf("%m");
}
| Add comment to test linking it back to the original Bugzilla PR. | Add comment to test linking it back to the original Bugzilla PR.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@94816 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,llvm-mirror/clang,llvm-mirror/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,apple/swift-cl... |
532059d32b79e5c560142e4d1de67330361cc5f2 | examples/ffi-struct/struct.c | examples/ffi-struct/struct.c | struct Inner
{
int x;
};
struct Outer
{
struct Inner inner_embed;
struct Inner* inner_var;
};
void modify_via_outer(struct Outer* s)
{
s->inner_embed.x = 10;
s->inner_var->x = 15;
}
void modify_inner(struct Inner* s)
{
s->x = 5;
}
| typedef struct Inner
{
int x;
} Inner;
typedef struct Outer
{
struct Inner inner_embed;
struct Inner* inner_var;
} Outer;
void modify_via_outer(Outer* s)
{
s->inner_embed.x = 10;
s->inner_var->x = 15;
}
void modify_inner(Inner* s)
{
s->x = 5;
}
| Fix C file coding style | Fix C file coding style
| C | bsd-2-clause | jupvfranco/ponyc,cquinn/ponyc,Theodus/ponyc,jupvfranco/ponyc,mkfifo/ponyc,Praetonus/ponyc,Theodus/ponyc,Praetonus/ponyc,mkfifo/ponyc,ryanai3/ponyc,Perelandric/ponyc,lukecheeseman/ponyta,kulibali/ponyc,ryanai3/ponyc,jupvfranco/ponyc,malthe/ponyc,Theodus/ponyc,ponylang/ponyc,jupvfranco/ponyc,dipinhora/ponyc,mkfifo/ponyc,... |
f0337c2d1afb2774e6e58b2084f769d3436e5b1e | unittest/include_gunit.h | unittest/include_gunit.h | // (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | // (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | Add more portability hacks for Google test environment | Add more portability hacks for Google test environment
Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
| C | apache-2.0 | UB-Mannheim/tesseract,stweil/tesseract,jbarlow83/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,stweil/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,amitdo/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tes... |
5b61dafd1ba7e44f39cf73344f2a0b2b8e66064c | src/imap/cmd-logout.c | src/imap/cmd-logout.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_logout(struct client *client)
{
client_send_line(client, "* BYE Logging out");
if (client->mailbox != NULL) {
/* this could be done at client_disconnect() as well,
but eg. mbox rewrite takes a while so the waiting is
... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_logout(struct client *client)
{
client_send_line(client, "* BYE Logging out");
o_stream_uncork(client->output);
if (client->mailbox != NULL) {
/* this could be done at client_disconnect() as well,
but eg. mbox rewrite ... | Send the "* BYE Logging out" before closing mailbox. | Send the "* BYE Logging out" before closing mailbox.
| C | mit | Distrotech/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot |
193aa373d84ba155eb0307afa6cd4fecf710d007 | src/untrusted/irt/irt_tls.c | src/untrusted/irt/irt_tls.c | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <errno.h>
#include "native_client/src/untrusted/irt/irt.h"
#include "native_client/src/untrusted/nacl/syscall_bindings_trampolin... | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <errno.h>
#include "native_client/src/untrusted/irt/irt.h"
#include "native_client/src/untrusted/nacl/syscall_bindings_trampolin... | Reduce the cost of getting the thread pointer by one jump on x86-64 | TLS: Reduce the cost of getting the thread pointer by one jump on x86-64
BUG=none
TEST=run_hello_world_test_irt on x86-64
R=mcgrathr@chromium.org
Review URL: https://codereview.chromium.org/226643010
git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@13045 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
| C | bsd-3-clause | sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client |
6d0cd228d5ea5ff734f3bc1754d0dfbb93e6d1b4 | src/defines.h | src/defines.h | #ifndef XORGGTEST_DEFINES
#define XORGGTEST_DEFINES
#define DEFAULT_XORG_LOGFILE "/tmp/Xorg.GTest.log"
#define DEFAULT_XORG_SERVER "Xorg"
#define DEFAULT_DISPLAY 133
#endif
| #ifndef XORGGTEST_DEFINES
#define XORGGTEST_DEFINES
#define DEFAULT_XORG_LOGFILE "/tmp/Xorg.GTest.log"
#define DEFAULT_DISPLAY 133
/* Allow user to override default Xorg server*/
#ifndef DEFAULT_XORG_SERVER
#define DEFAULT_XORG_SERVER "Xorg"
#endif
#endif
| Allow user to override default Xorg server binary | Allow user to override default Xorg server binary
This can be accomplished by compiling xorg-gtest with
-DDEFAULT_XORG_SERVER=path/to/Xorg.
Signed-off-by: Chase Douglas <69e02ec421aa70a149511825d897f2549ceee9a2@canonical.com>
Reviewed-By: Christopher Halse Rogers <f4edbc39080c6cd998e1a8e915acbce7f6e0704a@canonical.co... | C | mit | freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest |
1ff679378c9fe819fe813c25c657e459a87044a9 | src/parse.h | src/parse.h | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "error.h"
#include "expr.h"
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is -1.
struct ParseResult {
size_t chars_read;
struct Expressi... | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "error.h"
#include "expr.h"
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is -1.
struct ParseResult {
size_t chars_read; // number o... | Use int, not ParseErrorType, to allow -1 | Use int, not ParseErrorType, to allow -1
| C | mit | mk12/eva,mk12/eva |
f43a8742653c7bbd4f05440152b05f19a9300d17 | src/globals.h | src/globals.h | #pragma once
#include <fstream>
#include <string>
#include <cerrno>
#include <clocale>
#include <vector>
#include <iostream>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <cairo.h>
#include <gtkmm.h>
#include <gtkmm/application.h>
#include <gtkmm/windo... | #pragma once
#include <fstream>
#include <string>
#include <cerrno>
#include <clocale>
#include <vector>
#include <iostream>
#include <stdlib.h>
#ifdef __APPLE__
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#include <memory.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <cairo.h>
#include <gtkmm.h>
#i... | Make including malloc on MacOS compatible | Make including malloc on MacOS compatible
| C | bsd-3-clause | litehtml/litebrowser-linux |
621af6e0e6a48c8a8c5b4804de1bdc91c3436f5b | third_party/stub-strtok_r.c | third_party/stub-strtok_r.c | /*
* public domain strtok_r() by Charlie Gordon
*
* from comp.lang.c 9/14/2007
*
* http://groups.google.com/group/comp.lang.c/msg/2ab1ecbb86646684
*
* (Declaration that it's public domain):
* http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c
*/
#include <string.h>
#ifdef __MING... | /*
* public domain strtok_r() by Charlie Gordon
*
* from comp.lang.c 9/14/2007
*
* http://groups.google.com/group/comp.lang.c/msg/2ab1ecbb86646684
*
* (Declaration that it's public domain):
* http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c
*/
#include <string.h>
#ifdef __MING... | Fix possible invalid write on Windows-specific `strtok_r` stub | Fix possible invalid write on Windows-specific `strtok_r` stub | C | agpl-3.0 | Levak/warfacebot,Levak/warfacebot,Levak/warfacebot |
e319b2ded9ca34aec90385905077a61f86586eff | EdkCompatibilityPkg/Compatibility/SmmBaseHelper/PageFaultHandler.c | EdkCompatibilityPkg/Compatibility/SmmBaseHelper/PageFaultHandler.c | /** @file
Page fault handler that does nothing.
Copyright (c) 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may... | /** @file
Page fault handler that does nothing.
Copyright (c) 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may... | Add the blank line at the end of file to pass ICC compiler. | Add the blank line at the end of file to pass ICC compiler.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@10357 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
07a6d3c5a9b5006fec34bab289c421a097961be4 | kernel/device/pit.c | kernel/device/pit.c | #include <arch/x64/interrupts.h>
#include <arch/x64/pic.h>
#include <arch/x64/port.h>
#include <truth/interrupts.h>
#include <truth/log.h>
#include <truth/scheduler.h>
#define Timer_IRQ_Number 0x20
#define Timer_Magic_Number 1193180
#define Timer_Chan_0 0x40
#define Timer_Chan_1 0x41
#define Timer_Chan_2 0x42
#defin... | #include <arch/x64/interrupts.h>
#include <arch/x64/pic.h>
#include <arch/x64/port.h>
#include <truth/interrupts.h>
#include <truth/log.h>
#include <truth/scheduler.h>
#define Timer_IRQ_Number 0x20
#define Timer_Magic_Number 1193180
#define Timer_Chan_0 0x40
#define Timer_Chan_1 0x41
#define Timer_Chan_2 0x42
#defin... | Remove annoying debug log message | Remove annoying debug log message
| C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
ed51fe4a5dcdc3ed34b3af9fd7bf03b7cf5da30a | daemon.c | daemon.c | #include <errno.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
FILE* logfile;
void init() {
// Change the umask so we can write to log files
umask(0);
// We should initialize and open log files here
logfile = fopen("./creddit.log", "a");
if (logfile == NULL) {
print... | #include <errno.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
FILE* logfile;
void init() {
// Change the umask so we can write to log files
umask(0);
// We should initialize and open log files here
logfile = fopen("./creddit.log", "a");
if (logfile == NULL) {
print... | Modify session id and first test of logger | Modify session id and first test of logger
| C | mit | nguyenmp/creddit |
a64bbe186f064ccb5791d538fae3572c8e33df4b | src/lang-english.c | src/lang-english.c | #include "num2words.h"
const Language LANG_ENGLISH = {
.hours = {
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
"nine",
"ten",
"eleven",
"twelve"
},
.phrases = {
"*$1 o'clock ",
"five past *$1 ",
"ten past *$1 ",
"quarter past *$1... | #include "num2words.h"
const Language LANG_ENGLISH = {
.hours = {
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
"nine",
"ten",
"eleven",
"twelve"
},
#ifdef PBL_PLATFORM_CHALK
.phrases = {
"*$1 o'clock ",
"five past *$1 ",
"ten past *$... | Fix english language for new line length | Fix english language for new line length
| C | mit | Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus |
893e821a0bdd9807f243465301e9360e909e2ad0 | lib/log.h | lib/log.h | /* $Id$ */
#ifndef __log_h__
#define __log_h__
#include "internal.h"
#define UNSHIELD_LOG_LEVEL_LOWEST 0
#define UNSHIELD_LOG_LEVEL_ERROR 1
#define UNSHIELD_LOG_LEVEL_WARNING 2
#define UNSHIELD_LOG_LEVEL_TRACE 3
#define UNSHIELD_LOG_LEVEL_HIGHEST 4
#ifdef __cplusplus
extern "C"
{
#endif
void _unshi... | /* $Id$ */
#ifndef __log_h__
#define __log_h__
#include "internal.h"
#define UNSHIELD_LOG_LEVEL_LOWEST 0
#define UNSHIELD_LOG_LEVEL_ERROR 1
#define UNSHIELD_LOG_LEVEL_WARNING 2
#define UNSHIELD_LOG_LEVEL_TRACE 3
#define UNSHIELD_LOG_LEVEL_HIGHEST 4
#ifdef __cplusplus
extern "C"
{
#endif
void _unshi... | Use __VA_ARGS__ for better portability | Use __VA_ARGS__ for better portability
| C | mit | twogood/unshield,twogood/unshield |
ba6f0d85b45a08112bafe9a92c7174a46bc18bfd | lib/dns/rdata/rdatastructpre.h | lib/dns/rdata/rdatastructpre.h | /*
* Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... | /*
* Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... | Add macro to initalise the common part of a rdata struct. | Add macro to initalise the common part of a rdata struct.
| C | mpl-2.0 | pecharmin/bind9,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,each/bind9-collab,each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,each/bind9-collab |
1a815fc00a1394e940afa8e007351a2fd948a889 | chapter1/1-9/linelength.c | chapter1/1-9/linelength.c | //
// Created by matti on 14.9.2015.
//
#include <stdio.h>
#define MAXLINE 1000
int getnewline(char line[], int maxline);
void copy(char to[], char from[]);
main() {
int len;
int max;
char line[MAXLINE];
char longest[MAXLINE];
max = 0;
while ((len = getnewline(line, MAXLINE)) > 0) {
... | Add line length example from chapter 1-9 | Add line length example from chapter 1-9
| C | mit | melonmanchan/k-and-r | |
e25c3d3df50e6bbd6ee4bea906ca184952d3eb4a | simulator/infra/target.h | simulator/infra/target.h | /*
* target.h - input interface for Fetch module
* @author Pavel Kryukov pavel.kryukov@phystech.edu
* Copyright 2018 MIPT-MIPS
*/
#ifndef TARGET_H
#define TARGET_H
#include <infra/types.h>
/*
* Target is an input interface for Fetch module
* It contains
* * address where instruction should be fetched
* *... | /*
* target.h - input interface for Fetch module
* @author Pavel Kryukov pavel.kryukov@phystech.edu
* Copyright 2018 MIPT-MIPS
*/
#ifndef TARGET_H
#define TARGET_H
#include <infra/types.h>
/*
* Target is an input interface for Fetch module
* It contains
* * address where instruction should be fetched
* *... | Use 'class' keyword for Target to treat file as C++ | Use 'class' keyword for Target to treat file as C++ | C | mit | MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015 |
a757407ea2a4709594251e0c149883163e00af84 | extensions/common/xwalk_extension_messages.h | extensions/common/xwalk_extension_messages.h | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "ipc/ipc_message_macros.h"
#define IPC_MESSAGE_START ExtensionMsgStart
IPC_MESSAGE_ROUTED2(XWalkViewHostMsg_PostMessage, //... | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "ipc/ipc_message_macros.h"
// Note: it is safe to use numbers after LastIPCMsgStart since that limit
// is not relevant for e... | Use an unique ID for Crosswalk Extension IPC messages | Use an unique ID for Crosswalk Extension IPC messages
We were reusing ExtensionMsgStart, but it is not needed, we can simply
take a number after the existing ones. The LastIPCMsgStart is
currently used only by certain Chrome tools, so we won't miss anything
for being a number larger than the last.
| C | bsd-3-clause | crosswalk-project/crosswalk-efl,alex-zhang/crosswalk,xzhan96/crosswalk,lincsoon/crosswalk,DonnaWuDongxia/crosswalk,weiyirong/crosswalk-1,stonegithubs/crosswalk,baleboy/crosswalk,XiaosongWei/crosswalk,amaniak/crosswalk,mrunalk/crosswalk,crosswalk-project/crosswalk,PeterWangIntel/crosswalk,axinging/crosswalk,xzhan96/cros... |
f36a7bf58c305a14b50902cbf763211f6ef5e52f | MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c | MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c | /** @file
UEFI Runtime Services Table Library.
Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license ... | /** @file
UEFI Runtime Services Table Library.
This library instance retrieve EFI_RUNTIME_SERVICES pointer from EFI system table
in library's constructor.
Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available unde... | Add more comment for library instance and remove unused internal header file. | Add more comment for library instance and remove unused internal header file.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@5799 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
bb1eba50d7b6e81e24ddc918afda45a334d011de | src/MenuRenderer.h | src/MenuRenderer.h | /*
* MenuRenderer.h
*
* Created on: Nov 18, 2016
* Author: msaun
*/
#ifndef MICKRENDERER_H_
#define MICKRENDERER_H_
#include <string>
#include "RuntimeException.h"
#include <SDL2/SDL.h>
#include <GL/glew.h>
#include <Rocket/Core.h>
#include <Rocket/Core/Input.h>
#include <Rocket/Debugger/Debugger.h>
#in... | /*
* MenuRenderer.h
*
* Created on: Nov 18, 2016
* Author: msaun
*/
#ifndef MICKRENDERER_H_
#define MICKRENDERER_H_
#include <stdexcept>
#include <string>
#include "RuntimeException.h"
#include <SDL2/SDL.h>
#include <GL/glew.h>
#include <Rocket/Core.h>
#include <Rocket/Core/Input.h>
#include <Rocket/Debu... | Fix runtime_error is not a member of std | Fix runtime_error is not a member of std
| C | apache-2.0 | VenKamikaze/BitRiot,VenKamikaze/BitRiot,VenKamikaze/BitRiot |
86258141b55c3fffb3489f76fc1cf70d2dcd4bb2 | libmorton/include/morton_common.h | libmorton/include/morton_common.h | #ifndef MORTON_COMMON_H_
#define MORTON_COMMON_H_
#include <stdint.h>
#if _MSC_VER
#include <intrin.h>
#endif
inline bool findFirstSetBit32(const uint_fast32_t x, unsigned long* firstbit_location){
#if _MSC_VER
return _BitScanReverse(firstbit_location, x);
#elif __GNUC__
unsigned int pos = __builtin_ffs(x);
firstb... | #ifndef MORTON_COMMON_H_
#define MORTON_COMMON_H_
#include <stdint.h>
#if _MSC_VER
#include <intrin.h>
#endif
inline bool findFirstSetBit32(const uint_fast32_t x, unsigned long* firstbit_location){
#if _MSC_VER
return _BitScanReverse(firstbit_location, x);
#elif __GNUC__
unsigned int pos = __builtin_ffs(x);
firstb... | Fix compil on MSVC + WIN32 | Fix compil on MSVC + WIN32
| C | mit | Forceflow/libmorton |
c1e1523fed7ad8b621425b2931c8ce89389a6f7c | libyaul/scu/bus/b/vdp1/vdp1/map.h | libyaul/scu/bus/b/vdp1/vdp1/map.h | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _VDP1_MAP_H_
#define _VDP1_MAP_H_
#include <scu-internal.h>
/* Macros specific for processor */
#define VDP1(x) (0x25D00000 + (x))
/* Helpers specific to this processor */
#define T... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _VDP1_MAP_H_
#define _VDP1_MAP_H_
#include <scu-internal.h>
/* Macros specific for processor */
#define VDP1(x) (0x25D00000 + (x))
/* Helpers specific to this processor */
#define T... | Remove hard tabs in .h file | Remove hard tabs in .h file
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
37500dc24511e9ea1d16982befdb6beb17bfeea5 | test/CodeGen/thinlto_backend.c | test/CodeGen/thinlto_backend.c | // RUN: %clang -target x86_64-unknown-linux -O2 %s -flto=thin -c -o %t.o
// RUN: llvm-lto -thinlto -o %t %t.o
// Ensure clang -cc1 give expected error for incorrect input type
// RUN: not %clang_cc1 -target x86_64-unknown-linux -O2 -o %t1.o %s -c -fthinlto-index=%t.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-WA... | // RUN: %clang -target x86_64-unknown-linux -O2 %s -flto=thin -c -o %t.o
// RUN: llvm-lto -thinlto -o %t %t.o
// Ensure clang -cc1 give expected error for incorrect input type
// RUN: not %clang_cc1 -target x86_64-unknown-linux -O2 -o %t1.o %s -c -fthinlto-index=%t.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-WA... | Adjust test to fix bot error from r254927. | Adjust test to fix bot error from r254927.
Remove the part of the error message that may vary across systems.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@254938 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
bc49e006724135994717b71920f1376161f28190 | include/ecdaa.h | include/ecdaa.h | /******************************************************************************
*
* Copyright 2017 Xaptum, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | /******************************************************************************
*
* Copyright 2017 Xaptum, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | Include member_keypair_TPM.h in omnibus include file. | FIX: Include member_keypair_TPM.h in omnibus include file.
| C | apache-2.0 | xaptum/ecdaa,xaptum/ecdaa,xaptum/ecdaa |
111ea9fc3f1daf1fdcbdacfdcc830873e03b6cb7 | Examples/src/main.c | Examples/src/main.c | #include <ConsoleControl.h>
#include <ConsoleControlUtility.h>
#include <ConsoleControlUI.h>
#include <BasicExamples.h>
int main() {
const char* choices[] = {
"Basic features",
"UI features",
"Exit",
};
const cc_MenuColors colors = {
BLACK,
CYAN,
BLACK,
WHITE,
BLACK,
CYAN,
BLACK
};
cc_Menu me... | #include <ConsoleControl.h>
#include <ConsoleControlUtility.h>
#include <ConsoleControlUI.h>
#include <BasicExamples.h>
int main() {
const char* choices[] = {
"Basic features",
"UI features",
"Exit",
};
const cc_MenuColors colors = {
BLACK,
CYAN,
BLACK,
WHITE,
BLACK,
CYAN,
BLACK
};
cc_Menu me... | Set back the cursor and inputs visibility in the examples | Set back the cursor and inputs visibility in the examples
| C | mit | pinam45/ConsoleControl,pinam45/ConsoleControl |
c13d9c1fb787982bd791975f9f7f6cc8f793d1e6 | tests/testrender.c | tests/testrender.c | /* $Id$ */
#include "GL/glc.h"
#include <stdio.h>
extern void my_init(void);
extern void my_fini(void);
void testQueso(void)
{
int ctx = 0;
int font = 0;
my_init();
ctx = glcGenContext();
glcContext(ctx);
glcAppendCatalog("/usr/lib/X11/fonts/Type1");
glcFontFace(glcNewF... | /* $Id$ */
#include "GL/glc.h"
#include <stdio.h>
extern void my_init(void);
extern void my_fini(void);
void testQueso(void)
{
int ctx = 0;
int font = 0;
my_init();
ctx = glcGenContext();
glcContext(ctx);
glcAppendCatalog("/usr/lib/X11/fonts/Type1");
glcFontFace(glcNewF... | Test of rendering commands is now a bit more complex | Test of rendering commands is now a bit more complex
| C | lgpl-2.1 | Safety0ff/QuesoGLC,Safety0ff/QuesoGLC,Safety0ff/QuesoGLC |
ef39b128e18a557777c1223531f63e3da9fc8e48 | Settings/Tabs/OSD.h | Settings/Tabs/OSD.h | #pragma once
#include "../Controls/Controls.h"
#include "SettingsTab.h"
class OSD : public SettingsTab {
public:
OSD(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWSTR title = L"");
virtual void SaveSettings();
protected:
virtual void Initialize();
virtual void LoadSettings();
private:
/* Control... | #pragma once
#include "SettingsTab.h"
class OSD : public SettingsTab {
public:
OSD(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWSTR title = L"");
virtual void SaveSettings();
protected:
virtual void Initialize();
virtual void LoadSettings();
private:
/* Controls: */
ListView *_osdList;
... | Remove controls header (moved to SettingsTab) | Remove controls header (moved to SettingsTab)
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
889d50ff21e47e3c33ea4ab7178a9680ac49f520 | vsprojects/dummy.c | vsprojects/dummy.c | /*
*
* Copyright 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | /*
*
* Copyright 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | Fix newline at end of file | Fix newline at end of file
| C | bsd-3-clause | grani/grpc,a11r/grpc,nicolasnoble/grpc,thunderboltsid/grpc,ppietrasa/grpc,kumaralokgithub/grpc,adelez/grpc,apolcyn/grpc,greasypizza/grpc,carl-mastrangelo/grpc,donnadionne/grpc,sreecha/grpc,infinit/grpc,jboeuf/grpc,miselin/grpc,jboeuf/grpc,vsco/grpc,msiedlarek/grpc,jboeuf/grpc,apolcyn/grpc,murgatroid99/grpc,makdharma/gr... |
08e75e4b73c4daf9bad51b821b7ce824cd9bd6f4 | proj2/peter.c | proj2/peter.c | #include <stdio.h>
#include <stdlib.h>
#include <pcap.h>
int main()
{
struct pcap_if *found_devices;
char errbuf[PCAP_ERRBUF_SIZE];
int success = 0;
success = pcap_findalldevs(&found_devices, errbuf);
if( success < 0 )
{
printf("something went wrong. can't open device\n");
}
if( found_devices != NULL )
{... | Add code provided in class | Add code provided in class
It's very similar to p1a, but being added here for posterity.
| C | bsd-3-clause | sjbarag/ECE-C433,sjbarag/ECE-C433,sjbarag/ECE-C433 | |
363f031f11c3b704a77e65535915297fdcf3d669 | src/fake-lock-screen-pattern.h | src/fake-lock-screen-pattern.h | #ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
#endif
| #ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
void flsp_draw_circle(cairo_t *context,
gint x, gint y, gint radius,... | Add function to draw primitive circle | Add function to draw primitive circle
| C | mit | kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern |
e8b3bd4906995c5762395384faa594df2d812fa1 | ext/ScreenShot/ScreenShot.h | ext/ScreenShot/ScreenShot.h | #ifndef _IRR_EXT_SCREEN_SHOT_INCLUDED_
#define _IRR_EXT_SCREEN_SHOT_INCLUDED_
#include "irrlicht.h"
#include "../source/Irrlicht/COpenGLBuffer.h"
#include "../source/Irrlicht/COpenGLExtensionHandler.h"
namespace irr
{
namespace ext
{
namespace ScreenShot
{
video::IDriverFence* createScreenShot(video::IDriver* drive... | Add a screenshot by texture download (not from framebuffer) | Add a screenshot by texture download (not from framebuffer)
| C | apache-2.0 | buildaworldnet/IrrlichtBAW,buildaworldnet/IrrlichtBAW,buildaworldnet/IrrlichtBAW | |
855bb402a5e8492e2ffdee1d5c402f23bfe53687 | include/HubFramework/HubFramework.h | include/HubFramework/HubFramework.h | /// Umbrella header for the Hub Framework
#import "HUBManager.h"
#import "HUBConnectivityStateResolver.h"
// JSON
#import "HUBJSONSchema.h"
#import "HUBViewModelJSONSchema.h"
#import "HUBComponentModelJSONSchema.h"
#import "HUBComponentImageDataJSONSchema.h"
#import "HUBJSONSchemaRegistry.h"
#import "HUBJSONPath.h"
#... | /// Umbrella header for the Hub Framework
#import "HUBManager.h"
#import "HUBConnectivityStateResolver.h"
// JSON
#import "HUBJSONSchema.h"
#import "HUBViewModelJSONSchema.h"
#import "HUBComponentModelJSONSchema.h"
#import "HUBComponentImageDataJSONSchema.h"
#import "HUBJSONSchemaRegistry.h"
#import "HUBJSONPath.h"
#... | Remove `HUBComponentIdentifier` import from umbrella header | Remove `HUBComponentIdentifier` import from umbrella header | C | apache-2.0 | spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework |
3730accd147663026f892a707166c0c001cabed0 | snippets/TMAX.c | snippets/TMAX.c | #! /usr/bin/tcc -run
// demonstate testmin testmax consistency with malloc
#include <string.h> // memcpy
#include <stdio.h> // printf
#include <stdlib.h> // malloc
#include <assert.h> // assert
typedef struct {ssize_t size; char *row; int count;} slot;
slot line;
slot *text;
int main(void)
{
leng = ... | #! /usr/bin/tcc -run
#include <string.h> // memcpy
#include <stdio.h> // printf
#include <stdlib.h> // malloc
#include <assert.h> // assert
#define textbound texndx = (int) (text + iy); \
assert(textmin <= texndx); \
assert(textmax >= texndx); ... | Add definition for testing bounds on array text | Add definition for testing bounds on array text
| C | bsd-2-clause | eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood |
ac21a316a0e0179d2d2b52d81d417430a82992ca | dependencies/stdafx/stdafx.h | dependencies/stdafx/stdafx.h | #include <Ogre.h>
#include <OgreMeshFileFormat.h>
#include <OgreOptimisedUtil.h>
#include <OgrePredefinedControllers.h>
#ifdef WIN32
#include <OgreD3D9RenderSystem.h>
#include <OgreD3D9HLSLProgram.h>
#endif
#include <OgreOctreePlugin.h>
#include <OgreOctreeSceneManager.h>
#include <OgreCgPlugin.h>
#include <OgreCgPr... | #include <Ogre.h>
#include <OgreDepthBuffer.h>
#include <OgreMeshFileFormat.h>
#include <OgreOptimisedUtil.h>
#include <OgrePredefinedControllers.h>
#ifdef WIN32
#include <OgreD3D9RenderSystem.h>
#include <OgreD3D9HLSLProgram.h>
#endif
#include <OgreOctreePlugin.h>
#include <OgreOctreeSceneManager.h>
#include <OgreC... | Add Depthbuffer to precompiled header | Add Depthbuffer to precompiled header
| C | mit | grit-engine/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine |
cd15a3b8e5975c8ddc5928022fce4696adce5e8c | Pods/Expecta/src/matchers/EXPMatchers+equal.h | Pods/Expecta/src/matchers/EXPMatchers+equal.h | #import "Expecta.h"
EXPMatcherInterface(_equal, (id expected));
EXPMatcherInterface(equal, (id expected)); // to aid code completion
#define equal(expected) _equal(EXPObjectify((expected)))
| #import "Expecta.h"
EXPMatcherInterface(_equal, (id expected));
EXPMatcherInterface(equal, (id expected)); // to aid code completion
#define equal(...) _equal(EXPObjectify((__VA_ARGS__)))
| Change expecta equal() to accept any amount of argument | Change expecta equal() to accept any amount of argument
This helps with array literals
| C | mit | frenetisch-applaudierend/mocka,frenetisch-applaudierend/mocka |
6a8cbb53dad28508f0fbb893ce37defbbec11a49 | src/bin/e_log.c | src/bin/e_log.c | #include "e.h"
EINTERN int e_log_dom = -1;
EINTERN int
e_log_init(void)
{
e_log_dom = eina_log_domain_register("e", EINA_COLOR_WHITE);
return e_log_dom != -1;
}
EINTERN int
e_log_shutdown(void)
{
eina_log_domain_unregister(e_log_dom);
e_log_dom = -1;
return 0;
}
| #include "e.h"
EINTERN int e_log_dom = -1;
static const char *_names[] = {
"CRI",
"ERR",
"WRN",
"INF",
"DBG",
};
static void
_e_log_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc EINA_UNUSED, int line, const char *fmt, void *data EINA_UNUSED, va_list args)
{
co... | Revert "e logs - the custom e log func breaks eina backtraces, so don't use it" | Revert "e logs - the custom e log func breaks eina backtraces, so don't use it"
This reverts commit 2df04042269f3b5604c719844eac372fa5fcddd2.
let's not do this in all cases
| C | bsd-2-clause | tasn/enlightenment,rvandegrift/e,rvandegrift/e,rvandegrift/e,tasn/enlightenment,tasn/enlightenment |
ae0b6ad71ed495ac6fba25c8b8feb25828e756a0 | rest/rest-main.c | rest/rest-main.c | #include "rest-private.h"
guint rest_debug_flags = 0;
/*
* "Private" function used to set debugging flags based on environment
* variables. Called upon entry into all public functions.
*/
void
_rest_setup_debugging (void)
{
const gchar *tmp;
gchar **parts;
gint i = 0;
static gboolean setup_done = FALSE;
... | #include "rest-private.h"
guint rest_debug_flags = 0;
/*
* "Private" function used to set debugging flags based on environment
* variables. Called upon entry into all public functions.
*/
void
_rest_setup_debugging (void)
{
static gboolean setup_done = FALSE;
static const GDebugKey keys[] = {
{ "xml-parser... | Use g_parse_debug_string instead of manually parsing | Use g_parse_debug_string instead of manually parsing
| C | lgpl-2.1 | GNOME/librest,Distrotech/librest,ThomasBollmeier/librest-oauth-proxy,GNOME/librest,Distrotech/librest,GNOME/librest,ThomasBollmeier/librest-oauth-proxy |
4026b3ed5ed0c6af1312ac58a2ec578637d9175a | test/Driver/mno-global-merge.c | test/Driver/mno-global-merge.c | // RUN: %clang -target armv7-apple-darwin10 \
// RUN: -mno-global-merge -### -fsyntax-only %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-NGM < %t %s
// RUN: %clang -target arm64-apple-ios7 \
// RUN: -mno-global-merge -### -fsyntax-only %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-NGM < %t %s
// CHECK-NGM: "-... | // RUN: %clang -target armv7-apple-darwin10 \
// RUN: -mno-global-merge -### -fsyntax-only %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-NGM < %t %s
// RUN: %clang -target arm64-apple-ios7 \
// RUN: -mno-global-merge -### -fsyntax-only %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-NGM < %t %s
// CHECK-NGM: "-... | Revert new test from 213993. | Revert new test from 213993.
It requires an arm backend and also writes output in the test directory.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@213998 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
b427c3a85360d7e1113b4157f1cb745b789863b0 | test/wasm/soft/float/fixtfdi.c | test/wasm/soft/float/fixtfdi.c | #include "src/math/reinterpret.h"
#include <math.h>
#include <stdint.h>
#include <assert.h>
int64_t __fixtfdi(long double);
int main(void)
{
const __int128 delta = (__int128)0x17E93193 << 64 | 0xC0605887B0E6B634;
assert(__fixtfdi(INT64_MIN - 0.7L) == INT64_MIN);
for (__int128 i = reinterpret(__int128, 0... | Test long douoble -> int64_t | Test long douoble -> int64_t
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic | |
009aeab78a78eb666321eea22fb515f718142165 | Sub-Terra/include/World.h | Sub-Terra/include/World.h | #pragma once
#include <boost/unordered_map.hpp>
#include "System.h"
#include "OpenSimplexNoise.h"
enum class ChunkStatus {
Generating,
Alive,
Dying,
Dead
};
typedef std::tuple<int64_t, int64_t, int64_t> ChunkKeyType;
typedef std::tuple<ChunkStatus, IDType> ChunkContainerType;
typedef boost::unordered_map<ChunkKe... | #pragma once
#include <boost/unordered_map.hpp>
#include "System.h"
#include "OpenSimplexNoise.h"
enum class ChunkStatus {
Generating,
Alive,
Dying,
Dead
};
typedef std::tuple<int64_t, int64_t, int64_t> ChunkKeyType;
typedef std::tuple<ChunkStatus, IDType> ChunkContainerType;
typedef boost::unordered_map<ChunkKe... | Change world view distance to 3 | Change world view distance to 3
| C | mpl-2.0 | shockkolate/polar4,shockkolate/polar4,shockkolate/polar4,polar-engine/polar,shockkolate/polar4,polar-engine/polar |
ef8b28e9459e729b7bd8c826d204621b039611fa | test/Analysis/array-struct.c | test/Analysis/array-struct.c | // RUN: clang -checker-simple -verify %s
struct s {};
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
}
| Add test case for array and struct variable lvalue evaluation. | Add test case for array and struct variable lvalue evaluation.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@57670 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | |
3e6e67f631568af99a38f327c9d1a3da6cb1b9da | test/CodeGen/mmintrin-test.c | test/CodeGen/mmintrin-test.c | // RUN: clang -triple i386-apple-darwin9 -emit-llvm -o %t %s &&
// RUN: grep define %t | count 1 &&
// RUN: clang -triple i386-apple-darwin9 -g -emit-llvm -o %t %s &&
// RUN: grep define %t | count 1
#include <mmintrin.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int array[16] = { 0,1,2,3,4,5,6,7,8,9... | Add test case for using mmintrin (and making sure that inlining is working with and without debug info). | Add test case for using mmintrin (and making sure that inlining is
working with and without debug info).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60960 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,apple/swift-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,apple/swift-clang,llvm-mirror/cl... | |
e66fb4cb5e5c3ed80e5e874cc06c110482a57ab3 | ionCore/ionStandardLibrary.h | ionCore/ionStandardLibrary.h |
#pragma once
#include "ionTypes.h"
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
using std::move;
using std::ifstream;
template <typename T, typename U>
U * ConditionalMapAccess(map<T, U *> & Map, T const Key)
{
auto Iterator... |
#pragma once
#include "ionTypes.h"
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
using std::move;
using std::ifstream;
template <typename T, typename U>
U * ConditionalMapAccess(map<T, U *> & Map, T const Key)
{
auto Iterator... | Add some file utility functions | Add some file utility functions
--HG--
branch : SceneOverhaul
| C | mit | iondune/ionEngine,iondune/ionEngine |
ad74ebb3ae7f3dee129f0ccce11100e3fcef1d4c | bin/check_it.c | bin/check_it.c | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
int main(int argc, char** argv) {
struct passwd *passwd = getpwuid(getuid());
int errno = setreuid(geteuid(), geteuid());
// errno = execle("/usr/bin/id", (char *) 0, envp);
if (errno == 0 && passwd != 0) {
// CHECK... | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
int main(int argc, char** argv) {
struct passwd *passwd = getpwuid(getuid());
int errno = setreuid(geteuid(), geteuid());
// errno = execle("/usr/bin/id", (char *) 0, envp);
if (errno == 0 && passwd != 0) {
// CHECK... | Reduce Java VM max heap space. | Reduce Java VM max heap space.
| C | agpl-3.0 | jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt |
1edbd62cac51376384ca2786be85fbbe0cbe7dbb | src/interfaces/odbc/md5.h | src/interfaces/odbc/md5.h | /* File: connection.h
*
* Description: See "connection.c"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#defi... | /* File: connection.h
*
* Description: See "md.h"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/*... | Fix comment at top of file to match file name. | Fix comment at top of file to match file name.
| C | apache-2.0 | lisakowen/gpdb,janebeckman/gpdb,xuegang/gpdb,Quikling/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,rubikloud/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,arcivanov/postgres-xl,tangp3/gpdb,greenplum-db/gpdb,rubikloud/gpdb,oberstet/postgres-xl,ahachete/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,tangp3/gpdb,greenplum-db/gpdb,kak... |
bf5fc320c8d772d44768413602dc82fd197552ea | include/clang/Driver/HostInfo.h | include/clang/Driver/HostInfo.h | //===--- HostInfo.h - Host specific information -----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add host info (add new files). | Driver: Add host info (add new files).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@66604 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,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/cl... | |
c300c7ef4df651096cb83a370f0bbfccd516f9b6 | solutions/uri/1795/1795.c | solutions/uri/1795/1795.c | #include <stdio.h>
#include <string.h>
unsigned long long memo[1000];
unsigned long long calculate_sum(unsigned long long line) {
if (memo[line] != 0) {
return memo[line];
}
if (line == 0) {
memo[line] = 1;
} else {
memo[line] = calculate_sum(line - 1) * 3;
}
return m... | Solve Trinomial Triangle in c | Solve Trinomial Triangle in c
| C | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
acce10551c7483b3fc03ec70ad4982c8d975b729 | ObjectiveRocks/ObjectiveRocks.h | ObjectiveRocks/ObjectiveRocks.h | //
// ObjectiveRocks.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import "RocksDB.h"
#import "RocksDBColumnFamily.h"
#import "RocksDBOptions.h"
#import "RocksDBReadOptions.h"
#import "RocksDBWriteOptions.h"
#import "RocksDBWriteBatch.h"
#import ... | //
// ObjectiveRocks.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import "RocksDB.h"
#import "RocksDBColumnFamily.h"
#import "RocksDBOptions.h"
#import "RocksDBReadOptions.h"
#import "RocksDBWriteOptions.h"
#import "RocksDBWriteBatch.h"
#import ... | Add BackupInfo class to public include header | Add BackupInfo class to public include header
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks |
fae9876b444ebf71c67626d2d3d5f9a11ab7b664 | common-block.h | common-block.h | // See copyright notice in Copying.
#ifndef COMMON_BLOCK_H
#define COMMON_BLOCK_H
enum {
FLAG_DEFAULT = 0,
FLAG_IS_FRAGMENT = 1 << 0,
FLAG_ADMIN = 1 << 1,
FLAG_NO_FRAGMENT = 1 << 2,
FLAG_CUSTODY = 1 << 3,
FLAG_SINGLETON = 1 << 4,
FLAG_ACK = 1 << 5,
PRIO_RESET = ~(0x3 << 7),
PRIO_... | // See copyright notice in Copying.
#ifndef COMMON_BLOCK_H
#define COMMON_BLOCK_H
#define FLAG_DEFAULT 0u
#define FLAG_IS_FRAGMENT (1u << 0)
#define FLAG_ADMIN (1u << 1)
#define FLAG_NO_FRAGMENT (1u << 2)
#define FLAG_CUSTODY (1u << 3)
#define FLAG_SINGLETON (1u << 4)
#define FLAG_ACK (1u << 5)
#define PRIO_RESET ~... | Convert flag constants from enum to defines | Convert flag constants from enum to defines
This fixes signedness errors
| C | mit | kchmck/mkbundle |
2b708e4b50326969e78877fdf144624d79815b8d | src/unionfs.h | src/unionfs.h | /*
* License: BSD-style license
* Copyright: Radek Podgorny <radek@podgorny.cz>,
* Bernd Schubert <bernd-schubert@gmx.de>
*/
#ifndef UNIONFS_H
#define UNIONFS_H
#define PATHLEN_MAX 1024
#define HIDETAG "_HIDDEN~"
#define METADIR ".unionfs/"
typedef struct {
char *path;
int fd; // used to prevent acciden... | /*
* License: BSD-style license
* Copyright: Radek Podgorny <radek@podgorny.cz>,
* Bernd Schubert <bernd-schubert@gmx.de>
*/
#ifndef UNIONFS_H
#define UNIONFS_H
#define PATHLEN_MAX 1024
#define HIDETAG "_HIDDEN~"
#define METADIR ".unionfs/"
typedef struct {
char *path;
int fd; // used to prevent acciden... | Rename our struct statvfs to struct ustatvfs to prevent libc name collision. | Rename our struct statvfs to struct ustatvfs to prevent libc name collision.
| C | bsd-3-clause | evnu/unionfs-fuse,evnu/unionfs-fuse,kissthink/unionfs-fuse-1,jrk/unionfs-fuse,yogoloth/unionfs-fuse,kissthink/unionfs-fuse-1,yogoloth/unionfs-fuse,jrk/unionfs-fuse,jrk/unionfs-fuse,yogoloth/unionfs-fuse,jrk/unionfs-fuse,kissthink/unionfs-fuse-1,evnu/unionfs-fuse |
9cea98e320bfc37a6df373245f916b15c68a7f01 | src/consensus/consensus.h | src/consensus/consensus.h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
#define BITCOIN_CONSENSUS_CONSENSUS_H
/** ... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2016 The Bitcoin Ocho developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_CONSE... | Add more Ochoness to Bitcoin. | Add more Ochoness to Bitcoin.
| C | mit | goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin |
ab5acba34782d735f759c709e74d957c9d7418ba | test/FrontendC/2009-03-09-WeakDeclarations-1.c | test/FrontendC/2009-03-09-WeakDeclarations-1.c | // RUN: $llvmgcc $test -c -o /dev/null |& \
// RUN: egrep {(14|15|22): warning:} | \
// RUN: wc -l | grep --quiet 3
// TARGET: *-*-darwin
// XFAIL: alpha|ia64|sparc
// END.
// Insist upon warnings for inappropriate weak attributes.
// Note the line numbers (14|15|22) embedded in the check.
// O.K.
extern int ext_weak_... | // RUN: $llvmgcc $test -c -o /dev/null |& \
// RUN: egrep {(14|15|22): warning:} | \
// RUN: wc -l | grep --quiet 3
// XTARGET: darwin
// XFAIL: *
// END.
// Insist upon warnings for inappropriate weak attributes.
// Note the line numbers (14|15|22) embedded in the check.
// O.K.
extern int ext_weak_import __attribute... | Tweak the DejaGNU voodoo to match Bill's advice. | Tweak the DejaGNU voodoo to match Bill's advice.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@66547 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,... |
974eb1d090aece41e72c31772ea7266b1e31f6e7 | test/Modules/Inputs/submodules/import-self-b.h | test/Modules/Inputs/submodules/import-self-b.h | @import import_self.c;
#include "import-self-d.h"
// FIXME: This should not work; names from 'a' should not be visible here.
MyTypeA import_self_test_a;
// FIXME: This should work but does not; names from 'b' are not actually visible here.
//MyTypeC import_self_test_c;
MyTypeD import_self_test_d;
| // FIXME: This import has no effect, because the submodule isn't built yet, and
// we don't map an @import to a #include in this case.
@import import_self.c;
#include "import-self-d.h"
// FIXME: This should not work; names from 'a' should not be visible here.
MyTypeA import_self_test_a;
// FIXME: This should work but... | Fix comment typo in test. | Fix comment typo in test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@200584 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
4169674ac51c5b7c238171daa15dc09a2db51715 | libkdepim/kabcresourcenull.h | libkdepim/kabcresourcenull.h | /*
This file is part of libkdepim.
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
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
version 2 of th... | Add null resource for KABC::AddressBook. | Add null resource for KABC::AddressBook.
svn path=/trunk/kdepim/; revision=295385
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi | |
d9eb347432f247879ba10da2a64f810657a09c84 | source/core/recommend-manager/RandGenerator.h | source/core/recommend-manager/RandGenerator.h | /**
* @file RandGenerator.h
* @brief generate random item ids
* @author Jun Jiang
* @date 2011-11-30
*/
#ifndef RAND_GENERATOR_H
#define RAND_GENERATOR_H
#include <util/ThreadModel.h>
#include <boost/random.hpp>
namespace sf1r
{
template<typename ValueType = int,
typename Distribution = boost::unifor... | /**
* @file RandGenerator.h
* @brief generate random item ids
* @author Jun Jiang
* @date 2011-11-30
*/
#ifndef RAND_GENERATOR_H
#define RAND_GENERATOR_H
#include <util/ThreadModel.h>
#include <boost/random.hpp>
namespace sf1r
{
template<typename ValueType = int,
typename Distribution = boost::unifor... | Fix compile error under boost 1.38, caused by boost/random.hpp seed() | Fix compile error under boost 1.38, caused by boost/random.hpp seed()
| C | apache-2.0 | pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,izenecloud/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1r-lite,pombredanne/sf1r-lite,pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,izenecloud/sf1r-lite,pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,pombredanne/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1r-ad-de... |
f5e8daa70a39edf01a823aaee724c3d930064a53 | include/TaskBase.h | include/TaskBase.h | #ifndef _TPOOL_TASK_BASE_H_
#define _TPOOL_TASK_BASE_H_
#include <boost/shared_ptr.hpp>
namespace tpool {
class TaskBase {
public:
typedef boost::shared_ptr<TaskBase> Ptr;
~TaskBase() {}
virtual void Do() = 0;
};
}
#endif
| #ifndef _TPOOL_TASK_BASE_H_
#define _TPOOL_TASK_BASE_H_
#include <boost/shared_ptr.hpp>
namespace tpool {
class TaskBase {
public:
typedef boost::shared_ptr<TaskBase> Ptr;
enum State {
INIT,
RUNNING,
FINISHED,
CANCELED,
};
~TaskBase() {}
virtual void Do() = 0;
... | Add the state definitions for Task. | Add the state definitions for Task.
| C | mit | airekans/Tpool,airekans/Tpool,airekans/Tpool |
38b20649403f2cbffc4581211f1b61868e3b358f | include/features.h | include/features.h |
#ifndef __FEATURES_H
#define __FEATURES_H
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almost ansi */
#if __STDC__ != 1
#define const
#define volatile
#endif
#else /* K&R */
#define __P(x) ()
#define __const
#define const
#define volatile
#endif
/* No C++ */
#define __BEGIN_DECLS
#define __END_DECL... |
#ifndef __FEATURES_H
#define __FEATURES_H
/* Major and minor version number of the uCLibc library package. Use
these macros to test for features in specific releases. */
#define __UCLIBC__ 0
#define __UCLIBC_MAJOR__ 9
#define __UCLIBC_MINOR__ 1
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almo... | Add in a version number so apps can tell uclib is being used. -Erik | Add in a version number so apps can tell uclib is being used.
-Erik
| C | lgpl-2.1 | wbx-github/uclibc-ng,atgreen/uClibc-moxie,ysat0/uClibc,skristiansson/uClibc-or1k,skristiansson/uClibc-or1k,wbx-github/uclibc-ng,klee/klee-uclibc,atgreen/uClibc-moxie,hjl-tools/uClibc,kraj/uClibc,ffainelli/uClibc,groundwater/uClibc,m-labs/uclibc-lm32,groundwater/uClibc,majek/uclibc-vx32,groundwater/uClibc,foss-xtensa/uC... |
c35746580036ca9b6fc9ec172634dfab12237abb | include/odp_sync.h | include/odp_sync.h | /* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* ODP synchronisation
*/
#ifndef ODP_SYNC_H_
#define ODP_SYNC_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Synchronise stores
*
* Ensures that all CPU store operations that pre... | /* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* ODP synchronisation
*/
#ifndef ODP_SYNC_H_
#define ODP_SYNC_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* Synchronise stores
*
* Ensures that all CPU store operations that pre... | Add write memory barrier for aarch64 | Add write memory barrier for aarch64
This patch updates odp_sync_stores routine to add write memory barrier for
aarch64.
Signed-off-by: Ankit Jindal <0920ec6e02c95b572519373847b995b0763a0743@linaro.org>
Signed-off-by: Tushar Jagad <3604ae1aed16529df1f2280ecebda0599cb1687d@linaro.org>
Reviewed-by: Anders Roxell <b4e8e... | C | bsd-3-clause | ravineet-singh/odp,kalray/odp-mppa,dkrot/odp,mike-holmes-linaro/odp,nmorey/odp,rsalveti/odp,dkrot/odp,kalray/odp-mppa,erachmi/odp,erachmi/odp,rsalveti/odp,kalray/odp-mppa,dkrot/odp,mike-holmes-linaro/odp,kalray/odp-mppa,ravineet-singh/odp,kalray/odp-mppa,nmorey/odp,mike-holmes-linaro/odp,rsalveti/odp,rsalveti/odp,ravin... |
fb0da0b3b4ece34207375ecddd022f2e2d5b7c52 | include/libk/kputs.h | include/libk/kputs.h | #ifndef KPUTS_H
#define KPUTS_H
#include "drivers/terminal.h"
void kputs(char* string);
void kprint_int(char* string, int i);
#endif
| #ifndef KPUTS_H
#define KPUTS_H
#include <stdarg.h>
#include "drivers/terminal.h"
void kputs(char* string);
void kprintf(char* string, ...);
#endif
| Update headers to match new printf | Update headers to match new printf
| C | mit | Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
afd6a6dcac92c604ff97892e3c95f845dd479bc5 | includes/grid_cell.h | includes/grid_cell.h | #ifndef GRIDCELL_H
#define GRIDCELL_H
#include <gsl/gsl_rng.h>
/*
DATA STRUCTURES
*/
#define GC_NUM_STATES 4
typedef enum { DECIDUOUS,CONIFEROUS,TRANSITIONAL,MIXED} State;
typedef double StateData [GC_NUM_STATES];
typedef enum { MOORE, VONNE} NeighType;
extern State GC_POSSIBLE_STATES [GC_NUM_STATES]; // this... | #ifndef GRIDCELL_H
#define GRIDCELL_H
#include <gsl/gsl_rng.h>
/*
DATA STRUCTURES
*/
#define GC_NUM_STATES 4
typedef enum { DECIDUOUS,CONIFEROUS,TRANSITIONAL,MIXED} State;
typedef double StateData [GC_NUM_STATES];
typedef enum { MOORE, VONNE} NeighType;
typedef struct {
double meanTemp;
/*Task: list al... | Delete unused extern variable declared | Delete unused extern variable declared
| C | mit | QUICC-FOR/STModel-Simulation,QUICC-FOR/STModel-Simulation |
cac419e1c61a882875bcf0ea494ead7b476998ce | src/qt/guiconstants.h | src/qt/guiconstants.h | #ifndef GUICONSTANTS_H
#define GUICONSTANTS_H
/* Milliseconds between model updates */
static const int MODEL_UPDATE_DELAY = 500;
/* AskPassphraseDialog -- Maximum passphrase length */
static const int MAX_PASSPHRASE_SIZE = 1024;
/* CubitsGUI -- Size of icons in status bar */
static const int STATUSBAR_ICONSIZE = 16... | #ifndef GUICONSTANTS_H
#define GUICONSTANTS_H
/* Milliseconds between model updates */
static const int MODEL_UPDATE_DELAY = 5000;
/* AskPassphraseDialog -- Maximum passphrase length */
static const int MAX_PASSPHRASE_SIZE = 1024;
/* CubitsGUI -- Size of icons in status bar */
static const int STATUSBAR_ICONSIZE = 1... | Set more rare GUI update | Set more rare GUI update
| C | mit | scificrypto/CubitsV3,scificrypto/CubitsV3,scificrypto/CubitsV3,scificrypto/CubitsV3 |
488fd420411e307851adaa63bf5051d52bda04cd | tests/mpich-example.c | tests/mpich-example.c | #include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
int
main (int argc, char *argv[])
{
int rank, size, length;
char name[BUFSIZ];
MPI_Init (&argc, &argv);
MPI_Comm_rank (MPI_COMM_WORLD, &rank);
MPI_Comm_size (MPI_COMM_WORLD, &size);
MPI_Get_processor_name (name, &length);
printf ("%s: hello world ... | Add missing file for the MPI test. | Add missing file for the MPI test.
svn path=/nixos/trunk/; revision=27337
| C | mit | SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixos,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,edolstra/nixos,NixOS/nixpkgs,andreassalomonsson/nixos,NixOS/nixos,SymbiFlow/nixpkgs,NixOS/nixos,triton/triton,SymbiFlow/nixpkgs,triton/triton,NixOS/nixos,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlo... | |
db16fea6b11cf939f5cb12ef95637abca2072f33 | unittest/cycletimer.h | unittest/cycletimer.h | // (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | Add a basic implementation of class CycleTimer | Add a basic implementation of class CycleTimer
It is used by baseapi_test.
Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
| C | apache-2.0 | tesseract-ocr/tesseract,stweil/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,stweil/tesseract,stweil/tesseract,stweil/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,amitdo/tesserac... | |
bff8460f062b896473f4ef4d0baf5ad1c35c40e5 | include/teraranger_hub/serial_port.h | include/teraranger_hub/serial_port.h | #ifndef TR_HUB_SERIAL_PORT_H
#define TR_HUB_SERIAL_PORT_H
#include <stdio.h> // Standard input/output definitions
#include <string.h> // String function definitions
#include <unistd.h> // UNIX standard function definitions
#include <fcntl.h> // File control definitions
#include <errno.h> // Error number d... | #ifndef TERARANGER_HUB_SERIAL_PORT_H
#define TERARANGER_HUB_SERIAL_PORT_H
#include <stdio.h> // Standard input/output definitions
#include <string.h> // String function definitions
#include <unistd.h> // UNIX standard function definitions
#include <fcntl.h> // File control definitions
#include <errno.h> /... | Fix ifdef for serial port header file | Fix ifdef for serial port header file
| C | mit | Terabee/teraranger_array,Terabee/teraranger_array |
f9167849b8c24cd4689aedd6c9a1c43719091d8f | tests/sv-comp/observer/path_nofun_true-unreach-call.c | tests/sv-comp/observer/path_nofun_true-unreach-call.c | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
void __VERIFIER_assert(int cond) {
if (!(cond)) {
ERROR: __VERIFIER_error();
}
return;
}
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
... | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
{
x = 1;
y = 0;
}
// if (!(x + y == 1))
if (x + y != 1)
__VERIFIER_e... | Remove unused __VERIFIER_assert definition from nofun test | Remove unused __VERIFIER_assert definition from nofun test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
c34ed4e5cb60bfbb707118f69f3bb9fea48ce890 | src/qtyaml_global.h | src/qtyaml_global.h | #ifndef QTYAML_GLOBAL_H
#define QTYAML_GLOBAL_H
#include <QtCore/QtGlobal>
#if defined(QTYAML_LIBRARY)
# define QTYAMLSHARED_EXPORT Q_DECL_EXPORT
#else
# define QTYAMLSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // QTYAML_GLOBAL_H
| #ifndef QTYAML_GLOBAL_H
#define QTYAML_GLOBAL_H
#include <QtCore/QtGlobal>
#ifdef YAML_DECLARE_STATIC
# define QTYAMLSHARED_EXPORT
#else
# ifdef QTYAML_LIBRARY
# define QTYAMLSHARED_EXPORT Q_DECL_EXPORT
# else
# define QTYAMLSHARED_EXPORT Q_DECL_IMPORT
# endif
#endif
#endif // QTYAML_GLOBAL_H
| Add support for static lib | Add support for static lib
| C | mit | uranusjr/qtyaml,uranusjr/qtyaml |
ccac208ec5892857a5847a12b098d2358e023f7c | lib/common/htmllex.h | lib/common/htmllex.h | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | Add support for charset attribute and Latin1 encoding. | Add support for charset attribute and Latin1 encoding.
| C | epl-1.0 | kbrock/graphviz,pixelglow/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,kbrock/graphviz,tkelman/graphviz,MjAbuz/graphviz,jho1965us/graphviz,MjAbuz/graphviz,ellson/graphviz,tkelman/graphviz,tkelman/graphviz,ellson/graphviz,jho1965us/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelma... |
03888f30421578b58039eec720ed31061f9d0205 | libyaul/scu/bus/cpu/cpu_slave.c | libyaul/scu/bus/cpu/cpu_slave.c | /*
* Copyright (c) 2012-2016
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com
*/
#include <sys/cdefs.h>
#include <smpc/smc.h>
#include <cpu/instructions.h>
#include <cpu/frt.h>
#include <cpu/intc.h>
#include <cpu/map.h>
#include <cpu/slave.h>
static void _slave_entry(void);
static void _default... | /*
* Copyright (c) 2012-2016
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com
*/
#include <sys/cdefs.h>
#include <smpc/smc.h>
#include <cpu/instructions.h>
#include <cpu/frt.h>
#include <cpu/intc.h>
#include <cpu/map.h>
#include <cpu/slave.h>
static void _slave_entry(void);
static void _defaul... | Mark _slave_entry to never return | Mark _slave_entry to never return
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
cd017fbdd33f2d8294b0e0324faa1dc7750b4af0 | include/linux/ds1742rtc.h | include/linux/ds1742rtc.h | /*
* ds1742rtc.h - register definitions for the Real-Time-Clock / CMOS RAM
*
* Copyright (C) 1999-2001 Toshiba Corporation
* Copyright (C) 2003 Ralf Baechle (ralf@linux-mips.org)
*
* Permission is hereby granted to copy, modify and redistribute this code
* in terms of the GNU Library General Public License, Vers... | Add definitions for the Dallas DS1742 RTC / non-volatile memory. | Add definitions for the Dallas DS1742 RTC / non-volatile memory.
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,Krist... | |
f24d87c7337579bf4234af5bf89b1f9b17363afc | test/CFrontend/2007-04-17-ZeroSizeBitFields.c | test/CFrontend/2007-04-17-ZeroSizeBitFields.c | ; PR 1332
; RUN: %llvmgcc %s -S -o /dev/null
struct Z { int a:1; int :0; int c:1; } z;
| // PR 1332
// RUN: %llvmgcc %s -S -o /dev/null
struct Z { int a:1; int :0; int c:1; } z;
| Use // not ; since this is C. | Use // not ; since this is C.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@36219 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asa... |
1e7780610468211cceb4483beea45aa7c850834e | chrome/browser/ui/views/toolbar/wrench_menu_observer.h | chrome/browser/ui/views/toolbar/wrench_menu_observer.h | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_
#define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_
// TODO(gbillock): Make t... | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_
#define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_
class WrenchMenuObserver ... | Remove TODO about making WrenchMenuObserver an inner class of WrenchMenu. | Remove TODO about making WrenchMenuObserver an inner class of WrenchMenu.
Chromium code style says:
"Prefer putting delegate classes in their own header files. Implementors
of the
delegate interface will often be included elsewhere, which will often
cause more
coupling with the header of the main class."
http://www.c... | C | bsd-3-clause | PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,jaruba/chromium.src,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-cro... |
02a90edb5163e2f6cc07573812b10a0c35ac9e1a | lib/node_modules/@stdlib/strided/common/include/stdlib/strided_typedefs.h | lib/node_modules/@stdlib/strided/common/include/stdlib/strided_typedefs.h | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Sort includes in alphabetical order | Sort includes in alphabetical order
| C | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib |
9eee01fbf75809926f382627f787b8c1a6427d32 | include/truffle.h | include/truffle.h | /*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* 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 ... | Define a potential header for interop functions | Define a potential header for interop functions
| C | bsd-3-clause | grimmerm/sulong,lxp/sulong,crbb/sulong,grimmerm/sulong,grimmerm/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,lxp/sulong,crbb/sulong,crbb/sulong,PrinzKatharina/sulong,crbb/sulong,lxp/sulong,lxp/sulong,grimmerm/sulong,PrinzKatharina/sulong | |
187c563b60469d413611bb22cf7613b30087b203 | src/core/include/mwsrqueue.h | src/core/include/mwsrqueue.h | #pragma once
#include <mutex>
#include "throw_assert.h"
#include <pair>
#include <utility>
namespace Core {
// Simple multiple writer siingle reader queue implementation with infinite growth
template <class Collection>
class MWSRQueue {
public:
using T = Collection::value_type;
void push_back(T&& it) ... | Implement a simple queue for network events | Implement a simple queue for network events | C | apache-2.0 | RavenX8/osIROSE-new,dev-osrose/osIROSE-new,dev-osrose/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,RavenX8/osIROSE-new | |
4373f87d58c5761ff0a9199741f0d8de4aa2b7a3 | Chapter1/temperatures.c | Chapter1/temperatures.c | #include <stdio.h>
/* print Fahrenheit-Celsius table
for fahr = 0, 20, ..., 300
*/
int main(void)
{
float fahr, celsius;
int lower, upper, step;
lower = 0; // lower limit of temperature table
upper = 300; // upper limit
step = 20; // step size
printf("Fahrenheit-Celsius Table\n\n");
fahr =... | #include <stdio.h>
/* print Fahrenheit-Celsius table
for fahr = 0, 20, ..., 300
*/
// int main(void)
// {
// float fahr, celsius;
// int lower, upper, step;
// lower = 0; // lower limit of temperature table
// upper = 300; // upper limit
// step = 20; // step size
// printf("Fahrenheit-Celsiu... | Implement temperature program with a for loop | Implement temperature program with a for loop
| C | mit | Kunal57/C_Problems,Kunal57/C_Problems |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.