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 |
|---|---|---|---|---|---|---|---|---|---|
89e735673ae02cbdba08ed6d7b543453cbf34e17 | test/FrontendC/2010-05-31-palignr.c | test/FrontendC/2010-05-31-palignr.c | // RUN: not %llvmgcc -mssse3 -S -o /dev/null %s |& grep "error: mask must be an immediate"
// XFAIL: *
// XTARGET: x86,i386,i686
#include <tmmintrin.h>
extern int i;
int main ()
{
#if defined( __SSSE3__ )
typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16)));
short dtbl[] = {1,2,3,4,5,6,... | Add a test for the llvm-gcc commit in r90200. | Add a test for the llvm-gcc commit in r90200.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@105253 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-m... | |
435c17a4ba235e82d5b7136e6841e6cb0eb6044e | problem_002.c | problem_002.c | /* Each new term in the Fibonacci sequence is generated by adding the previous
* two terms. By starting with 1 and 2, the first 10 terms will be:
*
* 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
*
* By considering the terms in the Fibonacci sequence whose values do not
* exceed four million, find the sum of the even-va... | Add solution for problem 2 | Add solution for problem 2
| C | bsd-2-clause | skreuzer/euler | |
5ce583eacdc66fec34b8788793170b3f860f14b5 | ComponentKit/Debug/CKComponentHierarchyDebugHelper.h | ComponentKit/Debug/CKComponentHierarchyDebugHelper.h | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | Mark remaining APIs unsafe in extensions | Mark remaining APIs unsafe in extensions
This is a follow up to #534 that should help us close out #390.
| C | bsd-3-clause | bricooke/componentkit,yiding/componentkit,dshahidehpour/componentkit,eczarny/componentkit,avnerbarr/componentkit,dshahidehpour/componentkit,dshahidehpour/componentkit,bricooke/componentkit,bricooke/componentkit,MDSilber/componentkit,eczarny/componentkit,MDSilber/componentkit,yiding/componentkit,bricooke/componentkit,MD... |
07e8498f075bab1491508eb17412dfa111d7de03 | src/spatial/codegen/cppgen/resources/datastructures/static/PrettyPrintMacros.h | src/spatial/codegen/cppgen/resources/datastructures/static/PrettyPrintMacros.h | #define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
#define PRINT_RED(...) \
printf("%s", KRED); \
printf(__VA_ARGS__); \
printf("%s", KNRM); \
#define PRINT_GREEN(.... | Add pretty (color) printing macros. Unused currently. | Add pretty (color) printing macros. Unused currently.
| C | mit | stanford-ppl/spatial-lang,stanford-ppl/spatial-lang,stanford-ppl/spatial-lang,stanford-ppl/spatial-lang,stanford-ppl/spatial-lang | |
51e169a1422fe902f3b9aa165e7058ea636baf22 | Modules/Common/include/mirtkStatus.h | Modules/Common/include/mirtkStatus.h | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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
*
... | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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
*
... | Remove needless comma after last enumeration value | style: Remove needless comma after last enumeration value [Common]
| C | apache-2.0 | schuhschuh/MIRTK,BioMedIA/MIRTK,schuhschuh/MIRTK,BioMedIA/MIRTK,stefanpsz/MIRTK,stefanpsz/MIRTK,stefanpsz/MIRTK,schuhschuh/MIRTK,BioMedIA/MIRTK,BioMedIA/MIRTK,schuhschuh/MIRTK,stefanpsz/MIRTK |
ea517d3d489b0b315a1c5fcd8af176423b0a6425 | opensync/plugin/opensync_plugin_connection_internals.h | opensync/plugin/opensync_plugin_connection_internals.h | /*
* libopensync - A synchronization framework
* Copyright (C) 2008 Daniel Gollub <dgollub@suse.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the ... | Add missing file from previous commit. | Add missing file from previous commit.
git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@4287 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
| C | lgpl-2.1 | luizluca/opensync-luizluca,luizluca/opensync-luizluca | |
71b7d664f70030e12ccd7f99729f50861fb4e858 | Engine/Entity.h | Engine/Entity.h | #ifndef __ENTITY_H__
#define __ENTITY_H__
#include "ModuleCollision.h"
class Entity
{
public:
Entity() : parent(nullptr) {}
Entity(Entity* parent) : parent(parent) {}
virtual ~Entity() {}
// Entity lifecycle methods
virtual bool Start()
{
return true;
}
virtual bool Start(bool active)
{
this->activ... | #ifndef __ENTITY_H__
#define __ENTITY_H__
#include "ModuleCollision.h"
class Entity
{
public:
Entity() : Parent(nullptr) {}
Entity(Entity* parent) : Parent(parent) {}
virtual ~Entity() {}
// Entity lifecycle methods
virtual bool Start()
{
return true;
}
virtual bool Start(bool active)
{
this->_acti... | Adjust entity class to naming conventions | Adjust entity class to naming conventions
references #3 | C | mit | jowie94/The-Simpsons-Arcade,jowie94/The-Simpsons-Arcade |
c68037fdc18d4dade36611a4a93dcc3fbbcfa045 | bin/test_date.c | bin/test_date.c | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
int check_date(struct tm *date, time_t time, char *name) {
if( date == NULL ) {
printf("%s(%lld) returned null\n", name, (long long)time);
return 1;
}
else {
printf("%s(%lld): %s\n", name, (long long)time, asctime(date));
... | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
int check_date(struct tm *date, time_t time, char *name) {
if( date == NULL ) {
printf("%s(%lld) returned null\n", name, (long long)time);
return 1;
}
else {
printf("%s(%lld): %s\n", name, (long long)time, asctime(date));
... | Print out the size of time_t and tm.tm_year for debugging porpuses. | Print out the size of time_t and tm.tm_year for debugging porpuses.
| C | mit | chromatic/y2038,chromatic/y2038,evalEmpire/y2038,bulk88/y2038,schwern/y2038,chromatic/y2038,foxtacles/y2038,foxtacles/y2038,bulk88/y2038,bulk88/y2038,evalEmpire/y2038,schwern/y2038 |
5c4a5fd8eeef6942ff79b519aa86b195a1e70aaf | Wikipedia/Code/WMFAnalyticsLogging.h | Wikipedia/Code/WMFAnalyticsLogging.h | #import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol WMFAnalyticsLogging <NSObject>
- (NSString*)analyticsName;
@end
NS_ASSUME_NONNULL_END | #import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol WMFAnalyticsContextProviding <NSObject>
- (NSString*)analyticsContext;
@end
@protocol WMFAnalyticsContentTypeProviding <NSObject>
- (NSString*)analyticsContentType;
@end
@protocol WMFAnalyticsViewNameProviding <NSObject>
- (NSString*)analytics... | Add additional protocols for tracking context, content type, and analytics name | Add additional protocols for tracking context, content type, and analytics name
| C | mit | anirudh24seven/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,bgerstle/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios,bgerstle/wikipedia-ios,montehurd... |
76f9b29884da7c8ec329979d35db92f4838d6a02 | tests/regression/51-threadjoins/04-assume-recreate.c | tests/regression/51-threadjoins/04-assume-recreate.c | //PARAM: --set ana.activated[+] threadJoins --disable ana.thread.include-node --set ana.thread.domain plain
#include <pthread.h>
#include <assert.h>
int g = 0;
void *t_fun(void *arg) {
g++; // RACE!
return NULL;
}
int main() {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
__goblint_assume_join(id)... | Add threadJoins test where recreated threads should be removed from must-join set | Add threadJoins test where recreated threads should be removed from must-join set
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
a46ad1816174773501de829f4bcf2a2f23690660 | tests/system_tests/test_cases/test_user-defined-type-copyin-copyout-two-members.c | tests/system_tests/test_cases/test_user-defined-type-copyin-copyout-two-members.c | /*
* TEST: Run copyin and copyout on a user-defined type with two members
* DIM: 3
* PRIORITY: 1
*/
#include <stdio.h>
#include "physis/physis.h"
#define N 32
#define ITER 10
struct Point {
float x;
float y;
};
DeclareGrid3D(Point, struct Point);
void check(struct Point *in, struct Point *out) {
int x = ... | Add a new simple test case for user-defined types | Add a new simple test case for user-defined types
| C | bsd-3-clause | naoyam/physis,naoyam/physis,naoyam/physis,naoyam/physis | |
087a8a1a1072d9917d0a533a8708a488774dc753 | test/CodeGen/debug-info-section-macho.c | test/CodeGen/debug-info-section-macho.c | // Test that clang produces the __apple accelerator tables,
// e.g., __apple_types, correctly.
// RUN: %clang %s -target x86_64-apple-macosx10.13.0 -c -g -o %t-ex
// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
int main (int argc, char const *argv[]) { return argc; }
// CHECK: __debug_str
// CHECK-NEXT: __... | Add a test to check clang produces accelerator tables. | [Darwin] Add a test to check clang produces accelerator tables.
This test was previously in lldb, and was only checking that clang
was emitting the correct section. So, it belongs here and not
in the debugger.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@325850 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
83b7ba154c3b7735685315c7dbbf2083945b947c | board.h | board.h | #ifndef __BOARD_H
#define __BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
#define F_OSC0 12000000UL
#define F_OSC1 0UL
#define F_CPU 66000000UL
#define HSBMASK_DEFAULT 0xFFFFFFFF
#define PBAMASK_DEFAULT 0xFFFFFFFF
#define PBBMASK_DEFAULT 0xFFFFFFFF
void init_board(void);
#ifdef __cplusplus
}
#endif
#endif
| #ifndef __BOARD_H
#define __BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
#define ADC_VREF 3.0
#define ADC_BITS 10
#define F_CPU 66000000UL
#define F_OSC0 12000000UL
#define F_OSC1 0UL
#define HSBMASK_DEFAULT 0xFFFFFFFF
#define PBAMASK_DEFAULT 0xFFFFFFFF
#define PBBMASK_DEFAULT 0xFFFFFFFF
void init_board(void);
... | Add adc settings and a function to calculate the conversion | Add adc settings and a function to calculate the conversion
| C | bsd-3-clause | denravonska/aery32,aery32/aery32,denravonska/aery32,aery32/aery32 |
9c6ef2d2e6fc944267fb3a857d5797afb9efcb06 | queue.c | queue.c | #include "queue.h"
struct Queue
{
size_t head;
size_t tail;
size_t size;
void** e;
};
Queue* Queue_Create(size_t n)
{
Queue* q = (Queue *)malloc(sizeof(Queue));
q->size = n;
q->head = q->tail = 1;
q->e = (void **)malloc(sizeof(void*) * (n + 1));
} | #include "queue.h"
struct Queue
{
size_t head;
size_t tail;
size_t size;
void** e;
};
Queue* Queue_Create(size_t n)
{
Queue* q = (Queue *)malloc(sizeof(Queue));
q->size = n;
q->head = q->tail = 1;
q->e = (void **)malloc(sizeof(void*) * (n + 1));
return q;
} | Add missing return after Queue creation | Add missing return after Queue creation
| C | mit | MaxLikelihood/CADT |
6ae7b4776f1cbafb5703376cb806572667070b8d | libc/sysdeps/linux/common/getrusage.c | libc/sysdeps/linux/common/getrusage.c | /* vi: set sw=4 ts=4: */
/*
* getrusage() for uClibc
*
* Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
#include <unistd.h>
#include <wait.h>
_syscall2(int, getrusage, int, who, struct rusage *, usage);
| /* vi: set sw=4 ts=4: */
/*
* getrusage() for uClibc
*
* Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
#include <unistd.h>
#include <wait.h>
_syscall2(int, getrusage, __rusage_who_t, who, struct rusage *... | Correct type, gcc-3.4.5 fails, thanks nitinkg for reporting/testing | Correct type, gcc-3.4.5 fails, thanks nitinkg for reporting/testing
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
3951fae51d776d05e871ee5a7beb62fb832985b1 | src/port/pthread-win32.h | src/port/pthread-win32.h | #ifndef __PTHREAD_H
#define __PTHREAD_H
typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t;
DWORD pthread_self(void);
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
void pthread_mutex_init(pthread_mutex_t *, void *attr);
void pt... | #ifndef __PTHREAD_H
#define __PTHREAD_H
typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t;
DWORD pthread_self(void);
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
int pthread_mutex_init(pthread_mutex_t *, void *attr);
int pt... | Fix declarations of pthread functions, missed in recent commit. | Fix declarations of pthread functions, missed in recent commit.
| C | agpl-3.0 | tpostgres-projects/tPostgres,50wu/gpdb,jmcatamney/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,ovr/postgres-xl,techdragon/Postgres-XL,Chibin/gpdb,xinzweb/gpdb,adam8157/gpdb,pavanvd/postgres-xl,kmjungersen/PostgresXL,50wu/gpdb,ovr/postgres-xl,lisakowen/gpdb,ovr/postgres-xl,greenplum-db/gpdb,jmcatamne... |
9d7343347b61a9e0110b8ba81cdd66b5c5ea0bac | src/sas/readstat_xport.c | src/sas/readstat_xport.c | #include <stdint.h>
#include "readstat_xport.h"
#include "../readstat_bits.h"
char _xport_months[12][4] = {
"JAN", "FEB", "MAR", "APR", "MAY", "JUN",
"JUL", "AUG", "SEP", "OCT", "NOV", "DEC" };
void xport_namestr_bswap(xport_namestr_t *namestr) {
if (!machine_is_little_endian())
return;
name... | #include <stdint.h>
#include "readstat_xport.h"
#include "../readstat_bits.h"
char _xport_months[12][4] = {
"JAN", "FEB", "MAR", "APR", "MAY", "JUN",
"JUL", "AUG", "SEP", "OCT", "NOV", "DEC" };
void xport_namestr_bswap(xport_namestr_t *namestr) {
if (!machine_is_little_endian())
return;
name... | Fix bug in XPORT byteswapping | Fix bug in XPORT byteswapping
| C | mit | WizardMac/ReadStat,WizardMac/ReadStat |
74046391a491fe30c587685b036c8509d34b9936 | main.c | main.c | #include <unistd.h>
#include <stdlib.h>
#include <sys/socket.h>
int main(void) {
char const *server_path = "/tmp/unix_server_listener"
int listener = socket(PF_UNIX, SOCK_STREAM, 0);
unlink(server_path);
int err = bind(listener, address);
err = listen(listener, 2048);
set listener close-on-fork
int ... | Add skeleton of test program | Add skeleton of test program
| C | mit | keithduncan/unix_server | |
c1db1c5a23c7066d9417ed808b01f452874ff7ed | libexec/ftpd/skey-stuff.c | libexec/ftpd/skey-stuff.c | /* Author: Wietse Venema, Eindhoven University of Technology. */
#include <stdio.h>
#include <pwd.h>
#include <skey.h>
/* skey_challenge - additional password prompt stuff */
char *skey_challenge(name, pwd, pwok)
char *name;
struct passwd *pwd;
int pwok;
{
static char buf[128];
struct skey skey;
... | Put skey support to ftpd Reviewed by: Submitted by: guido | Put skey support to ftpd
Reviewed by:
Submitted by: guido
| 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 | |
a512578fdd9e815f9244bc1d5a5fcd30464e8cbc | source/openta/ta_errors.h | source/openta/ta_errors.h | // Public domain. See "unlicense" statement at the end of this file.
#define TA_ERROR_FAILED_TO_PARSE_CMDLINE -1
#define TA_ERROR_FAILED_TO_CREATE_GAME_CONTEXT -2
#define TA_ERROR_INVALID_ARGS -3
| // Public domain. See "unlicense" statement at the end of this file.
typedef int ta_result;
#define TA_SUCCESS 0
#define TA_ERRORS -1
#define TA_INVALID_ARGS -2
#define TA_OUT_OF_MEMORY -3
#define TA_ERROR_FAILED_TO_PARSE_CMDLINE -1
#define TA_ERROR_FAILED_TO_CREATE_GAME_CONTEXT -2
... | Add a few result codes. | Add a few result codes.
| C | mit | mackron/openta,mackron/openta |
c9b72d350872bf0d23d3b7905c7f8169c7f91a8b | reverb/cc/conversions.h | reverb/cc/conversions.h | // Copyright 2019 DeepMind Technologies Limited.
//
// 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 l... | // Copyright 2019 DeepMind Technologies Limited.
//
// 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 l... | Document why `ImportNumpy ` exists and when it should be used. | Document why `ImportNumpy ` exists and when it should be used.
PiperOrigin-RevId: 474532725
Change-Id: I305a57456bcac3186389a733e16d962fcee99dee
| C | apache-2.0 | deepmind/reverb,deepmind/reverb,deepmind/reverb,deepmind/reverb |
f160c0edd74d9f31c936b92c7e7e6b4c9fb6848e | src/engine/scriptwindow.h | src/engine/scriptwindow.h | #ifndef SCRIPTWINDOW_H
#define SCRIPTWINDOW_H
#include <stdint.h>
#include <QHash>
#include <QObject>
#include <QScriptValue>
class QScriptEngine;
class ScriptWindow : public QObject {
Q_OBJECT
public:
explicit ScriptWindow(const QScriptValue &originalWindow, QObject *parent = 0);
QScrip... | #ifndef SCRIPTWINDOW_H
#define SCRIPTWINDOW_H
#include <QHash>
#include <QObject>
#include <QScriptValue>
class QScriptEngine;
class ScriptWindow : public QObject {
Q_OBJECT
public:
explicit ScriptWindow(const QScriptValue &originalWindow, QObject *parent = 0);
QScriptValue toScriptValue(... | Fix compile error on Amazon EC2. | Fix compile error on Amazon EC2.
| C | agpl-3.0 | arendjr/PlainText,arendjr/PlainText,arendjr/PlainText |
2fbd5548c56d6cbeef46248da67cb97455a3a7ec | apps/rldtest/rldtest.c | apps/rldtest/rldtest.c | /*
** Copyright 2002, Manuel J. Petit. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <stdio.h>
#include <dlfcn.h>
extern int fib(int);
extern void shared_hello(void);
int
main()
{
void *freston;
void *girlfriend;
shared_hello();
printf("%d %d %d %d %d %d\n", fib(0), fib(1... | /*
** Copyright 2002, Manuel J. Petit. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <stdio.h>
#include <dlfcn.h>
extern int fib(int);
extern void shared_hello(void);
int
main()
{
void *freston;
void *girlfriend;
shared_hello();
printf("%d %d %d %d %d %d\n", fib(0), fib(1... | Fix serious bug. Should be RTLD_NOW... RTLD_LAZY does not work for getting a girlfriend. | Fix serious bug. Should be RTLD_NOW... RTLD_LAZY does not work for getting a girlfriend.
git-svn-id: fb278a52ad97f7fbef074986829f2c6a2a3c4b34@547 c25cc9d1-44fa-0310-b259-ad778cb1d433
| C | bsd-3-clause | dioptre/newos,travisg/newos,siraj/newos,zhouxh1023/newos,siraj/newos,siraj/newos,dioptre/newos,dioptre/newos,siraj/newos,travisg/newos,zhouxh1023/newos,travisg/newos,zhouxh1023/newos |
fe2714923b986bc461b692d45c1b5eb1b469ddc4 | firmware/include/vb2_api.h | firmware/include/vb2_api.h | /* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* APIs between calling firmware and vboot_reference
*
* DO NOT INCLUDE THE HEADERS BELOW DIRECTLY! ONLY INCLUDE THIS FILE!
*/
#ifndef VBO... | Add official API header file | vboot2: Add official API header file
This is what other firmware should include. Other firmware must NOT
attempt to include headers from deeper inside the vboot2
implementation; that will likely break as vboot2 is refactored.
BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests
Change-Id: I63638b03bb108296fa... | C | bsd-3-clause | coreboot/vboot,geekboxzone/mmallow_external_vboot_reference,acorn-marvell/vboot_reference,acorn-marvell/vboot_reference,geekboxzone/mmallow_external_vboot_reference,coreboot/vboot,geekboxzone/mmallow_external_vboot_reference,geekboxzone/mmallow_external_vboot_reference,acorn-marvell/vboot_reference,coreboot/vboot,geekb... | |
4ea166194c7eec0262b3e30d9a599ea187a8591e | src/ios/KirinKit/KirinKit/Extensions/GWTServices/NewDatabaseAccessService.h | src/ios/KirinKit/KirinKit/Extensions/GWTServices/NewDatabaseAccessService.h | //
// NewDatabasesImpl.h
// KirinKit
//
// Created by Douglas Hoskins on 04/10/2013.
// Copyright (c) 2013 Future Platforms. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSObject+Kirin.h"
#import "KirinGwtServiceStub.h"
#import "NewTransactionService.h"
#import <toNative/DatabaseAccessService... | //
// NewDatabasesImpl.h
// KirinKit
//
// Created by Douglas Hoskins on 04/10/2013.
// Copyright (c) 2013 Future Platforms. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSObject+Kirin.h"
#import "KirinGwtServiceStub.h"
#import "NewTransactionService.h"
#import <toNative/DatabaseAccessService... | Make KirinGwtServiceStub use KirinSynchronousExecute protocol | [ios] Make KirinGwtServiceStub use KirinSynchronousExecute protocol
| C | apache-2.0 | futureplatforms/Kirin,futureplatforms/Kirin,futureplatforms/Kirin,futureplatforms/Kirin,futureplatforms/Kirin |
56437dfda6512a192e1eb227019c36e83c3df422 | src/common/global_state_annotation.h | src/common/global_state_annotation.h | /// @file
/// @brief Defines global state annotation class.
#ifndef GLOBAL_STATE_ANNOTATION_H
#define GLOBAL_STATE_ANNOTATION_H
namespace fish_annotator {
/// Defines global state information for one image/frame.
struct GlobalStateAnnotation : public Serialization {
/// Constructor.
///
/// @param states Globa... | Add global state annotation definitions | Add global state annotation definitions
| C | mit | BGWoodward/FishDetector | |
b3761005e1bcdcc11051bf45e90a00b1f33cb82e | tests/regression/29-svcomp/27-td3-front-via-destab-infl.c | tests/regression/29-svcomp/27-td3-front-via-destab-infl.c | // PARAM: --set ana.activated[+] var_eq --set ana.activated[+] symb_locks --set ana.activated[+] region --enable ana.sv-comp.enabled --set ana.specification "CHECK( init(main()), LTL(G ! call(reach_error())) )"
// creduced from ldv-linux-4.2-rc1/linux-4.2-rc1.tar.xz-43_2a-drivers--scsi--qla4xxx--qla4xxx.ko-entry_point... | Add minimal creduced case where TD3 abort fails its verify | Add minimal creduced case where TD3 abort fails its verify
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
d88ad4e76c026a8a2a959cacefd456d04ea22601 | solutions/uri/1010/1010.c | solutions/uri/1010/1010.c | #include <math.h>
#include <stdio.h>
int main() {
int a, b;
float c, s = 0.0;
while (scanf("%d %d %f", &a, &b, &c) != EOF) {
s += c * b;
}
printf("VALOR A PAGAR: R$ %.2f\n", s);
}
| Solve Simple Calculate in c | Solve Simple Calculate in c
| C | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
8709f4c305854a8e23e6c0fc868b7c9a65827707 | src/String.h | src/String.h | //=============================================================================
// String.h
//=============================================================================
#ifndef SRC_STRING_H_
#define SRC_STRING_H_
#include "AutoReleasePool.h"
#include <string.h>
//--------------------------------------------... | //=============================================================================
// String.h
//=============================================================================
#ifndef SRC_STRING_H_
#define SRC_STRING_H_
#include "AutoReleasePool.h"
#include <string.h>
//--------------------------------------------... | Refactor - fix error in gcc compile | Refactor - fix error in gcc compile | C | apache-2.0 | jasonxhill/okavangoc,jasonxhill/okavangoc |
96bc2bb6c95cb61d0039c7da19cd7d172c668aa9 | lib/libmid/errstr.c | lib/libmid/errstr.c | #include "../../include/mid.h"
#include <SDL/SDL_error.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
enum { Bufsz = 1024 };
static char curerr[Bufsz + 1];
void seterrstr(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
snprintf(curerr, Bufsz + 1, fmt, ap);
va_end(ap);
}
const char *miderrs... | #include "../../include/mid.h"
#include <SDL/SDL_error.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
enum { Bufsz = 1024 };
static char curerr[Bufsz + 1];
void seterrstr(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vsnprintf(curerr, Bufsz + 1, fmt, ap);
va_end(ap);
}
const char *miderr... | Call vsnprintf instead of just snprintf. | Call vsnprintf instead of just snprintf.
| C | mit | velour/mid,velour/mid,velour/mid |
dcf530dd0e811a75191bd0f86e53561db1a8ed44 | config/config-mem.h | config/config-mem.h | /*
* config-mem.h
*
* Copyright (c) 1996, 1997
* Transvirtual Technologies, Inc. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
#ifndef __config_mem_h
#define __config_mem_h
#if defined(HAVE_STRING_H)
#include <string.h>
#endif
#if defin... | /*
* config-mem.h
*
* Copyright (c) 1996, 1997
* Transvirtual Technologies, Inc. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
#ifndef __config_mem_h
#define __config_mem_h
#if defined(HAVE_STRING_H)
#include <string.h>
#endif
#if defin... | Fix build problem under FreeBSD. | Fix build problem under FreeBSD.
| C | lgpl-2.1 | kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe |
25d67e3ef084ff3894a235c2ab529f362524b89a | include/nekit/utils/async_io_interface.h | include/nekit/utils/async_io_interface.h | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | Make AsyncIoInterface a pure interface | REFACTOR: Make AsyncIoInterface a pure interface
| C | mit | zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit |
3281226fa2caa220f9654fa3c6734f56962792a2 | prefix.h | prefix.h | #ifndef KLETCH_MATH_PREFIX_H
#define KLETCH_MATH_PREFIX_H
#include <utility>
#include <tuple>
#include <iostream>
#include <limits>
#include "special_functions.h"
namespace kletch {
#ifdef KLETCH_USE_DOUBLES
typedef double real;
#else
typedef float real;
#endif
template <typename T>
inline constexpr real rl... | #ifndef KLETCH_MATH_PREFIX_H
#define KLETCH_MATH_PREFIX_H
#include <utility>
#include <tuple>
#include <iostream>
#include <limits>
#include "special_functions.h"
namespace kletch {
#ifdef KLETCH_WITH_DOUBLE
typedef double real;
#else
typedef float real;
#endif
template <typename T>
inline constexpr real rl... | Make ReferenceFresnelTest th config dependent | Make ReferenceFresnelTest th config dependent
| C | unlicense | mkacz91/math |
642e338cf79c78704ebfa7833fdd148f561921f5 | sw/device/lib/dif/dif_warn_unused_result.h | sw/device/lib/dif/dif_warn_unused_result.h | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_WARN_UNUSED_RESULT_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_WARN_UNUSED_RESULT_H_
/**
* @file
* @brief Unused Result Warning... | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_WARN_UNUSED_RESULT_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_WARN_UNUSED_RESULT_H_
/**
* @file
* @brief Unused Result Warning... | Add a comment explaining how to drop an error on the ground | [dif] Add a comment explaining how to drop an error on the ground
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509, which
necessitates doing this in a non-standard, but still portable, manner.
Signed-off-by: Miguel Young de la Sota <71b8e7f4945fd97b98544cf897992af89646547a@google.com>
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan |
1e7621d96cb9d0821c61db6f4e3ef36ddc19b0cd | tests/uncompress_fuzzer.c | tests/uncompress_fuzzer.c | /* Derived from zlib fuzzers at http://github.com/google/oss-fuzz/tree/master/projects/zlib,
* see ossfuzz.sh for full license text.
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "miniz.h"
static unsigned char buffer[256 * 1024] = { 0 };
int LLVMFuzzerTestOneInput(const uint8_t* data, siz... | /* Derived from zlib fuzzers at http://github.com/google/oss-fuzz/tree/master/projects/zlib,
* see ossfuzz.sh for full license text.
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "miniz.h"
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
unsigned long int buffer_length = ... | Use variable size input buffer in uncompress fuzzer. | Use variable size input buffer in uncompress fuzzer.
| C | mit | richgel999/miniz,richgel999/miniz,richgel999/miniz |
72d3d27dd2b4b15bba30f0b7a56a1255ee09fbdc | tests/regression/02-base/44-malloc_array.c | tests/regression/02-base/44-malloc_array.c | // PARAM: --set ana.int.interval true --enable exp.partition-arrays.enabled
#include<stdlib.h>
#include<assert.h>
int main(void) {
int *r = malloc(5 * sizeof(int));
r[3] = 2;
assert(r[4] == 2);
(* Here we only test our implementation. Concretely, accessing the uninitialised r[4] is undefined behavio... | // PARAM: --set ana.int.interval true --enable exp.partition-arrays.enabled
#include<stdlib.h>
#include<assert.h>
int main(void) {
int *r = malloc(5 * sizeof(int));
r[3] = 2;
assert(r[4] == 2);
/* Here we only test our implementation. Concretely, accessing the uninitialised r[4] is undefined behavio... | Mark the comment in a proper C style | Mark the comment in a proper C style
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
75e54983b2b62ec12e7c62b42dd46b1dd7d3fd96 | brotherKH930.h | brotherKH930.h | #ifndef BROTHERKH930_H_
#define BROTHERKH930_H_
#import "position.h"
/** Pins unsed for interfacing with the BrotherKH930. */
struct PinSetup {
int encoderV1;
int encoderV2;
int encoderBP; // belt-phase
};
/** Pin setup as used by the KniticV2 PCB. */
PinSetup kniticV2Pins();
/**
* Interfact to a brother kni... | #ifndef BROTHERKH930_H_
#define BROTHERKH930_H_
#import "position.h"
/** Pins unsed for interfacing with the BrotherKH930. */
struct PinSetup {
int encoderV1;
int encoderV2;
int encoderBP; // belt-phase
};
/** Pin setup as used by the KniticV2 PCB. */
PinSetup kniticV2Pins();
/**
* Interfact to a brother kni... | Add comment regarding ISR in callback. | Add comment regarding ISR in callback.
| C | apache-2.0 | msiegenthaler/brotherKH930_arduino |
7c686661d65c63f6f518ca81830dd61bd64bfe1f | test/Analysis/uninit-vals-ps.c | test/Analysis/uninit-vals-ps.c | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct FPRec {
void (*my_func)(int * x);
};
int bar(int x);
int f1_a(struct FPRec* foo) {
int x;
(*foo->my_func)(&x);
return bar(x)+1; // no-warning
}
int f1_b() {
int x;
return bar(x)+1; // ex... | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct FPRec {
void (*my_func)(int * x);
};
int bar(int x);
int f1_a(struct FPRec* foo) {
int x;
(*foo->my_func)(&x);
return bar(x)+1; // no-warning
}
int f1_b() {
int x;
return bar(x)+1; // ex... | Add checker test case: warn about returning an uninitialized value to the caller. | Add checker test case: warn about returning an uninitialized value to the caller.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59765 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
dcd310e5c86b0a93ab79ac0940c936486106fb6a | osu.Framework/Resources/Shaders/sh_Utils.h | osu.Framework/Resources/Shaders/sh_Utils.h | #define GAMMA 2.2
vec4 toLinear(vec4 colour)
{
return vec4(pow(colour.rgb, vec3(GAMMA)), colour.a);
}
vec4 toSRGB(vec4 colour)
{
return vec4(pow(colour.rgb, vec3(1.0 / GAMMA)), colour.a);
} | #define GAMMA 2.4
float toLinear(float color)
{
return color <= 0.04045 ? (color / 12.92) : pow((color + 0.055) / 1.055, GAMMA);
}
vec4 toLinear(vec4 colour)
{
return vec4(toLinear(colour.r), toLinear(colour.g), toLinear(colour.b), colour.a);
}
float toSRGB(float color)
{
return color < 0.0031308 ?... | Convert to sRGB based on the appropriate formulas instead of an approximiate 2.2 gamma correction. | Convert to sRGB based on the appropriate formulas instead of an approximiate 2.2 gamma correction.
| C | mit | EVAST9919/osu-framework,naoey/osu-framework,ZLima12/osu-framework,naoey/osu-framework,paparony03/osu-framework,Nabile-Rahmani/osu-framework,default0/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framework,RedNesto/osu-framework,ZLima12/osu-framework,EVA... |
73499d78a98dd162f774d1be8f6bb0cc10229b92 | include/lldb/Host/Endian.h | include/lldb/Host/Endian.h | //===-- Endian.h ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- Endian.h ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix endian test for big-endian hosts | Fix endian test for big-endian hosts
The uint16_t cast truncated the magic value to 0x00000304, making the
first byte 0 (eByteOrderInvalid) on big endian hosts.
Reported by Justin Hibbits.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@213861 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb |
0b073b52fd838984f2ee34095627b5e95d863c3e | JPetReaderInterface/JPetReaderInterface.h | JPetReaderInterface/JPetReaderInterface.h | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | Change int to long long | Change int to long long
| C | apache-2.0 | wkrzemien/j-pet-framework,wkrzemien/j-pet-framework,wkrzemien/j-pet-framework,wkrzemien/j-pet-framework,wkrzemien/j-pet-framework |
ac843efe7bcdc94edf442b210ff70dddc486576e | Problem031/C/solution_1.c | Problem031/C/solution_1.c | /*
* =====================================================================================
*
* Copyright 2015 Manoel Vilela
*
*
* Filename: solution_1.c
*
* Description: Solution for Problem031 of ProjectEuler
*
* Author: Manoel Vilela
* Contact: manoel_vilela@eng... | /*
* =====================================================================================
*
* Copyright 2015 Manoel Vilela
*
*
* Filename: solution_1.c
*
* Description: Solution for Problem031 of ProjectEuler
*
* Author: Manoel Vilela
* Contact: manoel_vilela@eng... | Remove the unecessary macro N_COINS to sizeof-way | Remove the unecessary macro N_COINS to sizeof-way
| C | mit | DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectE... |
b4e508eccf76d11287a40698c2484ab592446cee | ir/be/test/fehler24.c | ir/be/test/fehler24.c | /* The tarval module fails to negate the constant and returns TV_OVERFLOW_BAD
* when optimising the comparison (-x < 0 -> x > 0). It is not expected that
* the negation fails and an assertion while constructing the negated constant
* is triggered */
int f(double x)
{
return -x < 0;
}
int main(void)
{
return 0... | Add a test case where the tarval module generates an unexpected result. | Add a test case where the tarval module generates an unexpected result.
[r14777]
| C | lgpl-2.1 | 8l/libfirm,MatzeB/libfirm,davidgiven/libfirm,killbug2004/libfirm,killbug2004/libfirm,davidgiven/libfirm,8l/libfirm,jonashaag/libfirm,davidgiven/libfirm,davidgiven/libfirm,8l/libfirm,8l/libfirm,killbug2004/libfirm,davidgiven/libfirm,libfirm/libfirm,jonashaag/libfirm,jonashaag/libfirm,libfirm/libfirm,8l/libfirm,libfirm/l... | |
8da42ceabc214f68ef11c95249e6e2519c58ae06 | Classes/MoveAbleElemBaseFactory.h | Classes/MoveAbleElemBaseFactory.h | #pragma once
#include "cocos2d.h"
#include "MoveAbleElem.h"
class MoveAbleElemBaseFactory :public cocos2d::Ref
{
protected:
MoveAbleElemBaseFactory() { ; }
public:
virtual ~MoveAbleElemBaseFactory()
{
}
virtual bool init()
{
return true;
}
static MoveAbleElemBaseFactory * create()
{
return nullptr;
}... | Add base factory to produce moveAbleElem | Add base factory to produce moveAbleElem
| C | mit | wjingzhe/A_ParkourJingz,wjingzhe/ParkourJingz,wjingzhe/A_ParkourJingz,wjingzhe/ParkourJingz,wjingzhe/A_ParkourJingz,wjingzhe/ParkourJingz,wjingzhe/ParkourJingz,wjingzhe/A_ParkourJingz,wjingzhe/ParkourJingz,wjingzhe/ParkourJingz,wjingzhe/A_ParkourJingz,wjingzhe/A_ParkourJingz | |
e0c8d7bc0a14d5b7fb6b528c10b8462eacc18f0e | src/api-mock.h | src/api-mock.h | #ifndef APIMOCK_H
#define APIMOCK_H
#include "core/exceptions.h"
#include "http/httpserver.h"
#include "http/requestdata.h"
#include "http/requestdata.h"
#include "http/statuscodes.h"
#include "routing/routedresourcestrategy.h"
#endif | #ifndef APIMOCK_H
#define APIMOCK_H
#include "core/exceptions.h"
#include "http/httpserver.h"
#include "http/requestdata.h"
#include "http/requestdata.h"
#include "http/statuscodes.h"
#include "routing/config.h"
#include "routing/routedresourcestrategy.h"
#endif | Include route configuration file in main header | Include route configuration file in main header
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
fb535ccb30845fe0b7bd09caa37a838985b72ff9 | arch/x86/entry/vdso/vdso32/vclock_gettime.c | arch/x86/entry/vdso/vdso32/vclock_gettime.c | #define BUILD_VDSO32
#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
#undef CONFIG_OPTIMIZE_INLINING
#endif
#undef CONFIG_X86_PPRO_FENCE
#ifdef CONFIG_X86_64
/*
* in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel
* configuration
*/
#undef CONFIG_64BIT
#undef CONFIG_X86_64
#undef CONFIG_ILLEGAL_POINTER_VALUE
... | #define BUILD_VDSO32
#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
#undef CONFIG_OPTIMIZE_INLINING
#endif
#undef CONFIG_X86_PPRO_FENCE
#ifdef CONFIG_X86_64
/*
* in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel
* configuration
*/
#undef CONFIG_64BIT
#undef CONFIG_X86_64
#undef CONFIG_PGTABLE_LEVELS
#undef ... | Define PGTABLE_LEVELS to 32bit VDSO | x86/vdso32: Define PGTABLE_LEVELS to 32bit VDSO
In case of CONFIG_X86_64, vdso32/vclock_gettime.c fakes a 32-bit
non-PAE kernel configuration by re-defining it to CONFIG_X86_32.
However, it does not re-define CONFIG_PGTABLE_LEVELS leaving it
as 4 levels.
This mismatch leads <asm/pgtable_type.h> to NOT include <asm-ge... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
eff55937ab190391534fc00c0f2c8760728ddb4e | Parser/pgen.h | Parser/pgen.h | /***********************************************************
Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
Netherlands.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,... | /***********************************************************
Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
Netherlands.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,... | Add declaration of struct _node, for scoping reasons. | Add declaration of struct _node, for scoping reasons.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
8801070251ffe70e28e6937b74ccbd57a984c2bc | src/rtpp_ucl.h | src/rtpp_ucl.h | /*
* Copyright (c) 2018 Sippy Software, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... | Add some UCL-related definitions to be shared by the RTPP code. | Add some UCL-related definitions to be shared by the RTPP code.
| C | bsd-2-clause | dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,sippy/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy | |
9c07822b7768dc2974608b3e7501885ab73edfb0 | OctoKit/OCTCommitComment.h | OctoKit/OCTCommitComment.h | //
// OCTCommitComment.h
// OctoKit
//
// Created by Justin Spahr-Summers on 2012-10-02.
// Copyright (c) 2012 GitHub. All rights reserved.
//
#import "OCTObject.h"
// A single comment on a commit.
@interface OCTCommitComment : OCTObject
// The webpage URL for this comment.
@property (nonatomic, copy, readonly) ... | //
// OCTCommitComment.h
// OctoKit
//
// Created by Justin Spahr-Summers on 2012-10-02.
// Copyright (c) 2012 GitHub. All rights reserved.
//
#import "OCTObject.h"
// A single comment on a commit.
@interface OCTCommitComment : OCTObject
// The webpage URL for this comment.
@property (nonatomic, copy, readonly) ... | Document why position can be nil. | Document why position can be nil.
| C | mit | jonesgithub/octokit.objc,CHNLiPeng/octokit.objc,phatblat/octokit.objc,xantage/octokit.objc,GroundControl-Solutions/octokit.objc,Acidburn0zzz/octokit.objc,yeahdongcn/octokit.objc,daukantas/octokit.objc,phatblat/octokit.objc,leichunfeng/octokit.objc,leichunfeng/octokit.objc,cnbin/octokit.objc,CleanShavenApps/octokit.objc... |
52bbfee69929a102437015caf625a1a79ffe21b1 | arch/mips/common/include/arch.h | arch/mips/common/include/arch.h | /*
Copyright (c) 2016, prpl Foundation
Permission to use, copy, modify, and/or distribute this software for any purpose with or without
fee is hereby granted, provided that the above copyright notice and this permission notice appear
in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRA... | /*
Copyright (c) 2016, prpl Foundation
Permission to use, copy, modify, and/or distribute this software for any purpose with or without
fee is hereby granted, provided that the above copyright notice and this permission notice appear
in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRA... | Fix compilation error for pic32mz platform. | Fix compilation error for pic32mz platform.
| C | isc | prplfoundation/prpl-hypervisor,prplfoundation/prpl-hypervisor,prplfoundation/prpl-hypervisor,prplfoundation/prpl-hypervisor,prplfoundation/prpl-hypervisor,prplfoundation/prpl-hypervisor |
2b6d2c0d5992d240fe52e171967e8c1a176b3265 | CookieCrunchAdventure/CookieCrunchAdventure/CookieCrunchAdventure-Bridging-Header.h | CookieCrunchAdventure/CookieCrunchAdventure/CookieCrunchAdventure-Bridging-Header.h | //Skillz dependencies.
#import <MobileCoreServices/MobileCoreServices.h>
#import <PassKit/PassKit.h>
#import <MediaPlayer/MediaPlayer.h>
#import <MessageUI/MessageUI.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <Social/Social.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import <StoreKit/StoreKit.h>
#im... | //Skillz dependencies.
#import <MobileCoreServices/MobileCoreServices.h>
#import <PassKit/PassKit.h>
#import <MediaPlayer/MediaPlayer.h>
#import <MessageUI/MessageUI.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <Social/Social.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import <StoreKit/StoreKit.h>
#im... | Fix typo in Skillz bridging header | Fix typo in Skillz bridging header | C | mit | heyx3/Cookie-Crunch-Adventure |
f97b814a589446e5d3481124f56ddb91708fd000 | src/tp_qi.in.h | src/tp_qi.in.h |
//Eventloop->post (with delay = 0)
TRACEPOINT_EVENT(qi_qi, eventloop_post,
TP_ARGS(unsigned int, taskId,
const char*, typeName),
TP_FIELDS(ctf_integer(int, taskId, taskId)
ctf_string(typeName, typeName)
)
)
//Eventloop->async && post with delay
TRAC... |
//Eventloop->post (with delay = 0)
TRACEPOINT_EVENT(qi_qi, eventloop_post,
TP_ARGS(unsigned int, taskId,
const char*, typeName),
TP_FIELDS(ctf_integer(int, taskId, taskId)
ctf_string(typeName, typeName)
)
)
//Eventloop->async && post with delay
TRAC... | Fix compilation of eventloop with probes | Fix compilation of eventloop with probes
Change-Id: Ia885584363de9070200a53acd80d48e3cbeda6fe
Reviewed-on: http://gerrit.aldebaran.lan/48421
Approved: hcuche <2a0975cc082cedff4d4350e3f6ec187146151bc6@aldebaran-robotics.com>
Reviewed-by: hcuche <2a0975cc082cedff4d4350e3f6ec187146151bc6@aldebaran-robotics.com>
Tested-by... | C | bsd-3-clause | aldebaran/libqi,bsautron/libqi,vbarbaresi/libqi,aldebaran/libqi,aldebaran/libqi |
751661b79fcdf36dbb229d704f92b68ab4e62ccc | tests/regression/04-mutex/72-memset_arg_rc.c | tests/regression/04-mutex/72-memset_arg_rc.c | #include <pthread.h>
#include <stdio.h>
#include <string.h>
int g;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
g++; // RACE!
return NULL;
}
int main(void) {
int x;
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
memset(&x, g, sizeof(int)); // RACE!
pthread_join (i... | Add test with immediate int arg read access | Add test with immediate int arg read access
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
3572bcf5c029534b21a2fe61665eacd26380f010 | chapter27/chapter27_ex01.c | chapter27/chapter27_ex01.c | /* Chapter 27, exercise 1: implement versions of strlen(), strcmp() and strcpy()
*/
#include<stddef.h>
#include<stdio.h>
size_t strlen(const char* s)
{
size_t len = 0;
while (*s++) ++len;
return len;
}
int strcmp(const char* s1, const char* s2)
{
const char* p1 = s1;
const char* p2 = s2;
whil... | Add Chapter 27, exercise 1 | Add Chapter 27, exercise 1
| C | mit | bewuethr/stroustrup_ppp,bewuethr/stroustrup_ppp | |
e9296d41b3b8dd5ecd78597beec0b2caf3ea2648 | include/utilities.h | include/utilities.h | #ifndef UTILITIES_HLT
#define UTILITIES_HLT
#include <deal.II/base/utilities.h>
#include <deal.II/base/smartpointer.h>
#include <typeinfo>
#include <cxxabi.h>
using namespace dealii;
/**
* SmartPointers are usually not used to point to objects created with
* new. However, sometimes this is useful. The distruction... | #ifndef UTILITIES_HLT
#define UTILITIES_HLT
#include <deal.II/base/utilities.h>
#include <deal.II/base/smartpointer.h>
#include <typeinfo>
#include <cxxabi.h>
using namespace dealii;
/**
* SmartPointers are usually not used to point to objects created with
* new. However, sometimes this is useful. The distruction... | Put delete instead of free | Put delete instead of free
| C | lgpl-2.1 | asartori86/dealii-sak,luca-heltai/deal2lkit,luca-heltai/dealii-sak,luca-heltai/dealii-sak,mathLab/deal2lkit,asartori86/deal2lkit,fsalmoir/dealii-sak,luca-heltai/deal2lkit,nicola-giuliani/dealii-sak,asartori86/dealii-sak,mathLab/deal2lkit,asartori86/deal2lkit,nicola-giuliani/dealii-sak,fsalmoir/dealii-sak |
eb4125b28743ceb509c2d2b1f196adeecdccfca0 | source/gloperate/include/gloperate/capabilities/AbstractTypedRenderTargetCapability.h | source/gloperate/include/gloperate/capabilities/AbstractTypedRenderTargetCapability.h | /******************************************************************************\
* gloperate
*
* Copyright (C) 2014 Computer Graphics Systems Group at the
* Hasso-Plattner-Institut (HPI), Potsdam, Germany.
\******************************************************************************/
#pragma once
#include <glo... | /******************************************************************************\
* gloperate
*
* Copyright (C) 2014 Computer Graphics Systems Group at the
* Hasso-Plattner-Institut (HPI), Potsdam, Germany.
\******************************************************************************/
#pragma once
#include <glo... | Add ObjectID to RenderTargetType enum | Add ObjectID to RenderTargetType enum
| C | mit | Beta-Alf/gloperate,lanice/gloperate,Beta-Alf/gloperate,j-o/gloperate,lanice/gloperate,j-o/gloperate,j-o/gloperate,cginternals/gloperate,j-o/gloperate,lanice/gloperate,Beta-Alf/gloperate,p-otto/gloperate,lanice/gloperate,cginternals/gloperate,hpi-r2d2/gloperate,hpicgs/gloperate,Beta-Alf/gloperate,p-otto/gloperate,lanice... |
692bb0259b4d9c988841919116dbb8e5216d3b5a | system/platforms/arm-qemu/platform-local.h | system/platforms/arm-qemu/platform-local.h | /**
* @file platform-local.h
*
*/
#ifndef _ARM_QEMU_PLATFORM_LOCAL_H
#define _ARM_QEMU_PLATFORM_LOCAL_H
/*
* The fluke-arm platform has so little memory that the global default
* of 64k for INITSTK is too big. Try something more conservativer.
*/
#define INITSTK (1337)
#endif /* _ARM_QEMU_PLATFORM_LOCAL_H */
| /**
* @file platform-local.h
*
*/
#ifndef _ARM_QEMU_PLATFORM_LOCAL_H
#define _ARM_QEMU_PLATFORM_LOCAL_H
#endif /* _ARM_QEMU_PLATFORM_LOCAL_H */
| Use the default stack size | arm-qeum: Use the default stack size
Because we have a lot more ram than the fluke-arm port had, we can
afford to use the default platform-independent stack size.
| C | bsd-3-clause | robixnai/xinu-arm,robixnai/xinu-arm,robixnai/xinu-arm |
07b877eb5d542876043969148593b456ff1187be | include/llvm/Transforms/PrintModulePass.h | include/llvm/Transforms/PrintModulePass.h | //===- llvm/Transforms/PrintModulePass.h - Printing Pass ---------*- C++ -*--=//
//
// This file defines a simple pass to print out methods of a module as they are
// processed.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_PRINTMODULE_H
#define LLVM_TRANSF... | //===- llvm/Transforms/PrintModulePass.h - Printing Pass ---------*- C++ -*--=//
//
// This file defines a simple pass to print out methods of a module as they are
// processed.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_PRINTMODULE_H
#define LLVM_TRANSF... | Add option to print as bytecode instead of assembly. | Add option to print as bytecode instead of assembly.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@887 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap... |
c67c564520eecf9c8517075b286ec0ac976d07a4 | vespalib/src/vespa/vespalib/util/hw_info.h | vespalib/src/vespa/vespalib/util/hw_info.h | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "i_hw_info.h"
namespace vespalib {
/*
* class describing some hardware on the machine.
*/
class HwInfo : public IHwInfo
{
bool _spinningDisk;
public:
HwInfo();
virtua... | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "i_hw_info.h"
namespace vespalib {
/*
* Class describing some hardware on the machine.
*/
class HwInfo : public IHwInfo
{
bool _spinningDisk;
public:
HwInfo();
virtua... | Use proper uppercase at start of comment. | Use proper uppercase at start of comment.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
1c8d27bccc845ca70eb11c29d5d498bb2371c86a | link-grammar/externs.h | link-grammar/externs.h | /*************************************************************************/
/* Copyright (c) 2004 */
/* Daniel Sleator, David Temperley, and John Lafferty */
/* All rights reserved */
/* ... | /*************************************************************************/
/* Copyright (c) 2004 */
/* Daniel Sleator, David Temperley, and John Lafferty */
/* All rights reserved */
/* ... | Fix global variable description comments. | Fix global variable description comments.
| C | lgpl-2.1 | ampli/link-grammar,ampli/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,ampli/link-grammar,opencog/link-grammar,ampli/link-grammar,opencog/link-grammar,ampli/link-grammar,linas/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,linas/link-grammar,linas/link-grammar,linas/... |
7ba2cae8c825baf411488ded7d0eb1e6cc17452d | tests/headers/issue-1554.h | tests/headers/issue-1554.h | // bindgen-flags: --default-enum-style rust_non_exhaustive --raw-line '#![cfg(feature = "nightly")]' --raw-line '#![feature(non_exhaustive)]'
enum Planet {
earth,
mars
};
| // bindgen-flags: --default-enum-style rust_non_exhaustive --rust-target nightly --raw-line '#![cfg(feature = "nightly")]' --raw-line '#![feature(non_exhaustive)]'
enum Planet {
earth,
mars
};
| Add missing --rust-target flags on test case. | Add missing --rust-target flags on test case.
See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r293079226
| C | bsd-3-clause | emilio/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,rust-lang/rust-bindgen,rust-lang/rust-bindgen,rust-lang/rust-bindgen |
3f2067c6dadb97125994dacc517a4be6f0b67256 | linux/include/stdint.h | linux/include/stdint.h | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | Fix build of the Linux kernel module on ARM. | Fix build of the Linux kernel module on ARM.
| C | lgpl-2.1 | didier-barvaux/rohc,didier-barvaux/rohc,didier-barvaux/rohc,didier-barvaux/rohc,didier-barvaux/rohc |
e59877f76ae37ecdf26d8a17f132dd9541e06886 | blaze/math/proxy/Forward.h | blaze/math/proxy/Forward.h | //=================================================================================================
/*!
// \file blaze/math/proxy/Forward.h
// \brief Header file for all forward declarations for proxies
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You ... | Add forward declarations for all proxies | Add forward declarations for all proxies
| C | bsd-3-clause | byzhang/blaze,byzhang/blaze,byzhang/blaze | |
a112b69d8c3f17f3320198e658cefd82324d95ff | src/widgets/external_ip.c | src/widgets/external_ip.c | #include "widgets.h"
#include "external_ip.h"
static int
widget_external_ip_send_update () {
char *external_ip = wkline_curl_request(wkline_widget_external_ip_address);
json_t *json_data_object = json_object();
char *json_payload;
json_object_set_new(json_data_object, "ip", json_string("ip"));
json_payload = j... | #include "widgets.h"
#include "external_ip.h"
static int
widget_external_ip_send_update () {
char *external_ip = wkline_curl_request(wkline_widget_external_ip_address);
json_t *json_data_object = json_object();
char *json_payload;
json_object_set_new(json_data_object, "ip", json_string(external_ip));
json_payl... | Fix error in external IP widget | Fix error in external IP widget
| C | mit | jhanssen/candybar,Lokaltog/candybar,jhanssen/candybar,Lokaltog/candybar |
1a7d60e5c88c09b3a113436dcac983adedeac2a5 | mediacontrols.h | mediacontrols.h | #pragma once
#include <QtWidgets>
#include <QMediaPlayer>
class MediaControls : public QWidget
{
Q_OBJECT
public:
MediaControls(QWidget *parent = 0);
QMediaPlayer::State state() const;
int volume() const;
bool isMuted();
public slots:
void setState(QMediaPlayer::State state);
void setVo... | #pragma once
#include <QtWidgets>
#include <QMediaPlayer>
class MediaControls : public QWidget
{
Q_OBJECT
public:
MediaControls(QWidget *parent = 0);
QMediaPlayer::State state() const;
int volume() const;
bool isMuted();
public slots:
void setState(QMediaPlayer::State state);
void setVo... | Add one slot for changed value | Add one slot for changed value
| C | mit | mordegardi/aufision,mordegardi/aufision,mordegardi/aufision |
6a8a0d7dc153b826cc96840d1e98d214883b190d | C/mwt.c | C/mwt.c | #include<stdio.h>
#include<stdlib.h>
int main (int argc, char *argv[]){
if(argc != 3){
printf("Number of parameters should be 2 (filename, cardinality).");
exit(1);
}
//open file and get file length
FILE *file;
file = fopen(argv[1],"r");
if(file == NULL){
printf("File c... | Read file and save data to array | Read file and save data to array
| C | mit | marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree | |
443637f6a485f7c9f5e1c4cf393b5fd22a718c69 | src/unit_PARALLEL/chrono_parallel/collision/ChCNarrowphase.h | src/unit_PARALLEL/chrono_parallel/collision/ChCNarrowphase.h | #ifndef CHC_NARROWPHASE_H
#define CHC_NARROWPHASE_H
#include "chrono_parallel/ChParallelDefines.h"
#include "chrono_parallel/ChDataManager.h"
namespace chrono {
namespace collision {
struct ConvexShape {
shape_type type; //type of shape
real3 A; //location
real3 B; //dimensions
real3 C; //extra
qu... | #ifndef CHC_NARROWPHASE_H
#define CHC_NARROWPHASE_H
#include "chrono_parallel/ChParallelDefines.h"
#include "chrono_parallel/ChDataManager.h"
namespace chrono {
namespace collision {
struct ConvexShape {
shape_type type; //type of shape
real3 A; //location
real3 B; //dimensions
real3 C; //extra
qu... | Add a collision margin to each shape Margins are one way to improve stability of contacts. Only the GJK solver will use these initially | Add a collision margin to each shape
Margins are one way to improve stability of contacts.
Only the GJK solver will use these initially
| C | bsd-3-clause | jcmadsen/chrono,PedroTrujilloV/chrono,jcmadsen/chrono,Milad-Rakhsha/chrono,hsu/chrono,dariomangoni/chrono,hsu/chrono,projectchrono/chrono,andrewseidl/chrono,projectchrono/chrono,hsu/chrono,projectchrono/chrono,tjolsen/chrono,dariomangoni/chrono,armanpazouki/chrono,rserban/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono... |
686a21bf859f955ff8d3d179da64b7a23c0fed44 | test/Preprocessor/macro_paste_spacing2.c | test/Preprocessor/macro_paste_spacing2.c | // RUN: clang-cc %s -E | grep "movl %eax"
#define R1E %eax
#define epilogue(r1) movl r1;
epilogue(R1E)
| // RUN: clang-cc %s -E | grep "movl %eax"
// PR4132
#define R1E %eax
#define epilogue(r1) movl r1 ## E;
epilogue(R1)
| Fix the testcase for PR4132. | Fix the testcase for PR4132.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@70796 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
28fe8ce18f7db33a8dc2b47ad07e6e0da491710f | include/llvm/Bytecode/WriteBytecodePass.h | include/llvm/Bytecode/WriteBytecodePass.h | //===- llvm/Bytecode/WriteBytecodePass.h - Bytecode Writer Pass --*- C++ -*--=//
//
// This file defines a simple pass to write the working module to a file after
// pass processing is completed.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_BYTECODE_WRITEBYTECODEPASS... | //===- llvm/Bytecode/WriteBytecodePass.h - Bytecode Writer Pass --*- C++ -*--=//
//
// This file defines a simple pass to write the working module to a file after
// pass processing is completed.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_BYTECODE_WRITEBYTECODEPASS... | Add a version of the bytecode writer pass that has a default ctor | Add a version of the bytecode writer pass that has a default ctor
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3031 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/... |
20027ceb284f470cda25d0ae2c35140b381e91c6 | 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 68
#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 69
#endif
| Update Skia milestone to 69 | Update Skia milestone to 69
TBR=reed@google.com
Bug: skia:
Change-Id: Ifabe4c89c9d0018da5d4f270d4e3fb5790e29bfc
Reviewed-on: https://skia-review.googlesource.com/130120
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72d... | C | bsd-3-clause | rubenvb/skia,aosp-mirror/platform_external_skia,google/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,aosp-mirror/platform_external_skia,google/skia,Hikari-no-Tenshi/a... |
7a61dc2985b7095d1bc413d014ca3c06e5bc4477 | include/sauce/exceptions.h | include/sauce/exceptions.h | #ifndef SAUCE_SAUCE_EXCEPTIONS_H_
#define SAUCE_SAUCE_EXCEPTIONS_H_
#include <stdexcept>
namespace sauce {
/**
* Raised when no binding can be found for a given interface.
*
* TODO sure would be nice to know who..
*/
struct UnboundException:
public std::runtime_error {
UnboundException():
std::runtime_er... | #ifndef SAUCE_SAUCE_EXCEPTIONS_H_
#define SAUCE_SAUCE_EXCEPTIONS_H_
#include <string>
#include <stdexcept>
namespace sauce {
/**
* Base class for all sauce exceptions.
*/
struct Exception: std::runtime_error {
Exception(std::string message):
std::runtime_error(message) {}
};
/**
* Raised when no binding ca... | Add a circular dependency exception. | Add a circular dependency exception.
Also break out an exception base type.
| C | mit | phs/sauce,phs/sauce,phs/sauce,phs/sauce |
8de958ec707f8e8115881ad595ed4d872bc91641 | library/src/main/jni/image/image_decoder.h | library/src/main/jni/image/image_decoder.h | //
// Created by Hippo on 9/13/2016.
//
#ifndef IMAGE_IMAGE_DECODER_H
#define IMAGE_IMAGE_DECODER_H
#include "com_hippo_image_BitmapDecoder.h"
#define IMAGE_CONFIG_INVALID -1;
#define IMAGE_CONFIG_AUTO com_hippo_image_BitmapDecoder_CONFIG_AUTO
#define IMAGE_CONFIG_RGB_565 com_hippo_image_BitmapDecoder_CON... | //
// Created by Hippo on 9/13/2016.
//
#ifndef IMAGE_IMAGE_DECODER_H
#define IMAGE_IMAGE_DECODER_H
#include "com_hippo_image_BitmapDecoder.h"
#define IMAGE_CONFIG_INVALID -1;
#define IMAGE_CONFIG_AUTO com_hippo_image_BitmapDecoder_CONFIG_AUTO
#define IMAGE_CONFIG_RGB_565 com_hippo_image_BitmapDecoder_CON... | Fix undefined references in linker | Fix undefined references in linker
| C | apache-2.0 | seven332/Image,seven332/Image,seven332/Image |
d6975e54dee6c652d4dd10fe62c3c29241c967f2 | demos/FPL_FFMpeg/defines.h | demos/FPL_FFMpeg/defines.h | #pragma once
#define PRINT_QUEUE_INFOS 0
#define PRINT_FRAME_UPLOAD_INFOS 0
#define PRINT_MEMORY_STATS 0
#define PRINT_FRAME_DROPS 0
#define PRINT_VIDEO_REFRESH 0
#define PRINT_VIDEO_DELAY 0
#define PRINT_CLOCKS 0
#define PRINT_PTS 0
#define PRINT_FPS 0
// Rendering mode (Hardware or Software)
#define USE_HARDWARE_RE... | #pragma once
#define PRINT_QUEUE_INFOS 0
#define PRINT_FRAME_UPLOAD_INFOS 0
#define PRINT_MEMORY_STATS 0
#define PRINT_FRAME_DROPS 0
#define PRINT_VIDEO_REFRESH 0
#define PRINT_VIDEO_DELAY 0
#define PRINT_CLOCKS 0
#define PRINT_PTS 0
#define PRINT_FPS 0
// Rendering mode (Hardware or Software)
#define USE_HARDWARE_RE... | Disable ffmpeg software conversion in define | Disable ffmpeg software conversion in define
| C | mit | f1nalspace/final_game_tech,f1nalspace/final_game_tech,f1nalspace/final_game_tech |
93da664c36b47e478b7f52e1510a24d73f4f8d1d | runtime/src/chplexit.c | runtime/src/chplexit.c | #include <stdio.h>
#include <stdlib.h>
#include "chpl_rt_utils_static.h"
#include "chpl-comm.h"
#include "chplexit.h"
#include "chpl-mem.h"
#include "chplmemtrack.h"
#include "chplrt.h"
#include "gdb.h"
#undef exit
static void chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status !=... | #include <stdio.h>
#include <stdlib.h>
#include "chpl_rt_utils_static.h"
#include "chpl-comm.h"
#include "chplexit.h"
#include "chpl-mem.h"
#include "chplmemtrack.h"
#include "chplrt.h"
#include "gdb.h"
#undef exit
static void chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status !=... | Clarify the debug message that may be generated by the chpl_comm_barrier() call in chpl_exit_common(). | Clarify the debug message that may be generated by the
chpl_comm_barrier() call in chpl_exit_common().
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@19217 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| C | apache-2.0 | chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,sungeunchoi/chapel,... |
31555bbf1bd79b4e8ea404c719c1441123ecbb04 | src/SenseKit/Logging.h | src/SenseKit/Logging.h | #ifndef LOGGING_H
#define LOGGING_H
#ifndef __ANDROID__
#define ELPP_STACKTRACE_ON_CRASH
#endif
#define ELPP_NO_DEFAULT_LOG_FILE
#include "vendor/easylogging++.h"
#define INITIALIZE_LOGGING INITIALIZE_EASYLOGGINGPP
namespace sensekit {
void initialize_logging(const char* logFilePath);
}
#endif /* LOGGING_H */... | #ifndef LOGGING_H
#define LOGGING_H
#ifdef __ANDROID__
#define ELPP_DISABLE_DEFAULT_CRASH_HANDLING
#else // not android
#define ELPP_STACKTRACE_ON_CRASH
#endif
#define ELPP_NO_DEFAULT_LOG_FILE
#include "vendor/easylogging++.h"
#define INITIALIZE_LOGGING INITIALIZE_EASYLOGGINGPP
namespace sensekit {
void initia... | Disable logger crash handling on Android | Disable logger crash handling on Android
| C | apache-2.0 | orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra |
c1028e5d6d7a039b3499f2d63f7242943331ac74 | tests/test_stack_using_array.c | tests/test_stack_using_array.c | #include <check.h>
#include "../src/stack_using_array/stack.h"
stack st;
void setup() {
init(&st);
}
void teardown() {
}
START_TEST( test_push_pop_normal_ops )
{
push( &st, 10 );
push( &st, 12 );
ck_assert_int_eq( pop( &st ), 12 );
ck_assert_int_eq( pop( &st ), 10 );
}
END_TEST
START_TEST( test... | Test for stack using array | Test for stack using array
| C | mit | TejasR/data-structures-in-c,TejasR/data-structures-in-c | |
11beae99eafcb134fa72ec4a952a1d0dc07203d1 | src/log_queue.h | src/log_queue.h | #pragma once
#include <cstddef>
#include <condition_variable>
#include <mutex>
#include <queue>
namespace log {
template<typename T>
class LogQueue final {
public:
explicit LogQueue(size_t capacity) : m_capacity(capacity) {}
~LogQueue() = default;
LogQueue(const LogQueue&) = delete;
LogQueue& operato... | #pragma once
#include <cstddef>
#include <condition_variable>
#include <mutex>
#include <queue>
namespace log {
template<typename T>
class LogQueue final {
public:
explicit LogQueue(size_t capacity) : m_capacity(capacity) {}
~LogQueue() = default;
LogQueue(const LogQueue&) = delete;
LogQueue& operato... | Decrease the number of notify_one calls | optimize: Decrease the number of notify_one calls
| C | mit | yksz/cpp-logger,yksz/cpp-logger |
a21cdb843767cc21a1b371105883c735784c8793 | include/asm-generic/string.h | include/asm-generic/string.h | #ifndef __CR_ASM_GENERIC_STRING_H__
#define __CR_ASM_GENERIC_STRING_H__
#include "compiler.h"
#ifndef HAS_BUILTIN_MEMCPY
static always_inline void *builtin_memcpy(void *to, const void *from, unsigned int n)
{
int i;
unsigned char *cto = to;
const unsigned char *cfrom = from;
for (i = 0; i < n; ++i, ++cto, ++cfro... | #ifndef __CR_ASM_GENERIC_STRING_H__
#define __CR_ASM_GENERIC_STRING_H__
#include "compiler.h"
#ifndef HAS_BUILTIN_MEMCPY
static always_inline void *builtin_memcpy(void *to, const void *from, unsigned int n)
{
int i;
unsigned char *cto = to;
const unsigned char *cfrom = from;
for (i = 0; i < n; ++i, ++cto, ++cfro... | Add builtin_memcpy, builtin_memcmp generic helpers | asm: Add builtin_memcpy, builtin_memcmp generic helpers
Will need them in pie code soon.
Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
| C | lgpl-2.1 | efiop/criu,biddyweb/criu,svloyso/criu,efiop/criu,KKoukiou/criu-remote,KKoukiou/criu-remote,marcosnils/criu,kawamuray/criu,ldu4/criu,eabatalov/criu,efiop/criu,gablg1/criu,eabatalov/criu,AuthenticEshkinKot/criu,rentzsch/criu,svloyso/criu,svloyso/criu,wtf42/criu,ldu4/criu,biddyweb/criu,eabatalov/criu,AuthenticEshkinKot/cr... |
cf3241c5db6a161453b0127499b2c30c1ee9bd02 | cpu/native/dev/uart1.h | cpu/native/dev/uart1.h | /*
Copied from mc1322x/dev/cpu.
This file exists as a work-around for the hardware dependant calls
to slip_arch_init.
Current the prototype for slip_arch_init is slip_arch_init(urb)
and a typical call is something like
slip_arch_init(BAUD2URB(115200))
BAUD2UBR is hardware specific, however. Further... | Add file needed for rpl border router | Add file needed for rpl border router
| C | bsd-3-clause | MohamedSeliem/contiki,arurke/contiki,bluerover/6lbr,arurke/contiki,bluerover/6lbr,MohamedSeliem/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,arurke/contiki,MohamedSeliem/contiki,arurke/contiki,MohamedSeliem/contiki,arurke/contiki,arurke/contiki,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,a... | |
08d9391c8f90f0c5c997bd3ab41517774dd582f3 | src/dtkComposer/dtkComposerSceneNodeLeaf.h | src/dtkComposer/dtkComposerSceneNodeLeaf.h | /* dtkComposerSceneNodeLeaf.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Fri Feb 3 12:34:45 2012 (+0100)
* Version: $Id$
* Last-Updated: Thu Feb 16 14:47:09 2012 (+0100)
* By: Julien Wintz
* Update #: 10
*/
/* Commentary:
*
*/
/* Change log:
... | /* dtkComposerSceneNodeLeaf.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Fri Feb 3 12:34:45 2012 (+0100)
* Version: $Id$
* Last-Updated: Thu May 31 09:45:52 2012 (+0200)
* By: tkloczko
* Update #: 11
*/
/* Commentary:
*
*/
/* Change log:
*
... | Add export rules for scene node leaf. | Add export rules for scene node leaf.
| C | bsd-3-clause | d-tk/dtk,d-tk/dtk,NicolasSchnitzler/dtk,rdebroiz/dtk,d-tk/dtk,rdebroiz/dtk,rdebroiz/dtk,d-tk/dtk,rdebroiz/dtk,d-tk/dtk,NicolasSchnitzler/dtk,NicolasSchnitzler/dtk,NicolasSchnitzler/dtk,d-tk/dtk |
8bcfa4182e71abb82bc7b45b91b61c5a6e431923 | src/password.c | src/password.c |
#include <string.h>
#include <openssl/sha.h>
#include "password.h"
void key_from_password(const char *a_password, char *a_key)
{
unsigned char digest[256 / 8] = {0}; // SHA 256 uses 256/8 bytes.
int i;
SHA256((const unsigned char *)a_password, strlen(a_password), digest);
for (i = 0; i < 40872; i++) {
SHA256(d... |
#include <string.h>
#include <openssl/sha.h>
#include "password.h"
void key_from_password(const char *a_password, char *a_key)
{
unsigned char digest[256 / 8] = {0}; // SHA 256 uses 256/8 bytes.
int i;
SHA256((const unsigned char *)a_password, strlen(a_password), digest);
for (i = 0; i < 40872; i++) ... | Convert tabs to spaces and indent | Convert tabs to spaces and indent
| C | mit | falsovsky/FiSH-irssi |
8c57d9ca2da9eb7d35c0b1e41e67477449ba34e0 | src/win32/random_win.c | src/win32/random_win.c | /*
*The MIT License (MIT)
*
* Copyright (c) <2017> <Stephan Gatzka>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, co... | Add stub for windows random implementation. | Add stub for windows random implementation.
| C | mit | gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet | |
18d9964f98298e426a488c00300834cc5441ee1b | src/framework/cmd/core.c | src/framework/cmd/core.c | /**
* @file
* @brief Command registry and invocation code.
*
* @date 01.03.11
* @author Eldar Abusalimov
*/
#include <framework/cmd/api.h>
#include <framework/cmd/types.h>
#include <ctype.h>
#include <stddef.h>
#include <errno.h>
#include <string.h>
#include <util/array.h>
#include <util/getopt.h>
ARRAY_SPREA... | /**
* @file
* @brief Command registry and invocation code.
*
* @date 01.03.11
* @author Eldar Abusalimov
*/
#include <framework/cmd/api.h>
#include <framework/cmd/types.h>
#include <ctype.h>
#include <stddef.h>
#include <errno.h>
#include <string.h>
#include <util/array.h>
#include <util/getopt.h>
ARRAY_SPREA... | Fix running of c++ apps when there are multiple apps in mods.conf | Fix running of c++ apps when there are multiple apps in mods.conf
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
429be9362d598d3b7b3ea6e19b1be2dca867aa0a | test/tools/llvm-symbolizer/print_context.c | test/tools/llvm-symbolizer/print_context.c | // REQUIRES: x86_64-linux
// RUN: %host_cc -O0 -g %s -o %t 2>&1
// RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s
#include <stdio.h>
int inc(int a) {
return a + 1;
}
int main() {
printf("%p\n", inc);
return 0;
}
// CHECK: inc
// CHECK: print_context.c:7
// CHECK: 5 : #inc... | // REQUIRES: x86_64-linux
// RUN: %host_cc -O0 -g %s -o %t 2>&1
// RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s
// CHECK: inc
// CHECK: print_context.c:[[@LINE+9]]
// CHECK: [[@LINE+6]] : #include
// CHECK: [[@LINE+6]] :
// CHECK: [[@LINE+6]] >: int inc
// CHECK: [[@LINE+6]] :... | Make test robust to changes in prefix/avoid hardcoded line numbers | Make test robust to changes in prefix/avoid hardcoded line numbers
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@309516 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llv... |
a35e09994e5ffe1fb364bb69860056be5c89efea | testcode/typedef_in_header_file_main.c | testcode/typedef_in_header_file_main.c | /*
* Three files to show how to put a typedef struct and
* functions into a header file.
*
* Copyright 2017 Dave Cuthbert, MIT license
*/
#include <stdlib.h>
#include <stdio.h>
#include "typedef_in_header_file.h"
int main(int argc, char *argv[])
{
Node *root;
root = new_node();
root->value = 1;
... | Add typdef in header main() | Add typdef in header main() | C | mit | daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various | |
e0aaf216fbf480f46f78b9c4ecca9dd7da682811 | src/compat/posix/include/dirent.h | src/compat/posix/include/dirent.h | /**
*
* @date 23.11.2012
* @author Alexander Kalmuk
*/
#ifndef DIRENT_H_
#define DIRENT_H_
#include <sys/types.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
#define DIRENT_DNAME_LEN 40
struct dirent {
ino_t d_ino; /* File serial number. */
char d_name[DIRENT_DNAME_LEN]; /* Name of entry. */
};
struct node... | /**
*
* @date 23.11.2012
* @author Alexander Kalmuk
*/
#ifndef DIRENT_H_
#define DIRENT_H_
#include <sys/types.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
#define DIRENT_DNAME_LEN 40
struct dirent {
ino_t d_ino; /* File serial number. */
char d_name[DIRENT_DNAME_LEN]; /* Name of entry. */
};
struct node... | Fix multiply difination of the struct directory | extbld-porting: Fix multiply difination of the struct directory | C | bsd-2-clause | gzoom13/embox,Kefir0192/embox,Kakadu/embox,abusalimov/embox,mike2390/embox,embox/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,Kakadu/embox,vrxfile/embox-trik,mike2390/embox,Kakadu/embox,embox/embox,mike2390/embox,Kefir0192/embox,mike2390/embox,Kakadu/embox,vrxfile/embox-trik,embox/embox,abusalimov/embox,Ke... |
9d1a3a942f093baf3d33c3fef7505db86bcf9fac | bindings/python/plmodule.h | bindings/python/plmodule.h | #include <Python.h>
#include <arrayobject.h>
#include "plplot/plplot.h"
#include "plplot/plplotP.h"
#if defined(PL_DOUBLE) || defined(DOUBLE)
#define PL_ARGS(a, b) (a)
#define PyArray_PLFLT PyArray_DOUBLE
#else
#define PL_ARGS(a, b) (b)
#define PyArray_PLFLT PyArray_FLOAT
#endif
#define TRY(E) if(! (E)) return NULL... | #include <Python.h>
/* Change this to the recommended
#include <Numeric/arrayobject.h>
once we no longer support python1.5 */
#include <arrayobject.h>
#include "plplot/plplot.h"
#include "plplot/plplotP.h"
#if defined(PL_DOUBLE) || defined(DOUBLE)
#define PL_ARGS(a, b) (a)
#define PyArray_PLFLT PyArray_DOUBLE
#els... | Comment the current arrayobject.h situation. Right now for Numpy packages that are consistent with python-1.5, this file could be a number of places relative to /usr/include/python$version so configure must look specifically for it. However, later Numpy packages consistent with python2.x always put it in a standard loc... | Comment the current arrayobject.h situation. Right now for Numpy packages
that are consistent with python-1.5, this file could be a number of places
relative to /usr/include/python$version so configure must look specifically
for it. However, later Numpy packages consistent with python2.x always put
it in a standard lo... | C | lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot |
a6d12c298014af99c12d1efe29eb19216ae4aef8 | src/native/test/KeilTest/Logger.c | src/native/test/KeilTest/Logger.c | #include "AceUnitLogging.h"
#ifdef ACEUNIT_LOG_RUNNER
/** @see TestLogger_t.runnerStarted */
void logRunnerStarted()
{
}
#endif
#ifdef ACEUNIT_LOG_SUITE
/** @see TestLogger_t.suiteStarted */
void logSuiteStarted()
{
}
#endif
#ifdef ACEUNIT_LOG_FIXTURE
/** @see TestLogger_t.fixtureStarted */
void logFixtureStarted(co... | #include "AceUnitLogging.h"
#ifdef ACEUNIT_LOG_RUNNER
/** @see TestLogger_t.runnerStarted */
void logRunnerStarted()
{
}
#endif
#ifdef ACEUNIT_LOG_RUNNER
/** @see TestLogger_t.runnerEnded */
void logRunnerEnded()
{
}
#endif
/** This Logger. */
AceUnitNewLogger(
loggerStub, /* CHANGE THIS NAME!!! */
logRunner... | Remove some compiler warnings for C251. | Remove some compiler warnings for C251.
| C | bsd-3-clause | christianhujer/aceunit,christianhujer/aceunit,christianhujer/aceunit |
b266bef9100ffb6915c1367ca761a6cc67bf1283 | tomviz/pybind11/PybindVTKTypeCaster.h | tomviz/pybind11/PybindVTKTypeCaster.h | #ifndef pybind_extension_vtk_source_VTKTypeCaster_h
#define pybind_extension_vtk_source_VTKTypeCaster_h
#include <pybind11/pybind11.h>
#include <type_traits>
#include "vtkObjectBase.h"
#include "vtkPythonUtil.h"
#define PYBIND11_VTK_TYPECASTER(VTK_OBJ) \
namespace pybind11 { ... | Add VTK type caster to convert VTK wrapped classes | Add VTK type caster to convert VTK wrapped classes
This type caster from SMTK manages converting VTK wrapped class into
the appropriate VTK class on the C++ side.
| C | bsd-3-clause | OpenChemistry/tomviz,mathturtle/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz,mathturtle/tomviz,mathturtle/tomviz | |
8aa16932e265e483217d9a5fabfb8a8c26cbed15 | src/internal/Hash.h | src/internal/Hash.h | #ifndef ARBITER_HASH_H
#define ARBITER_HASH_H
#ifndef __cplusplus
#error "This file must be compiled as C++."
#endif
#include <functional>
#include <type_traits>
namespace Arbiter {
template<typename T>
size_t hashOf (const T &value)
{
return std::hash<T>()(value);
}
}
#endif
| Add convenience function for hashing arbitrary types | Add convenience function for hashing arbitrary types
| C | mit | jspahrsummers/Arbiter,jspahrsummers/Arbiter,ArbiterLib/Arbiter,jspahrsummers/Arbiter,ArbiterLib/Arbiter,jspahrsummers/Arbiter,ArbiterLib/Arbiter,ArbiterLib/Arbiter | |
60f560824bf9fb6ec9148f5b36eae83827b5de42 | test2/code_gen/dead_code_elim.c | test2/code_gen/dead_code_elim.c | // RUN: %ocheck 3 %s
g()
{
return 3;
}
main()
{
if(0){
f(); // shouldn't hit a linker error here - dead code
a:
return g();
}
goto a;
}
| // RUN: %ocheck 3 %s -g
// test debug emission too
g()
{
return 3;
}
main()
{
if(0){
int i;
f(); // shouldn't hit a linker error here - dead code
a:
i = 2;
return g(i);
}
goto a;
}
| Test debug label emission with local variables | Test debug label emission with local variables
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
1c4ea5e3d584a3344182d41e286ecbb9967d841a | src/includes/TritonTypes.h | src/includes/TritonTypes.h | /*
** Copyright (C) - Triton
**
** This program is under the terms of the LGPLv3 License.
*/
#ifndef TRITONTYPES_H
#define TRITONTYPES_H
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/numeric/conversion/cast.hpp>
#define BIT_MAX 512
typedef unsigned char uint8;
typedef unsign... | /*
** Copyright (C) - Triton
**
** This program is under the terms of the LGPLv3 License.
*/
#ifndef TRITONTYPES_H
#define TRITONTYPES_H
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/numeric/conversion/cast.hpp>
#define BIT_MAX 512
typedef unsigned char uint8;
typedef unsi... | Use boost multiprecision even for 64b | Use boost multiprecision even for 64b
| C | apache-2.0 | JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton |
1b9e6ae6667c81d2687ff665925fa953b93135ae | pintool/boost_interprocess.h | pintool/boost_interprocess.h | /* Headers needed for multiprocess communication through boost interprocess.
* This needs to be included BEFORE anything referencing machine.h,
* or macro definitions from machine.h would mess template args.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnarrowing"
#pragma GCC diagnostic ignored "... | /* Headers needed for multiprocess communication through boost interprocess.
* This needs to be included BEFORE anything referencing machine.h,
* or macro definitions from machine.h would mess template args.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnarrowing"
#pragma GCC diagnostic ignored "... | Add ignore warning pragma for deprecated declarations. | Add ignore warning pragma for deprecated declarations.
| C | bsd-3-clause | s-kanev/XIOSim,s-kanev/XIOSim,s-kanev/XIOSim,s-kanev/XIOSim |
011cf09ddd3cf759de55ff1f95ef37a3f04c70c9 | test/CFrontend/bit-accurate-int.c | test/CFrontend/bit-accurate-int.c | // RUN: %llvmgcc -S %s -o - /dev/null
// XFAIL: *
#define ATTR_BITS(N) __attribute__((bitwidth(N)))
typedef int ATTR_BITS( 4) My04BitInt;
typedef int ATTR_BITS(16) My16BitInt;
typedef int ATTR_BITS(17) My17BitInt;
typedef int ATTR_BITS(37) My37BitInt;
typedef int ATTR_BITS(65) My65BitInt;
struct MyStruct {
My04Bi... | // RUN: %llvmgcc -S %s -o - /dev/null 2>&1 > /dev/null | \
// RUN: not grep warning
// XFAIL: *
#define ATTR_BITS(N) __attribute__((bitwidth(N)))
typedef int ATTR_BITS( 4) My04BitInt;
typedef int ATTR_BITS(16) My16BitInt;
typedef int ATTR_BITS(17) My17BitInt;
typedef int ATTR_BITS(37) My37BitInt;
typedef int ATTR_... | Make this test actually test what its supposed to test. | Make this test actually test what its supposed to test.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@33369 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,... |
465819d7c20d1f80d71e9b219dcd02e812bc7540 | 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 92
#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 93
#endif
| Update Skia milestone to 93 | Update Skia milestone to 93
Change-Id: Ib9a9832dbd63b6a306f5c955f4528b195c29c71f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/411278
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
| C | bsd-3-clause | aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_exter... |
530e6a93a7a953a460502a28a6733d889a245da0 | src/physics/state.h | src/physics/state.h | #ifndef ZOMBIE_STATE_H
#define ZOMBIE_STATE_H
#include "box2ddef.h"
namespace zombie {
struct State {
Position position_{0, 0};
Velocity velocity_{0, 0};
float angle_{0.f};
float anglularVelocity_{0.f};
};
}
#endif
| #ifndef ZOMBIE_STATE_H
#define ZOMBIE_STATE_H
#include "box2ddef.h"
namespace zombie {
struct State {
Position position_;
Velocity velocity_;
float angle_;
float anglularVelocity_;
};
}
#endif
| Make State struct a clean POD strcut | Make State struct a clean POD strcut
| C | mit | mwthinker/Zombie |
41a44d0765463bce34808c201e39ad2595f400b9 | Source/Version.h | Source/Version.h | #ifndef Version_h
#define Version_h
#define BFARCHIVE_COMMA_SEPARATED_VERSION 3,0,0,0
#define BFARCHIVE_VERSION_STRING "3.0.0"
#endif
| #ifndef Version_h
#define Version_h
#define BFARCHIVE_COMMA_SEPARATED_VERSION 9,1,0,0
#define BFARCHIVE_VERSION_STRING "9.1.0"
#endif
| Bump version to 9.1.0 to avoid confusion | Bump version to 9.1.0 to avoid confusion
| C | apache-2.0 | bigfix/bfarchive,bigfix/bfarchive,bigfix/bfarchive,bigfix/bfarchive,bigfix/bfarchive,bigfix/bfarchive,bigfix/bfarchive |
1416862d7c9382a58813f0609c4d4d1c858724c8 | include/llvm/ExecutionEngine/GenericValue.h | include/llvm/ExecutionEngine/GenericValue.h | //===-- GenericValue.h - Represent any type of LLVM value -------*- 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.
//
//===----------... | //===-- GenericValue.h - Represent any type of LLVM value -------*- 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.
//
//===----------... | Add APIntVal as a possible GenericeValue. | Add APIntVal as a possible GenericeValue.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@34879 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl... |
dc2eb3a8e3c7535fea57932e8c6c35771b8724aa | strings/gemstones.c | strings/gemstones.c | /*
Problem Statement
John has discovered various rocks. Each rock is composed of various elements, and each element is represented by a lower-case Latin letter from 'a' to 'z'. An element can be present multiple times in a rock. An element is called a gem-element if it occurs at least once in each of the rocks.
Given... | Add Gemstone which makes use of alphabet array and strchr | Add Gemstone which makes use of alphabet array and strchr
| C | mit | anaghajoshi/HackerRank | |
d48276b0554488cfc3ff58646dae7e5d71f6c32d | bst.h | bst.h | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
BST* BST_Create(void);
BSTNode* BSTNode_Create(void* k);
void BST_Inorder_Tree_Walk(BST* T, void (f)(void*));
void BST_Preorder_Tree_Walk(BST* T, void (f)(void*));
void BST_Postor... | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
BST* BST_Create(void);
BSTNode* BSTNode_Create(void* k);
void BST_Inorder_Tree_Walk(BST* T, void (f)(void*));
void BST_Preorder_Tree_Walk(BST* T, void (f)(void*));
void BST_Postor... | Add BST Tree Min/Max function declaration | Add BST Tree Min/Max function declaration
| C | mit | MaxLikelihood/CADT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.