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 |
|---|---|---|---|---|---|---|---|---|---|
956c6edde28a3b60981059caf7a8bad137f76336 | src/condor_includes/carmipro.h | src/condor_includes/carmipro.h | #if !defined(_CARMIPRO_H)
#define _CARMIPRO_H
#include "pvmsdpro.h"
#define CARMI_FIRST (SM_LAST+1)
#define CARMI_RESPAWN (CARMI_FIRST+1)
#define CARMI_CHKPT (CARMI_FIRST+2)
#define CARMI_ADDHOST (CARMI_FIRST+3)
#endif
| #if !defined(_CARMIPRO_H)
#define _CARMIPRO_H
#include "pvmsdpro.h"
#define CARMI_FIRST (SM_LAST+1)
#define CARMI_RESPAWN (CARMI_FIRST+1)
#define CARMI_CHKPT (CARMI_FIRST+2)
#define CARMI_ADDHOST (CARMI_FIRST+3)
#define CARMI_SPAWN (CARMI_FIRST+4)
#define CARMI_CKPT_ON_VACATE (CARMI_FIRST + 5)
#define CARMI_LAST ... | Define a whole bunch of new message tags for checkpoint and migration functions. | Define a whole bunch of new message tags for checkpoint and migration
functions.
| C | apache-2.0 | zhangzhehust/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,neurodebian/htcondor,mambelli/osg-bosco-marco,djw8605/condor,mambelli/osg-bosco-marco,djw8605/condor,mambelli/osg-bosco-marco,djw8605/condor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,clalancette/condor-dcloud,zhangzhehust/htcondor,d... |
c831a822bf7a6a3b08ab8584a6db8d6cad567987 | main.c | main.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <mkdio.h>
float
main(int argc, char **argv)
{
int opt;
int debug = 0;
char *ofile = 0;
extern char version[];
opterr = 1;
while ( (opt=getopt(argc, argv, "do:V")) != EOF ) {
switch (opt) {
case 'd': debug = 1;
brea... | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <mkdio.h>
float
main(int argc, char **argv)
{
int opt;
int debug = 0;
char *ofile = 0;
extern char version[];
opterr = 1;
while ( (opt=getopt(argc, argv, "do:V")) != EOF ) {
switch (opt) {
case 'd': debug = 1;
brea... | Put the -d option into the usage: message | Put the -d option into the usage: message
| C | bsd-3-clause | binki/discount,binki/discount,binki/discount,OliverLetterer/discount,davidfstr/discount,binki/discount,OliverLetterer/discount,gm2bv/discount,davidfstr/discount,gm2bv/discount,davidfstr/discount,davidfstr/discount,binki/discount,gm2bv/discount,OliverLetterer/discount,gm2bv/discount |
178691e163ee60902dc23f3de2b8be73b86a2473 | src/modules/cameraautoswitch.h | src/modules/cameraautoswitch.h | /*
* cameraautoswitch.h
* StatusSpec project
*
* Copyright (c) 2014-2015 Forward Command Post
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#include "igameevents.h"
#include "../modules.h"
class CCommand;
class ConCommand;
class ConVar;
class IConVar;
class CameraAutoSwitch... | /*
* cameraautoswitch.h
* StatusSpec project
*
* Copyright (c) 2014-2015 Forward Command Post
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#pragma once
#include "igameevents.h"
#include "../modules.h"
class CCommand;
class ConCommand;
class ConVar;
class IConVar;
class Ca... | Add pragma once to camera auto switch header. | Add pragma once to camera auto switch header.
| C | bsd-2-clause | fwdcp/StatusSpec,fwdcp/StatusSpec |
f4fca963a2ef0914bd4142a772cefc76f9e75956 | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | Update files, Alura, Introdução a C, Aula 2.2 | Update files, Alura, Introdução a C, Aula 2.2
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
cca85848f87ed67700301736f1bbd03e6298f65d | Wikipedia/Code/WikiGlyph_Chars.h | Wikipedia/Code/WikiGlyph_Chars.h | #define WIKIGLYPH_FORWARD @"\ue954"
#define WIKIGLYPH_BACKWARD @"\ue955"
#define WIKIGLYPH_DOWN @"\ue956"
#define WIKIGLYPH_X @"\ue95e"
#define WIKIGLYPH_FLAG @"\ue963"
#define WIKIGLYPH_USER_SMILE @"\ue964"
#define WIKIGLYPH_USER_SLEEP @"\ue965"
#define WIKIGLYPH_CC @"\ue969"
#define WIKIGLYPH_CITE @"\ue96b"
#define W... | #define WIKIGLYPH_X @"\ue95e"
#define WIKIGLYPH_FLAG @"\ue963"
#define WIKIGLYPH_USER_SMILE @"\ue964"
#define WIKIGLYPH_USER_SLEEP @"\ue965"
#define WIKIGLYPH_CC @"\ue969"
#define WIKIGLYPH_PUBLIC_DOMAIN @"\ue96c"
| Remove unused glyph font defines. | Remove unused glyph font defines.
| C | mit | wikimedia/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,julienbodet/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,montehurd/app... |
b1529393f0a4660def88e2e3df1d34446ebc48ff | Operator.h | Operator.h | /*===- Operator.h - libSimulation -=============================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef OPERATOR... | /*===- Operator.h - libSimulation -=============================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef OPERATOR... | Add typedef to number of operators. This will help inside code to distinguish from counting particles, forces or operators. | Add typedef to number of operators. This will help inside code to distinguish from counting particles, forces or operators. | C | bsd-3-clause | leios/demonsimulationcode,leios/demonsimulationcode |
98d00bb62b0eeee60e204babad8c3a090521d4d9 | cmd/smyrna/filter.h | cmd/smyrna/filter.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 (... | Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings | Clean up smyrna files:
remove unnecessary globals
modify libraries not to rely on code in cmd/smyrna
remove static declarations from .h files
remove unnecessary libraries
mark unused code and clean up warnings
| C | epl-1.0 | kbrock/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,ellson/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,kbrock/graphviz,jho1965us/graphviz,jho1965us/graphviz,tkelman/graphviz,pixelglow/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,kbrock/graphviz,ellson/graphviz,MjAbuz/graphviz,kbrock/graphviz,BMJHayward/graphviz,pi... |
9fcb875470185cd1e5635c9001cc36b5aad8ca7a | testing/test_rocks.c | testing/test_rocks.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "cem/rocks.h"
static void test_set_rock_blocks(void) {
const int shape[2] = {10, 20};
double **z = (double**)malloc(sizeof(double*) * shape[0]);
char **rock_type = (char**)malloc(sizeof(char*) * shape[0]);
int i;
char exp... | Add unit tests for rocks.c. | Add unit tests for rocks.c.
| C | mit | csdms-contrib/cem | |
a643c5fe60f459802f071e48fb5eeaca4cf7ac4b | src/tests/marquise_hash_test.c | src/tests/marquise_hash_test.c | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_hash_identifier() {
const char *id = "hostname:fe1.example.com,metric:BytesUsed,service:memory,";
size_t id_len = strlen(id);
uint64_t address = marquise_hash_identifier(id, id_len);
g_assert_cmpint(address, ==, 760288338... | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_hash_identifier() {
const char *id = "hostname:fe1.example.com,metric:BytesUsed,service:memory,";
size_t id_len = strlen(id);
uint64_t address = marquise_hash_identifier((const unsigned char*) id, id_len);
g_assert_cmpint... | Make a pointer-signedness warning in testing magically disappear~ | Make a pointer-signedness warning in testing magically disappear~
| C | bsd-3-clause | anchor/libmarquise,anchor/libmarquise |
0ff744dd3c9c3853e35cb7c7e2fe46be8a6e0eaf | include-cpp/RSImg.h | include-cpp/RSImg.h | #ifndef __RSImg_h__
#define __RSImg_h__
#include <stdint.h>
#include <stdio.h>
extern "C" int RSImgFreadPPMP6Header(FILE *file, uint32_t *width, uint32_t *height, uint32_t *headerSize);
#endif
| Add a header for use from C++ | Add a header for use from C++
| C | mit | ReclaimSoftware/RSImg,ReclaimSoftware/RSImg | |
c33f2beda7b6ff05e87d3fd828d0370e21b9debc | http.h | http.h | #ifndef http_h
#define http_h
typedef struct http_context_s http_context;
typedef struct http_session_s http_session;
typedef struct http_request_s http_request;
/*
* A Context is bound to a collection of sessions and
* ongoing requests. Each thread in a process should have its
* own Context to avoid deadlocks and... | Add primary header with initial API draft. | Add primary header with initial API draft.
| C | mit | joshthecoder/libhttp | |
10b5311070496ada127c5f4a4119a6ab9d1baaec | main.c | main.c | //codigo para hecer pruebas de como funciona github.
//programa simple que suma, resta, multiplica y divide numeros ingresador por pantalla.
#include <stdio.h>
#include <stdlib.h>
void sumar(int a, int b);
void restar(int a,int b);
int main() {
int a,b;
printf("Bienvenido... Ingrese 2 numeros");
printf ... | //codigo para hecer pruebas de como funciona github.
//programa simple que suma, resta, multiplica y divide numeros ingresador por pantalla.
#include <stdio.h>
#include <stdlib.h>
void sumar(int a, int b);
void restar(int a,int b);
int main() {
int a,b;
printf ("Primer numero: "); scanf ("%d",&a);
... | Revert "Corregido Error en Funcion restar" | Revert "Corregido Error en Funcion restar"
This reverts commit d8e984f0ea7d12526e1069292ed85025178d8d67.
| C | unlicense | jcruz1/ProyectoSIIGrupo2 |
4f36797fb368cc30a648ed0a313b6f4ad6cb3927 | src/config.h | src/config.h | #ifndef SRC_CONFIG_H_S6A1C09K
#define SRC_CONFIG_H_S6A1C09K
/* package name */
#define PACKAGE "pianobar"
#define VERSION "2014.06.08-dev"
/* ffmpeg/libav quirks detection
* ffmpeg’s micro versions always start at 100, that’s how we can distinguish
* ffmpeg and libav */
#include <libavfilter/version.h>
/* is "tim... | #ifndef SRC_CONFIG_H_S6A1C09K
#define SRC_CONFIG_H_S6A1C09K
/* package name */
#define PACKAGE "pianobar"
#define VERSION "2014.06.08-dev"
/* ffmpeg/libav quirks detection
* ffmpeg’s micro versions always start at 100, that’s how we can distinguish
* ffmpeg and libav */
#include <libavfilter/version.h>
/* is "tim... | Fix volume control with ffmpeg 2.3 | Fix volume control with ffmpeg 2.3
| C | mit | DavidZemon/pianobar,gnowxilef/pianobar,DavidZemon/pianobar,tchajed/pianobar,gnowxilef/pianobar,twahlfeld/pianobar,tchajed/pianobar,johnso51/pianobar,johnso51/pianobar,gnowxilef/pianobar,tchajed/pianobar,twahlfeld/pianobar,johnso51/pianobar,tchajed/pianobar,DavidZemon/pianobar,DavidZemon/pianobar,gnowxilef/pianobar,john... |
d3b529bb914c70773c1218fe5b85e9738e66ad4b | Pod/Classes/BFTaskCenter.h | Pod/Classes/BFTaskCenter.h | //
// BFTaskCenter.h
// Pods
//
// Created by Superbil on 2015/8/22.
//
//
#import "Bolts.h"
@interface BFTaskCenter : NSObject
/*!
A block that can act as a continuation for a task.
*/
typedef void (^BFTaskCenterBlock)(BFTask * _Nonnull task);
+ (nonnull instancetype)defaultCenter;
- (instancetype)initWithEx... | //
// BFTaskCenter.h
// Pods
//
// Created by Superbil on 2015/8/22.
//
//
#import "Bolts.h"
NS_ASSUME_NONNULL_BEGIN
@interface BFTaskCenter : NSObject
/*!
A block that can act as a continuation for a task.
*/
typedef void (^BFTaskCenterBlock)(BFTask * _Nonnull task);
+ (instancetype)defaultCenter;
- (instan... | Fix compiler warning for nullable check | Fix compiler warning for nullable check
| C | mit | Superbil/BFTaskCenter,Superbil/BFTaskCenter |
e7139c902072bcfb4a404c0fcfb91f34dd1e129f | src/cal3d/color.h | src/cal3d/color.h | #pragma once
#include "cal3d/global.h"
#include "cal3d/vector.h"
typedef unsigned long CalColor32; // 32-bit integer, compatible with NSPR
inline CalColor32 CalMakeColor(CalVector cv) {
return
( ( unsigned int ) ( cv.z * 0xff ) << 0) +
( ( ( unsigned int ) ( cv.y * 0xff ) ) << 8 ) +
... | #pragma once
#include "cal3d/global.h"
#include "cal3d/vector.h"
typedef unsigned int CalColor32; // 32-bit integer, compatible with NSPR
inline CalColor32 CalMakeColor(CalVector cv) {
return
( ( unsigned int ) ( cv.z * 0xff ) << 0) +
( ( ( unsigned int ) ( cv.y * 0xff ) ) << 8 ) +
... | Unify and simplify a lot of pixomatic code | Unify and simplify a lot of pixomatic code
git-svn-id: febc42a3fd39fb08e5ae2b2182bc5ab0a583559c@51002 07c76cb3-cb09-0410-85de-c24d39f1912e
| C | lgpl-2.1 | imvu/cal3d,imvu/cal3d,imvu/cal3d,imvu/cal3d |
8409e82310159111f2a01d65af58514adda6fe8a | IntelFrameworkPkg/Include/Common/FrameworkFirmwareVolumeImageFormat.h | IntelFrameworkPkg/Include/Common/FrameworkFirmwareVolumeImageFormat.h | /** @file
This file defines the data structures that are architecturally defined for file
images loaded via the FirmwareVolume protocol. The Firmware Volume specification
is the basis for these definitions.
Copyright (c) 2006, Intel Corporation
... | Add some definitions in Framework FV 0.9 spec but not in PI 1.0. | Add some definitions in Framework FV 0.9 spec but not in PI 1.0.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@2901 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 | |
fbff55718ba32fc5f63c71f4251a679093ec2a44 | include/YAnimated.h | include/YAnimated.h | #ifndef __YANIMATED__
#define __YANIMATED__
typedef struct YFrame
{
int current;
int first;
int last;
int width;
int height;
int fps;
YFrame(){};
YFrame(int a_current,
int a_first,
int a_last,
int a_width,
int a_height,
int a_fps):
current(a_current),
first... | #ifndef __YANIMATED__
#define __YANIMATED__
/*!
Store animation frame indexes
*/
typedef struct YFrame
{
//! Default Constructor
YFrame(): current(0),
first(0),
last(0){};
//! Constructor with parameters
/*!
\param Current animation frame index
\param First animation frame index
... | Remove width, height and fps variable from YFrame struct | Remove width, height and fps variable from YFrame struct
| C | mit | sergiosvieira/yda,sergiosvieira/yda,sergiosvieira/yda |
8750ff3b93535fbc009ad535d3b9234b566c4d35 | include/data_type.h | include/data_type.h | /*
* Use and distribution licensed under the Apache license version 2.
*
* See the COPYING file in the root project directory for full text.
*/
#ifndef SQLTOAST_DATA_TYPE_H
#define SQLTOAST_DATA_TYPE_H
namespace sqltoast {
typedef enum data_type {
DATA_TYPE_CHAR,
DATA_TYPE_VARCHAR,
DATA_TYPE_NCHAR,
... | Add standard ANSI-92 data types | Add standard ANSI-92 data types
| C | apache-2.0 | jaypipes/sqltoast,jaypipes/sqltoast | |
d0172776eac403c0f4df9da1bc99f00321449266 | src/timestamps.h | src/timestamps.h | #ifndef BITCOIN_TIMESTAMPS_H
#define BITCOIN_TIMESTAMPS_H
static const unsigned int ENTROPY_SWITCH_TIME = 1362791041; // Sat, 09 Mar 2013 01:04:01 GMT
static const unsigned int STAKE_SWITCH_TIME = 1371686400; // Thu, 20 Jun 2013 00:00:00 GMT
static const unsigned int TARGETS_SWITCH_TIME = 1374278400; // Sat, 20 Jul 20... | #ifndef BITCOIN_TIMESTAMPS_H
#define BITCOIN_TIMESTAMPS_H
static const unsigned int ENTROPY_SWITCH_TIME = 1362791041; // Sat, 09 Mar 2013 01:04:01 GMT
static const unsigned int STAKE_SWITCH_TIME = 1371686400; // Thu, 20 Jun 2013 00:00:00 GMT
static const unsigned int TARGETS_SWITCH_TIME = 1374278400; // Sat, 20 Jul 20... | Add SIG_SWITCH_TIME at Sat, 20 Sep 2014 | Add SIG_SWITCH_TIME at Sat, 20 Sep 2014 | C | mit | novacoin-project/novacoin,stamhe/novacoin,stamhe/novacoin,stamhe/novacoin,penek/novacoin,gades/novacoin,novacoin-project/novacoin,elambert2014/novacoin,fsb4000/novacoin,penek/novacoin,fsb4000/novacoin,fsb4000/novacoin,stamhe/novacoin,byncoin-project/byncoin,byncoin-project/byncoin,elambert2014/novacoin,byncoin-project/... |
d69e026a523445233153f3ab5218c8c652d5fe69 | src/validation.h | src/validation.h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_VALIDATION_H
... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_VALIDATION_H
... | Update default max tip age | Update default max tip age
| C | mit | neutroncoin/neutron,neutroncoin/neutron,neutroncoin/neutron,neutroncoin/neutron |
769c2c7be646091ca003605c6dde6747c92f73e8 | lib/xray/xray_emulate_tsc.h | lib/xray/xray_emulate_tsc.h | //===-- xray_emulate_tsc.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- xray_emulate_tsc.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix missing include of <cerrno> | [XRay][compiler-rt] Fix missing include of <cerrno>
Futher attempt to un-break ARM and AArch64 build.
Follow-up on D25360.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@290083 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
643168599fc9fe58ae1779ac93e435b3fa934eee | bin/tests/gxbn_test.c | bin/tests/gxbn_test.c | /*
* Copyright (C) 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" AND ... | Test getipnodebyname() & gethostbyname() implementations. | Test getipnodebyname() & gethostbyname() implementations.
| C | mpl-2.0 | each/bind9-collab,each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,each/bind9-collab,pecharmin/bind9 | |
810e3b75bab2565a68d43b7fb7b709c10b19f711 | tutorial/putc_example.c | tutorial/putc_example.c | // Compile with:
// $ gcc -Wall -Werror -o putc_example putc_example.c
//
// 1. Warm up: Make the program print out the string backwards
// 2. $ rm -f putc_example (remove the compiled program)
// Comment out all of the #include headers in this file and re-run the
// compile command. You should see warnings, an... | // Compile with:
// $ gcc -Wall -Werror -o putc_example putc_example.c
//
// 1. Warm up: Make the program print out the string backwards
// 2. $ rm -f putc_example (remove the compiled program)
// Comment out all of the #include headers in this file and re-run the
// compile command. You should see warnings, an... | Use size_t for strlen result, so it matches the man page. | Use size_t for strlen result, so it matches the man page.
| C | apache-2.0 | allenporter/thebends,allenporter/thebends,allenporter/thebends,allenporter/thebends,allenporter/thebends,allenporter/thebends,allenporter/thebends,allenporter/thebends,allenporter/thebends |
961492e653d8268044fa7af755531121cf3fc7d1 | src/util/file_utils.h | src/util/file_utils.h | #ifndef FILE_UTILS_H
#define FILE_UTILS_H
#include <stdint.h>
#include <string.h>
#include <dirent.h>
#define PATHLEN 32
#define MAXPATH 1024
#define PROC "/proc/"
#define MEMINFO "/proc/meminfo"
#define STATUS "/proc/%s/status"
#define IO_STAT "/proc/%s/io"
#define STAT "/proc/%s/stat"
#define STAT_BUFFER 4096
... | #ifndef FILE_UTILS_H
#define FILE_UTILS_H
#include <stdint.h>
#include <string.h>
#include <dirent.h>
#define PATHLEN 32
#define MAXPATH 1024
#define PROC_SIZE 1024
#define PROC "/proc/"
#define MEMINFO "/proc/meminfo"
#define STATUS "/proc/%s/status"
#define IO_STAT "/proc/%s/io"
#define STAT "/proc/%s/stat"
#d... | Define macro for size of proc parser | Define macro for size of proc parser
| C | mit | tijko/dashboard |
98c97486a56452a655471f0be6aa8ecfecc359fe | ReactiveCocoaFramework/ReactiveCocoa/UIAlertView+RACCommandSupport.h | ReactiveCocoaFramework/ReactiveCocoa/UIAlertView+RACCommandSupport.h | //
// UIAlertView+RACCommandSupport.h
// ReactiveCocoa
//
// Created by Henrik Hodne on 6/16/13.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RACCommand;
@interface UIAlertView (RACCommandSupport)
// Sets the alert view's command. When a button on the alert view is p... | //
// UIAlertView+RACCommandSupport.h
// ReactiveCocoa
//
// Created by Henrik Hodne on 6/16/13.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RACCommand;
@interface UIAlertView (RACCommandSupport)
// Sets the alert view's command. When a button on the alert view is p... | Document that UIAlertView.rac_command overrides the delegate | Document that UIAlertView.rac_command overrides the delegate
| C | mit | DongDongDongDong/ReactiveCocoa,JohnJin007/ReactiveCocoa,AllanChen/ReactiveCocoa,walkingsmarts/ReactiveCocoa,Pingco/ReactiveCocoa,dz1111/ReactiveCocoa,zhenlove/ReactiveCocoa,brightcove/ReactiveCocoa,jsslai/ReactiveCocoa,Pikdays/ReactiveCocoa,paulyoung/ReactiveCocoa,on99/ReactiveCocoa,xumaolin/ReactiveCocoa,mxxiv/Reactiv... |
6254e8a578752fb18c085c7519390b881b619745 | HTMLKit/HTMLKit.h | HTMLKit/HTMLKit.h | //
// HTMLKit.h
// HTMLKit
//
// Created by Iska on 15/09/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for HTMLKit.
extern double HTMLKitVersionNumber;
//! Project version string for HTMLKit.
extern const unsigned char HTMLKitVersionS... | //
// HTMLKit.h
// HTMLKit
//
// Created by Iska on 15/09/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for HTMLKit.
extern double HTMLKitVersionNumber;
//! Project version string for HTMLKit.
extern const unsigned char HTMLKitVersionS... | Add imports for the public categories in the umbrella header | Add imports for the public categories in the umbrella header
| C | mit | iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit |
d6d05c53626ccdc2495ef6b98cafef4c3c1f3729 | server/types/JoinableImpl.h | server/types/JoinableImpl.h | #ifndef JOINABLE_IMPL
#define JOINABLE_IMPL
#include "joinable_types.h"
#include "types/MediaObjectImpl.h"
using ::com::kurento::kms::api::Joinable;
using ::com::kurento::kms::api::Direction;
using ::com::kurento::kms::api::StreamType;
namespace com { namespace kurento { namespace kms {
class JoinableImpl : public ... | #ifndef JOINABLE_IMPL
#define JOINABLE_IMPL
#include "joinable_types.h"
#include "types/MediaObjectImpl.h"
using ::com::kurento::kms::api::Joinable;
using ::com::kurento::kms::api::Direction;
using ::com::kurento::kms::api::StreamType;
namespace com { namespace kurento { namespace kms {
class JoinableImpl : public ... | Add new line at end of file | Add new line at end of file
| C | lgpl-2.1 | lulufei/kurento-media-server,TribeMedia/kurento-media-server,shelsonjava/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-media-server,Kurento/kurento-media-server,mparis/kurento-media-server,lulufei/kurento-media-server,Kurento/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-... |
cecd7696fcdc00dbdcc7de1a3747c9f2801b305e | tests/regression/36-apron/96-branched-thread-creation-apron-priv.c | tests/regression/36-apron/96-branched-thread-creation-apron-priv.c | // SKIP PARAM: --set ana.activated[+] apron
extern int __VERIFIER_nondet_int();
#include <pthread.h>
#include <assert.h>
int g = 5;
int h = 5;
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
return NULL;
}
int main() {
int r = __VERIFIER_nondet_int();
pthread_t id;
if (r) {
pthr... | Add Apron branched thread creation privatization test, where protected is unsound | Add Apron branched thread creation privatization test, where protected is unsound
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
0ecce5926dd432110b4ae0ea3b6c7702af71d8be | OpenMRS-iOS/OpenMRS-iOS-Bridging-Header.h | OpenMRS-iOS/OpenMRS-iOS-Bridging-Header.h | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "OpenMRSAPIManager.h"
#import "LocationListTableViewController.h"
#import "UIAlertView+Blocks.h" | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "OpenMRSAPIManager.h"
#import "LocationListTableViewController.h"
#import "UIAlertView+Blocks.h"
#import "MRSHelperFunctions.h" | Add MRSHelper functions to Bridging Header | Add MRSHelper functions to Bridging Header
| C | mpl-2.0 | Undo1/openmrs-contrib-ios-client,yousefhamza/openmrs-contrib-ios-client,Undo1/openmrs-contrib-ios-client,yousefhamza/openmrs-contrib-ios-client |
79e60f8ed47146544da1d005776a3d1b9e672a3f | src/CommandLineParser.h | src/CommandLineParser.h | //! \file CommandLineParser.h
#ifndef _COMMANDLINEPARSER_H
#define _COMMANDLINEPARSER_H
#include <string>
//! Abstract base class for parsing command line arguments
class CommandLineParser
{
public:
/*! Parses command line args and stores results internally.
* May throw an exception in case of error
* ... | //! \file CommandLineParser.h
#ifndef _COMMANDLINEPARSER_H
#define _COMMANDLINEPARSER_H
#include <string>
//! Abstract base class for parsing command line arguments
class CommandLineParser
{
public:
virtual ~CommandLineParser() {};
/*! Parses command line args and stores results internally.
* May throw... | Make Command line parser d'tor virtual | Make Command line parser d'tor virtual
| C | mit | dueringa/WikiWalker |
faa0634236d953e4947503a1ae2546b005106544 | src/PubSubClient_JSON.h | src/PubSubClient_JSON.h | /*
PubSubClient_JSON.h - ArduinoJson support for PubSubClient
Copyright (C) 2016 Ian Tester
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your optio... | Add header file for publishing ArduinoJson objects and arrays | Add header file for publishing ArduinoJson objects and arrays
| C | mit | Imroy/pubsubclient,Imroy/pubsubclient,Imroy/pubsubclient | |
a29ba1e4518d9dc9650448d67abae39341d6364b | test/read_file.h | test/read_file.h | inline string
get_file_contents(char *filename)
{
ifstream file(filename, ios::in | ios::ate);
if (!file.is_open())
return string();
streampos sz = file.tellg();
file.seekg(0, ios::beg);
vector<char> v(sz);
file.read(&v[0], sz);
file.close();
string data(v.empty() ? string() : string (v.begin(), v.end()).c_st... | inline string
get_file_contents(const char *filename)
{
ifstream file(filename, ios::in | ios::ate);
if (!file.is_open())
return string();
streampos sz = file.tellg();
file.seekg(0, ios::beg);
vector<char> v(sz);
file.read(&v[0], sz);
file.close();
string data(v.empty() ? string() : string (v.begin(), v.end()... | Fix compiler warnings in the test suite | Fix compiler warnings in the test suite
| C | lgpl-2.1 | matthewruhland/libmusicbrainz,sebastinas/libmusicbrainz,matthewruhland/libmusicbrainz,metabrainz/libmusicbrainz,sebastinas/libmusicbrainz,sebastinas/libmusicbrainz,ianmcorvidae/libmusicbrainz,metabrainz/libmusicbrainz,matthewruhland/libmusicbrainz,metabrainz/libmusicbrainz,ianmcorvidae/libmusicbrainz |
7f5130a7ac41e93066f60d80203a0b8ea675c0c9 | numpy/core/src/multiarray/nditer_pywrap.h | numpy/core/src/multiarray/nditer_pywrap.h | #ifndef __NEW_ITERATOR_PYWRAP_H
#define __NEW_ITERATOR_PYWRAP_H
NPY_NO_EXPORT PyObject *
NpyIter_NestedIters(PyObject *NPY_UNUSED(self),
PyObject *args, PyObject *kwds);
#endif
| #ifndef __NDITER_PYWRAP_H
#define __NDITER_PYWRAP_H
NPY_NO_EXPORT PyObject *
NpyIter_NestedIters(PyObject *NPY_UNUSED(self),
PyObject *args, PyObject *kwds);
#endif
| Make include flag name match file name. | STY: Make include flag name match file name.
| C | bsd-3-clause | ahaldane/numpy,stefanv/numpy,brandon-rhodes/numpy,dimasad/numpy,kiwifb/numpy,skymanaditya1/numpy,rherault-insa/numpy,ChristopherHogan/numpy,MSeifert04/numpy,rudimeier/numpy,chiffa/numpy,drasmuss/numpy,Eric89GXL/numpy,ekalosak/numpy,endolith/numpy,mingwpy/numpy,rgommers/numpy,dch312/numpy,madphysicist/numpy,jorisvandenb... |
9fd15678a5f149c5ddc5793541c4f3262802e2dd | chapter3/Player.h | chapter3/Player.h | #ifndef __PLAYER_H__
#define __PLAYER_H__
#include<iostream>
#include"GameObject.h"
class PLayer: public GameObject
{
public:
void update();
void clean()
{
GameObject::clean();
std::cout << "clean PLayer";
}
};
#endif
| #ifndef __PLAYER_H__
#define __PLAYER_H__
#include<iostream>
#include"GameObject.h"
class Player: public GameObject
{
public:
void update();
void clean()
{
std::cout << "clean PLayer";
}
};
#endif
| Fix class name and remove GameObject::clean call. | Fix class name and remove GameObject::clean call.
| C | bsd-2-clause | caiotava/SDLBook |
edca044ab872ca71085167b0e82ac29a4f335b6f | include/llvm/DebugInfo/DIContext.h | include/llvm/DebugInfo/DIContext.h | //===-- DIContext.h ---------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- DIContext.h ---------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Remove include of header that doesn't exist (yet). | Remove include of header that doesn't exist (yet).
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@139629 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie... |
25211cc6081e2075ecaf0565733075285a135411 | h/mhcachesbr.h | h/mhcachesbr.h |
/*
* mhcachesbr.h -- definitions for manipulating MIME content cache
*/
/*
* various cache policies
*/
static struct swit caches[] = {
#define CACHE_NEVER 0
{ "never", 0, 0 },
#define CACHE_PRIVATE 1
{ "private", 0, 0 },
#define CACHE_PUBLIC 2
{ "public", 0, 0 },
#define CACHE_ASK 3
{ "... |
/*
* mhcachesbr.h -- definitions for manipulating MIME content cache
*/
/*
* various cache policies
*/
#define CACHE_SWITCHES \
X("never", 0, CACHE_NEVER) \
X("private", 0, CACHE_PRIVATE) \
X("public", 0, CACHE_PUBLIC) \
X("ask", 0, CACHE_ASK) \
#define X(sw, minchars, id) id,
DEFINE_SWITCH_ENUM... | Convert the MIME content cache switches over to the smatch() New World Order. | Convert the MIME content cache switches over to the smatch() New World Order.
| C | bsd-3-clause | dscho/nmh,dscho/nmh,mcr/nmh,dscho/nmh,dscho/nmh,mcr/nmh |
4823e866835c3e9cf8aadbc1d1621554fcbfffde | src/plugins/InstructionCounter.h | src/plugins/InstructionCounter.h | // InstructionCounter.h (Oclgrind)
// Copyright (c) 2013-2016, James Price and Simon McIntosh-Smith,
// University of Bristol. All rights reserved.
//
// This program is provided under a three-clause BSD license. For full
// license terms please see the LICENSE file distributed with this
// source code.
#include "core... | // InstructionCounter.h (Oclgrind)
// Copyright (c) 2013-2016, James Price and Simon McIntosh-Smith,
// University of Bristol. All rights reserved.
//
// This program is provided under a three-clause BSD license. For full
// license terms please see the LICENSE file distributed with this
// source code.
#include "core... | Add missing mutex header include | Add missing mutex header include
| C | bsd-3-clause | mpflanzer/Oclgrind,mpflanzer/Oclgrind,mpflanzer/Oclgrind,mpflanzer/Oclgrind |
8f26097bd78e456b9cb090803263f3f50b513076 | data-structures/trees/binary/node.h | data-structures/trees/binary/node.h | #ifndef _NODE_H_
#define _NODE_H_
template <class T>
struct Node
{
T data;
Node<T> *left;
Node<T> *right;
Node(const T& data, Node<T> *left = nullptr, Node<T> *right = nullptr)
: data(data), left(left), right(right) {}
};
#endif // _NODE_H_
| #ifndef _NODE_H_
#define _NODE_H_
template <class T>
struct Node
{
T data;
Node<T> *left;
Node<T> *right;
Node<T> *parent;
Node(const T& data, Node<T> *left = nullptr, Node<T> *right = nullptr, Node<T> *parent = nullptr)
: data(data), left(left), right(right), parent(parent) {}
};
#endif // _NODE_H_
| Update Trees/Node structure to have parent | Update Trees/Node structure to have parent
| C | mit | stoimenoff/uni-cpp-samples,stoimenoff/uni-cpp-samples |
fe7a5706e33207876ccd8cb9c7b365362f55c3ba | common/MCP23008.h | common/MCP23008.h | // Derived from blog post at http://www.ermicro.com/blog/?p=1239
#ifndef __MCP23008_H__
#define __MCP23008_H__
#include <compat/twi.h>
#include "i2c_utils.h"
#define MCP23008_ID 0x40 // MCP23008 I2C Device Identifier (0100, fixed)
#define MCP23008_ADDR 0x00 // MCP23008 I2C Address (000-111 in bits 3..1)
#defin... | // I/O functions for MCP23008 port expander using I2C/TWI protocol
// Derived from blog post at http://www.ermicro.com/blog/?p=1239
#ifndef __MCP23008_H__
#define __MCP23008_H__
#include <compat/twi.h>
#include "i2c_utils.h"
// About the 7-bit I2C slave address MCP23008:
// - The high bits 7..4 are fixed at 0100.
/... | Add info on I2C address | Add info on I2C address
| C | mit | andrewadare/avr-breadboarding,andrewadare/avr-breadboarding |
a2e999b2cae9f2ff7dab4362c052a88b3d7440d3 | src/hex_helper.h | src/hex_helper.h |
#pragma once
#include <string>
#include <ostream>
#include <iomanip>
#include <iostream>
struct Hex
{
Hex(char *buffer, size_t size)
: m_buffer(buffer)
, m_size(size)
{
}
friend std::ostream& operator <<(std::ostream &os, const Hex &obj)
{
unsigned char* aschar = (unsigne... |
#pragma once
#include <string>
#include <ostream>
#include <iomanip>
#include <iostream>
struct Hex
{
Hex(char *buffer, size_t size)
: m_buffer(buffer)
, m_size(size)
{
}
friend std::ostream& operator <<(std::ostream &os, const Hex &obj)
{
unsigned char* aschar = (unsigne... | Add "\x" for hex part. | Add "\x" for hex part.
| C | mit | azat/hadoop-io-sequence-reader |
e769a3bc613c7c9d7fd650de18a45a65ad8c53c0 | src/kmain.c | src/kmain.c | #include "gdt.h"
#include "idt.h"
#include "vga.h"
#include "term_printf.h"
void kernel_main()
{
init_term();
term_puts(NAME " booting...");
term_puts("Initializing GDT...");
init_gdt();
term_puts("Initializing IDT...");
init_idt();
term_printf("term_printf is %d%% p%cre %s\n", 100, 'u', "awesome");
__asm__... | #include "gdt.h"
#include "idt.h"
#include "vga.h"
#include "term_printf.h"
void notify(void (*func)(), char *str)
{
term_putsn(str);
func();
term_puts(" done");
}
void kernel_main()
{
init_term();
term_puts(NAME " booting...");
notify(init_gdt, "Initializing GDT...");
notify(init_idt, "Initializing IDT...");... | Add notify() function to print message around function call | Add notify() function to print message around function call
| C | mit | orodley/studix,orodley/studix |
e7b995835e1b852b8046c9b1dcd25e9dbee99b05 | test/Misc/pr32207.c | test/Misc/pr32207.c | // test for r305179
// RUN: %clang_cc1 -emit-llvm -O -mllvm -print-after-all %s -o %t 2>&1 | grep '*** IR Dump After Function Integration/Inlining ***'
void foo() {}
| // test for r305179
// RUN: %clang_cc1 -emit-llvm -O -mllvm -print-after-all %s -o %t 2>&1 | FileCheck %s
// CHECK: *** IR Dump After Function Integration/Inlining ***
void foo() {}
| Address David Blaikie comment by replacing grep with FileCheck. | Address David Blaikie comment by replacing grep with FileCheck.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@305215 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,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,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
f6025874064eec95deb06a7b0d3c76ec03568d12 | cpp/module_impl.h | cpp/module_impl.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 PPAPI_CPP_MODULE_IMPL_H_
#define PPAPI_CPP_MODULE_IMPL_H_
#include "ppapi/cpp/module.h"
namespace {
template <typename T> class DeviceFuncs... | // 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 PPAPI_CPP_MODULE_IMPL_H_
#define PPAPI_CPP_MODULE_IMPL_H_
#include "ppapi/cpp/module.h"
namespace {
template <typename T> class DeviceFuncs... | Initialize DeviceFuncs::ifuncs_ to zero in constructor | Initialize DeviceFuncs::ifuncs_ to zero in constructor
| C | bsd-3-clause | huqingyu/ppapi,whitewolfm/ppapi,c1soju96/ppapi,dralves/ppapi,huochetou999/ppapi,lag945/ppapi,lag945/ppapi,Xelemsta/ppapi,c1soju96/ppapi,tonyjoule/ppapi,HAfsari/ppapi,xinghaizhou/ppapi,xuesongzhu/ppapi,JustRight/ppapi,fubaydullaev/ppapi,CharlesHuimin/ppapi,huqingyu/ppapi,phisixersai/ppapi,stefanie924/ppapi,lag945/ppapi,... |
d8c827d14f834891b674054bc2bae8c8fa91d86c | base/418/getCursorPosition.c | base/418/getCursorPosition.c | int getCursorPosition(int *rows, int *cols)
{
}
|
//
// Use the ESC [6n escape sequence to query the horizontal cursor position
// and return it. On error -1 is returned, on success the position of the
// cursor is stored at *rows and *cols and 0 is returned.
//
int getCursorPosition(int ifd, int ofd, int *rows, int *cols) {
char buf[32];
unsigned int i = 0... | Add changes to correct changes | Add changes to correct changes
| C | bsd-2-clause | eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood |
6eabd231276a1206adcca059a9efe9a95c61172b | src/lib/gcc/udivdi3.c | src/lib/gcc/udivdi3.c | /**
* @file
* @brief
*
* @date 16.05.12
* @author Anton Bondarev
* @author Ilia Vaprol
*/
#include <limits.h>
#include <stdint.h>
#define MASK_DWORD (uint64_t)1 << ((WORD_BIT * 2) - 1)
uint64_t __udivdi3(uint64_t num, uint64_t den) {
uint64_t result = 0;
int steps;
if (den == 0) {
return 0;
}
steps =... | /**
* @file
* @brief
*
* @date 16.05.12
* @author Anton Bondarev
* @author Ilia Vaprol
*/
#include <stdint.h>
uint64_t __udivdi3(uint64_t num, uint64_t den) {
uint64_t result = 0;
int steps;
if (den == 0) {
return 0;
}
steps = 0;
result = 0;
while (!(den & 0x8000000000000000)) {
den <<= 1;
++st... | Revert __udivi3 (word in compiler always 32 bit) | Revert __udivi3 (word in compiler always 32 bit) | C | bsd-2-clause | abusalimov/embox,gzoom13/embox,abusalimov/embox,Kefir0192/embox,Kakadu/embox,embox/embox,vrxfile/embox-trik,abusalimov/embox,gzoom13/embox,vrxfile/embox-trik,Kefir0192/embox,embox/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,Kefir0192/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,mike2390... |
b04346e8ee67e96ed73c351bd8542a00f9c97aee | algorithms/automorphic.c | algorithms/automorphic.c | /*
* Author: hx1997
* Desc: жһȻǷΪƽԸβ
*/
#include <stdio.h>
int is_automorphic(long int num) {
long int sqrd = num * num;
int lsig_digit, lsig_digit_sqrd;
if(num > 44720) return -1;
for(; num > 0; num /= 10, sqrd /= 10) {
lsig_digit = num % 10;
lsig_digit_sqrd = sqrd % 10;
if(lsig_digit != lsig_di... | /*
* Author: hx1997
* Desc: жһȻǷΪƽԸβ
*/
#include <stdio.h>
int is_automorphic(int num) {
int sqrd = num * num;
int lsig_digit; int lsig_digit_sqrd;
if(num > 44720) return -1;
for(; num > 0; num /= 10, sqrd /= 10) {
lsig_digit = num % 10;
lsig_digit_sqrd = sqrd % 10;
if(lsig_digit != lsig_digit_sq... | Change long int to int | Automorphic: Change long int to int
| C | mit | hx1997/random-dump |
6e65e1047f861d4db87ad0154c171ac66d53b649 | test/Analysis/diagnostics/shortest-path-suppression.c | test/Analysis/diagnostics/shortest-path-suppression.c | // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-config suppress-null-return-paths=true -analyzer-output=text -verify %s
// expected-no-diagnostics
int *returnNull() { return 0; }
int coin();
// Use a float parameter to ensure that the value is unknown. This will create
// a cycle in the generated Explode... | Add a test case for diagnostic suppression on a graph with cycles. | [analyzer] Add a test case for diagnostic suppression on a graph with cycles.
(see previous commit)
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@177449 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... | |
0cb4362412abfc45e019fc8e4bd3b1c551662bf7 | iOS/PlayPlan/PublicViews/SideMenu.h | iOS/PlayPlan/PublicViews/SideMenu.h | //
// SideMenu.h
// PlayPlan
//
// Created by Zeacone on 15/11/19.
// Copyright © 2015年 Zeacone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PlayPlan.h"
@interface SideMenu : UIView
@end
| //
// SideMenu.h
// PlayPlan
//
// Created by Zeacone on 15/11/19.
// Copyright © 2015年 Zeacone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PlayPlan.h"
@protocol SideMenuDelegate <NSObject>
- (void)sideMenu:(UIButton *)menu title:(NSString *)title;
@end
@interface SideMenu : UIView
@property (no... | Add delegate for side menu. | Add delegate for side menu.
| C | mit | Zeacone/PlayPlan,Zeacone/PlayPlan |
a29854ca7310d02cf452582cebe80c1de21294cf | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 101
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 102
#endif
| Update Skia milestone to 102 | Update Skia milestone to 102
Change-Id: Ie332216b5338b1538de9ef07a34a28854c7c805a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/522137
Reviewed-by: Kevin Lubick <7cdab2cfab351f23814786ba39716e90eed69047@google.com>
| C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia |
2cd50fa07e9364b98c99643a006fdea5e079ff31 | hittop/parser/parser.h | hittop/parser/parser.h | // Defines the generic Parser interface for the Casper parser generator library.
//
#ifndef HITTOP_PARSER_PARSER_H
#define HITTOP_PARSER_PARSER_H
#include "hittop/parser/parse_error.h"
#include "hittop/util/fallible.h"
namespace hittop {
namespace parser {
using util::Fallible;
/// The form of a Parser class. The... | // Defines the generic Parser interface for the Casper parser generator library.
//
#ifndef HITTOP_PARSER_PARSER_H
#define HITTOP_PARSER_PARSER_H
#include "boost/range/as_literal.hpp"
#include "hittop/parser/parse_error.h"
#include "hittop/util/fallible.h"
namespace hittop {
namespace parser {
using util::Fallible... | Add convenience overload of Parse that accepts c-string literals | Add convenience overload of Parse that accepts c-string literals
| C | apache-2.0 | hittop/hittop,hittop/hittop |
76f394247acc79e003beeb06fa286f246ea7685a | test2/code_gen/dead_code_elim.c | test2/code_gen/dead_code_elim.c | // RUN: %ocheck 3 %s
g()
{
return 3;
}
main()
{
if(0){
f(); // shouldn't hit a linker error here - dead code
a:
return g();
}
goto a;
}
| // RUN: %ocheck 3 %s -g
// test debug emission too
g()
{
return 3;
}
main()
{
if(0){
int i;
f(); // shouldn't hit a linker error here - dead code
a:
i = 2;
return g(i);
}
goto a;
}
| Test debug label emission with local variables | Test debug label emission with local variables
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
80867bf2320444893e7248bead8b63aec23993a4 | core/base/inc/RVersion.h | core/base/inc/RVersion.h | #ifndef ROOT_RVersion
#define ROOT_RVersion
/* Version information automatically generated by installer. */
/*
* These macros can be used in the following way:
*
* #if ROOT_VERSION_CODE >= ROOT_VERSION(2,23,4)
* #include <newheader.h>
* #else
* #include <oldheader.h>
* #endif
*
*/
#defin... | #ifndef ROOT_RVersion
#define ROOT_RVersion
/* Version information automatically generated by installer. */
/*
* These macros can be used in the following way:
*
* #if ROOT_VERSION_CODE >= ROOT_VERSION(2,23,4)
* #include <newheader.h>
* #else
* #include <oldheader.h>
* #endif
*
*/
#defin... | Update ROOT version files to v5.34/23. | Update ROOT version files to v5.34/23.
| C | lgpl-2.1 | tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot |
cd24cba0c92904ec7ee0a521d7074b3e232261ca | src/modules/conf_theme/e_int_config_theme.h | src/modules/conf_theme/e_int_config_theme.h | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void... | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void... | Declare public function in header. | Declare public function in header.
SVN revision: 35475
| C | bsd-2-clause | rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment |
d6846332e576ae56a8b9e73d746bec7305c92900 | extensions/ringopengl/opengl11/ring_opengl11.c | extensions/ringopengl/opengl11/ring_opengl11.c | #include "ring.h"
/*
OpenGL 1.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_FUNC(ring_get_gl_zero)
{
RING_API_RETNUMBER(GL_ZERO);
}
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
... | Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_ZERO | Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_ZERO
| C | mit | ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring | |
ba796b0f15918634fdab02132879016a50183ba4 | include/libk/physical_allocator.h | include/libk/physical_allocator.h | #ifndef PHYSICAL_ALLOCATOR_H
#define PHYSICAL_ALLOCATOR_H
typedef uint32_t page_frame_t;
#define PAGE_FRAME_CACHE_SIZE 32
#define PAGE_FRAME_MAP_SIZE (PHYS_MEMORY_SIZE/8/PAGE_SIZE)
// Linear search of page frame bitmap
page_frame_t alloc_frame_helper();
void free_frame(page_frame_t frame);
page_frame_t alloc_frame... | #ifndef PHYSICAL_ALLOCATOR_H
#define PHYSICAL_ALLOCATOR_H
#include <stdint.h>
#include <stddef.h>
#include <libk/kabort.h>
#include <libk/kassert.h>
#include <libk/kputs.h>
#ifdef ARCH_X86
#include <arch/x86/memlayout.h>
#endif
#ifdef ARCH_USERLAND
#include "tests/memlayout.h"
#endif
typedef uint32_t page_frame_t;
... | Create macros for certain repetitive shifts | Create macros for certain repetitive shifts
| C | mit | awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth |
12a7262f437f301f6004fb06a4634543685e532e | tests/apps/seh.c | tests/apps/seh.c | /**************************************************************************
*
* Copyright 2015 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software wit... | /**************************************************************************
*
* Copyright 2015 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software wit... | Use a better custom exception code. | test/apps: Use a better custom exception code.
| C | lgpl-2.1 | jrfonseca/drmingw,jrfonseca/drmingw,jrfonseca/drmingw,jrfonseca/drmingw |
aca5c7bac87a1b2fb4e9c6daa43f61ea0c021dd1 | kernel/muen/muen-block.c | kernel/muen/muen-block.c | /*
* Copyright (c) 2017 Contributors as noted in the AUTHORS file
*
* This file is part of Solo5, a unikernel base layer.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose with or without fee is hereby granted, provided
* that the above copyright notice and this permission no... | Add dummy block implementation for Muen | Add dummy block implementation for Muen
For now there is no support for block devices on the Muen platform.
| C | isc | Solo5/solo5,djwillia/solo5,Solo5/solo5,mato/solo5,mato/solo5,Weichen81/solo5,Weichen81/solo5,mato/solo5,djwillia/solo5,Weichen81/solo5,djwillia/solo5 | |
fd94904f4bffbcd8eec0ce025e7123fcb7569c03 | tests/regression/06-symbeq/24-escape_rc.c | tests/regression/06-symbeq/24-escape_rc.c | // PARAM: --set ana.activated[+] "'var_eq'"
// Copy of 04/45 with var_eq enabled
// octApron needs to be included again and fixed
#include <pthread.h>
#include <stdio.h>
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int *p = (int *) ... | // PARAM: --set ana.activated[+] "'var_eq'"
// Copy of 04/45 with var_eq enabled
#include <pthread.h>
#include <stdio.h>
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int *p = (int *) arg;
pthread_mutex_lock(&mutex1);
(*p)++;
p... | Remove outdated octApron comment from 06/24 | Remove outdated octApron comment from 06/24
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
9ad7e0d7b5652d3279d227a1537c3b39b8cad1d0 | test/Sema/crash-invalid-array.c | test/Sema/crash-invalid-array.c | // RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify %s
// PR6913
#include <stdio.h>
int main()
{
int x[10][10];
int (*p)[] = x;
int i;
for(i = 0; i < 10; ++i)
{
p[i][i] = i; // expected-error {{subscript of pointer to incomplete type 'int []'}}
}
}
// rdar://13705391
void ... | // RUN: %clang_cc1 -triple=x86_64-apple-darwin -fsyntax-only -verify %s
// PR6913
int main()
{
int x[10][10];
int (*p)[] = x;
int i;
for(i = 0; i < 10; ++i)
{
p[i][i] = i; // expected-error {{subscript of pointer to incomplete type 'int []'}}
}
}
// rdar://13705391
void foo(int a[*][2]) {(v... | Remove an old stdio.h include from the invalid-array test | Remove an old stdio.h include from the invalid-array test
This should get it up and running on win and other builders without system
headers.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@196738 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
d3464b2f5f46a6db68f66a62e9d130b744cc6594 | src/executeStage.h | src/executeStage.h | /*
* File: executeStage.h
* Author: Alex Savarda
*/
#define INSTR_COUNT 16 // Possible size of the instruction set
#ifndef EXECUTESTAGE_H
#define EXECUTESTAGE_H
typedef struct {
unsigned int stat;
unsigned int icode;
unsigned int ifun;
unsigned int valC;
unsigned int valA;
unsigned... | /*
* File: executeStage.h
* Author: Alex Savarda
*/
#define INSTR_COUNT 16 // Possible size of the instruction set
#ifndef EXECUTESTAGE_H
#define EXECUTESTAGE_H
typedef struct {
unsigned int stat;
unsigned int icode;
unsigned int ifun;
unsigned int valC;
unsigned int valA;
unsigned... | Convert a tab into a space | Convert a tab into a space
| C | isc | sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS |
c0355a5eb3d8787fbd9bcac928e649b3381f73a3 | modlib.h | modlib.h | /* This is main header file that is ought to be included as library */
//Include proper header files
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include "parser.h"
//Function prototypes
extern uint16_t MODBUSSwapEndian( uint16_t );
extern uint16_t MODBUSCRC16( uint16_t *, uint16_t );
| /* This is main header file that is ought to be included as library */
//Include proper header files
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
//Function prototypes
extern uint16_t MODBUSSwapEndian( uint16_t );
extern uint16_t MODBUSCRC16( uint8_t *, uint16_t );
| Remove inclusion of 'parser.h' and fix pointer type | Remove inclusion of 'parser.h' and fix pointer type
| C | mit | Jacajack/modlib |
d7a05b9d921d191923ded5e9770339a0bebca33b | ComponentImplementationInclude.h | ComponentImplementationInclude.h | #include "Components.h"
class HealthComponent : public HealthComponentBase {
public:
HealthComponent(Entity* entity, int maxHealth, int startHealth, const int& Health): HealthComponentBase(entity, maxHealth, startHealth, Health) {
}
void OnHeal(int amount) {
}
void OnDamage(int amount) {
}
... | #include "Components.h"
class HealthComponent : public HealthComponentBase {
public:
HealthComponent(Entity* entity, int maxHealth, int startHealth, const int& Health): HealthComponentBase(entity, maxHealth, startHealth, Health) {
}
void HandleHeal(int amount) {
}
void HandleDamage(int amount) {
... | Fix the small test to use Handle instead of On | Fix the small test to use Handle instead of On
| C | bsd-3-clause | DaemonDevelopers/CBSE-Toolchain,DaemonDevelopers/CBSE-Toolchain,DaemonDevelopers/CBSE-Toolchain |
4bb3e5fe554bc5d9e54924456a8711c3e40e6191 | hard_way/ex15.c | hard_way/ex15.c | #include <stdio.h>
int main(int argc, char *argv[]){
//create two arrays we care about
int ages[] = {23,55,15,34,78,12};
char *names[] = {
"Feinb", "Fhilp", "Wastan", "Wustak","Henris","Abkar"
};
//safely get the size of ages
int count = sizeof(ages) / sizeof(int);
int i = 0;
//first way using ... | #include <stdio.h>
int main(int argc, char *argv[]){
//create two arrays we care about
int ages[] = {23,55,15,34,78,12};
char *names[] = {
"Feinb", "Fhilp", "Wastan", "Wustak","Henris","Abkar"
};
//safely get the size of ages
int count = sizeof(ages) / sizeof(int);
int i = 0;
//first way using ... | Use pointers to start of arrays | Use pointers to start of arrays
| C | mit | thewazir/learning_c |
93802e24742842db185ead1cf18db9827a3d8664 | include/IFile.h | include/IFile.h | #ifndef IFILE_H
#define IFILE_H
#include <vector>
#include <memory>
#include "IMediaLibrary.h"
#include "ITrackInformation.h"
class IAlbumTrack;
class IShowEpisode;
class ITrackInformation;
class IFile
{
public:
enum Type
{
VideoType, // Any video file, not being a tv show episode
... | #ifndef IFILE_H
#define IFILE_H
#include <vector>
#include <memory>
#include "IMediaLibrary.h"
#include "ITrackInformation.h"
class IAlbumTrack;
class IShowEpisode;
class ITrackInformation;
class IFile
{
public:
enum Type
{
VideoType, // Any video file, not being a tv show episode
... | Fix a warning with -pedantic on some old gcc versions | Fix a warning with -pedantic on some old gcc versions
| C | lgpl-2.1 | chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary |
2803a40fe335a29f9584911d1a52856bdb302df7 | webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c | webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Fix ChromeOS build (C99 break) | Fix ChromeOS build (C99 break)
BUG=5016
TBR=henrik.lundin@webrtc.org
Review URL: https://codereview.webrtc.org/1354163002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9992}
| C | bsd-3-clause | TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc |
405107c556390b65fecb7b20c8d7c33d53c34b9e | include/chewing-compat.h | include/chewing-compat.h | /*
* chewing-compat.h
*
* Copyright (c) 2014
* libchewing Core Team. See ChangeLog for details.
*
* See the file "COPYING" for information on usage and redistribution
* of this file.
*/
#ifndef _CHEWING_COMPAT_
#define _CHEWING_COMPAT_
/** @brief indicate the internal encoding of data processing.
* @si... | /*
* chewing-compat.h
*
* Copyright (c) 2014
* libchewing Core Team. See ChangeLog for details.
*
* See the file "COPYING" for information on usage and redistribution
* of this file.
*/
/* *INDENT-OFF* */
#ifndef _CHEWING_COMPAT_
#define _CHEWING_COMPAT_
/* *INDENT-ON* */
/** @brief indicate the internal... | Add indent comment for header guard | Add indent comment for header guard
| C | lgpl-2.1 | chewing/libchewing,bbyykk/libtaigi,PingNote/libchewing,czchen/libchewing,cwlin/libchewing,PeterDaveHello/libchewing,simonfork/libchewing,PingNote/libchewing,yan12125/libchewing,yan12125/libchewing,bbyykk/libtaigi,ShengYenPeng/libchewing,Chocobo1/libchewing,mangokingTW/libchewing,cwlin/libchewing,hiunnhue/libchewing,bby... |
1fad3482bb25c2d77ac5ceb8b48b6985d91f7f48 | sticks.c | sticks.c | #include <stdio.h>
typedef struct {
int hands[2][2];
int turn;
} Sticks;
void sticks_create(Sticks *sticks) {
sticks->hands[0][0] = 1;
sticks->hands[0][1] = 1;
sticks->hands[1][0] = 1;
sticks->hands[1][1] = 1;
sticks->turn = 0;
}
void sticks_play(Sticks *sticks, int actor, int target) {
... | #include <stdio.h>
typedef struct {
int hands[2][2];
int turn;
} Sticks;
void sticks_create(Sticks *sticks) {
sticks->hands[0][0] = 1;
sticks->hands[0][1] = 1;
sticks->hands[1][0] = 1;
sticks->hands[1][1] = 1;
sticks->turn = 0;
}
void sticks_play(Sticks *sticks, int actor, int target) {
... | Kill hands that reach five fingers | Kill hands that reach five fingers
| C | mit | tysonzero/c-ann |
e838c93903d30eb03b606b9932a2072df0061060 | 3RVX/Controllers/Volume/VolumeController.h | 3RVX/Controllers/Volume/VolumeController.h | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
class VolumeTransformation;
class VolumeController {
public:
struct DeviceInfo {
std::wstring name;
std::wstring id;
};
/// <summary>
/// Retrieves the cu... | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
class VolumeTransformation;
class VolumeController {
public:
struct DeviceInfo {
std::wstring name;
std::wstring id;
};
/// <summary>
/// Retrieves the cu... | Add method to check audio device state | Add method to check audio device state
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
7740285e7d73d5637ce04a9f901835f6cd33300f | tests/regression/13-privatized/29-multiple-protecting2-vesal.c | tests/regression/13-privatized/29-multiple-protecting2-vesal.c | // PARAM: --enable ana.int.interval
// Copied & modified from 13/24.
#include <pthread.h>
#include <assert.h>
int g2;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t __global_lock = PTHREAD_MUTEX_INITIALIZER;
void *t2_fun(void *arg) {
pthread_m... | Add Vesal's version of 13/24 where mutex-oplus and mutex-meet are more precise than old and mine | Add Vesal's version of 13/24 where mutex-oplus and mutex-meet are more precise than old and mine
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
de9495f69321629067ec16ec41e271eeecca5a22 | Source/Headers/InTimeShouldSyntax.h | Source/Headers/InTimeShouldSyntax.h | #import "AsyncActualValue.h"
namespace CedarAsync {
template<typename T>
struct InTimeMarker {
T(^actualExpression)(void);
const char *fileName;
int lineNumber;
};
template<typename T>
const AsyncActualValue<T> operator,(const InTimeMarker<T> & marker, const Cedar::Matchers... | #import "AsyncActualValue.h"
namespace CedarAsync {
template<typename T>
struct InTimeMarker {
T(^actualExpression)(void);
const char *fileName;
int lineNumber;
};
template<typename T>
const AsyncActualValue<T> operator,(const InTimeMarker<T> & marker, const Cedar::Matchers... | Use __typeof__ since typeof is unavailable in our build | Use __typeof__ since typeof is unavailable in our build | C | mit | cppforlife/CedarAsync,cppforlife/CedarAsync |
12f1e5c3a3b2948359da2f87937214ee413db567 | native/include/ssl_private.h | native/include/ssl_private.h | /* Copyright 2000-2004 The Apache Software Foundation
*
* 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 applica... | /* Copyright 2000-2004 The Apache Software Foundation
*
* 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 applica... | Use OpenSSL engine by default. | Use OpenSSL engine by default.
git-svn-id: b819289d3a0e8888cd070d2ae628b7cf730b797f@300663 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | apache/tomcat-native,andreydomas/tomcat-native,rmaucher/tomcat-native-openssl,rmaucher/tomcat-native-openssl,rmaucher/tomcat-native-openssl,apache/tomcat-native,apache/tomcat-native,apache/tomcat-native,andreydomas/tomcat-native,andreydomas/tomcat-native,rmaucher/tomcat-native-openssl,andreydomas/tomcat-native,andreydo... |
dd15514211cdcdc037368e6b584dfe79e58f3535 | onnx/optimizer/passes/optimize_pass.h | onnx/optimizer/passes/optimize_pass.h | #pragma once
#include "onnx/onnx_pb.h"
#include "onnx/ir.h"
namespace onnx { namespace optimization {
enum class API_TYPE {
PROTO, IR
};
struct OptimizePass {
std::string name;
API_TYPE type;
explicit OptimizePass(const std::string name, API_TYPE type)
: name(name), type(type) {
}
virtual void op... | #pragma once
#include "onnx/onnx_pb.h"
#include "onnx/ir.h"
namespace onnx { namespace optimization {
enum class API_TYPE {
PROTO, IR
};
struct OptimizePass {
std::string name;
API_TYPE type;
explicit OptimizePass(const std::string& name, API_TYPE type)
: name(name), type(type) {
}
virtual void o... | Fix the constructor of OptimizePass | Fix the constructor of OptimizePass
| C | apache-2.0 | onnx/onnx,onnx/onnx,onnx/onnx,onnx/onnx |
4f75fcb3b8847d900a1f45b16e97c80d4e53ddbf | src/automaton.h | src/automaton.h | #ifndef _AUTOMATON_H_
#define _AUTOMATON_H_
/*
* type and function definitions for an automaton
*/
#include "event.h"
#include "srpc/srpc.h"
typedef struct automaton Automaton;
void au_init(void);
Automaton *au_create(char *program, RpcConnection rpc, char *ebuf);
int au_destroy(unsigned lo... | #ifndef _AUTOMATON_H_
#define _AUTOMATON_H_
/*
* Copyright (c) 2013, Court of the University of Glasgow
* 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... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | fergul/Cache,jsventek/Cache,fergul/Cache,fergul/Cache,jsventek/Cache,jsventek/Cache |
4d8786007aab2ffe8dddc5b9ca440e484f8b9b9e | AudioEndPointLibrary/AudioEndPointLibrary.h | AudioEndPointLibrary/AudioEndPointLibrary.h | #include "DefSoundDeviceState.h"
#include "AudioEndPointLibraryImpl.h"
// This class is exported from the AudioEndPointLibrary.dll
namespace AudioEndPoint {
class AUDIOENDPOINTLIBRARY_API CAudioEndPointLibrary {
public:
~CAudioEndPointLibrary();
HRESULT OnDeviceStateChanged(LPCWSTR pwstr_dev... | #include "DefSoundDeviceState.h"
#include "AudioEndPointLibraryImpl.h"
// This class is exported from the AudioEndPointLibrary.dll
namespace AudioEndPoint {
class AUDIOENDPOINTLIBRARY_API CAudioEndPointLibrary {
public:
~CAudioEndPointLibrary();
HRESULT OnDeviceStateChanged(LPCWSTR pwstr_dev... | Make the registering and unregistering of the Notification private | Make the registering and unregistering of the Notification private
| C | mit | Belphemur/AudioEndPointLibrary,Belphemur/AudioEndPointLibrary |
db3fecc5b9a06af7b015b241b8ee735b65f786ea | gtk/fallback-c89.c | gtk/fallback-c89.c | /* GTK - The GIMP Toolkit
* Copyright (C) 2011 Chun-wei Fan <fanc999@yahoo.com.tw>
*
* Author: Chun-wei Fan <fanc999@yahoo.com.tw>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;... | Add fallback implemetation for rint()/round() | Add fallback implemetation for rint()/round()
Add an implementation for rint() and round() for compilers that do not
define one or both of them. Note that this file should be included
after config.h was included.
| C | lgpl-2.1 | davidgumberg/gtk,davidgumberg/gtk,chergert/gtk,Sidnioulz/SandboxGtk,ebassi/gtk,Distrotech/gtk2,davidt/gtk,alexlarsson/gtk,Lyude/gtk-,Adamovskiy/gtk,jessevdk/gtk,chergert/gtk,Lyude/gtk-,bratsche/gtk-,jadahl/gtk,chergert/gtk,chergert/gtk,jigpu/gtk,grubersjoe/adwaita,jessevdk/gtk,msteinert/gtk,Adamovskiy/gtk,Adamovskiy/gt... | |
6cc425e21330a5fa456077def0fc727b92e6ecde | test/Sema/attr-availability-ios.c | test/Sema/attr-availability-ios.c | // RUN: %clang_cc1 "-triple" "x86_64-apple-darwin3.0.0-iphoneos" -fsyntax-only -verify %s
void f0(int) __attribute__((availability(ios,introduced=2.0,deprecated=2.1)));
void f1(int) __attribute__((availability(ios,introduced=2.1)));
void f2(int) __attribute__((availability(ios,introduced=2.0,deprecated=3.0)));
void f3... | // RUN: %clang_cc1 "-triple" "x86_64-apple-darwin3.0.0-iphoneos" -fsyntax-only -verify %s
void f0(int) __attribute__((availability(ios,introduced=2.0,deprecated=2.1)));
void f1(int) __attribute__((availability(ios,introduced=2.1)));
void f2(int) __attribute__((availability(ios,introduced=2.0,deprecated=3.0)));
void f3... | Test attribute merging for the availability attribute. | Test attribute merging for the availability attribute.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@128334 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
fe23dd2429da4b8e71b110d517370358256df785 | You-DataStore/internal/operation.h | You-DataStore/internal/operation.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../ds_task_typedefs.h"
namespace You {
namespace DataStore {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
/// The constructor
... | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../ds_task_typedefs.h"
namespace You {
namespace DataStore {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
/// The constructor
... | Change return value of run to bool | Change return value of run to bool
Conflicts:
You-DataStore/internal/operation.h
You-DataStore/internal/operations/post_operation.h
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
f3b877cba4ab0ffdfc553f65547305698ef16391 | src/BLEDeviceLimits.h | src/BLEDeviceLimits.h | // Copyright (c) Sandeep Mistry. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#ifndef _BLE_LIMITS_H_
#define _BLE_LIMITS_H_
#include <stdlib.h>
#ifndef __AVR__
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#de... | // Copyright (c) Sandeep Mistry. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#ifndef _BLE_LIMITS_H_
#define _BLE_LIMITS_H_
#include <stdlib.h>
#ifndef __AVR__
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#de... | Fix length issues with nRF52 | Fix length issues with nRF52
| C | mit | sandeepmistry/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral |
79dca367dc10e9598973895f6e22350b2d2f32b4 | util.h | util.h | /*
This file is part of ethash.
ethash 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.
ethash is distributed in the hope that i... | /*
This file is part of ethash.
ethash 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.
ethash is distributed in the hope that i... | Comment out conflicting debug macro | Comment out conflicting debug macro
| C | mit | LefterisJP/webthree-umbrella,programonauta/webthree-umbrella,joeldo/cpp-ethereum,gluk256/cpp-ethereum,yann300/cpp-ethereum,eco/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,yann300/cpp-ethereum,karek314/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,eco/cpp-ethereum,expanse-pro... |
20669c2fbecaa850c3c5a2035fd068ef968f8b25 | coursework/assignment2/integral_c.c | coursework/assignment2/integral_c.c | #include <stdio.h>
#include <math.h>
float f(float x) {
return 1/x;
}
int main(int argc, char *argv[]) {
// Integral (1 to 6) of 1/x
float integral;
float a = 1, b = 6;
int n = 2000;
float h;
float x;
h = (b-a)/n;
integral = (f(a) + f(b)) / 2.0;
x = a;
for (int i = 1; i... | #include <stdio.h>
#include <math.h>
double f(double x) { return 1 / x; }
int main(int argc, char *argv[]) {
// Integral (1 to 6) of 1/x
double integral;
int a = 1, b = 6;
int n = 2000;
double h;
double x;
h = (double)(b-a)/n;
integral = (f(a) + f(b)) / 2.0;
x = a;
for (int... | Use double instead of float | Use double instead of float
Float was not able to maintain data precision
| C | mit | arthurazs/uff-lpp,arthurazs/uff-lpp,arthurazs/uff-lpp |
aa22b1c3df494da25286a787c9c5bfa6fa37c468 | cpp/cpp_odbc/Library/cpp_odbc/level2/u16string_buffer.h | cpp/cpp_odbc/Library/cpp_odbc/level2/u16string_buffer.h | #pragma once
#include <string>
#include <vector>
#include <sqltypes.h>
namespace cpp_odbc { namespace level2 {
/**
* @brief This class represents a buffer for u16strings for use with the unixodbc C API.
*/
class u16string_buffer {
public:
/**
* @brief Constructs a new string buffer with the given capacity... | #pragma once
#include <string>
#include <vector>
#include <sql.h>
namespace cpp_odbc { namespace level2 {
/**
* @brief This class represents a buffer for u16strings for use with the unixodbc C API.
*/
class u16string_buffer {
public:
/**
* @brief Constructs a new string buffer with the given capacity, i.e... | Use different header to be yet more compatible with Windows | Use different header to be yet more compatible with Windows
| C | mit | blue-yonder/turbodbc,blue-yonder/turbodbc,blue-yonder/turbodbc,blue-yonder/turbodbc |
627ea4fcaa54b2f49f92d60684f73654fee99129 | include/arch/x86/arch/shutdown.h | include/arch/x86/arch/shutdown.h | #ifndef SHUTDOWN_I6F54URD
#define SHUTDOWN_I6F54URD
void ArchShutdown(void);
#endif /* end of include guard: SHUTDOWN_I6F54URD */
| #ifndef SHUTDOWN_I6F54URD
#define SHUTDOWN_I6F54URD
void ArchBreak(void);
void ArchShutdown(void);
#endif /* end of include guard: SHUTDOWN_I6F54URD */
| Add ArchBreak to the header. | Add ArchBreak to the header.
| C | mit | duckinator/dux,duckinator/dux,duckinator/dux |
d86e2fe23f2ee6889c56f3d1426a46be7cb03d33 | SurgSim/Framework/Convert.h | SurgSim/Framework/Convert.h | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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/LICE... | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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/LICE... | Add back yaml-cpp/yaml.h header file for convert<> class template. | Add back yaml-cpp/yaml.h header file for convert<> class template.
| C | apache-2.0 | simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim |
2091920484dc3108704da860d7631dc52292af89 | src/drivers/sensors/gy_30/gy_30.c | src/drivers/sensors/gy_30/gy_30.c | /**
* @file
* @brief
*
* @date 29.03.2017
* @author Alex Kalmuk
*/
#include <unistd.h>
#include <util/log.h>
#include <drivers/i2c/i2c.h>
#include "gy_30.h"
#define GY30_ADDR 0x46
uint16_t gy_30_read_light_level(unsigned char id) {
uint16_t level = 0;
/* It would be better do not hang here but ret... | /**
* @file
* @brief
*
* @date 29.03.2017
* @author Alex Kalmuk
*/
#include <unistd.h>
#include <util/log.h>
#include <drivers/i2c/i2c.h>
#include "gy_30.h"
/* http://www.elechouse.com/elechouse/images/product/Digital%20light%20Sensor/bh1750fvi-e.pdf */
#define GY30_ADDR 0x23
uint16_t gy_30_read_ligh... | Fix gy-30 light sensor i2c address | drivers: Fix gy-30 light sensor i2c address
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
b3a3beb56fb56e812cd0308eb184c79a0fa97e5a | include/HubFramework.h | include/HubFramework.h | /// Umbrella header for the Hub Framework
#import "HUBManager.h"
#import "HUBComponent.h"
#import "HUBComponentModel.h"
#import "HUBComponentRegistry.h"
#import "HUBComponentFallbackHandler.h"
| /// Umbrella header for the Hub Framework
#import "HUBManager.h"
#import "HUBComponent.h"
#import "HUBComponentModel.h"
#import "HUBComponentModelBuilder.h"
#import "HUBComponentImageData.h"
#import "HUBComponentImageDataBuilder.h"
#import "HUBComponentRegistry.h"
#import "HUBComponentFallbackHandler.h"
| Add new API files to umbrella header | Add new API files to umbrella header | C | apache-2.0 | spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework |
a5843e1928d338a19c91f6c83b8a4ffec8ad60be | src/os/Win32/plugin.h | src/os/Win32/plugin.h | #ifndef PLUGIN_H_
#define PLUGIN_H_
#include "plugin_portable.h"
#include <windows.h>
// TODO use __stdcall
#define EXPORT_CALLING __cdecl
#define EXPORT __declspec(dllexport) EXPORT_CALLING
#include "common.h"
// just defined to make compilation work ; ignored
#define RTLD_DEFAULT NULL
#define RTLD_LOCAL -1
#de... | #ifndef PLUGIN_H_
#define PLUGIN_H_
#include "plugin_portable.h"
#include <windows.h>
// TODO use __stdcall
#define EXPORT_CALLING __cdecl
#define EXPORT __declspec(dllexport) EXPORT_CALLING
#include "common.h"
// just defined to make compilation work ; ignored
#define RTLD_DEFAULT NULL
#define RTLD_LOCAL -1
#de... | Mend Win32 build broken by 8e1c4386 | Mend Win32 build broken by 8e1c4386
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
d1f23840550c800d5d382abf3aadf1e92a9e20b1 | src/plugins/crypto/gpg_shutdown.c | src/plugins/crypto/gpg_shutdown.c | /**
* @file
*
* @brief module for shutting down the gpg-agent
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include "gpg_shutdown.h"
#include <stdio.h>
#include <stdlib.h>
/**
* @brief shutdown the gpg-agent
* @retval 0 on success.
* @retval -1 on error.
*/
int ELEKTRA_PLU... | /**
* @file
*
* @brief module for shutting down the gpg-agent
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include "gpg_shutdown.h"
#include <stdio.h>
#include <stdlib.h>
/**
* @brief shutdown the gpg-agent
* @retval 0 on success.
* @retval -1 on error.
*/
int ELEKTRA_PLU... | Revert "tests: check if gpg-agent command exists in shutdown code" | Revert "tests: check if gpg-agent command exists in shutdown code"
This reverts commit 7e0ef169c36712bb49b291a227ebd1b0036e5c75.
| C | bsd-3-clause | petermax2/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,El... |
f8093cb1e04a4ae78ed2a358ec2e7b403ae2bcda | src/xenia/base/platform_linux.h | src/xenia/base/platform_linux.h | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | Add gtk and x11 headers to linux specific platform header | Add gtk and x11 headers to linux specific platform header
| C | bsd-3-clause | sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia | |
e5be6c05567bab2c6d13fc3e8b3cb869a387327c | hal1.h | hal1.h | // Configurable constants
int const MAIN_MOTOR_PWM_TOP = 255;
int const MAIN_MOTOR_BRAKE_SPEED = 120;
int const MAIN_MOTOR_MIN_SPEED = 150;
int const MAIN_MOTOR_MED_SPEED = 254;
int const MAIN_MOTOR_MAX_SPEED = 255;
int const MAGNET_OPEN_WAIT = 5; // 10ths of a second
void init(void);
| #ifndef HAL1_H
#define HAL1_H
// Configurable constants
int const MAIN_MOTOR_PWM_TOP = 255;
int const MAIN_MOTOR_BRAKE_SPEED = 120;
int const MAIN_MOTOR_MIN_SPEED = 150;
int const MAIN_MOTOR_MED_SPEED = 254;
int const MAIN_MOTOR_MAX_SPEED = 255;
int const MAGNET_OPEN_WAIT = 5; // 10ths of a second
void init(void);
... | Add function prototypes and ifndef wrapper | Add function prototypes and ifndef wrapper
| C | unlicense | plzz/ovisysteemi,plzz/ovisysteemi |
00d1d12be797e41c5f89e905f438f85c1003d0db | objc/MX3Snapshot.h | objc/MX3Snapshot.h | #import <Foundation/Foundation.h>
#ifdef __cplusplus
#include <memory>
#include <mx3/mx3.hpp>
#endif
@interface MX3Snapshot : NSObject
// adding this here allows you to include this file from non-objc++ files
// since it is using c++ types
#ifdef __cplusplus
- (instancetype)initWithSnapshot:(std::unique_ptr<mx3::SqlSn... | #import <Foundation/Foundation.h>
#ifdef __cplusplus
#include <memory>
#include <mx3/mx3.hpp>
#endif
@interface MX3Snapshot : NSObject
// adding this here allows you to include this file from non-objc++ files
// since it is using c++ types
#ifdef __cplusplus
- (instancetype)initWithSnapshot:(std::unique_ptr<mx3::SqlSn... | Remove dealloc from header as it is declared in NSObject | Remove dealloc from header as it is declared in NSObject | C | mit | wesselj1/mx3playground,wesselj1/mx3playground,libmx3/mx3,duydb2/mx3,libmx3/mx3,duydb2/mx3,duydb2/mx3,libmx3/mx3,wesselj1/mx3playground |
b843d479c9f75400a57e23b63f19050359c6fb62 | menpo/feature/cpp/WindowFeature.h | menpo/feature/cpp/WindowFeature.h | #pragma once
#if defined(_MSC_VER)
#define round(x) (x >= 0 ? (x + 0.5) : (x - 0.5))
#endif
class WindowFeature {
public:
WindowFeature();
virtual ~WindowFeature();
virtual void apply(double *windowImage, double *descriptorVector) = 0;
unsigned int descriptorLengthPerWindow;
};
| #pragma once
#if _MSC_VER < 1900
#define round(x) (x >= 0 ? (x + 0.5) : (x - 0.5))
#endif
class WindowFeature {
public:
WindowFeature();
virtual ~WindowFeature();
virtual void apply(double *windowImage, double *descriptorVector) = 0;
unsigned int descriptorLengthPerWindow;
};
| Fix a build error (Python 3.5) | Fix a build error (Python 3.5)
Thanks to karel.palecek@tul.cz for supplying the fix to this bug.
| C | bsd-3-clause | grigorisg9gr/menpo,patricksnape/menpo,menpo/menpo,grigorisg9gr/menpo,menpo/menpo,patricksnape/menpo,grigorisg9gr/menpo,yuxiang-zhou/menpo,yuxiang-zhou/menpo,menpo/menpo,patricksnape/menpo,yuxiang-zhou/menpo |
830bb7a42d2804830a57dfe8bc469fac1317c46a | port/riot/abort.c | port/riot/abort.c | #include "port/oc_assert.h"
// TODO:
void
abort_impl()
{
}
| #include "port/oc_assert.h"
// TODO:
void
abort_impl(void)
{
}
| Declare void parameter for RIOT | Declare void parameter for RIOT
This is partially reverting:
"Bring RIOT OS port up-to-date with RIOT OS upstream"
This reverts commit 0ed0f4425cffdd84317998efa8fe19eef561c2fa.
Without this change RIOT will fail to build:
port/riot/abort.c:5:1:\
error: old-style function definition [-Werror=old-style-definition... | C | apache-2.0 | iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained |
401ddc294918febc37927b3017ca1ae2e426bd99 | mudlib/mud/home/Test/sys/auditd.c | mudlib/mud/home/Test/sys/auditd.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2013 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add stub for auditing in the tester | Add stub for auditing in the tester
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
67ff9a4499efc002851130a98c3960a2945be079 | src/soft/float/trunctfdf2.c | src/soft/float/trunctfdf2.c | #include "../../math/reinterpret.h"
#include <stdint.h>
static uint64_t magnitude_(uint64_t high, uint64_t low)
{
if (high > 0x7FFF000000000000 || (high == 0x7FFF000000000000 && low))
return high;
if (high >= 0x43FF000000000000)
return 0x7FF0000000000000;
if (high >= 0x3C01000000000000)
... | Implement long double -> double | Implement long double -> double
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic | |
b0f17a3780c5cb70b4bd8fa4633e60acd6ff98f5 | src/vast/option.h | src/vast/option.h | #ifndef VAST_OPTION_HPP
#define VAST_OPTION_HPP
#include <cppa/option.hpp>
namespace vast {
/// An optional value of `T` with similar semantics as `std::optional`.
template <typename T>
class option : public cppa::option<T>
{
typedef cppa::option<T> super;
public:
#ifdef VAST_HAVE_INHERTING_CONSTRUCTORS
using su... | #ifndef VAST_OPTION_HPP
#define VAST_OPTION_HPP
#include <cppa/option.hpp>
namespace vast {
/// An optional value of `T` with similar semantics as `std::optional`.
template <typename T>
class option : public cppa::option<T>
{
typedef cppa::option<T> super;
public:
#ifdef VAST_HAVE_INHERTING_CONSTRUCTORS
using su... | Make operator-> constexpr and return a T const*. | Make operator-> constexpr and return a T const*.
| C | bsd-3-clause | mavam/vast,pmos69/vast,vast-io/vast,vast-io/vast,mavam/vast,mavam/vast,pmos69/vast,pmos69/vast,vast-io/vast,vast-io/vast,pmos69/vast,vast-io/vast,mavam/vast |
dde3ee5113fd0ae40cfb6788e4bd0a2a8c60eb72 | t/version_t.c | t/version_t.c | #include "MMDB.h"
#include "tap.h"
#include <sys/stat.h>
#include <string.h>
#if HAVE_CONFIG_H
# include <config.h>
#endif
int main(void)
{
const char *version = MMDB_lib_version();
ok(version != NULL, "MMDB_lib_version exists");
ok(strcmp(version, PACKAGE_VERSION) == 0, "version is " PACKAGE_VERSION);
... | #include "MMDB.h"
#include "tap.h"
#include <sys/stat.h>
#include <string.h>
#if HAVE_CONFIG_H
# include <config.h>
#endif
int main(void)
{
const char *version = MMDB_lib_version();
ok(version != NULL, "MMDB_lib_version exists");
if ( version )
ok(strcmp(version, PACKAGE_VERSION) == 0, "version is ... | Check version string only if MMDB_lib_version != NULL | Check version string only if MMDB_lib_version != NULL
| C | apache-2.0 | maxmind/libmaxminddb,maxmind/libmaxminddb,maxmind/libmaxminddb |
e412c7c88f74bd962509e1c24b1611b909b58b99 | MdePkg/Include/Guid/HardwareErrorVariable.h | MdePkg/Include/Guid/HardwareErrorVariable.h | /** @file
GUID for hardware error record variables.
Copyright (c) 2007 - 2009, 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 ... | /** @file
GUID for hardware error record variables.
Copyright (c) 2007 - 2009, 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 ... | Remove "Module Name:" from include file headers. | Remove "Module Name:" from include file headers.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8895 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 |
27737aa3a9f65012b3656b71e0ff230a4811da4d | include/net/dcbevent.h | include/net/dcbevent.h | /*
* Copyright (c) 2010, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but... | /*
* Copyright (c) 2010, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but... | Add stub routines for !CONFIG_DCB | dcb: Add stub routines for !CONFIG_DCB
To avoid ifdefs in the other code that supports DCB notifiers
add stub routines. This method seems popular in other net code
for example 8021Q.
Signed-off-by: John Fastabend <06228589568acf528fa1984e09626513a30b66ed@intel.com>
Signed-off-by: David S. Miller <fe08d3c717adf2ae6359... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k... |
de73b8bcb0ae34f913711f31b3d4d4ed3c826cfa | src/core/common.h | src/core/common.h | #ifndef OSSL_CORE_COMMON_H_INCLUDE
#define OSSL_CORE_COMMON_H_INCLUDE
#include <nan.h>
#include "logger.h"
#include "scoped_ssl.h"
#include "excep.h"
#include "key_exp.h"
#include "digest.h"
#include "bn.h"
#include <openssl/bn.h>
#endif // OSSL_CORE_COMMON_H_INCLUDE
| #ifndef OSSL_CORE_COMMON_H_INCLUDE
#define OSSL_CORE_COMMON_H_INCLUDE
#ifdef _WIN32
#define __WINCRYPT_H__
#endif
#include <nan.h>
#include "logger.h"
#include "scoped_ssl.h"
#include "excep.h"
#include "key_exp.h"
#include "digest.h"
#include "bn.h"
#include <openssl/bn.h>
#endif // OSSL_CORE_COMM... | Disable __WINCRYPT_H__ headers for Windows | Disable __WINCRYPT_H__ headers for Windows
| C | mit | PeculiarVentures/node-webcrypto-ossl,PeculiarVentures/node-webcrypto-ossl,PeculiarVentures/node-webcrypto-ossl,PeculiarVentures/node-webcrypto-ossl,PeculiarVentures/node-webcrypto-ossl,PeculiarVentures/node-webcrypto-ossl |
c5f13a2a9c451f0e50854db2305158b287a68b72 | util/getarg.h | util/getarg.h | /***************************************************************************
getarg.h - Support routines for the giflib utilities
**************************************************************************/
#ifndef _GETARG_H
#define _GETARG_H
#include <stdbool.h>
#define VERSION_COOKIE " Version %d.%d, "
/********... | /***************************************************************************
getarg.h - Support routines for the giflib utilities
**************************************************************************/
#ifndef _GETARG_H
#define _GETARG_H
#include <stdbool.h>
#define VERSION_COOKIE " Version %d.%d, "
/********... | Fix a header that had failed to track dome changed locations. | Fix a header that had failed to track dome changed locations.
| C | mit | rcancro/giflib,cention-sany/libgif,Distrotech/giflib,Distrotech/giflib,rcancro/giflib,cention-sany/libgif,rcancro/giflib |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.