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 |
|---|---|---|---|---|---|---|---|---|---|
dd54e6b9aded46da7a74eede6f935b289a979912 | WidgetTimeInput.h | WidgetTimeInput.h | /**
* @file WidgetTimeInput.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Aug 2016
* @brief
*
*/
#ifndef WidgetTimeInput_h
#define WidgetTimeInput_h
#include <Blynk/BlynkApi.h>
#... | /**
* @file WidgetTimeInput.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Aug 2016
* @brief
*
*/
#ifndef WidgetTimeInput_h
#define WidgetTimeInput_h
#include <Blynk/BlynkApi.h>
#... | Switch to Time instead of DateTime | Switch to Time instead of DateTime
| C | mit | ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library |
c078961dce97d0126188b1d3df96f9af8fd2f00f | projects/com.oracle.truffle.llvm.test/tests/c/truffle-c/inlineTest/inline0.c | projects/com.oracle.truffle.llvm.test/tests/c/truffle-c/inlineTest/inline0.c | int foo(int a, int b, int c) {
int arr[5] = { 1, 2, 3, 4, 5 };
int d = 4;
int *p = &d;
return a + b + c + arr[4] + arr[0] + *p;
}
int main() {
int a, b, c;
a = 2;
b = 1;
c = 3;
int d = 4;
int *p = &d;
int i;
for (i = 0; i < 1234567; i++) {
*p = foo(a, b, c);
}
return *p;
}
| int foo(int a, int b, int c) {
int arr[5] = { 1, 2, 3, 4, 5 };
int d = 4;
int *p = &d;
return a + b + c + arr[4] + arr[0] + *p;
}
int main() {
int a, b, c;
a = 2;
b = 1;
c = 3;
int d = 4;
int *p = &d;
int i;
for (i = 0; i < 12345; i++) {
*p = foo(a, b, c);
}
return *p;
}
| Reduce the loop iteration count in test case to reduce the execution time | Reduce the loop iteration count in test case to reduce the execution time
| C | bsd-3-clause | crbb/sulong,PrinzKatharina/sulong,lxp/sulong,lxp/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,crbb/sulong,PrinzKatharina/sulong,crbb/sulong,crbb/sulong,lxp/sulong,lxp/sulong |
faa2c3b0b4ff1b4d90d897aa15b90b58ce4bdbb6 | Classes/LVTFolder.h | Classes/LVTFolder.h | //
// LVTFolder.h
// LayerVaultAPIClient
//
// Created by Matt Thomas on 12/4/13.
// Copyright (c) 2013 codecaffeine. All rights reserved.
//
#import <Mantle/Mantle.h>
#import "LVTColor.h"
@interface LVTFolder : MTLModel <MTLJSONSerializing>
@property (readonly, nonatomic, copy) NSString *name;
@property (nonato... | //
// LVTFolder.h
// LayerVaultAPIClient
//
// Created by Matt Thomas on 12/4/13.
// Copyright (c) 2013 codecaffeine. All rights reserved.
//
#import <Mantle/Mantle.h>
#import "LVTColor.h"
@interface LVTFolder : MTLModel <MTLJSONSerializing>
@property (readonly, nonatomic, copy) NSString *name;
@property (nonato... | Allow us to edit this | Allow us to edit this | C | mit | layervault/LayerVaultAPI.objc |
9576c668aea5e0008311950e32c5d03fe496582e | libqiprog/include/qiprog_usb.h | libqiprog/include/qiprog_usb.h | /*
* qiprog - Reference implementation of the QiProg protocol
*
* Copyright (C) 2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without ... | Add USB control request definitions | Add USB control request definitions
Add definitions for the bRequest values in QiProg USB control transactions.
Signed-off-by: Alexandru Gagniuc <cf8ce030f4bdd6ce49a1b687c7c3ccfa8b34ced2@gmail.com>
| C | mit | mrnuke/qiprog | |
ad83a4669be1681f314f54eee728d69543f9caa4 | sw/device/lib/dif/dif_pinmux.c | sw/device/lib/dif/dif_pinmux.c | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_pinmux.h"
#include "sw/device/lib/dif/dif_base.h"
#include "pinmux_regs.h" // Generated.
// This just exists to check that the header... | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_pinmux.h"
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/lib/dif/dif_base.h"
#include "pinmux_regs.h" // Generated.
// ... | Add DIF to set pinmux insel | [sw/pinmux] Add DIF to set pinmux insel
Signed-off-by: Alexander Williams <d0fb8a15e7b6f5e62278a4cf44515038c232186c@google.com>
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan |
f99f3f4944bb8973899bffc52040c19bb31b6119 | test/CFrontend/exact-div-expr.c | test/CFrontend/exact-div-expr.c | // RUN: %llvmgcc -S %s -o - -O | grep ashr
// RUN: %llvmgcc -S %s -o - -O | not grep sdiv
int test(int *A, int *B) {
return A-B;
}
| // RUN: %llvmgcc -S %s -o - -O | grep ashr
// RUN: %llvmgcc -S %s -o - -O | not grep sdiv
long long test(int *A, int *B) {
return A-B;
}
| Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes. | Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@40451 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/s... |
6c7885a58e1d1202fbad71e09d423f8d637e25f8 | cc1/tests/test011.c | cc1/tests/test011.c | /*
name: TEST011
description: Basic test for goto
output:
F1
G1 F1 main
{
-
L2
j L3
yI #I1
L4
yI #I0
L3
L5
j L4
yI #I1
}
*/
#line 1
int
main() {
start:
goto next;
return 1;
success:
return 0;
next:
foo:
goto success;
return 1;
}
| Add baisc test for goto | Add baisc test for goto
| C | mit | 8l/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc,8l/scc,k0gaMSX/scc | |
ffeaf8d4204a555cb95858839378f36d0c5cc69e | VENCore/VENCore.h | VENCore/VENCore.h | @import Foundation;
#import <VENCore/VENCreateTransactionRequest.h>
#import <VENCore/VENHTTP.h>
#import <VENCore/VENHTTPResponse.h>
#import <VENCore/VENTransaction.h>
#import <VENCore/VENTransactionTarget.h>
#import <VENCore/VENUser.h>
extern NSString *const VENErrorDomainCore;
typedef NS_ENUM(NSInteger, VENCoreErro... | @import Foundation;
#import <VENCore/VENCreateTransactionRequest.h>
#import <VENCore/VENHTTP.h>
#import <VENCore/VENHTTPResponse.h>
#import <VENCore/VENTransaction.h>
#import <VENCore/VENTransactionTarget.h>
#import <VENCore/VENUser.h>
#import <VENCore/NSArray+VENCore.h>
#import <VENCore/NSDictionary+VENCore.h>
#impor... | Add formerly private headers to the umbrella header | Add formerly private headers to the umbrella header
| C | mit | venmo/VENCore |
20fa76952f07ba3538e7528444bdbf17a5433099 | c_solutions_1-10/Euler_4.c | c_solutions_1-10/Euler_4.c | #include "euler_util.h"
#include <string.h>
#define MAX 7
int main(int argc, char *argv[])
{
float start = timeit();
char product[MAX] = { '\0' };
int high = 0;
for (int x=100; x < 1000; x++) {
for (int y=x; y < 1000; y++) {
int canidate = x * y;
size_t int_len = ... | #include "euler_util.h"
#include <string.h>
#define MAX 7
int main(int argc, char *argv[])
{
float start = timeit();
char product[MAX] = { '\0' };
int high = 0;
for (int x=100; x < 1000; x++) {
for (int y=x; y < 1000; y++) {
int canidate = x * y;
if (canidate < hi... | Test against high before palindrome check down to ~0.01 | Test against high before palindrome check down to ~0.01
| C | mit | tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler |
c09fa15de38e00b487e7aa07ba65882d3cb9d635 | src/c/lib/colors.h | src/c/lib/colors.h | /*
* Copyright (c) 2016 Jan Hoffmann
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#define COLOR_WINDOW_BACKGROUND GColorWhite
#define COLOR... | /*
* Copyright (c) 2016 Jan Hoffmann
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#define COLOR_WINDOW_BACKGROUND GColorWhite
#define COLOR... | Change color of list selection to dark blue | Change color of list selection to dark blue
| C | mpl-2.0 | janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart |
033dc1c92cf018d396e983d425b821dda420cfff | contrib/pg_xlogdump/rmgrdesc.c | contrib/pg_xlogdump/rmgrdesc.c | /*
* rmgrdesc.c
*
* pg_xlogdump resource managers definition
*
* contrib/pg_xlogdump/rmgrdesc.c
*/
#define FRONTEND 1
#include "postgres.h"
#include "access/clog.h"
#include "access/gin.h"
#include "access/gist_private.h"
#include "access/hash.h"
#include "access/heapam_xlog.h"
#include "access/multixact.h"
#inc... | /*
* rmgrdesc.c
*
* pg_xlogdump resource managers definition
*
* contrib/pg_xlogdump/rmgrdesc.c
*/
#define FRONTEND 1
#include "postgres.h"
#include "access/clog.h"
#include "access/gin.h"
#include "access/gist_private.h"
#include "access/hash.h"
#include "access/heapam_xlog.h"
#include "access/multixact.h"
#inc... | Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more. | Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more.
Oops. Pointed out by Andres Freund.
| C | mpl-2.0 | Postgres-XL/Postgres-XL,ovr/postgres-xl,oberstet/postgres-xl,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ovr/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,lisakowen/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,xin... |
fc7e29bc154d67f627274c657b4157132a1503e8 | src/auth/mycrypt.c | src/auth/mycrypt.c | #define _XOPEN_SOURCE 4
#define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
#define _XOPEN_VERSION 4
#define _XPG4_2
#include <unistd.h>
#include "mycrypt.h"
char *mycrypt(const char *key, const char *salt)
{
return crypt(key, salt);
}
| #define _XOPEN_SOURCE 4
#define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
#define _XOPEN_VERSION 4
#define _XPG4_2
#ifdef CRYPT_USE_XPG6
# define _XPG6 /* Some Solaris versions require this, some break with this */
#endif
#include <unistd.h>
#include "mycrypt.h"
char *mycrypt(const char *key, const char *salt)... | Add _XPG6 macro if needed.. | Add _XPG6 macro if needed..
| C | mit | LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot |
c5b898743a202742847f9738382c9d928b0d8586 | arch/arm/core/aarch64/prep_c.c | arch/arm/core/aarch64/prep_c.c | /*
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Full C support initialization
*
* Initialization of full C support: zero the .bss and call z_cstart().
*
* Stack is available in this module, but not the global data/bss until their
* ... | /*
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Full C support initialization
*
* Initialization of full C support: zero the .bss and call z_cstart().
*
* Stack is available in this module, but not the global data/bss until their
* ... | Fix alignment fault on z_bss_zero() | aarch64: Fix alignment fault on z_bss_zero()
Using newlibc with AArch64 is causing an alignement fault in
z_bss_zero() when the code is run on real hardware (on QEMU the problem
is not reproducible).
The main cause is that the memset() function exported by newlibc is
using 'DC ZVA' to zero out memory.
While this is ... | C | apache-2.0 | finikorg/zephyr,galak/zephyr,galak/zephyr,Vudentz/zephyr,nashif/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,finikorg/zephyr,Vudentz/zephyr,Vudentz/zephyr,finikorg/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,galak/zephyr,nashif/zephyr,gala... |
6b95983e0c50bc24cb0bca433bd93d00d8de276f | src/eigen_qdebug.h | src/eigen_qdebug.h | #ifndef SRC_EIGEN_QDEBUG_H_
#define SRC_EIGEN_QDEBUG_H_
#include <Eigen/Core>
#include <QDebug>
#include <iostream>
QDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector)
{
dbg << "[" << vector.x() << "|" << vector.y() << "]";
return dbg.maybeSpace();
}
QDebug operator<<(QDebug dbg, const Eigen::Vector3f... | #ifndef SRC_EIGEN_QDEBUG_H_
#define SRC_EIGEN_QDEBUG_H_
#include <Eigen/Core>
#include <QDebug>
#include <iostream>
QDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector)
{
dbg << "[" << vector.x() << "|" << vector.y() << "]";
return dbg.maybeSpace();
}
QDebug operator<<(QDebug dbg, const Eigen::Vector3f... | Add overload for qDebug << and Eigen::Vector4f. | Add overload for qDebug << and Eigen::Vector4f.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
34f3d3bba81d1714588ed7a0daf55d0b05a653f0 | src/common/halloc/src/macros.h | src/common/halloc/src/macros.h | /*
* This file is a part of Hierarchical Allocator library.
* Copyright (c) 2004-2011 Alex Pankratov. All rights reserved.
*
* http://swapped.cc/halloc
*/
/*
* The program is distributed under terms of BSD license.
* You can obtain the copy of the license by visiting:
*
* http://www.opensource.org/licenses/b... | /*
* This file is a part of Hierarchical Allocator library.
* Copyright (c) 2004-2011 Alex Pankratov. All rights reserved.
*
* http://swapped.cc/halloc
*/
/*
* The program is distributed under terms of BSD license.
* You can obtain the copy of the license by visiting:
*
* http://www.opensource.org/licenses/b... | Fix pointer cast into integer type. | Fix pointer cast into integer type.
| C | apache-2.0 | fintler/tomatodb,fintler/tomatodb,fintler/tomatodb |
a502e4bfc8c3a016f764df0c4baf9987ba7af1de | src/config/mpich2.h | src/config/mpich2.h | #ifndef PyMPI_CONFIG_MPICH2_H
#define PyMPI_CONFIG_MPICH2_H
#ifdef MS_WINDOWS
#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_INTEGER 1
#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_REAL 1
#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_COMPLEX 1
#endif
#ifndef ROMIO_VERSION
#include "mpich2io.h"
#endif /* !ROMIO_VERSION */
#endif ... | #ifndef PyMPI_CONFIG_MPICH2_H
#define PyMPI_CONFIG_MPICH2_H
#ifdef MS_WINDOWS
#if !defined(MPICH2_NUMVERSION) || (MPICH2_NUMVERSION < 10100000)
#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_INTEGER 1
#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_REAL 1
#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_COMPLEX 1
#endif /* MPICH2 < 1.1... | Update for MPICH2 1.1 on Windows | Update for MPICH2 1.1 on Windows | C | bsd-2-clause | mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py |
c49c79960407e33d6ba47d5de0c78500cbf3205f | src/cpp2/expr_tok.h | src/cpp2/expr_tok.h | #ifndef EXPR_TOK_H
#define EXPR_TOK_H
extern expr_n tok_cur_num;
extern enum tok
{
tok_ident = -1,
tok_num = -2,
tok_eof = 0,
tok_lparen = '(',
tok_rparen = ')',
/* operators returned as char-value,
* except for double-char ops
*/
/* binary */
tok_multiply = '*',
tok_divide = '/',
tok_modulus ... | #ifndef EXPR_TOK_H
#define EXPR_TOK_H
extern expr_n tok_cur_num;
extern enum tok
{
tok_ident = -1,
tok_num = -2,
tok_eof = 0,
tok_lparen = '(',
tok_rparen = ')',
/* operators returned as char-value,
* except for double-char ops
*/
/* binary */
tok_multiply = '*',
tok_divide = '/',
tok_modulus ... | Fix clash in cpp tokens | Fix clash in cpp tokens
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
208d638fa4fbf31ba83445861ad13c2e8c72e5f4 | include/llvm/Assembly/CWriter.h | include/llvm/Assembly/CWriter.h | //===-- llvm/Assembly/CWriter.h - C Printer for LLVM programs ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- llvm/Assembly/CWriter.h - C Printer for LLVM programs ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Change access to the cwriter | Change access to the cwriter
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@11406 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,GP... |
ac7ac74083f27b98aebc6c2a3d370c609f3e0df5 | libgnomeui/gnome-properties.h | libgnomeui/gnome-properties.h | #ifndef GNOME_PROPERTIES_H
#define GNOME_PROPERTIES_H
#include <libgnome/gnome-defs.h>
BEGIN_GNOME_DECLS
typedef struct {
GtkWidget *notebook;
GList *props;
} GnomePropertyConfigurator;
/* This is the first parameter to the callback function */
typedef enum {
GNOME_PROPERTY_READ,
GNOME_PROPERTY_WRITE,
GNOME_PR... | #ifndef GNOME_PROPERTIES_H
#define GNOME_PROPERTIES_H
#include <libgnome/gnome-defs.h>
BEGIN_GNOME_DECLS
typedef struct {
GtkWidget *notebook;
GtkWidget *property_box;
GList *props;
} GnomePropertyConfigurator;
/* This is the first parameter to the callback function */
typedef enum {
GNOME_PROPERTY_READ,
... | Add a property box field so this stuff compiles | Add a property box field so this stuff compiles
| C | lgpl-2.1 | Distrotech/libgnomeui,Distrotech/libgnomeui,Distrotech/libgnomeui |
47ccf13ad405d2f0821b71eb3330c60ff209a172 | test2/inline/inline_addr_arg.c | test2/inline/inline_addr_arg.c | // RUN: %ocheck 3 %s
__attribute((always_inline))
inline f(int x)
{
int i = x;
&x;
i++;
return i;
}
main()
{
int added = 5;
added = f(2);
return added;
}
| Test for lvalue-argument function inlinling | Test for lvalue-argument function inlinling
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
af3145a1ba032338340c08d2c4922df2add97702 | tests/testParseNativeHCIDump.c | tests/testParseNativeHCIDump.c | #include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
static int UUID_SIZE = 16;
char toHexChar(int b) {
char c;
if(b < 10)
c = '0' + b;
else
c = 'A' + b - 10;
return c;
}
int main(int argc, char **argv) {
int b = (0xa4 & 0xf0) >> 4;
printf("c0=%c, %... | Test the parse of the raw binary data seen in the hcidump integration for a manufacturer AD structure. | Test the parse of the raw binary data seen in the hcidump integration for a manufacturer AD structure.
| C | apache-2.0 | starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser | |
8dbc6a0bccf04bb4d2cbc7a403c607641a2aaa25 | optional/capi/ext/proc_spec.c | optional/capi/ext/proc_spec.c | #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(args) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strc... | #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(val) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strca... | Revert "Fix typo in the commit a5312c77." | Revert "Fix typo in the commit a5312c77."
This reverts commit 401825d6045ab8e3bd1514404e7c326a045a92ae.
See the following revert for an explanation.
| C | mit | calavera/rubyspec,calavera/rubyspec |
e38845ec04ed22b4e2190695bd0395a90dcc1794 | lib/Common/ChakraCoreVersion.h | lib/Common/ChakraCoreVersion.h | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Update master branch version to 1.4 | Update master branch version to 1.4
| C | mit | mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore |
eadd77272d857d9478baaf94833210e9af5498ed | Engine/source/gfx/gl/tGL/tGL.h | Engine/source/gfx/gl/tGL/tGL.h | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | Add @Azaezel's exception for Win32 | Add @Azaezel's exception for Win32
"This chunk causes issues on the win8.1/non-SDL side."
| C | mit | Bloodknight/Torque3D,GarageGames/Torque3D,Will-of-the-Wisp/Torque3D,Azaezel/Torque3D,lukaspj/Speciality,chaigler/Torque3D,rextimmy/Torque3D,Azaezel/Torque3D,Azaezel/Torque3D,aaravamudan2014/Torque3D,John3/Torque3D,Will-of-the-Wisp/Torque3D,GarageGames/Torque3D,Will-of-the-Wisp/Torque3D,Bloodknight/Torque3D,Duion/Torque... |
2b78b93cc76b65b4f388d29431f70112c784d78d | src/graph.h | src/graph.h | #ifndef MOLCORE_GRAPH_H
#define MOLCORE_GRAPH_H
#include "molcore.h"
#include <vector>
namespace MolCore {
class MOLCORE_EXPORT Graph
{
public:
// construction and destruction
Graph();
Graph(size_t size);
~Graph();
// properties
void setSize(size_t size);
size_t size() const;
bool isEmpty() const;
... | #ifndef MOLCORE_GRAPH_H
#define MOLCORE_GRAPH_H
#include "molcore.h"
#include <vector>
#include <cstddef>
namespace MolCore {
class MOLCORE_EXPORT Graph
{
public:
// construction and destruction
Graph();
Graph(size_t size);
~Graph();
// properties
void setSize(size_t size);
size_t size() const;
boo... | Include cstddef for size_t in newer GCC. | Include cstddef for size_t in newer GCC.
| C | bsd-3-clause | OpenChemistry/avogadrolibs,cjh1/mongochemweb-avogadrolibs,cjh1/mongochemweb-avogadrolibs,ghutchis/avogadrolibs,cjh1/mongochemweb-avogadrolibs,OpenChemistry/avogadrolibs,OpenChemistry/avogadrolibs,OpenChemistry/avogadrolibs,wadejong/avogadrolibs,ghutchis/avogadrolibs,wadejong/avogadrolibs,wadejong/avogadrolibs,qust113/m... |
a6cdef764509c20d7b17f5bab2db0bf1f1f90f2d | md5.h | md5.h | /* File: connection.h
*
* Description: See "md.h"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/*... | /* File: connection.h
*
* Description: See "md.h"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/*... | Add configure result checks on odbc, per Peter E. | Add configure result checks on odbc, per Peter E.
| C | lgpl-2.1 | gavioto/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,Distrotech/psqlodbc,Distrotech/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,gavioto/psqlodbc,Distrotech/psqlodbc,gavioto/psqlodbc |
a3de6e9ab8fbd4c9462880dc5c138488b322efd0 | test/FrontendC/2003-08-21-WideString.c | test/FrontendC/2003-08-21-WideString.c | // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
// XFAIL: *
// See PR2452
struct {
int *name;
} syms = { L"NUL" };
| // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
#include <wchar.h>
struct {
wchar_t *name;
} syms = { L"NUL" };
| Fix a warning, closing PR2452 | Fix a warning, closing PR2452
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@52529 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chub... |
3dbd3e6015ae8e703633e1a362d05561dbde2566 | NSTimeZone+Offset.h | NSTimeZone+Offset.h | //
// NSTimeZone+Offset.h
// CocoaGit
//
// Created by Geoffrey Garside on 28/07/2008.
// Copyright 2008 ManicPanda.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSTimeZone (Offset)
+ (id)timeZoneWithStringOffset:(NSString*)offset;
- (NSString*)offsetString;
@end
| //
// NSTimeZone+Offset.h
// CocoaGit
//
// Created by Geoffrey Garside on 28/07/2008.
// Copyright 2008 ManicPanda.com. All rights reserved.
//
#import <Foundation/NSTimeZone.h>
@interface NSTimeZone (Offset)
+ (id)timeZoneWithStringOffset:(NSString*)offset;
- (NSString*)offsetString;
@end
| Change NSTimeZone category to only import NSTimeZone parent class instead of Cocoa | Change NSTimeZone category to only import NSTimeZone parent class instead of Cocoa
| C | mit | schacon/cocoagit,schacon/cocoagit,geoffgarside/cocoagit,geoffgarside/cocoagit |
33e7f990e453efe202dde60ce3a2cb8609266a39 | src/parse/scanner.h | src/parse/scanner.h | #ifndef SCANNER_H_
#define SCANNER_H_
// I want to remove this dependecy, equivalent to yy.tab.h ?
#include "parse/GENERATED/parser.hxx"
#undef yyFlexLexer // ugly hack, because <FlexLexer> is wonky
#include <FlexLexer.h>
#include <iostream>
// Tell flex how to define lexing fn
#undef YY_DECL
#define YY_DECL ... | #ifndef SCANNER_H_
#define SCANNER_H_
// I want to remove this dependecy, equivalent to yy.tab.h ?
#include "parse/GENERATED/parser.hxx"
#undef yyFlexLexer // ugly hack, because <FlexLexer> is wonky
#include <FlexLexer.h>
#include <iostream>
// Tell flex how to define lexing fn
#undef YY_DECL
#define YY_DECL ... | Prepare for new lex interface | Prepare for new lex interface
| C | mit | laokaplow/tlc |
d2a07eee4c8fcc05e495a7a42295af294834c1b6 | ext/libxml/ruby_xml_node.h | ext/libxml/ruby_xml_node.h | /* $Id$ */
/* Please see the LICENSE file for copyright and distribution information */
#ifndef __RUBY_XML_NODE__
#define __RUBY_XML_NODE__
extern VALUE cXMLNode;
extern VALUE eXMLNodeSetNamespace;
extern VALUE eXMLNodeFailedModify;
extern VALUE eXMLNodeUnknownType;
VALUE
ruby_xml_node2_wrap(VALUE class, xmlNodePtr... | /* $Id$ */
/* Please see the LICENSE file for copyright and distribution information */
#ifndef __RUBY_XML_NODE__
#define __RUBY_XML_NODE__
extern VALUE cXMLNode;
extern VALUE eXMLNodeSetNamespace;
extern VALUE eXMLNodeFailedModify;
extern VALUE eXMLNodeUnknownType;
VALUE ruby_xml_node2_wrap(VALUE class, xmlNodePtr... | Clean out needless declarations in the node.h header file. | Clean out needless declarations in the node.h header file.
| C | mit | increments/libxml-ruby,xml4r/libxml-ruby,sferik/libxml-ruby,sferik/libxml-ruby,xml4r/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,sferik/libxml-ruby,sferik/libxml-ruby,sferik/libxml-ruby,increments/libxml-ruby,xml4r/libxml-ruby |
2fcadfe262e7574183c6cd1af5dbde2901f92275 | test/CodeGen/debug-info-vector.c | test/CodeGen/debug-info-vector.c | // RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
typedef int v4si __attribute__((__vector_size__(16)));
v4si a;
// Test that we get an array type that's also a vector out of debug.
// CHECK: [ DW_TAG_array_type ] [line 0, size 128, align 128, offset 0] [vector] [from int]
| Add a test to make sure that vector output happens for debug info. | Add a test to make sure that vector output happens for debug info.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@171834 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... | |
f461284a46bf073de958c65df190adaa331d80d3 | testmud/mud/include/game/paths.h | testmud/mud/include/game/paths.h | #include <config.h>
#define LIB_BULK (USR_DIR + "/Game/lib/bulk")
#define LIB_TIME (USR_DIR + "/Game/lib/time")
#define GAME_LIB_OBJECT (USR_DIR + "/Game/lib/object")
#define BULKD (USR_DIR + "/Game/sys/bulkd")
#define SNOOPD (USR_DIR + "/Game/sys/snoopd")
#define TIMED (USR_DIR + "/Game/sys/timed")
#define ... | #include <config.h>
#define LIB_ACTION (USR_DIR + "/Game/lib/action")
#define LIB_BULK (USR_DIR + "/Game/lib/bulk")
#define GAME_LIB_OBJECT (USR_DIR + "/Game/lib/object")
#define BULKD (USR_DIR + "/Game/sys/bulkd")
#define SNOOPD (USR_DIR + "/Game/sys/snoopd")
#define TIMED (USR_DIR + "/Game/sys/timed")
#def... | Remove unwritten time library, add action library | Remove unwritten time library, add action library
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
c7601bf508d348ccf30666254f762c8ee793c943 | 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 73
#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 74
#endif
| Update Skia milestone to 74 | Update Skia milestone to 74
Bug: skia:
Change-Id: Ief231cc48fd8a40bc10f21445884d599b27db799
Reviewed-on: https://skia-review.googlesource.com/c/186701
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Aut... | C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,rubenvb/skia,H... |
f48347635a849159f8733fcce1ee630d1cc34493 | folly/detail/Singleton.h | folly/detail/Singleton.h | /*
* Copyright 2018-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /*
* Copyright 2018-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Remove unnecessary verbosity in DefaultMake | Remove unnecessary verbosity in DefaultMake
Summary: [Folly] Remove unnecessary verbosity in `DefaultMake`. The shorter version does just as well.
Reviewed By: andriigrynenko
Differential Revision: D13254005
fbshipit-source-id: 6520b813685a4621d8679b7feda24a1a0b75cfd5
| C | apache-2.0 | facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly |
46aaff03bcb8e5dd55a70eab7fb3aa50ef49b07a | src/wren_debug.h | src/wren_debug.h | //
// wren_debug.h
// wren
//
// Created by Bob Nystrom on 11/29/13.
// Copyright (c) 2013 Bob Nystrom. All rights reserved.
//
#ifndef wren_wren_debug_h
#define wren_wren_debug_h
#include "wren_value.h"
#include "wren_vm.h"
void wrenDebugPrintStackTrace(WrenVM* vm, ObjFiber* fiber);
int wrenDebugPrintInstructio... | #ifndef wren_debug_h
#define wren_debug_h
#include "wren_value.h"
#include "wren_vm.h"
void wrenDebugPrintStackTrace(WrenVM* vm, ObjFiber* fiber);
int wrenDebugPrintInstruction(WrenVM* vm, ObjFn* fn, int i);
void wrenDebugPrintCode(WrenVM* vm, ObjFn* fn);
void wrenDebugPrintStack(ObjFiber* fiber);
#endif
| Clean up debug header preamble. | Clean up debug header preamble.
| C | mit | Nelarius/wren,Nelarius/wren,Nave-Neel/wren,munificent/wren,Nave-Neel/wren,Rohansi/wren,foresterre/wren,Nelarius/wren,Nelarius/wren,munificent/wren,munificent/wren,minirop/wren,minirop/wren,munificent/wren,bigdimboom/wren,bigdimboom/wren,Nave-Neel/wren,bigdimboom/wren,Nave-Neel/wren,Rohansi/wren,minirop/wren,foresterre/... |
621ef4c87b34fe0e6f1f945192820f0f2e655205 | UIforETW/Version.h | UIforETW/Version.h | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.53f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.54f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | Increment version number to 1.54 | Increment version number to 1.54
| C | apache-2.0 | google/UIforETW,google/UIforETW,google/UIforETW,google/UIforETW |
613871d124370ab208ed89e467a91faadf15dc1f | include/NDS-controller.h | include/NDS-controller.h | /*
* TODO add copyright notice and GPL licence thingey
*
*
*
*/
#include <nds.h>
#include <stdio.h>
#include <time.h>
#include <dswifi9.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#define EMULATOR 1 //TODO automate flipping this in the makefile
/**
* Interactively lists WiFi connectio... | Split the main file into .c and .h files to make breaking it up later easier. | Split the main file into .c and .h files to make breaking it up later easier.
| C | mit | Louisvh/NDS-controller | |
0f3574df54fe9dc4e4d0a88a111f7787073af076 | Pod/Classes/DZVideoPlayerViewControllerConfiguration.h | Pod/Classes/DZVideoPlayerViewControllerConfiguration.h | //
// DZVideoPlayerViewControllerConfiguration.h
// Pods
//
// Created by Denis Zamataev on 15/07/15.
//
//
#import <Foundation/Foundation.h>
@interface DZVideoPlayerViewControllerConfiguration : NSObject
@property (assign, nonatomic) BOOL isBackgroundPlaybackEnabled; // defaults to NO
@property (strong, nonatomi... | //
// DZVideoPlayerViewControllerConfiguration.h
// Pods
//
// Created by Denis Zamataev on 15/07/15.
//
//
#import <Foundation/Foundation.h>
@interface DZVideoPlayerViewControllerConfiguration : NSObject
@property (assign, nonatomic) BOOL isBackgroundPlaybackEnabled; // defaults to YES
@property (strong, nonatom... | Fix wrong comment in configuration | Fix wrong comment in configuration
| C | mit | MessuKilkain/DZVideoPlayerViewController,MessuKilkain/DZVideoPlayerViewController,MessuKilkain/DZVideoPlayerViewController |
32007a555cc2d10207e65a163f6ab809534d47e4 | compiler/cpp/src/parse/t_enum.h | compiler/cpp/src/parse/t_enum.h | // Copyright (c) 2006- Facebook
// Distributed under the Thrift Software License
//
// See accompanying file LICENSE or visit the Thrift site at:
// http://developers.facebook.com/thrift/
#ifndef T_ENUM_H
#define T_ENUM_H
#include "t_enum_value.h"
#include <vector>
/**
* An enumerated type. A list of constant objec... | // Copyright (c) 2006- Facebook
// Distributed under the Thrift Software License
//
// See accompanying file LICENSE or visit the Thrift site at:
// http://developers.facebook.com/thrift/
#ifndef T_ENUM_H
#define T_ENUM_H
#include "t_enum_value.h"
#include <vector>
/**
* An enumerated type. A list of constant objec... | Fix set_name compiler method signature | Fix set_name compiler method signature
Reviewed By: kholst
Other Notes: Follow up from 78130
git-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@665434 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | JoeEnnever/thrift,authbox-lib/thrift,ijuma/thrift,collinmsn/thrift,authbox-lib/thrift,creker/thrift,3013216027/thrift,afds/thrift,alfredtofu/thrift,Jimdo/thrift,msonnabaum/thrift,theopolis/thrift,i/thrift,flandr/thrift,selaselah/thrift,Jimdo/thrift,prathik/thrift,bufferoverflow/thrift,tanmaykm/thrift,fernandobt8/thrift... |
1c5fa955cdf5999bcb941130f02528090a37981e | src/include/access/heaptuple.h | src/include/access/heaptuple.h | /*-------------------------------------------------------------------------
*
* heaptuple.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: heaptuple.h,v 1.1 1996/10/18 17:58:33 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#i... | Add prototype for heap_getattr() to quiet compiler | Add prototype for heap_getattr() to quiet compiler
| C | mpl-2.0 | techdragon/Postgres-XL,kaknikhil/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,zaksoup/gpdb,atris/gpdb,janebeckman/gpdb,rvs/gpdb,oberstet/postgres-xl,xuegang/gpdb,zaksoup/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,zaksoup/gpdb,randomtask1155/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,xuegang... | |
fadc5f679f9aae27b623c95f91208b2f139e089e | tests/embedded/main.c | tests/embedded/main.c | /*
* Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
* Copyright © 2009 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#include <hwloc.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_s... | /*
* Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
* Copyright © 2009 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#include <hwloc.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_s... | Add some more print statements to this test, ju... | Add some more print statements to this test, ju...
Add some more print statements to this test, just to help
differentiate the output when debugging is enabled
This commit was SVN r1752.
| C | bsd-3-clause | ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc |
a13c9cb6fcb83f58c111ec35cfe629e74cff13c3 | main.c | main.c | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "julina.h"
int main(int argc, char **argv) {
srand(time(NULL));
double aa[] = {2, 0, 1,
-2, 3, 4,
-5, 5, 6};
Matrix *a = new_matrix(aa, 3, 3);
Matrix *ain = inverse(a);
double bb[] = {1, -1, -2... | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "julina.h"
#define VARIABLE_START 'A'
#define VARIABLE_COUNT 26
static Matrix *variables[VARIABLE_COUNT];
Matrix *get_variable(int c) {
if (c < 0 || c >= VARIABLE_COUNT) {
return NULL;
}
return variables[c - VARIABLE_START];
}
// R... | Add variables and reading from string. | Add variables and reading from string.
| C | mit | jlubi333/Julina |
27caed992cd71fa50dcb6576b31f8a25b4611bee | src/include/uapi/libct-errors.h | src/include/uapi/libct-errors.h | #ifndef __LIBCT_ERRORS_H__
#define __LIBCT_ERRORS_H__
/*
* This file contains errors, that can be returned from various
* library calls
*/
/* Generic */
#define LCTERR_BADCTSTATE -2 /* Bad container state */
#define LCTERR_BADFSTYPE -3 /* Bad FS type */
#define LCTERR_BADNETTYPE -4 /* Bad Net type */
#define LCTERR... | #ifndef __LIBCT_ERRORS_H__
#define __LIBCT_ERRORS_H__
/*
* This file contains errors, that can be returned from various
* library calls
*/
/*
* -1 is "reserved" for generic "something went wrong" result
* since this value can be (well, is) widely explicitly used
* all over the code.
*/
/* Generic */
#define LC... | Add comment about "reserved" -1 value | err: Add comment about "reserved" -1 value
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
| C | apache-2.0 | LK4D4/libct,avagin/libct,xemul/libct,cyrillos/xemul-libct,xemul/libct,cyrillos/xemul-libct,LK4D4/libct,hallyn/libct,cyrillos/xemul-libct,xemul/libct,xemul/libct,cyrillos/xemul-libct,hallyn/libct,avagin/libct,avagin/libct,hallyn/libct,LK4D4/libct |
3790101271d3fb24db76257b9ac491e7b6d4c4e4 | CPDAcknowledgements/CPDStyle.h | CPDAcknowledgements/CPDStyle.h | @import Foundation;
NS_ASSUME_NONNULL_BEGIN
/// Allows you to customize the style for the the view
/// controllers for your libraries.
@interface CPDStyle : NSObject
/// HTML provided to the view controller, it's nothing too fancy
/// just a string which has a collection of string replacements on it.
///
/// This i... | @import Foundation;
NS_ASSUME_NONNULL_BEGIN
/// Allows you to customize the style for the the view
/// controllers for your libraries.
@interface CPDStyle : NSObject
/// HTML provided to the view controller, it's nothing too fancy
/// just a string which has a collection of string replacements on it.
///
/// This i... | Fix 'HTML start tag prematurely ended' warning | Fix 'HTML start tag prematurely ended' warning
| C | mit | CocoaPods/CPDAcknowledgements |
6bd246f7dc75101536a89c6b4ff776a05d8efb50 | ST_HW_HC_SR04.h | ST_HW_HC_SR04.h | /*
#
# ST_HW_HC_SR04.h
#
# (C)2016-2017 Flávio monteiro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | /*
#
# ST_HW_HC_SR04.h
#
# (C)2016-2017 Flávio monteiro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | Fix include guard conflicting with the class name | Fix include guard conflicting with the class name
| C | mit | Spaguetron/ST_HW_HC_SR04 |
bcba02f9fd5018f781631a25f53e0a8f432ed229 | libs/incs/ac_bits.h | libs/incs/ac_bits.h | /*
* Copyright 2015 Wink Saville
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Add AC_BITS to convert a bit number 0..N-1 to a mask. | Add AC_BITS to convert a bit number 0..N-1 to a mask.
| C | apache-2.0 | winksaville/sadie,winksaville/sadie | |
6be828419968fa1f105f7362832b4eafb2157ab6 | proctor/include/pcl/proctor/proposer.h | proctor/include/pcl/proctor/proposer.h | #ifndef PROPOSER_H
#define PROPOSER_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <map>
#include "proctor/detector.h"
#include "proctor/database_entry.h"
namespace pcl
{
namespace proctor
{
struct Candidate {
std::string id;
float votes;
};
class Proposer {
public:
... | #ifndef PROPOSER_H
#define PROPOSER_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <map>
#include "proctor/detector.h"
#include "proctor/database_entry.h"
namespace pcl
{
namespace proctor
{
struct Candidate {
std::string id;
double votes;
};
class Proposer {
public:... | Change votes to use double. | Change votes to use double.
git-svn-id: 1af002208e930b4d920e7c2b948d1e98a012c795@4320 a9d63959-f2ad-4865-b262-bf0e56cfafb6
| C | bsd-3-clause | psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn |
59ea31827fd5fde1f5a5899a186e6fa18c65d83e | Firmware/GPIO/main.c | Firmware/GPIO/main.c | #include <stm32f4xx.h>
#include <stm32f4xx_gpio.h>
void delay(uint32_t count)
{
while(count--);
}
void init_GPIO()
{
GPIO_InitTypeDef GPIO_InitStruct = {
.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15,
.GPIO_Mode = GPIO_Mode_OUT,
.GPIO_Speed = GPIO_Speed_50MHz,
.GPIO_OType =GPIO_OType_PP,... | #include <stm32f4xx.h>
#include <stm32f4xx_gpio.h>
void delay(uint32_t count)
{
while(count--);
}
void init_GPIO()
{
GPIO_InitTypeDef GPIO_InitStruct = {
.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15,
.GPIO_Mode = GPIO_Mode_OUT,
.GPIO_Speed = GPIO_Speed_50MHz,
.GPIO_OType =GPIO_OType_PP,... | Add the blink effect to the GPIO demo | Add the blink effect to the GPIO demo
| C | mit | PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples... |
7b6feece93869c598a44f03470e2a1d7c5eac9b9 | PHPHub/Constants/APIConstant.h | PHPHub/Constants/APIConstant.h | //
// APIConstant.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"]
#define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier"
#if DEBUG
#define APIBaseURL ... | //
// APIConstant.h
// PHPHub
//
// Created by Aufree on 9/30/15.
// Copyright (c) 2015 ESTGroup. All rights reserved.
//
#define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"]
#define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier"
#if DEBUG
#define APIBaseURL ... | Change QR login guide url | Change QR login guide url
| C | mit | Aufree/phphub-ios |
92165a2024a4285f9df8a92fbfe19c91d77e74b4 | Inc/project_config.h | Inc/project_config.h | #ifndef _PROJECT_CONFIG_H_
#define _PROJECT_CONFIG_H_
#ifdef USART_DEBUG // this happens by 'make USART_DEBUG=1'
#undef THERMAL_DATA_UART
#else
#define USART_DEBUG
#define THERMAL_DATA_UART
#endif
#define TMP007_OVERLAY
#define SPLASHSCREEN_OVERLAY
#define ENABLE_LEPTON_AGC
// #define Y16
#ifndef Y16
// Values from L... | #ifndef _PROJECT_CONFIG_H_
#define _PROJECT_CONFIG_H_
#ifdef USART_DEBUG // this happens by 'make USART_DEBUG=1'
#undef THERMAL_DATA_UART
#else
#define USART_DEBUG
// #define THERMAL_DATA_UART
#endif
#define TMP007_OVERLAY
#define SPLASHSCREEN_OVERLAY
#define ENABLE_LEPTON_AGC
// #define Y16
#ifndef Y16
// Values fro... | Disable THERMAL_DATA_UART by default. This is a big CPU sink, and is a pretty non-standard config. | Disable THERMAL_DATA_UART by default. This is a big CPU sink, and is a pretty non-standard config.
| C | mit | groupgets/purethermal1-firmware,groupgets/purethermal1-firmware,groupgets/purethermal1-firmware,groupgets/purethermal1-firmware |
e8938694357e4048322aae1819bea29c8ba59223 | drivers/timer/sys_clock_init.c | drivers/timer/sys_clock_init.c | /*
* Copyright (c) 2015 Wind River Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2015 Wind River Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Revert "sys_clock: start the microkernel ticker in the MICROKERNEL init level" | Revert "sys_clock: start the microkernel ticker in the MICROKERNEL init level"
This reverts commit 3c66686a43ffa78932aaa6b1e2338c2f3d347a13.
That commit fixed announcing ticks before the microkernel was up, but
prevented devices initializing before the MICROKERNEL level from having
access to the hi-res part of the sy... | C | apache-2.0 | runchip/zephyr-cc3220,holtmann/zephyr,kraj/zephyr,fractalclone/zephyr-riscv,sharronliu/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,bigdinotech/zephyr,pklazy/zephyr,erwango/zephyr,mirzak/zephyr-os,mbolivar/zephyr,runchip/zephyr-cc3200,aceofall/zephyr-iotos,galak... |
978e851a0ea6e8c54d072f745bbd8d1cd0451e54 | include/swift/Basic/Algorithm.h | include/swift/Basic/Algorithm.h | //===--- Algorithm.h - ------------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | //===--- Algorithm.h - ------------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | Add constexpr version of maximum to algorithm | Add constexpr version of maximum to algorithm
Add the constexpr version of max which is only available in std since c++14.
Besides being a logical addition next to the already implemented constexpr version of min, there are actually other files, even in Swift/Basic itself, which re-implement this functionality, such ... | C | apache-2.0 | jmgc/swift,lorentey/swift,aschwaighofer/swift,tinysun212/swift-windows,ken0nek/swift,xwu/swift,benlangmuir/swift,djwbrown/swift,nathawes/swift,natecook1000/swift,ahoppen/swift,huonw/swift,apple/swift,jckarter/swift,benlangmuir/swift,karwa/swift,russbishop/swift,apple/swift,devincoughlin/swift,jopamer/swift,felix91gr/sw... |
dbab7e6e9385e42426ecfe79c4679b05cd4438d4 | bgc/DIC_ATMOS.h | bgc/DIC_ATMOS.h | C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $
C $Name: $
COMMON /INTERACT_ATMOS_NEEDS/
& co2atmos,
& total_atmos_carbon, total_ocean_carbon,
& total_atmos_carbon_year,
& total_ocean_carbon_year,
... | C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $
C $Name: $
COMMON /INTERACT_ATMOS_NEEDS/
& co2atmos,
& total_atmos_carbon, total_ocean_carbon,
& total_atmos_carbon_year,
& total_ocean_carbon_year,
... | Update length of co2atmos variable | Update length of co2atmos variable
| C | mit | seamanticscience/mitgcm_mods,seamanticscience/mitgcm_mods |
246d5ce439738b24d9881ddcd03ea8e53f20609f | VPUQuickTimePlayback/VPUSupport.h | VPUQuickTimePlayback/VPUSupport.h | //
// VPUSupport.h
// QTMultiGPUTextureIssue
//
// Created by Tom Butterworth on 15/05/2012.
// Copyright (c) 2012 Tom Butterworth. All rights reserved.
//
#ifndef QTMultiGPUTextureIssue_VPUSupport_h
#define QTMultiGPUTextureIssue_VPUSupport_h
#import <Foundation/Foundation.h>
#import <QTKit/QTKit.h>
#define kVP... | //
// VPUSupport.h
// QTMultiGPUTextureIssue
//
// Created by Tom Butterworth on 15/05/2012.
// Copyright (c) 2012 Tom Butterworth. All rights reserved.
//
#ifndef QTMultiGPUTextureIssue_VPUSupport_h
#define QTMultiGPUTextureIssue_VPUSupport_h
#import <Foundation/Foundation.h>
#import <QTKit/QTKit.h>
#define kVP... | Update pixel format type for CoreVideo Scaled YCoCg DXT5 to match change in codec | Update pixel format type for CoreVideo Scaled YCoCg DXT5 to match change in codec
| C | bsd-2-clause | Vidvox/hap-quicktime-playback-demo |
cd3a37cf027a42b18cb6ee9df1f1816774f5eb34 | alice4/software/libgl/hardware_events.c | alice4/software/libgl/hardware_events.c | #include <stdio.h>
#include "event_service.h"
#include "touchscreen.h"
#include "device.h"
typedef struct event {
int32_t device;
int16_t val;
// union here for other events like keys
} event;
#define INPUT_QUEUE_SIZE 128
static event input_queue[INPUT_QUEUE_SIZE];
// The next time that needs to be read:
... | Add beginnings of events on hardware | Add beginnings of events on hardware
| C | apache-2.0 | lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice | |
f1360fc78e8b536000bb4abd5146d0394a7d2e3c | cpp11-migrate/LoopConvert/LoopConvert.h | cpp11-migrate/LoopConvert/LoopConvert.h | //===-- LoopConvert/LoopConvert.h - C++11 for-loop migration ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- LoopConvert/LoopConvert.h - C++11 for-loop migration ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix a -Wdocumentation warning (empty paragraph passed to '\brief' command) | Fix a -Wdocumentation warning (empty paragraph passed to '\brief' command)
git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@172661 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra |
029422ddadc251b23cc2441bd42c46f8172a44b0 | src/core/SkEdgeBuilder.h | src/core/SkEdgeBuilder.h | #ifndef SkEdgeBuilder_DEFINED
#define SkEdgeBuilder_DEFINED
#include "SkChunkAlloc.h"
#include "SkRect.h"
#include "SkTDArray.h"
class SkEdge;
class SkEdgeClipper;
class SkPath;
class SkEdgeBuilder {
public:
SkEdgeBuilder();
int build(const SkPath& path, const SkIRect* clip, int shiftUp);
SkEdge** ... | #ifndef SkEdgeBuilder_DEFINED
#define SkEdgeBuilder_DEFINED
#include "SkChunkAlloc.h"
#include "SkRect.h"
#include "SkTDArray.h"
struct SkEdge;
class SkEdgeClipper;
class SkPath;
class SkEdgeBuilder {
public:
SkEdgeBuilder();
int build(const SkPath& path, const SkIRect* clip, int shiftUp);
SkEdge**... | Fix warning (struct forward-declared as class). | Fix warning (struct forward-declared as class).
Review URL: http://codereview.appspot.com/164061
| C | bsd-3-clause | csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia |
3c7cc7cad858aaf4b656863f6ab405ef05a2d42e | src/qt/clicklabel.h | src/qt/clicklabel.h | #ifndef CLICKLABEL_H
#define CLICKLABEL_H
#include <QLabel>
#include <QWidget>
#include <Qt>
class ClickLabel:public QLabel
{
Q_OBJECT
public:
explicit ClickLabel(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
~ClickLabel();
signals:
void clicked();
protected:
void mouseRelea... | #ifndef CLICKLABEL_H
#define CLICKLABEL_H
#include <QLabel>
#include <QWidget>
#include <Qt>
class ClickLabel:public QLabel
{
Q_OBJECT
public:
explicit ClickLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~ClickLabel();
signals:
void clicked();
protected:
void mouseRelease... | Use nullptr to stay Qt4 compatible. | Use nullptr to stay Qt4 compatible.
| C | mit | Git-Jiro/Gridcoin-Research,caraka/gridcoinresearch,theMarix/Gridcoin-Research,theMarix/Gridcoin-Research,TheCharlatan/Gridcoin-Research,TheCharlatan/Gridcoin-Research,TheCharlatan/Gridcoin-Research,caraka/gridcoinresearch,tomasbrod/Gridcoin-Research,theMarix/Gridcoin-Research,TheCharlatan/Gridcoin-Research,Git-Jiro/Gri... |
139936b34a895520e9ee8b9a6d3f774754cdcc48 | lib/libF77/d_lg10.c | lib/libF77/d_lg10.c | #include "f2c.h"
#define log10e 0.43429448190325182765
#ifdef KR_headers
double log();
double d_lg10(x) doublereal *x;
#else
#undef abs
#include "math.h"
double d_lg10(doublereal *x)
#endif
{
return( log10e * log(*x) );
}
| #include "f2c.h"
#ifdef KR_headers
double log10();
double d_lg10(x) doublereal *x;
#else
#undef abs
#include "math.h"
double d_lg10(doublereal *x)
#endif
{
return( log10(*x) );
}
| Use the C library version of log10() instead of the inaccurate formula log10(x) = log10e * log(x). This fixes some small (one or two ULP) inaccuracies. | Use the C library version of log10() instead of the inaccurate formula
log10(x) = log10e * log(x). This fixes some small (one or two ULP)
inaccuracies.
Found by: ucbtest
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
cfdaffb8cf65ab0a934de2efb513e66989b4bad6 | src/lib/elm_map_legacy.h | src/lib/elm_map_legacy.h | /**
* Add a new map widget to the given parent Elementary (container) object.
*
* @param parent The parent object.
* @return a new map widget handle or @c NULL, on errors.
*
* This function inserts a new map widget on the canvas.
*
* @ingroup Map
*/
EAPI Evas_Object *elm_map_add(Evas_Object *parent);
... | /**
* Add a new map widget to the given parent Elementary (container) object.
*
* @param parent The parent object.
* @return a new map widget handle or @c NULL, on errors.
*
* This function inserts a new map widget on the canvas.
*
* @ingroup Map
*/
EAPI Evas_Object *elm_map_add(Evas_Object *parent);
... | Add missing legacy API into legacy header | map: Add missing legacy API into legacy header
Summary: @fix
Reviewers: raster
Reviewed By: raster
Differential Revision: https://phab.enlightenment.org/D1164
| C | lgpl-2.1 | FlorentRevest/Elementary,tasn/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary,rvandegrift/elementary |
bc7ac5431ddd2dd96f0b7b25a3e7c94b40a6bbe1 | src/lib/abstracthighlighter_p.h | src/lib/abstracthighlighter_p.h | /*
Copyright (C) 2016 Volker Krause <vkrause@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later versio... | /*
Copyright (C) 2016 Volker Krause <vkrause@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later versio... | Fix typo in include guard | Fix typo in include guard
Found by krazy.
| C | lgpl-2.1 | janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlight... |
4fa4c1d56adc1005ce856580848a11bc11598e09 | src/configuration.h | src/configuration.h | #ifndef QGC_CONFIGURATION_H
#define QGC_CONFIGURATION_H
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL 9
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "APM P... | #ifndef QGC_CONFIGURATION_H
#define QGC_CONFIGURATION_H
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL 9
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "APM P... | Change for alpha-RC1 version name | Change for alpha-RC1 version name
| C | agpl-3.0 | xros/apm_planner,sutherlandm/apm_planner,xros/apm_planner,LittleBun/apm_planner,labtoast/apm_planner,duststorm/apm_planner,hejunbok/apm_planner,mrpilot2/apm_planner,diydrones/apm_planner,LIKAIMO/apm_planner,mirkix/apm_planner,Icenowy/apm_planner,hejunbok/apm_planner,abcdelf/apm_planner,xros/apm_planner,LIKAIMO/apm_plan... |
5475567b7f05fbc245cedb1b3ecdbc63ac671685 | src/atoin.c | src/atoin.c | /*
* Copyright (c) 1997-2004, Index Data
* See the file LICENSE for details.
*
* $Id: atoin.c,v 1.4 2004-12-13 14:21:55 heikki Exp $
*/
/**
* \file atoin.c
* \brief Implements atoi_n function.
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <string.h>
#include <ctype.h>
/**
* atoi_n: like atoi b... | /*
* Copyright (c) 1997-2004, Index Data
* See the file LICENSE for details.
*
* $Id: atoin.c,v 1.5 2004-12-16 08:59:56 adam Exp $
*/
/**
* \file atoin.c
* \brief Implements atoi_n function.
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <string.h>
#include <ctype.h>
#include <yaz/marcdisp.h>
/**... | Include marcdisp.h so that atoi_n gets public on WIN32 | Include marcdisp.h so that atoi_n gets public on WIN32
| C | bsd-3-clause | nla/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz,dcrossleyau/yaz,dcrossleyau/yaz |
ead111a8e26f98570cfdb9b3b849e5fac3ca7e7b | ext/rbuv/rbuv.c | ext/rbuv/rbuv.c | #include "rbuv.h"
ID id_call;
VALUE mRbuv;
void Init_rbuv() {
id_call = rb_intern("call");
mRbuv = rb_define_module("Rbuv");
Init_rbuv_error();
Init_rbuv_handle();
Init_rbuv_loop();
Init_rbuv_timer();
Init_rbuv_stream();
Init_rbuv_tcp();
Init_rbuv_signal();
}
| #include "rbuv.h"
ID id_call;
VALUE mRbuv;
VALUE rbuv_version(VALUE self);
VALUE rbuv_version_string(VALUE self);
void Init_rbuv() {
id_call = rb_intern("call");
mRbuv = rb_define_module("Rbuv");
rb_define_singleton_method(mRbuv, "version", rbuv_version, 0);
rb_define_singleton_method(mRbuv, "version_strin... | Add singleton methods to access libuv version | Add singleton methods to access libuv version
| C | mit | arthurdandrea/rbuv,arthurdandrea/rbuv |
eb70a569253926f60eab5a9c6d693908b3dd11b9 | src/jcon/json_rpc_result.h | src/jcon/json_rpc_result.h | #pragma once
#include "jcon.h"
#include <QString>
#include <QVariant>
namespace jcon {
class JCON_API JsonRpcResult
{
public:
virtual ~JsonRpcResult() {}
virtual bool isSuccess() const = 0;
virtual QVariant result() const = 0;
virtual QString toString() const = 0;
};
}
| #pragma once
#include "jcon.h"
#include <QString>
#include <QVariant>
namespace jcon {
class JCON_API JsonRpcResult
{
public:
virtual ~JsonRpcResult() {}
operator bool() const { return isSuccess(); }
virtual bool isSuccess() const = 0;
virtual QVariant result() const = 0;
virtual QString toStr... | Add conversion-to-bool operator to JsonRpcResult class | Add conversion-to-bool operator to JsonRpcResult class
| C | mit | zeromem88/jcon-cpp,zeromem88/jcon-cpp,joncol/jcon,joncol/jcon-cpp,joncol/jcon,joncol/jcon-cpp,joncol/jcon-cpp,zeromem88/jcon-cpp,joncol/jcon |
4f172d10cffb59af5b7ef99bf18978462320cf6b | src/parse/stmt/parameter.c | src/parse/stmt/parameter.c | #include "../parse.h"
unsigned parse_stmt_parameter(
const sparse_t* src, const char* ptr,
parse_debug_t* debug,
parse_stmt_t* stmt)
{
unsigned dpos = parse_debug_position(debug);
unsigned i = parse_keyword(
src, ptr, debug,
PARSE_KEYWORD_PARAMETER);
if (i == 0) return 0;
if (ptr[i++] != '(')
{
parse_... | #include "../parse.h"
unsigned parse_stmt_parameter(
const sparse_t* src, const char* ptr,
parse_debug_t* debug,
parse_stmt_t* stmt)
{
unsigned dpos = parse_debug_position(debug);
unsigned i = parse_keyword(
src, ptr, debug,
PARSE_KEYWORD_PARAMETER);
if (i == 0) return 0;
bool has_brackets = (ptr[i] == '... | Support DEC style PARAMETER statements | Support DEC style PARAMETER statements
This is a non-standard feature, but it's easy to support.
http://fortranwiki.org/fortran/show/Modernizing+Old+Fortran
| C | apache-2.0 | CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc |
708004157299c728b304385f3f4255ffbd587f60 | kernel/core/test.c | kernel/core/test.c | #include <arch/x64/port.h>
#include <truth/panic.h>
#define TEST_RESULT_PORT_NUMBER 0xf4
void test_shutdown_status(enum status status) {
logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status);
write_port(status, TEST_RESULT_PORT_NUMBER);
//__asm__("movb $0x0, %al; outb %a... | #include <arch/x64/port.h>
#include <truth/panic.h>
#define TEST_RESULT_PORT_NUMBER 0xf4
void test_shutdown_status(enum status status) {
logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status);
write_port(status, TEST_RESULT_PORT_NUMBER);
halt();
assert(Not_Reached)... | Remove debug messages and duplicate code | Remove debug messages and duplicate code | C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
7f16d7067e11d2684b644c8af7c21cdc77b32723 | lib/Headers/cpuid.h | lib/Headers/cpuid.h | /*===---- stddef.h - Basic type definitions --------------------------------===
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... | /*===---- cpuid.h - Basic type definitions ---------------------------------===
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... | Fix file name in comments. | Fix file name in comments.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@145184 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
ac544c65813da72f89895278ddb6789f3b624870 | Classes/Model/OBABookmarkV2.h | Classes/Model/OBABookmarkV2.h | @interface OBABookmarkV2 : NSObject {
NSString * _name;
NSArray * _stopIds;
}
- (id) initWithCoder:(NSCoder*)coder;
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSArray * stopIds;
@end
| Move this class back to onebusaway-iphone | Move this class back to onebusaway-iphone
| C | apache-2.0 | ualch9/onebusaway-iphone,aaronbrethorst/onebusaway-iphone,bbodenmiller/onebusaway-iphone,bbodenmiller/onebusaway-iphone,themonki/onebusaway-iphone,ualch9/onebusaway-iphone,ualch9/onebusaway-iphone,themonki/onebusaway-iphone,tomtclai/onebusaway-iphone,chadsy/onebusaway-iphone,themonki/onebusaway-iphone,OneBusAway/onebus... | |
446affcc0b9fb45d67969d6f91d9adf221e055c5 | libyaul/cons/vdp1.c | libyaul/cons/vdp1.c | /*
* Copyright (c) 2012 Israel Jacques
* See LICENSE for details.
*
* Israel Jacques <mrko@eecs.berkeley.edu>
*/
#include "cons.h"
typedef struct {
} cons_vdp1_t;
static struct cons_vdp1_t *cons_vdp1_new(void);
static void cons_vdp1_write(struct cons *, int, uint8_t, uint8_t);
void
cons_vdp1_init(struct cons *... | /*
* Copyright (c) 2012 Israel Jacques
* See LICENSE for details.
*
* Israel Jacques <mrko@eecs.berkeley.edu>
*/
#include <inttypes.h>
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
#include "cons.h"
typedef struct {
} cons_vdp1_t;
static cons_vdp1_t *cons_vdp1_new(void);
static void cons_vdp1_res... | Change stubs for VDP1 cons driver | Change stubs for VDP1 cons driver
| C | mit | ChillyWillyGuru/libyaul,ChillyWillyGuru/libyaul |
a014838c02b0abb209e0a182c46574455ea5cd0b | kernel/kernel.c | kernel/kernel.c | #include <norby/colortest.h>
#include <norby/gdt.h>
#include <norby/idt.h>
#include <norby/irq.h>
#include <norby/isrs.h>
#include <norby/kernel.h>
#include <norby/keyboard.h>
#include <norby/panic.h>
#include <norby/version.h>
#include <norby/vga.h>
#include <stdio.h>
#include <string.h>
void kmain() {
//Install des... | #include <norby/colortest.h>
#include <norby/gdt.h>
#include <norby/idt.h>
#include <norby/irq.h>
#include <norby/isrs.h>
#include <norby/kernel.h>
#include <norby/keyboard.h>
#include <norby/panic.h>
#include <norby/version.h>
#include <norby/vga.h>
#include <stdio.h>
#include <string.h>
void kmain() {
//Install des... | Add "clear" command for clearing screen | Add "clear" command for clearing screen
| C | mit | simon-andrews/norby,simon-andrews/norby,simon-andrews/norby |
a9dbb6171167387492343a681a87558d047fb5b8 | test/CodeGen/unwind-attr.c | test/CodeGen/unwind-attr.c | // RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1
// RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1
int foo(void) {
}
| // RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1 &&
// RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1
int foo(void) {
}
| Fix test case RUN: line (thanks Argiris) | Fix test case RUN: line (thanks Argiris)
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@54922 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
df16cf042b6085f68b4263e24f29ad61be71cea8 | nsswitch-internal.h | nsswitch-internal.h | /*
* nsswitch_internal.h
* Prototypes for some internal glibc functions that we use. Shhh.
*/
#ifndef NSSWITCH_INTERNAL_H
#define NSSWITCH_INTERNAL_H
#include "config.h"
/* glibc/config.h.in */
#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
# define internal_function __attribute__ ((r... | /*
* nsswitch_internal.h
* Prototypes for some internal glibc functions that we use. Shhh.
*/
#ifndef NSSWITCH_INTERNAL_H
#define NSSWITCH_INTERNAL_H
#include <features.h>
#include "config.h"
/* glibc/config.h.in */
#if __GLIBC_PREREQ(2, 27)
# define internal_function
#elif defined USE_REGPARMS && !defined PROF ... | Update internal glibc functions ABI for glibc 2.27 | Update internal glibc functions ABI for glibc 2.27
Signed-off-by: Anders Kaseorg <087231934ba8fcf78bc142ce37d193b895ac03c4@mit.edu>
| C | lgpl-2.1 | andersk/nss_nonlocal,andersk/nss_nonlocal |
9d9b91c4dfe47ef3d32ecc241461955d3c26b3bc | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 2
#define CLIENT_VERSION_BUILD 5
// Set to ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 2
#define CLIENT_VERSION_BUILD 6
// Set to ... | Increase version to 1.0.2.6 r6 | Increase version to 1.0.2.6 r6 | C | mit | memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core |
bf0d3c50784e0f7a1bb590a3979eba7c50726b1c | chap1/ftoc.c | chap1/ftoc.c | #include <stdio.h>
/* print Fahrenheit to Celsius table
* for Fahrenheit 0, 20, ..., 300 */
int main()
{
int fahr;
int cel;
int lower;
int upper;
int step;
lower = 0; /* lower bound for the table */
upper = 300; /* upper bound for the table */
step = 20; /* amount to step by */
... | #include <stdio.h>
/* print Fahrenheit to Celsius table
* for Fahrenheit 0, 20, ..., 300 */
int main()
{
float fahr;
float cel;
int lower;
int upper;
int step;
lower = 0; /* lower bound for the table */
upper = 300; /* upper bound for the table */
step = 20; /* amount to step by */
... | Change from `int` to `float` | Change from `int` to `float`
| C | mit | jabocg/theclang |
3d9b68a94760fa90e3d380525f5547fa8a945538 | os/gl/gl_context.h | os/gl/gl_context.h | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
// Copyright (C) 2015-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_INCLUDED
#define OS_GL_CONTEXT_INCLUDED
#pragma once
namespace os {
class GLContext {
pu... | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
// Copyright (C) 2015-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_INCLUDED
#define OS_GL_CONTEXT_INCLUDED
#pragma once
namespace os {
class GLContext {
pu... | Make os::GLContext instantiable (isValid() returns false by default) | Make os::GLContext instantiable (isValid() returns false by default)
| C | mit | aseprite/laf,aseprite/laf |
5d4c2bb7b6f10ed33ea32ea97f070766a5ec6f2b | src/vistk/scoring/score_mask.h | src/vistk/scoring/score_mask.h | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_SCORING_SCORE_MASK_H
#define VISTK_SCORING_SCORE_MASK_H
#include "scoring-conf... | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_SCORING_SCORE_MASK_H
#define VISTK_SCORING_SCORE_MASK_H
#include "scoring-conf... | Use bytes for mask images | Use bytes for mask images
| C | bsd-3-clause | linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit |
8ebc25895f4832b73950ca32522dcb51e8ea8f5d | src/kernel/kernel.h | src/kernel/kernel.h | #ifndef KERNEL_H
#define KERNEL_H
void free_write();
extern unsigned int endkernel;
#endif | #ifndef KERNEL_H
#define KERNEL_H
void free_write();
extern unsigned int endkernel;
enum STATUS_CODE
{
// General
GENERAL_SUCCESS,
GENERAL_FAILURE
}
#endif | Create an enum for all posible function return status codes | Create an enum for all posible function return status codes
| C | bsd-3-clause | TwoUnderscorez/DuckOS,TwoUnderscorez/DuckOS,TwoUnderscorez/DuckOS |
68b56a8eb5f6b950fcd11b089f726bf7aaf7a311 | tools/qb_blackbox.c | tools/qb_blackbox.c | /*
* Copyright (C) 2012 Andrew Beekhof <andrew@beekhof.net>
*
* libqb is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*... | /*
* Copyright (C) 2012 Andrew Beekhof <andrew@beekhof.net>
*
* libqb is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*... | Enable error logging for the blackbox reader | Enable error logging for the blackbox reader
| C | lgpl-2.1 | davidvossel/libqb,davidvossel/libqb,rubenk/libqb,ClusterLabs/libqb,kgaillot/libqb,kgaillot/libqb,kgaillot/libqb,gao-yan/libqb,ClusterLabs/libqb,ClusterLabs/libqb,gao-yan/libqb,rubenk/libqb |
b17dbf109de8dae1f917302c383093485beefa10 | ios/RNCallKit/RNCallKit.h | ios/RNCallKit/RNCallKit.h | //
// RNCallKit.h
// RNCallKit
//
// Created by Ian Yu-Hsun Lin on 12/22/16.
// Copyright © 2016 Ian Yu-Hsun Lin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CallKit/CallKit.h>
#import <Intents/Intents.h>
//#import <AVFoundation/AVAudioSession.h>
#import "RCTEventEmi... | //
// RNCallKit.h
// RNCallKit
//
// Created by Ian Yu-Hsun Lin on 12/22/16.
// Copyright © 2016 Ian Yu-Hsun Lin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CallKit/CallKit.h>
#import <Intents/Intents.h>
//#import <AVFoundation/AVAudioSession.h>
#import <React/RCTEv... | Fix incorrect import on React-Native >=0.40 | Fix incorrect import on React-Native >=0.40
For reference, see here:
https://github.com/facebook/react-native/commit/e1577df1fd70049ce7f288f91f6e2b18d512ff4d
| C | isc | ianlin/react-native-callkit,ianlin/react-native-callkit,killian90/react-native-callkit |
e7c1ac5d6e80b5def95a61fdb7eb79f4da9e45cb | Runtime/Rendering/ResourceDX11.h | Runtime/Rendering/ResourceDX11.h | #pragma once
#include "Rendering/RendererDX11.h"
namespace Mile
{
enum class ERenderResourceType
{
VertexBuffer,
IndexBuffer,
ConstantBuffer,
StructuredBuffer,
ByteAddressBuffer,
IndirectArgumentsBuffer,
Texture1D,
Texture2D,
Texture3D,
RenderTarget,
... | #pragma once
#include "Rendering/RendererDX11.h"
#include "Core/Engine.h"
namespace Mile
{
enum class ERenderResourceType
{
VertexBuffer,
IndexBuffer,
ConstantBuffer,
StructuredBuffer,
ByteAddressBuffer,
IndirectArgumentsBuffer,
Texture1D,
Texture2D,
Texture3... | Modify HasAvailableRenderer method to check actually matched with Engine owned renderer | Modify HasAvailableRenderer method to check actually matched with Engine owned renderer
| C | mit | HoRangDev/MileEngine,HoRangDev/MileEngine |
7efded33d1a46f193690b9efb70e033a43984e66 | util/malloccache.h | util/malloccache.h | #ifndef MALLOCCACHE_H
#define MALLOCCACHE_H
template <size_t blockSize, size_t blockCount>
class MallocCache
{
public:
MallocCache()
: m_blocksCached(0)
{
}
~MallocCache()
{
assert(m_blocksCached >= 0 && m_blocksCached <= blockCount);
for (size_t i = 0; i < m_blocksCached; i... | #ifndef MALLOCCACHE_H
#define MALLOCCACHE_H
// no-op the cache, sometimes useful for debugging memory issues
//#define MALLOCCACHE_PASSTHROUGH
template <size_t blockSize, size_t blockCount>
class MallocCache
{
public:
MallocCache()
: m_blocksCached(0)
{
}
~MallocCache()
{
#ifndef MALLOCCAC... | Add an ifdef to disable MallocCache for debugging. | Add an ifdef to disable MallocCache for debugging.
| C | lgpl-2.1 | KDE/dferry,KDE/dferry |
d778283f2fa7da8c0fdc48096fe4fe98009affd0 | Nyx/InputComponent.h | Nyx/InputComponent.h |
#pragma once
#include "Component.h"
enum ENTITY_TYPE {PLAYER};
// Commnets
class InputComponent :
public Component
{
public:
InputComponent();
~InputComponent();
void SetEntityType(int entityType);
void HandleInput();
void HandlePlayerInput();
private:
char* m_inputMessage;
ENTITY_TYPE m_entityType;
... | Handle input by the user | Handle input by the user | C | apache-2.0 | Rykkata/nyx | |
9b4360b6b8e1ba4234f5b11b8217379faafcb3b7 | app/src/adb_parser.h | app/src/adb_parser.h | #ifndef SC_ADB_PARSER_H
#define SC_ADB_PARSER_H
#include "common.h"
#include "stddef.h"
/**
* Parse the ip from the output of `adb shell ip route`
*/
char *
sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len);
#endif
| #ifndef SC_ADB_PARSER_H
#define SC_ADB_PARSER_H
#include "common.h"
#include "stddef.h"
/**
* Parse the ip from the output of `adb shell ip route`
*
* Warning: this function modifies the buffer for optimization purposes.
*/
char *
sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len);
#endif
| Add warning in function documentation | Add warning in function documentation
The function parsing "ip route" output modifies the input buffer to
tokenize in place. This must be mentioned in the function documentation.
| C | apache-2.0 | Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy |
d1ad3c1bfafd23a8e97f58de84cb609ded486c62 | scripts/startclose/moreInfo.c | scripts/startclose/moreInfo.c | startclose: moreInfo
New Window [ Name: "More Info"; Left: Get ( WindowDesktopWidth ) - (Get ( WindowDesktopWidth ) / 2 ) ]
Go to Layout [ “about” (tempSetup) ]
Adjust Window
[ Resize to Fit ]
Pause/Resume Script [ Indefinitely ]
January 23, 平成26 3:39:22 Imagination Quality Management.fp7 - about -1-
| startclose: moreInfo
New Window [ Name: "More Info"; Left: Get ( WindowDesktopWidth ) - (Get ( WindowDesktopWidth ) / 2 ) ]
Go to Layout [ “moreinfo” (tempSetup) ]
Adjust Window
[ Resize to Fit ]
Pause/Resume Script [ Indefinitely ]
January 23, 平成26 3:39:22 Imagination Quality Management.fp7 - about -1-
| Change more info window layout name | Change more info window layout name
| C | apache-2.0 | HelpGiveThanks/Library,HelpGiveThanks/Library |
9dfa879c1264d0f10fb96915b04e2cc106abce3b | include/features.h | include/features.h |
#ifndef __FEATURES_H
#define __FEATURES_H
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almost ansi */
#if __STDC__ != 1
#define const
#define volatile
#endif
#else /* K&R */
#define __P(x) ()
#define __const
#define const
#define volatile
#endif
/* No C++ */
#define __BEGIN_DECLS
#define __END_DECL... |
#ifndef __FEATURES_H
#define __FEATURES_H
/* Major and minor version number of the uCLibc library package. Use
these macros to test for features in specific releases. */
#define __UCLIBC__ 0
#define __UCLIBC_MAJOR__ 9
#define __UCLIBC_MINOR__ 1
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almo... | Add in a version number so apps can tell uclib is being used. -Erik | Add in a version number so apps can tell uclib is being used.
-Erik
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
709e6f102189171dfd6b6e9349a741f29bc00660 | xs/APR/OS/APR__OS.h | xs/APR/OS/APR__OS.h | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8. | Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8.
xs/APR/OS/APR__OS.h: In function 'mpxs_APR__OS_current_thread_id':
xs/APR/OS/APR__OS.h:20: warning: cast from pointer to integer of different size
Consistently cast this to an unsigned long.
git-svn-id: b4be4a41b2a3352907de631eb6da1671a2f7b614@983068 13f... | C | apache-2.0 | Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl |
6ad9eb749dcae5a1b2e3d5a3b4cd783c9c8c7224 | cqrs/artifact_view.h | cqrs/artifact_view.h | #pragma once
#include "cqrs/artifact.h"
namespace cddd {
namespace cqrs {
template<class> class basic_artifact_view;
template<class DomainEventDispatcher, class DomainEventContainer>
class basic_artifact_view<basic_artifact<DomainEventDispatcher, DomainEventContainer>> {
public:
using id_type = typename basic_a... | #pragma once
#include "cqrs/artifact.h"
namespace cddd {
namespace cqrs {
template<class> class basic_artifact_view;
template<class DomainEventDispatcher, class DomainEventContainer>
class basic_artifact_view<basic_artifact<DomainEventDispatcher, DomainEventContainer>> {
public:
using id_type = typename basic_a... | Refactor artifact view to provide event pointer created by the artifact after applying a change | Refactor artifact view to provide event pointer created by the artifact after applying a change
| C | mit | skizzay/cddd,skizzay/cddd |
4cfc6fe9ed05af1bfc371bd78ad6945b62419e37 | test/Sema/i-c-e3.c | test/Sema/i-c-e3.c | // RUN: clang %s -fsyntax-only -verify -pedantic-errors
int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{null pointer expression is not an integer constant expression (but is allowed as an extension)}} // expected-note{{C does not permit evaluated commas in an integer constant expression}}
| // RUN: clang %s -fsyntax-only -verify
int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;}
| Fix test. (0 && (a(),1)) is a valid I-C-E according to C99. | Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60331 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
fa99782c1eb60ffd73915fdd8a3f801a01b79a9d | src/bin/e_error.h | src/bin/e_error.h | #ifdef E_TYPEDEFS
#define e_error_message_show(args...) \
{ \
char __tmpbuf[PATH_MAX]; \
\
snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
e_error_message_show_internal(__tmpbuf); \
}
#else
#ifndef E_ERROR_H
#define E_ERROR_H
EAPI void e_error_message_show_internal(char *txt);
#endif
#endif
| #ifdef E_TYPEDEFS
#define e_error_message_show(args...) do \
{ \
char __tmpbuf[PATH_MAX]; \
\
snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
e_error_message_show_internal(__tmpbuf); \
} while (0)
#else
#ifndef E_ERROR_H
#define E_ERROR_H
EAPI void e_error_message_show_internal(char *txt);
#endif
#endif... | Fix macro so it can be used as a statement | e: Fix macro so it can be used as a statement
Should fix devilhorn's compile error.
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@61783 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
938c9e965d14e6867f165b3be3391b0c15484bf5 | src/util/string.h | src/util/string.h | #ifndef UTIL_STRING_H
#define UTIL_STRING_H
#include "util/common.h"
char* strndup(const char* start, size_t len);
char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len);
#endif
| #ifndef UTIL_STRING_H
#define UTIL_STRING_H
#include "util/common.h"
#ifndef strndup
// This is sometimes a macro
char* strndup(const char* start, size_t len);
#endif
char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len);
#endif
| Fix build with strndup on some platforms | Util: Fix build with strndup on some platforms
| C | mpl-2.0 | mgba-emu/mgba,mgba-emu/mgba,libretro/mgba,nattthebear/mgba,MerryMage/mgba,AdmiralCurtiss/mgba,Iniquitatis/mgba,fr500/mgba,libretro/mgba,Anty-Lemon/mgba,matthewbauer/mgba,iracigt/mgba,cassos/mgba,askotx/mgba,nattthebear/mgba,fr500/mgba,sergiobenrocha2/mgba,sergiobenrocha2/mgba,Anty-Lemon/mgba,jeremyherbert/mgba,MerryMag... |
980869bb3c0d627e6190ee90eef18b3d60d109ab | Sources/Ello-Bridging-Header.h | Sources/Ello-Bridging-Header.h | #import "MBProgressHUD.h"
#import <SDWebImage/UIImageView+WebCache.h>
#import "JTSImageViewController.h"
#import "JTSImageInfo.h"
#import "UITabBarController+NBUAdditions.h"
#import "KINWebBrowserViewController.h"
#import <SSPullToRefresh/SSPullToRefresh.h>
#import "SVGKit/SVGKit.h"
| #import "MBProgressHUD.h"
#import <SDWebImage/UIImageView+WebCache.h>
#import "JTSImageViewController.h"
#import "JTSImageInfo.h"
#import "UITabBarController+NBUAdditions.h"
#import "KINWebBrowserViewController.h"
#import <SSPullToRefresh/SSPullToRefresh.h>
#import <SVGKit/SVGKit.h>
| Update import statement for consistency. | Update import statement for consistency.
| C | mit | ello/ello-ios,ello/ello-ios,ello/ello-ios,ello/ello-ios |
b743e26e288da913ce62e96f74f73079c2f37299 | fuzz/main.c | fuzz/main.c | #define CGLTF_IMPLEMENTATION
#include "../cgltf.h"
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
{
cgltf_options options = {0};
cgltf_data* data = NULL;
cgltf_result res = cgltf_parse(&options, Data, Size, &data);
if (res == cgltf_result_success) cgltf_free(data);
return 0;
}
| #define CGLTF_IMPLEMENTATION
#include "../cgltf.h"
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
{
cgltf_options options = {0};
cgltf_data* data = NULL;
cgltf_result res = cgltf_parse(&options, Data, Size, &data);
if (res == cgltf_result_success)
{
cgltf_validate(data);
cgltf_free(data);
}
re... | Add validation to fuzz target | Add validation to fuzz target
This make sure new validation code is robust by itself.
| C | mit | jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf |
707924f97fc31d1e25e80e3e6df566dd1f7d4b02 | src/common.h | src/common.h | /** \file common.h
* \brief Project-wide definitions and macros.
*
*
* SCL; 2012-2015
*/
#ifndef COMMON_H
#define COMMON_H
#define GR1C_VERSION "0.10.2"
#define GR1C_COPYRIGHT "Copyright (c) 2012-2015 by Scott C. Livingston,\n" \
"California Institute of Technology\n\n" \
"This is free, open source software,... | /** \file common.h
* \brief Project-wide definitions and macros.
*
*
* SCL; 2012-2015
*/
#ifndef COMMON_H
#define COMMON_H
#define GR1C_VERSION "0.10.3"
#define GR1C_COPYRIGHT "Copyright (c) 2012-2015 by Scott C. Livingston,\n" \
"California Institute of Technology\n\n" \
"This is free, open source software,... | Bump version in preparation for next release. | Bump version in preparation for next release.
| C | bsd-3-clause | slivingston/gr1c,slivingston/gr1c,slivingston/gr1c |
18ef03a558c8f1786f18ee5be9f8a2648e73d608 | OctoKit/OCTEntity.h | OctoKit/OCTEntity.h | //
// OCTEntity.h
// OctoKit
//
// Created by Josh Abernathy on 1/21/11.
// Copyright 2011 GitHub. All rights reserved.
//
#import "OCTObject.h"
@class OCTPlan;
@class GHImageRequestOperation;
// Represents any GitHub object which is capable of owning repositories.
@interface OCTEntity : OCTObject
// Returns `l... | //
// OCTEntity.h
// OctoKit
//
// Created by Josh Abernathy on 1/21/11.
// Copyright 2011 GitHub. All rights reserved.
//
#import "OCTObject.h"
@class OCTPlan;
// Represents any GitHub object which is capable of owning repositories.
@interface OCTEntity : OCTObject
// Returns `login` if no name is explicitly s... | Remove old class forward declaration | Remove old class forward declaration
| C | mit | daukantas/octokit.objc,jonesgithub/octokit.objc,Palleas/octokit.objc,CleanShavenApps/octokit.objc,GroundControl-Solutions/octokit.objc,CHNLiPeng/octokit.objc,daemonchen/octokit.objc,Acidburn0zzz/octokit.objc,wrcj12138aaa/octokit.objc,daukantas/octokit.objc,jonesgithub/octokit.objc,xantage/octokit.objc,yeahdongcn/octoki... |
50d862bf9bdb359d71c0a13bb7dcb1cf2cd6016f | 3/src/e/options.c | 3/src/e/options.c | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "options.h"
static Options *
_new() {
Options *opts = (Options *)malloc(sizeof(Options));
if(opts) {
memset(opts, 0, sizeof(Options));
}
return opts;
}
static Options *
make(int argc, char *argv[]) {
Options *opts = _new();
int i = 1;
fo... | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "options.h"
static Options *
_new() {
Options *opts = (Options *)malloc(sizeof(Options));
if(opts) {
memset(opts, 0, sizeof(Options));
}
return opts;
}
static Options *
make(int argc, char *argv[]) {
Options *opts = _new();
int i = 1;
/*... | Rework the command line option defaults mechanism | e: Rework the command line option defaults mechanism | C | mpl-2.0 | KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel |
8c561b7c431ca247ef15f2dd59bc0f6efb963ef6 | hello.c | hello.c | #include <stdio.h>
int main()
{
puts("Hello, people!");
return 0;
}
| #include <stdio.h>
int main()
{
puts("Hello, people!"); /* Preferred over printf */
return 0;
}
| Comment the main .c file | Comment the main .c file
| C | bsd-3-clause | riuri/first,riuri/first |
387ec6864a25317ff45f9001809c4752047e2637 | src/os/Linux/findself.c | src/os/Linux/findself.c | #define _XOPEN_SOURCE 500
#include <unistd.h>
#include <stdlib.h>
char *os_find_self(void)
{
// PATH_MAX (used by readlink(2)) is not necessarily available
size_t size = 2048, used = 0;
char *path = NULL;
do {
size *= 2;
path = realloc(path, size);
used = readlink("/proc/self/ex... | #define _XOPEN_SOURCE 500
#include <unistd.h>
#include <stdlib.h>
char *os_find_self(void)
{
// PATH_MAX (used by readlink(2)) is not necessarily available
size_t size = 2048, used = 0;
char *path = NULL;
do {
size *= 2;
path = realloc(path, size);
used = readlink("/proc/self/ex... | Mend loop condition from 344aae0 | Mend loop condition from 344aae0
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
042453918223812fd6baaad696d65f9b1e886c9f | src/xvalid.c | src/xvalid.c | /**
* Copyright (c) 2011 Jon Maken, All Rights Reserved
* License: 3-Clause BSD
* Revision: 07/21/2011 2:44:32 PM
*/
#include <stdio.h>
static void usage(void)
{
printf("XVal: Validate XML documents\n");
printf("Usage: xval [--dtd DTD_FILE | --xsd XSD_FILE] XML_FILE ...\n\n");
printf(" --dtd DTD_FILE validate... | Add placeholder C code to finish build scripts | Add placeholder C code to finish build scripts
| C | bsd-3-clause | jonforums/xvalid,jonforums/xvalid,jonforums/xvalid | |
855718c59f77594a0911f80592875daff05d8b8c | t_gc.h | t_gc.h | /* $Id: t_gc.h,v 1.7 2011/09/04 13:00:54 mit-sato Exp $ */
#ifndef __T_GC__
#define __T_GC__
#ifdef PROF
# define GC_INIT() 0
# define GC_MALLOC(s) malloc(s)
# define GC_MALLOC_ATOMIC(s) malloc(s)
#else
# include <gc.h>
#endif /* PROF */
#endif /* __T_GC__ */
| /* $Id: t_gc.h,v 1.7 2011/09/04 13:00:54 mit-sato Exp $ */
#ifndef __T_GC__
#define __T_GC__
#ifdef PROF
# define GC_INIT() 0
# define GC_MALLOC(s) malloc(s)
# define GC_MALLOC_ATOMIC(s) malloc(s)
# define GC_register_finalizer_ignore_self(o,f,c,x,y) 0
# define GC_add_roots(s,e) 0
#else
# include <gc.h>... | Add dummy macro GC_register_finalizer_ignore_self and GC_add_roots. | Add dummy macro GC_register_finalizer_ignore_self and GC_add_roots.
| C | mit | mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.