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 |
|---|---|---|---|---|---|---|---|---|---|
e6bba5feec294deb762bba5b53f6b0440ff81cd7 | strsplit.h | strsplit.h |
#ifndef __STR_SPLIT_H__
#define __STR_SPLIT_H__ 1
#include <stdlib.h>
#include <string.h>
int
strsplit (char *str, char *parts[], char *delimiter) {
char *pch;
int i = 0;
pch = strtok(str, delimiter);
parts[i++] = strdup(pch);
while (pch) {
pch = strtok(NULL, delimiter);
if (NULL == pch) break;
... |
#ifndef __STR_SPLIT_H__
#define __STR_SPLIT_H__ 1
#include <stdlib.h>
#include <string.h>
int
strsplit (char *str, char *parts[], char *delimiter) {
char *pch;
int i = 0;
char *tmp = strdup(str);
pch = strtok(tmp, delimiter);
parts[i++] = strdup(pch);
while (pch) {
pch = strtok(NULL, delimiter);
... | Fix bad results when compiling with Apple’s LLVM 5 | Fix bad results when compiling with Apple’s LLVM 5
| C | mit | jwerle/strsplit.c |
ae49b56c52847aadda7be62071dcb33b5c22e6eb | Test/src/minunit.h | Test/src/minunit.h | /*
* minunit.h
*
* Source: http://www.jera.com/techinfo/jtns/jtn002.html
*/
#include <stdio.h>
extern int tests_run;
#define mu_assert(message, test) do { \
if (!(test)) { \
return message; \
} \
} while (0)
#define mu_run_test(test, name) do { \
test_head(name); \
char const * message = test(); \
tests_... | /*
* minunit.h
*
* Source: http://www.jera.com/techinfo/jtns/jtn002.html
*/
#include <stdio.h>
extern int tests_run;
#define mu_assert(message, test) do { \
if (!(test)) { \
return message; \
} \
} while (0)
#define mu_run_test(test, name) do { \
printf("Test %s... ", name); \
char const * message = test(... | Remove useless unit testing definitions. | Remove useless unit testing definitions.
| C | mit | AymericGenet/SPHINCS-arduinodue,AymericGenet/SPHINCS-arduinodue,AymericGenet/SPHINCS-arduinodue |
bd339f71c7a5a3e2b883f4306689c8bc39077895 | test/CodeGen/ext-vector-shuffle.c | test/CodeGen/ext-vector-shuffle.c | // RUN: clang-cc %s -emit-llvm -o - | not grep 'extractelement' &&
// RUN: clang-cc %s -emit-llvm -o - | not grep 'insertelement' &&
// RUN: clang-cc %s -emit-llvm -o - | grep 'shufflevector'
typedef __attribute__(( ext_vector_type(2) )) float float2;
typedef __attribute__(( ext_vector_type(4) )) float float4;
float2... | // RUN: clang-cc %s -x cl -emit-llvm -o - | not grep 'extractelement' &&
// RUN: clang-cc %s -x cl -emit-llvm -o - | not grep 'insertelement' &&
// RUN: clang-cc %s -x cl -emit-llvm -o - | grep 'shufflevector'
typedef __attribute__(( ext_vector_type(2) )) float float2;
typedef __attribute__(( ext_vector_type(4) )) flo... | Add test for OpenCL vector initializer codegen | Add test for OpenCL vector initializer codegen
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@84445 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
93121c92ab02651020f862d5ccc94d63bc3dda00 | src/zopfli/hash.c | src/zopfli/hash.c | /*
Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | /*
Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | Remove a temporary fn that never got used | Remove a temporary fn that never got used
| C | apache-2.0 | carols10cents/zopfli,carols10cents/zopfli |
e1399dfc55b246db94616bb0052c565a45300710 | tests/escape/proper-escapes/local-phi-to-global-field.c | tests/escape/proper-escapes/local-phi-to-global-field.c | struct S {
int *x;
int *y;
};
struct S s;
void addrOfEscape2(int * i1, int * i2, int x) {
int * p = i2;
if(x > 10)
p = i1;
s.y = p;
}
| struct S {
int *x;
int *y;
};
struct S *s;
void addrOfEscape2(int * i1, int * i2, int x) {
int * p = i2;
if(x > 10)
p = i1;
s->y = p;
}
| Modify a test to avoid constant GEPs | Modify a test to avoid constant GEPs
| C | bsd-3-clause | travitch/foreign-inference,travitch/foreign-inference |
eb66fff7d94199f80378bc0b51a06e62ce379b53 | drivers/scsi/lpfc/lpfc_version.h | drivers/scsi/lpfc/lpfc_version.h | /*******************************************************************
* This file is part of the Emulex Linux Device Driver for *
* Fibre Channel Host Bus Adapters. *
* Copyright (C) 2004-2005 Emulex. All rights reserved. *
* EMULEX and SLI are trademarks of Emulex. ... | /*******************************************************************
* This file is part of the Emulex Linux Device Driver for *
* Fibre Channel Host Bus Adapters. *
* Copyright (C) 2004-2005 Emulex. All rights reserved. *
* EMULEX and SLI are trademarks of Emulex. ... | Change version number to 8.1.0 | [SCSI] lpfc: Change version number to 8.1.0
Signed-off-by: James Smart <662b34f26b29c45c7ee4f84b6fca46f06a668477@emulex.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@SteelEye.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
54f611f3c5f8c89b8556fe347525a1dfea222095 | src/modules/conf_randr/e_smart_monitor.h | src/modules/conf_randr/e_smart_monitor.h | #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch);
void e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Ra... | #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch);
Ecore_X_Randr_Crtc e_smart_monitor_crtc_get(Evas_Object *obj... | Add function prototype for monitor clone set. | Add function prototype for monitor clone set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84208
| C | bsd-2-clause | tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,rvandegrift/e,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment |
eb0fa7bf4c9d8d24ee597e8777fee446ac55c35b | numba/npyufunc/gufunc_scheduler.h | numba/npyufunc/gufunc_scheduler.h | #ifndef GUFUNC_SCHEDULER
#define GUFUNC_SCHEDULER
#include <stdint.h>
#ifndef __SIZEOF_POINTER__
/* MSVC doesn't define __SIZEOF_POINTER__ */
#if defined(_WIN64)
#define intp int64_t
#define uintp uint64_t
#elif defined(_WIN32)
#define intp int
#define uintp unsigned
... | #ifndef GUFUNC_SCHEDULER
#define GUFUNC_SCHEDULER
/* define int64_t and uint64_t for VC9 */
#ifdef _MSC_VER
#define int64_t signed __int64
#define uint64_t unsigned __int64
#else
#include <stdint.h>
#endif
#ifndef __SIZEOF_POINTER__
/* MSVC doesn't define __SIZEOF_POINTER__ */
#if defined(_WIN64)
... | Fix missing stdint.h on py2.7 vc9 | Fix missing stdint.h on py2.7 vc9
| C | bsd-2-clause | stonebig/numba,numba/numba,cpcloud/numba,cpcloud/numba,stuartarchibald/numba,gmarkall/numba,seibert/numba,sklam/numba,seibert/numba,sklam/numba,stuartarchibald/numba,jriehl/numba,seibert/numba,jriehl/numba,gmarkall/numba,sklam/numba,IntelLabs/numba,stuartarchibald/numba,stonebig/numba,numba/numba,numba/numba,gmarkall/n... |
9f07c8bcc8f4596d39b31f3515b54c5405f663da | JavaScriptCore/wtf/unicode/Unicode.h | JavaScriptCore/wtf/unicode/Unicode.h | // -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 2006 George Staikos <staikos@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation... | // -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 2006 George Staikos <staikos@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation... | Fix mac bustage (more still). | Fix mac bustage (more still).
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@18103 bbb929c8-8fbe-4397-9dbb-9b2b20218538 | C | bsd-3-clause | Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,nwjs/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/... |
4acd77d97344c93a8fc59567f19ef2b213203bea | test_gcrypt_ecc.c | test_gcrypt_ecc.c |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <gcrypt.h>
#include <glib.h>
#define DEFAULT_DATA "This message will be signed\n"
#define DEFAULT_SIG "$HPI?t(I*1vAYsl$|%21WXND=6Br*[>k(OR9B!GOwHqL0s+3Uq"
void __init()
{
gcry_error_t err;
err = gcry_control(GCRYCTL_INIT_SECMEM, 1);
if (gcry_e... | Add a libgcrypt-ecc test strut | Add a libgcrypt-ecc test strut
| C | lgpl-2.1 | rtyler/PyECC,slideinc/PyECC,rtyler/PyECC,slideinc/PyECC | |
b9ecedf51225867a3060d4de155186855c7de6b7 | kernel/x86/apic_timer.c | kernel/x86/apic_timer.c | #include <kernel/x86/apic.h>
#include <kernel/port/mmio.h>
void apic_timer_init(uint8_t int_no, uint8_t divisor, uint8_t mode) {
/** set the divisor: **/
uint32_t reg = get32(DIVIDE_CONF);
reg &= ~0xf;
/* The representation of the divisor in the divide configuration
* register is... weird. We're normalizing it... | #include <kernel/x86/apic.h>
#include <kernel/port/mmio.h>
void apic_timer_init(uint8_t int_no, uint8_t divisor, uint8_t mode) {
/** set the divisor: **/
uint32_t reg = get32(DIVIDE_CONF);
reg &= ~0xf;
/* The representation of the divisor in the divide configuration
* register is... weird. We're normalizing it... | Clear existing divisor before setting it. | timer: Clear existing divisor before setting it.
This is just a case of being slightly more diligent; there is not
currently observed behavior change.
| C | isc | zenhack/zero,zenhack/zero,zenhack/zero |
df7f12046222ae1b263d9148d493182617edc611 | numeric.h | numeric.h | #ifndef H_NUMERIC
#define H_NUMERIC
#include <cmath>
#include <limits>
template<class T>
typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type
almost_equal(T x, T y, int ulp=2)
{
// the machine epsilon has to be scaled to the magnitude of the values used
// and multiplied by the desired... | #ifndef H_NUMERIC
#define H_NUMERIC
#include <cmath>
#include <limits>
/**
* @brief use of machine epsilon to compare floating-point values for equality
* http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon
*/
template<class T>
typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type
... | Add reference for almost_equal function | Add reference for almost_equal function
| C | mit | Bl4ckb0ne/delaunay-triangulation |
c6eadf70db6113900a61674fd7195a9977f428a5 | RealmSwift/Tests/TestUtils.h | RealmSwift/Tests/TestUtils.h | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | Annotate RLMAssertThrows' block argument with noescape | [Tests] Annotate RLMAssertThrows' block argument with noescape
| C | apache-2.0 | duk42111/realm-cocoa,ul7290/realm-cocoa,codyDu/realm-cocoa,kylebshr/realm-cocoa,AlexanderMazaletskiy/realm-cocoa,bugix/realm-cocoa,bestwpw/realm-cocoa,yuuki1224/realm-cocoa,nathankot/realm-cocoa,xmartlabs/realm-cocoa,lumoslabs/realm-cocoa,codyDu/realm-cocoa,lumoslabs/realm-cocoa,imjerrybao/realm-cocoa,lumoslabs/realm-c... |
9cd2e510651ddb2d7fb927ad1ac1234488487e3e | chrome/browser/thumbnail_store.h | chrome/browser/thumbnail_store.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_THUMBNAIL_STORE_H_
#define CHROME_BROWSER_THUMBNAIL_STORE_H_
#include <vector>
#include "base/file_path.h"
class GURL;
class... | Add an unused interface for storing thumbnails. This is to replace the history system's thumbnail storage. | Add an unused interface for storing thumbnails. This is to replace the history
system's thumbnail storage.
git-svn-id: http://src.chromium.org/svn/trunk/src@17028 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 7a580059421cef931317be498a7334eee5d6f2d2 | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... | |
c0ae1b727985d3e94549776666a9f0929cbac090 | include/erpiko/bigint.h | include/erpiko/bigint.h | #ifndef _BIGINT_H_
#define _BIGINT_H_
#include <memory>
namespace Erpiko {
/**
* BigInt is the class of big integer representation.
*/
class BigInt {
public:
/**
* Constructor
*/
BigInt();
/**
* Constructor from long integer
* @param value to be initialized
*/
BigI... | #ifndef _BIGINT_H_
#define _BIGINT_H_
#include <string>
#include <memory>
namespace Erpiko {
/**
* BigInt is the class of big integer representation.
*/
class BigInt {
public:
/**
* Constructor
*/
BigInt();
/**
* Constructor from long integer
* @param value to be initialize... | Add <string> explicitly for Windows complaining without it | Add <string> explicitly for Windows complaining without it
| C | bsd-3-clause | mdamt/erpiko,mdamt/erpiko,mdamt/erpiko |
469d2ae14fdeeb192a0f152978f433cd2bed840e | core/alsp_src/win32/win32_locate.c | core/alsp_src/win32/win32_locate.c | #include "defs.h"
void locate_library_executable(int argc, char *argv[])
{
DWORD l;
char *endpath;
#ifdef DLL
HANDLE dll;
#endif
l = GetModuleFileName(NULL, executable_path, IMAGEDIR_MAX);
if (l == 0 || l >= IMAGEDIR_MAX) fatal_error(FE_INFND, 0);
#ifdef DLL
dll = GetModuleHandle(DLL_NAME);
... | #include "defs.h"
void locate_library_executable(int argc, char *argv[])
{
DWORD l;
char *endpath;
#ifdef DLL
HANDLE dll;
#endif
l = GetModuleFileName(NULL, executable_path, PATH_MAX);
if (l == 0 || l >= PATH_MAX) fatal_error(FE_INFND, 0);
#ifdef DLL
dll = GetModuleHandle(DLL_NAME);
if (... | Replace custom IMAGEDIR_MAX with PATH_MAX, ala 13616d1 | Replace custom IMAGEDIR_MAX with PATH_MAX, ala 13616d1
| C | mit | AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog |
c6f56c9c3b29fd74859f237e7357322f4ac9574e | ghighlighter/gh-about-dialog.c | ghighlighter/gh-about-dialog.c | #include <gtk/gtk.h>
GtkWidget *
gh_about_dialog_create ()
{
GtkWidget *dialog;
dialog = gtk_about_dialog_new ();
static gchar const *title = "About ghighlighter";
gtk_window_set_title (GTK_WINDOW (dialog), title);
return dialog;
}
| #include <gtk/gtk.h>
GtkWidget *
gh_about_dialog_create ()
{
GtkWidget *dialog;
dialog = gtk_about_dialog_new ();
static gchar const *title = "About ghighlighter";
static gchar const *program_name = "ghighlighter";
gtk_window_set_title (GTK_WINDOW (dialog), title);
gtk_about_dialog_set_program_name (GTK... | Set about dialog program name | Set about dialog program name
| C | mit | chdorner/ghighlighter-c |
bb4c88c29ab312e2be118ac857daa7c93399d6e1 | src/include/postmaster/fork_process.h | src/include/postmaster/fork_process.h | #ifndef FORK_PROCESS_H
#define FORK_PROCESS_H
#include "postgres.h"
extern pid_t fork_process(void);
#endif /* ! FORK_PROCESS_H */
| /*-------------------------------------------------------------------------
*
* fork_process.h
* Exports from postmaster/fork_process.c.
*
* Copyright (c) 1996-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/include/postmaster/fork_process.h,v 1.2 2005/03/13 23:32:26 tgl Exp $
*
*-------... | Add missing identification comment, remove entirely inappropriate include of postgres.h. | Add missing identification comment, remove entirely inappropriate include
of postgres.h.
| C | apache-2.0 | 50wu/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,adam8157/gpdb,rubikloud/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,xinzweb/gpdb,edespino/gpdb,oberstet/postgres-xl,ahachete/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,rubikloud/gpdb,jmcatamney/gpdb,ahachete/gpdb,oberstet/postgres-xl,ovr/postgr... |
78ed645bc65bfcbf88c84c19efc0c38d2c5c1360 | bibdesk/BDSKOAIGroupServer.h | bibdesk/BDSKOAIGroupServer.h | //
// BDSKOAIGroupServer.h
// Bibdesk
//
// Created by Christiaan Hofman on 1/1/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "BDSKSearchGroup.h"
@class BDSKServerInfo;
@interface BDSKOAIGroupServer : NSObject <BDSKSearchGroupServer>
{
BDSKSearchGroup *group... | Add new header file. (or: xcode is stupid) | Add new header file. (or: xcode is stupid)
| C | bsd-3-clause | JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim | |
2a3828f1e477561e574fb9ee4525641832e3dcd9 | make/src/config.c | make/src/config.c | #include <stdlib.h>
#include <string.h>
#include "config.h"
struct Config load_config(char *arquivo) {
}
struct Idioma load_idioma(char *idioma){
char *local_idioma;
int loaded;
strcpy(local_idioma, "local aqui");
strcat(local_idioma, idioma);
strcat(local_idioma, ".conf");
loaded = 1;
while(loaded) ... | #include <stdlib.h>
#include <string.h>
#include "config.h"
struct Config load_config(char *arquivo) {
}
void load_idioma(struct Idioma *idioma, char *key, char *content){
}
void clean_idioma(struct Idioma *idioma) {
free(idioma);
}
| Change functions to handle idioma | Change functions to handle idioma
| C | apache-2.0 | ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game |
a4dca78e05e29151fb8d20573f4387d750c10bc3 | Paystack/PublicHeaders/PSTCKTransactionParams.h | Paystack/PublicHeaders/PSTCKTransactionParams.h | //
// PSTCKTransactionParams.h
// Paystack
//
#import <Foundation/Foundation.h>
#import "PSTCKFormEncodable.h"
/**
* Representation of a user's credit card details. You can assemble these with information that your user enters and
* then create Paystack tokens with them using an PSTCKAPIClient. @see https://pays... | //
// PSTCKTransactionParams.h
// Paystack
//
#import <Foundation/Foundation.h>
#import "PSTCKFormEncodable.h"
/**
* Representation of a user's credit card details. You can assemble these with information that your user enters and
* then create Paystack tokens with them using an PSTCKAPIClient. @see https://pays... | Make UInt safe on Transaction Params by not using pointer | Make UInt safe on Transaction Params by not using pointer
| C | mit | PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios |
28621d2412f8a353d7a01d007a7811542d60ac0a | src/imap/cmd-close.c | src/imap/cmd-close.c | /* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "commands.h"
#include "imap-expunge.h"
bool cmd_close(struct client_command_context *cmd)
{
struct client *client = cmd->client;
struct mailbox *mailbox = client->mailbox;
struct mail_storage *storage;
if (!... | /* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "commands.h"
#include "imap-expunge.h"
bool cmd_close(struct client_command_context *cmd)
{
struct client *client = cmd->client;
struct mailbox *mailbox = client->mailbox;
struct mail_storage *storage;
if (!... | Synchronize the mailbox after expunging messages to actually get them expunged. | CLOSE: Synchronize the mailbox after expunging messages to actually get them
expunged.
| C | mit | Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot |
f3b8d84988cdb8fcafe5063870a532dde78e4c31 | attempter.c | attempter.c | #include "emu.h"
static void
andflags_sr(unsigned res, uint16_t *sr)
{
*sr &= ~(SR_V | 0xfe00);
if (res & 0x8000)
*sr |= SR_N;
else
*sr &= ~SR_N;
if (res == 0) {
*sr |= SR_Z;
*sr &= ~SR_C;
} else {
*sr &= ~SR_Z;
*sr |= SR_C;
}
}
static void
addflags_sr(unsigned res, unsigned bw, uint16_t *sr)
{
u... | Add basic depth-first bruter w/ traced C | Add basic depth-first bruter w/ traced C
| C | mit | nedwill/msp430-emu-uctf,cemeyer/avr-emu,cemeyer/msp430-emu-uctf,piratejon/msp430-emu-uctf,piratejon/msp430-emu-uctf | |
219d412d13700e86571971075128cd65c2ccd24f | 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 87
#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 88
#endif
| Update Skia milestone to 88 | Update Skia milestone to 88
Change-Id: I8d01f643e1cb7327713959ea744de3ae8c82bb6e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321520
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_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,google/skia,google/skia,aosp-mirror/pla... |
f1c31c00a26f31c337ab37c37ea529567986bfa2 | include/gum/GlyphStyleID.h | include/gum/GlyphStyleID.h | #ifndef _GUM_GLYPH_STYLE_ID_H_
#define _GUM_GLYPH_STYLE_ID_H_
#include "gum/GlyphStyle.h"
#include <cu/cu_macro.h>
#include <cu/cu_stl.h>
namespace gum
{
class GlyphStyle;
class GlyphStyleID
{
public:
int Gen(const GlyphStyle& style);
private:
static int Hash(const GlyphStyle& style);
private:
static const in... | #ifndef _GUM_GLYPH_STYLE_ID_H_
#define _GUM_GLYPH_STYLE_ID_H_
#include "gum/GlyphStyle.h"
#include <cu/cu_macro.h>
#include <cu/cu_stl.h>
namespace gum
{
class GlyphStyle;
class GlyphStyleID
{
public:
int Gen(const GlyphStyle& style);
private:
static int Hash(const GlyphStyle& style);
private:
static const in... | Revert "[FIXED] not use allocator, for async draw" | Revert "[FIXED] not use allocator, for async draw"
This reverts commit 3cce0321da141d1fb8689d826fd5f5235066c977.
| C | mit | xzrunner/gum,xzrunner/gum |
89a8e62c03aa2cfe044c9023ec3bbaefb835a7df | test/profile/Posix/instrprof-get-filename-merge-mode.c | test/profile/Posix/instrprof-get-filename-merge-mode.c | // Test __llvm_profile_get_filename when the on-line merging mode is enabled.
//
// RUN: %clang_pgogen -dynamiclib -o %t.dso %p/Inputs/instrprof-get-filename-dso.c
// RUN: %clang_pgogen -o %t %s %t.dso
// RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t
#include <string.h>
const char *__llvm_profile_get_filename(vo... | // Test __llvm_profile_get_filename when the on-line merging mode is enabled.
//
// RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c
// RUN: %clang_pgogen -o %t %s %t.dso
// RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t
#include <string.h>
const char *__llvm_profile_get_filena... | Use -fPIC -shared in a test instead of -dynamiclib | [profile] Use -fPIC -shared in a test instead of -dynamiclib
This is more portable than -dynamiclib. Also, fix the path to an input
file that broke when the test was moved in r375315.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@375317 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
e539d64784ae5837ca6b7f424e1c6ce3540feceb | runtime/test/tasking/bug_36720.c | runtime/test/tasking/bug_36720.c | // RUN: %libomp-compile-and-run
/*
Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36720
Assertion failure at kmp_runtime.cpp(1715): nthreads > 0.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(1715).
The assertion fails even with OMP_NUM_THREADS=1. If the second task is removed,
everything runs to completion.... | // RUN: %libomp-compile-and-run
/*
Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36720
Assertion failure at kmp_runtime.cpp(1715): nthreads > 0.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(1715).
The assertion fails even with OMP_NUM_THREADS=1. If the second task is removed,
everything runs to completion.... | Convert test for PR36720 to c89 | [test] Convert test for PR36720 to c89
GCC 4.8.5 defaults to this old C standard. I think we should make the
tests pass a newer -std=c99|c11 but that's too intrusive for now...
Differential Revision: https://reviews.llvm.org/D50084
git-svn-id: f99161ee8ccfe2101cbe1bdda2220bce2ed25485@338490 91177308-0d34-0410-b5e6-9... | C | apache-2.0 | llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp |
01fd8208ef8d9e3a5c61c1503e2bcb0dd5067f25 | string-permutation-check/string-permutation-check/main.c | string-permutation-check/string-permutation-check/main.c | //
// main.c
// Check if two strings are permutations by checking if they have identical character counts.
//
// Created by Jack Zuban on 8/20/17.
// Copyright © 2017 Jack Zuban. All rights reserved.
//
#include <stdio.h>
#include <stdbool.h>
bool areStringsHaveSameLength(char *str1, char *str2)
{
while (*str... | Check if two strings are permutations by checking their character counts | Check if two strings are permutations by checking their character counts
| C | mit | jack-zuban/c-practice | |
3b879e32d7063b4b83867fac9a8c38f042a0fc2b | arch/x86_64/rsp/vmov.c | arch/x86_64/rsp/vmov.c | //
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, rsp_vect_t vt_shuffle) {... | //
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, rsp_vect_t vt_shuffle) {... | Remove debug information from VMOV code | Remove debug information from VMOV code
| C | bsd-3-clause | tj90241/cen64,tj90241/cen64 |
9824060b9c83743ddf280113bc454ee482019ad0 | sys/sys/refcount.h | sys/sys/refcount.h | /*-
* Copyright (c) 2005 John Baldwin <jhb@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, t... | Add a simple reference count API that is simply a thin wrapper API around atomic operations on ints. | Add a simple reference count API that is simply a thin wrapper API around
atomic operations on ints.
Reviewed by: arch@
MFC after: 1 week
| 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 | |
8fa7230f1fee1f68f7ae6ed03cdc72c63a8c97b2 | modules/acpi/acpi_module.c | modules/acpi/acpi_module.c | /* SPDX-License-Identifier: BSD-2-Clause */
#include <tilck/common/basic_defs.h>
#include <tilck/common/printk.h>
#include <tilck/kernel/sched.h>
#include "osl.h"
#include <3rd_party/acpi/acpi.h>
#include <3rd_party/acpi/acexcep.h>
static ACPI_TABLE_DESC acpi_tables[16];
void
early_init_acpi_module(void)
{
ACPI... | /* SPDX-License-Identifier: BSD-2-Clause */
#include <tilck/common/basic_defs.h>
#include <tilck/common/printk.h>
#include <tilck/kernel/sched.h>
#include "osl.h"
#include <3rd_party/acpi/acpi.h>
#include <3rd_party/acpi/acexcep.h>
void
early_init_acpi_module(void)
{
ACPI_STATUS rc;
rc = AcpiInitializeSubsys... | Make AcpiInitializeTables to dynamically alloc tables | [acpi] Make AcpiInitializeTables to dynamically alloc tables
| C | bsd-2-clause | vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs |
32df46c68c5f8756b4383b1228d17df6538ae671 | quic/common/test/TestClientUtils.h | quic/common/test/TestClientUtils.h | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <fizz/protocol/CertificateVerifier.h>
namespace quic::test {
class TestCertificateVerifier : public fizz... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <fizz/protocol/CertificateVerifier.h>
namespace quic::test {
class TestCertificateVerifier : public fizz... | Replace fizz server cert with leaf cert returned from verification | Replace fizz server cert with leaf cert returned from verification
Summary: Added code to return the leaf cert after successfully verification of the server cert. The returned cert is then used for replacing the server cert.
Reviewed By: AjanthanAsogamoorthy
Differential Revision: D35898220
fbshipit-source-id: 8f54... | C | mit | facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst |
b4c1779d143c3555a61ab588589c68549117fea6 | subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/util/src/util/headers/util.h | subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/util/src/util/headers/util.h | #ifdef _WIN32
#define LIB_FUNC __declspec(dllimport)
#else
#define LIB_FUNC
#endif
void LIB_FUNC printBuildType();
| #ifdef _WIN32
#define LIB_FUNC __declspec(dllexport)
#else
#define LIB_FUNC
#endif
void LIB_FUNC printBuildType();
| Use correct syntax for windows DLL export | Use correct syntax for windows DLL export
| C | apache-2.0 | blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle... |
191574d42fc281cde241ae33013c9801336e8758 | net/spdy/spdy_http_utils.h | net/spdy/spdy_http_utils.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_SPDY_SPDY_HTTP_UTILS_H_
#define NET_SPDY_SPDY_HTTP_UTILS_H_
#pragma once
#include "net/spdy/spdy_framer.h"
namespace net {
class HttpRe... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_SPDY_SPDY_HTTP_UTILS_H_
#define NET_SPDY_SPDY_HTTP_UTILS_H_
#pragma once
#include "net/spdy/spdy_framer.h"
namespace net {
class HttpRe... | Change forward declaration of HttpRequestInfo from class to struct to fix build breakage. | Change forward declaration of HttpRequestInfo from class to struct to
fix build breakage.
BUG=none
TEST=none
git-svn-id: http://src.chromium.org/svn/trunk/src@59584 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: cb97ca6c3e6d589f6d40ad33fdc8afb7a19c6999 | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
9852e15f303363de9b323a4f60adbab92daabdd8 | tests/regression/36-apron/99-mine14-strengthening.c | tests/regression/36-apron/99-mine14-strengthening.c | // SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.activated[-] threadJoins --enable ana.apron.threshold_widening --set ana.apron.privatization protection --enable ana.apron.strengthening
// Fig 5a from Miné 2014
// Example for join strengthening
#include <pthread.h>
#include <stdio... | Add example that needs Apron heterogeneous join strengthening | Add example that needs Apron heterogeneous join strengthening
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
c2cf47ebbd82bf050d338c73f2d9bcd2de3976d2 | main.c | main.c | #include <stdio.h>
#include <string.h>
// Declare functions
void get_input();
// Global variables
char text_input[32];
int running = 1;
// Main Section
int main() {
while (running == 1) {
if (strcmp(text_input, "q") == 0) {
running = 0;
printf("Goodbye!\n");
}
else {
get_input();
... | #include <stdio.h>
#include <string.h>
// Declare functions
void get_input();
int is_valid_number();
// Global variables
char text_input[32];
int running = 1;
// Main Section
int main() {
while (running == 1) {
if (strcmp(text_input, "q") == 0) {
running = 0;
printf("Goodbye!\n");
}
else {... | Create function to check if text_input is a valid number | Create function to check if text_input is a valid number
| C | mit | julian-labuschagne/number_game |
c2e36b8f4bcbd3a8bec4d5d4bfc6d5a5a669b5c6 | src/utils.h | src/utils.h | /**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include <stdbool.h>
#ifdef _WIN32
#include <windows.h>
#inclu... | /**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include <stdbool.h>
#ifdef _WIN32
#include <windows.h>
#inclu... | Include io.h for mingw builds | Include io.h for mingw builds
| C | lgpl-2.1 | braydonf/libstorj,braydonf/libstorj-c,Storj/libstorj-c,braydonf/libstorj-c,Storj/libstorj-c,aleitner/libstorj-c,aleitner/libstorj-c,braydonf/libstorj |
8c47da315e5e6f11bb43c8fa66a2a66fbdaf7b9d | percolation/main.c | percolation/main.c | /* headers */
#include <stdlib.h>
#include <time.h>
#include "lattice.h"
#include "clusters.h"
#include "io_helpers.h"
/* main body function */
int main(int argc, char ** argv)
{
int L; /* square lattice size */
double p; /* occupation probability of each lattice site */
int *lattice; /* lattice array */
... | /* headers */
#include <stdlib.h>
#include <time.h>
#include "lattice.h"
#include "clusters.h"
#include "io_helpers.h"
/* main body function */
int main(int argc, char ** argv)
{
int L; /* square lattice size */
double p; /* occupation probability of each lattice site */
int *lattice; /* lattice array */
... | Allow passing RNG seed as program argument | [percolation] Allow passing RNG seed as program argument
| C | mit | cerisola/fiscomp,cerisola/fiscomp,cerisola/fiscomp |
ffe8c67712cb6a7286de055ecf7ecf90c0984831 | ch1/e01-01_hello.c | ch1/e01-01_hello.c | /*
* Hello World Program
* 2013-05-27
*/
#include <stdio.h>
int
main()
{
printf("Hello, World!\g");
return 0;
}
| /*
* Hello World Program
* 2013-05-27
*/
#include <stdio.h>
int
main()
{
printf("Hello, World!\n");
return 0;
}
| Add the BSD make build machinery | Add the BSD make build machinery
| C | isc | chettrick/tcpl |
f83df7374019f922bd30cb751b1206c5f934f7d1 | include/config/SkUserConfigManual.h | include/config/SkUserConfigManual.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | Add flag to stage api change | Add flag to stage api change
Test: make
Bug: 178700363
Change-Id: I8b22d1436260eafca1819e3210b4bea559be7142
| C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-... |
259c5e15797f2de45550a037ecc64975a86c4fd9 | sys/sun4v/include/clock.h | sys/sun4v/include/clock.h | /*-
* Copyright (c) 2001 Jake Burkholder.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | /*-
* Copyright (c) 2001 Jake Burkholder.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | Remove two variables which are handled MI now. | Remove two variables which are handled MI now.
| 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 |
ad8eee60c7ece602d54a98a904d04455a63e979b | cli/main.c | cli/main.c | #include <stdio.h>
#include "ot.h"
#include "otdecode.h"
int main(int argc, const char * argv[])
{
char buf[1024];
fputs("Operation 1: ", stdout);
fgets(buf, 1024, stdin);
char p[64];
ot_op* op = ot_new_op(0, p);
ot_decode_err err = ot_decode(op, buf);
if (err != OT_ERR_NONE) {
... | #include <stdio.h>
#include "ot.h"
#include "compose.h"
#include "otdecode.h"
int main(int argc, const char * argv[])
{
char buf[1024];
fputs("Operation 1: ", stdout);
fgets(buf, 1024, stdin);
char p[64];
ot_op* op = ot_new_op(0, p);
ot_decode_err err = ot_decode(op, buf);
if (err != O... | Add compose header to CLI | Add compose header to CLI
| C | apache-2.0 | polyphony-ot/libot |
d31bc5e3c46005c363c656c31436a29ddd975c7f | test/srcs/11-omp-for.c | test/srcs/11-omp-for.c | #include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
double sinTable[256];
#pragma omp parallel for
for(int n=0; n<256; ++n)
sinTable[n] = sin(2 * M_PI * n / 256);
// the table is now initialized
}
// RUN: clang -fopenmp -c -g -emit-llvm %s -o %t.1.bc
// RUN: o... | #include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
double sinTable[256];
#pragma omp parallel for
for(int n=0; n<256; ++n)
sinTable[n] = sin(2 * M_PI * n / 256);
// the table is now initialized
}
// RUN: clang -fopenmp -c -g -emit-llvm %s -o %t.1.bc
// RUN: o... | Fix test case 11 to set the number of omp threads and make it portable | Fix test case 11 to set the number of omp threads and make it portable
| C | mit | sfu-arch/llvm-epp,sfu-arch/llvm-epp,sfu-arch/llvm-epp |
99f7c07130859fd5ee7b0343e9dedcde48ca9f02 | extension/kill.c | extension/kill.c | /* A simple Lua module to suspend this process. */
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <lua.h>
#include <lauxlib.h>
int l_kill(lua_State *L)
{
/* Send ourselves the terminal stop signal, equivalent to normally
* pressing ^Z. */
kill(0, SIGTSTP);
return 0;
}
/* The... | /* A simple Lua module to suspend this process. */
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <lua.h>
#include <lauxlib.h>
int l_kill(lua_State *L)
{
/* Send ourselves the terminal stop signal, equivalent to normally
* pressing ^Z. */
kill(0, SIGTSTP);
/* We may have ... | Handle the terminal resizing while suspended, by sending ourselves a SIGWINCH after restoring. | Handle the terminal resizing while suspended, by sending ourselves a
SIGWINCH after restoring.
| C | mit | erig0/textadept-vi,jugglerchris/textadept-vi,jugglerchris/textadept-vi |
fdbf1d2a3ebd2245348063db4f8eed3afb41b508 | mudlib/mud/home/Text/sys/verb/ooc/wiz/system/onuke.c | mudlib/mud/home/Text/sys/verb/ooc/wiz/system/onuke.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2013 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add command to nuke all objects owned by a specific owner | Add command to nuke all objects owned by a specific owner
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
ec699639ae10c455eb224826e9e46610b8b571f7 | test/wasm/stdio/fseek.c | test/wasm/stdio/fseek.c | #include <sys/stat.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
static long posix(const char path[static 1])
{
struct stat metadata;
assert(!stat(path, &metadata));
return metadata.st_size;
}
static long standard(const char path[static 1])
{
FILE* stream = fopen(path, "rb");
fse... | Test standard C interface for ll?seek | Test standard C interface for ll?seek
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic | |
e2ee2dab59a8367c3a94f0d7ed74d29e5236b16c | include/stdlib.h | include/stdlib.h | /*
* Copyright (C) 2014, Galois, Inc.
* This sotware is distributed under a standard, three-clause BSD license.
* Please see the file LICENSE, distributed with this software, for specific
* terms and conditions.
*/
#ifndef MINLIBC_STDLIB_H
#define MINLIBC_STDLIB_H
#define NULL 0
#define EXIT_SUCCESS ... | /*
* Copyright (C) 2014, Galois, Inc.
* This sotware is distributed under a standard, three-clause BSD license.
* Please see the file LICENSE, distributed with this software, for specific
* terms and conditions.
*/
#ifndef MINLIBC_STDLIB_H
#define MINLIBC_STDLIB_H
#define NULL 0
#define EXIT_SUCCESS ... | Add a prototype for abs(). | Add a prototype for abs().
| C | bsd-3-clause | GaloisInc/minlibc,GaloisInc/minlibc |
ff603e2fa35e8e1ee2744e5ed5817845fdcca666 | server/types/JoinableImpl.h | server/types/JoinableImpl.h | #ifndef JOINABLE_IMPL
#define JOINABLE_IMPL
#include "joinable_types.h"
#include "types/MediaObjectImpl.h"
using ::com::kurento::kms::api::Joinable;
using ::com::kurento::kms::api::Direction;
namespace com { namespace kurento { namespace kms {
class JoinableImpl : public virtual Joinable, public virtual MediaObject... | #ifndef JOINABLE_IMPL
#define JOINABLE_IMPL
#include "joinable_types.h"
#include "types/MediaObjectImpl.h"
using ::com::kurento::kms::api::Joinable;
using ::com::kurento::kms::api::Direction;
using ::com::kurento::kms::api::StreamType;
namespace com { namespace kurento { namespace kms {
class JoinableImpl : public ... | Add methods to joinable to handle streams | Add methods to joinable to handle streams
| C | lgpl-2.1 | shelsonjava/kurento-media-server,mparis/kurento-media-server,Kurento/kurento-media-server,Kurento/kurento-media-server,lulufei/kurento-media-server,lulufei/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-media-server,todotobe1/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-m... |
82941052dcbfa55dc20a02e0bb329e693d546477 | proctor/include/pcl/proctor/proposer.h | proctor/include/pcl/proctor/proposer.h | #ifndef PROPOSER_H
#define PROPOSER_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <map>
#include "proctor/detector.h"
#include "proctor/database_entry.h"
namespace pcl
{
namespace proctor
{
struct Candidate {
std::string id;
float votes;
};
class Proposer {
public:
... | #ifndef PROPOSER_H
#define PROPOSER_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <map>
#include "proctor/detector.h"
#include "proctor/database_entry.h"
namespace pcl
{
namespace proctor
{
struct Candidate {
std::string id;
double votes;
};
class Proposer {
public:... | Change votes to use double. | Change votes to use double.
git-svn-id: 5398946ba177a3e438c2dae55e2cdfc2fb96c905@4320 a9d63959-f2ad-4865-b262-bf0e56cfafb6
| C | bsd-3-clause | fanxiaochen/mypcltest,nikste/pcl,nh2/pcl,3dtof/pcl,stfuchs/pcl,ipa-rmb/pcl,chenxingzhe/pcl,cascheberg/pcl,msalvato/pcl_kinfu_highres,KevenRing/vlp,v4hn/pcl,stefanbuettner/pcl,shivmalhotra/pcl,stefanbuettner/pcl,msalvato/pcl_kinfu_highres,RufaelDev/pcc-mp3dg,jakobwilm/pcl,lydhr/pcl,stfuchs/pcl,LZRS/pcl,LZRS/pcl,srbhpraj... |
7ff3d12d44a03d407f53233d1247370bd85c455b | kalarmd/compat.h | kalarmd/compat.h | /*
KDE2 compatibility for KDE Alarm Daemon and KDE Alarm Daemon GUI.
This file is part of the KDE alarm daemon.
Copyright (c) 2001 David Jarvie <software@astrojar.org.uk>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... | /*
KDE2 compatibility for KDE Alarm Daemon and KDE Alarm Daemon GUI.
This file is part of the KDE alarm daemon.
Copyright (c) 2001 David Jarvie <software@astrojar.org.uk>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... | Adjust for changes in libkcal | Adjust for changes in libkcal
svn path=/trunk/kdepim/; revision=133733
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
0db041be3be9c84c2949a4f7eb9c3b6cd80ae97c | arch/openrisc/kernel/vmlinux.h | arch/openrisc/kernel/vmlinux.h | #ifndef __OPENRISC_VMLINUX_H_
#define __OPENRISC_VMLINUX_H_
#ifdef CONFIG_BLK_DEV_INITRD
extern char __initrd_start, __initrd_end;
extern char __initramfs_start;
#endif
extern u32 __dtb_start[];
#endif
| #ifndef __OPENRISC_VMLINUX_H_
#define __OPENRISC_VMLINUX_H_
#ifdef CONFIG_BLK_DEV_INITRD
extern char __initrd_start, __initrd_end;
#endif
extern u32 __dtb_start[];
#endif
| Remove unused declaration of __initramfs_start | openrisc: Remove unused declaration of __initramfs_start
Signed-off-by: Geert Uytterhoeven <0da414d9d963da4039c2a0525b1844228075aa58@linux-m68k.org>
Signed-off-by: Jonas Bonn <35a2c6fae61f8077aab61faa4019722abf05093c@southpole.se>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
6b08a16dbf2e47ec630fd0f1dd575e82a5feb182 | cc1/tests/test039.c | cc1/tests/test039.c |
/*
name: TEST039
description: Test of integer constants
comments: This test is done for z80 sizes
output:
F1 I
G2 F1 main
{
\
A3 I i
A4 N u
A5 W l
A6 Z ul
A7 Q ll
A8 O ull
A3 #I1 :I
A3 #I1 :I
A4 #N1 :N
A4 #N1 :N
A5 #W1 :W
A5 #W0 :W
A4 #N0 :N
A6 #Z1 :Z
A5 #W1 :W
A7 #Q0 :Q
A6 #Z0 :Z
A8 #O1 :O
A8 #O1 :O
r #... | Add test for integer constants | Add test for integer constants
There are some ugly rules in C99 about the type of integer
constants, and this test try to check them.
| C | mit | k0gaMSX/kcc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc | |
3b9b66171c55dfa3e1907c6ea7f9e200652936a0 | GCMCocoaExtensions/GCMCocoaExtensions/GCMDeviceInfo.h | GCMCocoaExtensions/GCMCocoaExtensions/GCMDeviceInfo.h | //
// GCMDeviceInfo.h
// GCMCocoaExtensions
//
// Created by Jerry Hsu on 11/26/13.
// Copyright (c) 2013 GameChanger. All rights reserved.
//
#import <Foundation/Foundation.h>
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOr... | //
// GCMDeviceInfo.h
// GCMCocoaExtensions
//
// Created by Jerry Hsu on 11/26/13.
// Copyright (c) 2013 GameChanger. All rights reserved.
//
#import <Foundation/Foundation.h>
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOr... | Add macros to check for iOS 8 | Add macros to check for iOS 8
| C | mit | gamechanger/GCMCocoaExtensions,gamechanger/GCMCocoaExtensions,gamechanger/GCMCocoaExtensions |
b1382587216ff7fc6a3c0a664d5546c3ec9b594f | components/Echo/src/echo.c | components/Echo/src/echo.c | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <Echo.h>
#include <string.h>
void b__init(void) {
}
char * b_echo_string(... | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <Echo.h>
#include <string.h>
void b__init(void) {
}
char * b_echo_string(... | Adjust RPC parameter qualification for CAmkES changes. | Adjust RPC parameter qualification for CAmkES changes.
| C | bsd-2-clause | seL4/camkes-apps-simple--devel |
03763a26c09855a4ebf565ea7550c9f255e26e4d | include/libtrading/proto/fast_feed.h | include/libtrading/proto/fast_feed.h | #ifndef LIBTRADING_FAST_FEED_H
#define LIBTRADING_FAST_FEED_H
#include "libtrading/proto/fast_session.h"
#include <sys/socket.h>
#include <sys/types.h>
struct fast_feed {
struct fast_session *session;
struct fast_session_cfg cfg;
u64 recv_num;
char xml[128];
char lip[32];
char sip[32];
char ip[32];... | #ifndef LIBTRADING_FAST_FEED_H
#define LIBTRADING_FAST_FEED_H
#include "libtrading/proto/fast_session.h"
#include <sys/socket.h>
#include <sys/types.h>
struct fast_feed {
struct fast_session *session;
struct fast_session_cfg cfg;
u64 recv_num;
char xml[128];
char lip[32];
char sip[32];
char ip[32];... | Reset a session if implicit reset option is set | FAST: Reset a session if implicit reset option is set
Signed-off-by: Marat Stanichenko <146c4a279a7427b2cc19a19b6130cbb7ee404ab1@gmail.com>
Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
| C | bsd-2-clause | jvirtanen/libtrading,divaykin/libtrading,libtrading/libtrading,mstanichenko/libtrading,divaykin/libtrading,libtrading/libtrading,svdev/libtrading,penberg/libtrading,fengzhyuan/libtrading,femtotrader/libtrading,penberg/libtrading,NunoEdgarGub1/libtrading,etoestja/libtrading,mstanichenko/libtrading,Bitcoinsulting/libtrad... |
85dec0bf899ac18477920095ad381a7443f800b6 | cpp/log/cert_submission_handler.h | cpp/log/cert_submission_handler.h | #ifndef CERT_SUBMISSION_HANDLER_H
#define CERT_SUBMISSION_HANDLER_H
#include <string>
#include "base/macros.h"
#include "log/cert_checker.h"
#include "proto/ct.pb.h"
#include "proto/serializer.h"
#include "util/status.h"
// Parse incoming submissions, do preliminary sanity checks and pass them
// through cert check... | #ifndef CERT_SUBMISSION_HANDLER_H
#define CERT_SUBMISSION_HANDLER_H
#include <string>
#include "base/macros.h"
#include "log/cert_checker.h"
#include "proto/ct.pb.h"
#include "proto/serializer.h"
#include "util/status.h"
// Parse incoming submissions, do preliminary sanity checks and pass them
// through cert check... | Remove the unused CertSubmissionHandler::GetRoots method. | Remove the unused CertSubmissionHandler::GetRoots method.
| C | apache-2.0 | taknira/certificate-transparency,taknira/certificate-transparency,kyprizel/certificate-transparency,phad/certificate-transparency,AlCutter/certificate-transparency,lexibrent/certificate-transparency,pphaneuf/certificate-transparency,grandamp/certificate-transparency,AlCutter/certificate-transparency,lexibrent/certifica... |
b47d70c9531f082cad01e3dd0aa5f1b9827a04b7 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k1"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k2"
| Update driver version to 5.03.00-k2 | [SCSI] qla4xxx: Update driver version to 5.03.00-k2
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... |
be8f4e555b466fd790726783222bc622c451e25c | tests/regression/24-octagon/17-problem-pointer.c | tests/regression/24-octagon/17-problem-pointer.c | void change(int *p) {
(*p)++;
}
int a;
int main() {
a = 5;
int *p = &a;
change(p);
assert(a - 6 == 0);
return 0;
} | Add an octagn test for handling pointers | Add an octagn test for handling pointers
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
1ceb72f88deed9c7e12ea0a2fe29fb30e4385adb | Socialize/SZSmartAlertUtils.h | Socialize/SZSmartAlertUtils.h | //
// SZSmartAlertUtils.h
// SocializeSDK
//
// Created by Nathaniel Griswold on 6/4/12.
// Copyright (c) 2012 Socialize, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SZSmartAlertUtils : NSObject
+ (BOOL)isAvailable;
+ (BOOL)handleNotification:(NSDictionary*)userInfo __attribute__((d... | //
// SZSmartAlertUtils.h
// SocializeSDK
//
// Created by Nathaniel Griswold on 6/4/12.
// Copyright (c) 2012 Socialize, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SZSmartAlertUtils : NSObject
+ (BOOL)isAvailable;
+ (BOOL)handleNotification:(NSDictionary*)userInfo; // __attribute_... | Remove a deprecation for minor-minor release | Remove a deprecation for minor-minor release
| C | mit | socialize/socialize-sdk-ios,socialize/socialize-sdk-ios,socialize/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,socialize/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,dontfallisleep/socialize-sdk-ios,socialize/socialize-sdk-ios,dontfallisleep/... |
2a68fda5672af426733fb9bb9c82bf7318cdc9ca | src/gfx/support/json.h | src/gfx/support/json.h | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "rapidjson/document.h"
#include "glm/glm.hpp"
namespace redc
{
inline glm::vec3 vec3_from_js(rapidjson::Value const& v) noexcept
{
return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()};
}
}
| /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "rapidjson/document.h"
#include "glm/glm.hpp"
namespace redc
{
inline glm::vec3 vec3_from_js_object(rapidjson::Value const& v) noexcept
{
return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()};
}
... | Update / add vec3 => JSON functions | Update / add vec3 => JSON functions
Add support for array vectors like this [0.2, 12.5, 4.1]
| C | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
05b970c5ed2b69076f340aa96724237883cff995 | sim/log2.h | sim/log2.h | #ifndef LOG2_H
#define LOG2_H
template <typename T>
#ifdef __GNUC__
__attribute__((const))
#endif
static bool IsPowerOfTwo(const T& x)
{
return (x & (x - 1)) == 0;
}
template<typename T>
#ifdef __GNUC__
__attribute__((const))
#endif
static inline unsigned ilog2(T n)
{
// returns the first power of two equal t... | #ifndef LOG2_H
#define LOG2_H
template <typename T>
#ifdef __GNUC__
__attribute__((const))
#endif
static inline bool IsPowerOfTwo(T x)
{
return (x & (x - 1)) == 0;
}
template<typename T>
#ifdef __GNUC__
__attribute__((const))
#endif
static inline unsigned ilog2(T n)
{
// returns the first power of two equal t... | Work around an optimization bug in IsPowerOfTwo. | Work around an optimization bug in IsPowerOfTwo.
| C | mit | Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim |
5d70a9c23b0d34ea511b8e1705e2c9a8d6d0a435 | src/definitions.h | src/definitions.h | #pragma once
#include <cstdint>
using uint = unsigned int;
using u8 = uint8_t;
using u16 = uint16_t;
using s8 = int8_t;
const int GAMEBOY_WIDTH = 160;
const int GAMEBOY_HEIGHT = 144;
const int CLOCK_RATE = 4194304;
enum class Color {
Color0, /* White */
Color1, /* Light gray */
Color2, /* Dark gray */... | #pragma once
#include <cstdint>
using uint = unsigned int;
using u8 = uint8_t;
using u16 = uint16_t;
using s8 = int8_t;
const int GAMEBOY_WIDTH = 160;
const int GAMEBOY_HEIGHT = 144;
const int CLOCK_RATE = 4194304;
enum class Color {
Color0, /* White */
Color1, /* Light gray */
Color2, /* Dark gray */... | Align & and * to the left always | Align & and * to the left always
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
84f52e954b4baee7ad0ad243648bf61e12f2a84c | test/asan/TestCases/printf-3.c | test/asan/TestCases/printf-3.c | // RUN: %clang_asan -O2 %s -o %t
// RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: %env_asan_opts=check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// FIXME: printf is not intercepted o... | // RUN: %clang_asan -O2 %s -o %t
// RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: %env_asan_opts=check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// FIXME: printf is not intercepted o... | Disable test incompatible with new Android | [asan] Disable test incompatible with new Android
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@349705 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
1d25a02b388dbd4c22e6a9338aa96580efbc712a | crypto/openssl_bio_string.h | crypto/openssl_bio_string.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTO_OPENSSL_BIO_STRING_H_
#define CRYPTO_OPENSSL_BIO_STRING_H_
#include <string>
#include "crypto/crypto_export.h"
// From <openssl/bio.h>
t... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTO_OPENSSL_BIO_STRING_H_
#define CRYPTO_OPENSSL_BIO_STRING_H_
#include <string>
#include "crypto/crypto_export.h"
// From <openssl/bio.h>
t... | Fix component build with gcc 4.6 on Android. | Fix component build with gcc 4.6 on Android.
CRYPTO_EXPORT macro has to be before the non-void return type.
BUG=None
TBR=rsleevi@chromium.org
Review URL: https://codereview.chromium.org/296223002
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@272363 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,PeterWangInt... |
f505abb7da052e109a55b418dfbf3ebb0a6fd71f | PathKit/PathKit.h | PathKit/PathKit.h | //
// PathKit.h
// PathKit
//
// Created by Kyle Fuller on 20/11/2014.
// Copyright (c) 2014 Cocode. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for PathKit.
FOUNDATION_EXPORT double PathKitVersionNumber;
//! Project version string for PathKit.
FOUNDATION_EXPORT const uns... | //
// PathKit.h
// PathKit
//
// Created by Kyle Fuller on 20/11/2014.
// Copyright (c) 2014 Cocode. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for PathKit.
FOUNDATION_EXPORT double PathKitVersionNumber;
//! Project version string for PathKit.
FOUNDATION_EXPORT const uns... | Remove useless comment from umbrella header | Remove useless comment from umbrella header
| C | bsd-2-clause | weby/PathKit,weby/PathKit,kylef/PathKit,RahulKatariya/PathKit,kylef/PathKit,RahulKatariya/PathKit |
cb986bca639127f4c4533b7d12a865d8d0d3b2cc | bugs/struct_copy_init_brace.c | bugs/struct_copy_init_brace.c | struct A
{
struct B
{
int i, j;
} b, c;
};
f(struct B *b)
{
struct A fine = {
.b = *b // XXX: should be no missing braces warning
};
struct A bad = {
.b = { *b }
};
}
| Copy init brace conformance example, for structs | Copy init brace conformance example, for structs
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
bd1bb2f7a80f5518a7afbce3f19a547dc2fdc23a | testing/test_irf.c | testing/test_irf.c | #include <stdlib.h>
#include <glib.h>
#include "bmi/bmi_cem.h"
static void test_bmi_initialize(void) {
BMI_Model *model = (BMI_Model *)malloc(sizeof(BMI_Model));
int status;
register_bmi_cem(model);
status = model->initialize(NULL, &(model->self));
g_assert_cmpint(status, ==, BMI_SUCCESS);
}
static vo... | #include <stdlib.h>
#include <glib.h>
#include "bmi/bmi_cem.h"
static void test_bmi_initialize(void) {
BMI_Model *model = (BMI_Model *)malloc(sizeof(BMI_Model));
int status;
register_bmi_cem(model);
status = model->initialize(NULL, &(model->self));
g_assert_cmpint(status, ==, BMI_SUCCESS);
}
static vo... | Add test for update function. | Add test for update function.
| C | mit | csdms-contrib/cem |
f2ec24fd42d52a52829070b5e31d9a17d145df30 | arch/microblaze/include/asm/entry.h | arch/microblaze/include/asm/entry.h | /*
* Definitions used by low-level trap handlers
*
* Copyright (C) 2008 Michal Simek
* Copyright (C) 2007 - 2008 PetaLogix
* Copyright (C) 2007 John Williams <john.williams@petalogix.com>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main d... | /*
* Definitions used by low-level trap handlers
*
* Copyright (C) 2008 Michal Simek
* Copyright (C) 2007 - 2008 PetaLogix
* Copyright (C) 2007 John Williams <john.williams@petalogix.com>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main d... | Remove unneded per cpu SYSCALL_SAVE variable | microblaze: Remove unneded per cpu SYSCALL_SAVE variable
Signed-off-by: Michal Simek <3a191dd2be46e826fee926d532b136ed65cb5318@monstr.eu>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
05e7220cccf9e335700e91b14c2de91d84c6fe3d | src/keyboard-layout-observer.h | src/keyboard-layout-observer.h | #ifndef SRC_KEYBORD_LAYOUT_OBSERVER_H_
#define SRC_KEYBORD_LAYOUT_OBSERVER_H_
#include "nan.h"
using namespace v8; // NOLINT
class KeyboardLayoutObserver : public node::ObjectWrap {
public:
static void Init(Handle<Object> target);
void HandleKeyboardLayoutChanged();
private:
KeyboardLayoutObserver(NanCallb... | #ifndef SRC_KEYBORD_LAYOUT_OBSERVER_H_
#define SRC_KEYBORD_LAYOUT_OBSERVER_H_
#include "nan.h"
using namespace v8; // NOLINT
class KeyboardLayoutObserver : public node::ObjectWrap {
public:
static void Init(Handle<Object> target);
void HandleKeyboardLayoutChanged();
private:
KeyboardLayoutObserver(NanCallb... | Add our new method to get the list of installed layouts | Add our new method to get the list of installed layouts
| C | mit | atom/keyboard-layout,atom/keyboard-layout,atom/keyboard-layout |
cefc69e635bdcabbf8191627913af238b9f974f2 | UIKit/UIPanGestureRecognizer+Private.h | UIKit/UIPanGestureRecognizer+Private.h | @interface UIPanGestureRecognizer (Private)
@property (setter=_setHysteresis:) BOOL _hysteresis;
@end | @interface UIPanGestureRecognizer (Private)
@property (setter=_setHysteresis:) CGFloat _hysteresis;
@property (assign, nonatomic) BOOL failsPastMaxTouches;
@end | Fix UIPanGestureRecognizer property type; add property | [UIKit] Fix UIPanGestureRecognizer property type; add property
| C | unlicense | hbang/headers,hbang/headers |
11ecac55348eb103e2cbcd25cb01178584faa57f | chrome/app/scoped_ole_initializer.h | chrome/app/scoped_ole_initializer.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
// Wraps OLE initialization in a cross-platform class meant... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#include "base/logging.h"
#include "build/build_config.h"
... | Make ScopedOleInitializer work on windows if you aren't including build_config already. | Make ScopedOleInitializer work on windows if you aren't including
build_config already.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/19640
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@8835 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
9cdd7db18bcf038c1b92e45ae0ba9c846e8d3977 | test2/float/call/many_floats.c | test2/float/call/many_floats.c | // RUN: %ucc -o %t %s
// RUN: %ocheck 0 %t
// RUN: %t | %output_check 'Hello 5 2.3' 'Hello 5 2.3'
// should run without segfaulting
main()
{
printf("Hello %d %.1f\n",
5,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3); // this causes an infinite loop in glibc's printf()
pr... | // RUN: %ucc -o %t %s
// RUN: %ocheck 0 %t
// RUN: %t | %output_check 'Hello 5 5.9' '7.3 8.7 10.1 11.5 12.9 14.3 15.7 17.1 18.5 19.9' 'Hello 5 15.7' '14.3 12.9 11.5 10.1 8.7 7.3 5.9 4.5 3.1 1.7 0.3'
// should run without segfaulting
main()
{
printf("Hello %d %.1f\n"
"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %... | Format strings and more through test for stack floats | Format strings and more through test for stack floats
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
b004fd538d4d56202a8f226f0145ba03aeb27a69 | tensorflow_lite_support/cc/text/tokenizers/tokenizer_jni_lib.h | tensorflow_lite_support/cc/text/tokenizers/tokenizer_jni_lib.h | /* Copyright 2019 The TensorFlow 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 obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2019 The TensorFlow 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 obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Remove unused STL string include | Remove unused STL string include
PiperOrigin-RevId: 433365283
| C | apache-2.0 | tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support |
ae78b7da75216dc8b6ed457a7f6ca878faaeec06 | rbcoremidi.c | rbcoremidi.c | /*
* Copyright 2008 Markus Prinz
* Released unter an MIT licence
*
*/
#include <ruby.h>
VALUE crbCoreMidi;
void Init_rbcoremidi (void)
{
// Add the initialization code of your module here.
}
| /*
* Copyright 2008 Markus Prinz
* Released unter an MIT licence
*
*/
#include <ruby.h>
#include <CoreMIDI/CoreMIDI.h>
VALUE callback_proc = Qnil;
MIDIPortRef inPort = NULL;
MIDIClientRef client = NULL;
static void RbMIDIReadProc(const MIDIPacketList* packetList, void* readProcRefCon, void* srcConnRefCon)
{
... | Add skeleton for callback and a few global vars | Add skeleton for callback and a few global vars
| C | mit | cypher/rbcoremidi,cypher/rbcoremidi |
aca77f3e86ce9c380f19a4d02875023100af8c82 | StravaKit/StravaKit/StravaKit.h | StravaKit/StravaKit/StravaKit.h | //
// StravaKitOSX.h
// StravaKitOSX
//
// Created by Elmar Tampe on 04/12/14.
//
//
#import <UIKit/UIKit.h>
//! Project version number for StravaKitOSX.
FOUNDATION_EXPORT double StravaKitOSXVersionNumber;
//! Project version string for StravaKitOSX.
FOUNDATION_EXPORT const unsigned char StravaKitOSXVersionString... | //
// StravaKit.h
// StravaKit
//
// Created by Elmar Tampe on 04/12/14.
//
//
#import <UIKit/UIKit.h>
//! Project version number for StravaKit.
FOUNDATION_EXPORT double StravaKitVersionNumber;
//! Project version string for StravaKit.
FOUNDATION_EXPORT const unsigned char StravaKitVersionString[];
// In this he... | Fix the naming of the var's to match the actual naming. | Fix the naming of the var's to match the actual naming.
| C | mit | elmoswelt/StravaKit,elmoswelt/StravaKit |
9759b067314061deacc5474ecb5d6cc022185986 | src/Omnium.c | src/Omnium.c | /* Standard libraries */
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int distance, n_ciclists, uniforme;
if (argc != 4) {
fprintf(stderr, "USAGE: %s d n [v|u]\n", argv[0]);
return EXIT_FAILURE;
}
distance = atoi(argv[1]);
n_ciclists = atoi(ar... | Create file and read options | Create file and read options
| C | apache-2.0 | renatocf/MAC0438-EP1 | |
7c0c1625ca01a505f047c7332073014a96021696 | src/Pomade.c | src/Pomade.c | #include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 }
PBL_APP_INFO(MY_UUID,
"Template App", "Your Company",
1, 0, /* App version */
DEFAULT_MENU_... | #include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#define MY_UUID { 0x78, 0x1D, 0x21, 0x66, 0x09, 0x09, 0x4F, 0x9C, 0x88, 0xFD, 0x89, 0x9B, 0x04, 0xBF, 0x5E, 0x32 }
PBL_APP_INFO(MY_UUID,
"Pomade", "Jon Speicher",
0, 1, /* App version */
DEFAULT_MENU_ICON,
... | Change version, app and window name | Change version, app and window name
| C | mit | elliots/simple-demo-pebble,jonspeicher/Pomade,jonspeicher/Pomade |
747852023687e4fe4502cc616412a5e3568f56fd | gnu/lib/libregex/gnuregex.h | gnu/lib/libregex/gnuregex.h | /*-
* Copyright (c) 2004 David E. O'Brien
* Copyright (c) 2004 Andrey A. Chernov
* 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 (c) 2004 David E. O'Brien
* Copyright (c) 2004 Andrey A. Chernov
* 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... | Change warning hint to be more useful | Change warning hint to be more useful
| 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 |
40a1a436137bab2bb7fc0ed7cc83d4d52be36ce4 | tools/emulator/non_interactive.c | tools/emulator/non_interactive.c | //
// Non-interactive test runner just produces register traces and memory dumps
//
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/poll.h>
#include <stdarg.h>
#include "core.h"
#include "debug_info.h"
void runNonInteractive(Core *core)
{
int i;
enableTracing(core);
ru... | //
// Non-interactive test runner just produces register traces and memory dumps
//
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/poll.h>
#include <stdarg.h>
#include "core.h"
#include "debug_info.h"
void runNonInteractive(Core *core)
{
int i;
enableTracing(core);
fo... | Make emulator run for a little longer in non-interactive mode | Make emulator run for a little longer in non-interactive mode
| C | apache-2.0 | jbush001/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziPr... |
9cc47bd19ebc3f697753d1a3ab62777c9e68d1c2 | src/ignore.h | src/ignore.h | #include <sys/dir.h>
#include <sys/types.h>
#ifndef IGNORE_H
#define IGNORE_H
#define SVN_DIR_PROP_BASE "/dir-prop-base"
#define SVN_DIR ".svn"
#define SVN_PROP_IGNORE "svn:ignore"
struct ignores {
char **names; /* Non-regex ignore lines. Sorted so we can binary search them. */
size_t names_len;
char **r... | #ifndef IGNORE_H
#define IGNORE_H
#include <sys/dir.h>
#include <sys/types.h>
#define SVN_DIR_PROP_BASE "/dir-prop-base"
#define SVN_DIR ".svn"
#define SVN_PROP_IGNORE "svn:ignore"
struct ignores {
char **names; /* Non-regex ignore lines. Sorted so we can binary search them. */
size_t names_len;
char **r... | Put ifndef at the top. | Put ifndef at the top.
| C | apache-2.0 | accessv/the_silver_searcher,subev/the_silver_searcher,decaff/the_silver_searcher,siadat/the_silver_searcher,lunixbochs/the_silver_searcher,accessv/the_silver_searcher,nodakai/the_silver_searcher,cchamberlain/the_silver_searcher,brianstorti/the_silver_searcher,smaudet/the_silver_searcher,siadat/the_silver_searcher,godby... |
f051e451c92d176532fde7e6da09dff3262aa9ae | src/gui/src/docks/settings-dock.h | src/gui/src/docks/settings-dock.h | #ifndef SETTINGS_DOCK_H
#define SETTINGS_DOCK_H
#include <QStringList>
#include <QWidget>
#include "dock.h"
namespace Ui
{
class SettingsDock;
}
class Profile;
class QEvent;
class QSettings;
class SettingsDock : public Dock
{
Q_OBJECT
public:
explicit SettingsDock(Profile *profile, QWidget *parent);
~Sett... | #ifndef SETTINGS_DOCK_H
#define SETTINGS_DOCK_H
#include <QStringList>
#include <QWidget>
#include "dock.h"
namespace Ui
{
class SettingsDock;
}
class Profile;
class QEvent;
class QSettings;
class SettingsDock : public Dock
{
Q_OBJECT
public:
explicit SettingsDock(Profile *profile, QWidget *parent);
~Sett... | Fix broken connection in quick settings dock | Fix broken connection in quick settings dock
| C | apache-2.0 | Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber |
0164cb003172e6e3224498eb77bbf14ca5ece039 | mfmod.c | mfmod.c | #include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
static struct nf_hook_ops nfho;
unsigned int hook_func(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return N... | #include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
static struct nf_hook_ops nfho;
unsigned int hook_func(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
socke... | Set hook to block all ICMP packets | Set hook to block all ICMP packets
| C | mit | Muhlenberg/mfw |
7fb4952ef5c9814ac18e6211ac5dbb70530d559b | inc/ArgParse/ArgObject.h | inc/ArgParse/ArgObject.h | #ifndef ARGPARSE_ArgObject_HDR
#define ARGPARSE_ArgObject_HDR
#include <string>
namespace ArgParse {
class ArgObject {
public:
typedef int Accept_t;
static const Accept_t No;
static const Accept_t WithArg;
static const Accept_t WithoutArg;
ArgObject();
virtual ~ArgObject();
virtual Accept_... | #ifndef ARGPARSE_ArgObject_HDR
#define ARGPARSE_ArgObject_HDR
#include <string>
namespace ArgParse {
class ArgObject {
public:
typedef int Accept_t;
static const Accept_t No;
static const Accept_t WithArg;
static const Accept_t WithoutArg;
ArgObject();
virtual ~ArgObject();
virtual Accept_... | Add warn_unused_result to the ArgParse functions | Add warn_unused_result to the ArgParse functions
Which return a value.
| C | mit | krafczyk/ArgParse,krafczyk/ArgParse |
efb9ca08b5a2374b29938cdcab417ce4feb14b54 | include/asm-mips/timex.h | include/asm-mips/timex.h | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998, 1999, 2003 by Ralf Baechle
*/
#ifndef _ASM_TIMEX_H
#define _ASM_TIMEX_H
#ifdef __KERNEL__
#include <asm/mipsregs.h>... | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998, 1999, 2003 by Ralf Baechle
*/
#ifndef _ASM_TIMEX_H
#define _ASM_TIMEX_H
#ifdef __KERNEL__
#include <asm/mipsregs.h>... | Change get_cycles to always return 0. | [MIPS] Change get_cycles to always return 0.
This avoids us executing an mfc0 c0_count instruction on processors which
don't have but also on certain R4000 and R4400 versions where reading from
the count register just in the very moment when its value equals
c0_compare will result in the timer interrupt getting lost.
... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
2abcf136b51489096ea00b605e820668bd005945 | tests/regression/34-localization/05-nested.w.counter.c | tests/regression/34-localization/05-nested.w.counter.c | // Variant of nested.c with a counter.
void main()
{
int z = 0;
for (int i=0; i<10 ; i++)
{
z = z+1;
for (int j = 0; j < 10 ; j++) ;
z = z+1;
}
return ;
}
| // Variant of nested.c with a counter.
void main()
{
int z = 0;
for (int i=0; i<10 ; i++) {
z = z+1;
for (int j = 0; j < 10 ; j++) ;
z = z+1; // was this intended to be inner loop?
}
return ;
}
| Indent file; maybe delete it? | Indent file; maybe delete it?
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
c8bb04566667228539a35ab38c1538882c77e063 | Libs/XNAT/Core/ctkXnatListModel.h | Libs/XNAT/Core/ctkXnatListModel.h | /*=============================================================================
Library: XNAT/Core
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance wit... | /*=============================================================================
Library: XNAT/Core
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance wit... | Make root object protected to allow access to the root object from within subclasses. | Make root object protected to allow access to the root object from
within subclasses.
| C | apache-2.0 | msmolens/CTK,CJGoch/CTK,commontk/CTK,msmolens/CTK,151706061/CTK,sankhesh/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,151706061/CTK,SINTEFMedtek/CTK,Heather/CTK,jcfr/CTK,commontk/CTK,CJGoch/CTK,151706061/CTK,ddao/CTK,SINTEFMedtek/CTK,laurennlam/CTK,CJGoch/CTK,Sardge/CTK,naucoin/CTK,fedorov/CTK,danielknorr/CTK,sankhesh/CTK,151... |
0137d0eec37a833a2ba575d25aeef8400cc459c7 | RZCollectionList/RZCollectionList.h | RZCollectionList/RZCollectionList.h | //
// RZCollectionList.h
// RZCollectionList
//
// Created by Nick Donaldson on 6/21/13.
// Copyright (c) 2013 Raizlabs. All rights reserved.
//
/************************************************************
*
* Include this file to get all the collection lists you need!
*
**************************************... | //
// RZCollectionList.h
// RZCollectionList
//
// Created by Nick Donaldson on 6/21/13.
// Copyright (c) 2013 Raizlabs. All rights reserved.
//
/************************************************************
*
* Include this file to get all the collection lists at once
*
****************************************... | Remove protocol from umbrella header | Remove protocol from umbrella header
| C | mit | Raizlabs/RZCollectionList |
720d566d03e23418b7bb3cff2f74ef7d95c6a459 | json_inttypes.h | json_inttypes.h |
#ifndef _json_inttypes_h_
#define _json_inttypes_h_
#include "json_config.h"
#if defined(_MSC_VER) && _MSC_VER <= 1700
/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
typedef __int32 int32_t;
#define INT32_MIN ((int32_t)_I32_MIN)
#define INT32_MAX ((int32_t)_I32_MAX)
typedef _... |
#ifndef _json_inttypes_h_
#define _json_inttypes_h_
#include "json_config.h"
#ifdef JSON_C_HAVE_INTTYPES_H
/* inttypes.h includes stdint.h */
#include <inttypes.h>
#else
#include <stdint.h>
#define PRId64 "I64d"
#define SCNd64 "I64d"
#endif
#endif
| Define macros from inttypes.h when not available | Define macros from inttypes.h when not available
| C | mit | cubieb/json-c,PureSwift/json-c,Nzbuu/json-c,PureSwift/json-c,haoranzeus/json-c,Amineahd/json-c,rgerhards/json-c,cubieb/json-c,alagoutte/json-c,rgerhards/json-c,cubieb/json-c,Nzbuu/json-c,chenha0/json-c,colemancda/json-c,alagoutte/json-c,haoranzeus/json-c,rgerhards/json-c,colemancda/json-c,chenha0/json-c,Nzbuu/json-c,Pu... |
3ef9314bab0e371027d8538f061211fe6fda4d17 | src/ft_vdprintf.c | src/ft_vdprintf.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_vdprintf.c :+: :+: :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_vdprintf.c :+: :+: :+: ... | Print format if the length is longer than printf max length | Print format if the length is longer than printf max length
| C | mit | jlagneau/libftprintf,jlagneau/libftprintf |
44acf7ff36b39e2af95bb8db453189b70b39d39a | arch/x86/kernel/bt.c | arch/x86/kernel/bt.c | #include <kernel/panic.h>
#include <macros.h>
#include <stdio.h>
#include <types.h>
#define MAX_STACK_FRAME 10000
/*
* Walk up the stack and print the locations of each stack frame base.
*/
void bt(void) {
u32 *ebp, *eip;
unsigned int sf = 0;
/* Start form the current stack base */
asm volatile("mov %%ebp, %0... | #include <kernel/panic.h>
#include <elf.h>
#include <macros.h>
#include <stdio.h>
#include <types.h>
#define MAX_STACK_FRAME 10000
/*
* Walk up the stack and print the locations of each stack frame base.
*/
void bt(void) {
u32 *ebp, *eip;
unsigned int sf = 0;
/* Start form the current stack base */
asm volati... | Print symbol names in backtrace | arch/x86: Print symbol names in backtrace
This transforms:
#0 [0x1018C7]
#1 [0x101636]
#2 [0x100231]
into:
#0 [0x1018C7] panic
#1 [0x101636] k_main
#2 [0x100231] start
| C | mit | ChrisCummins/euclid,ChrisCummins/euclid,ChrisCummins/euclid |
1ca1f8f6b3aaf6d7f93262594578dfad404bd94e | arch/mips/include/asm/types.h | arch/mips/include/asm/types.h | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
* Copyright (C) 2008 Wind River Systems,
* written by Ralf Baechle
* Copyright (... | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
* Copyright (C) 2008 Wind River Systems,
* written by Ralf Baechle
* Copyright (... | Remove now unused definition of phys_t. | MIPS: Remove now unused definition of phys_t.
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
77cd208abac5095c288ff103709a8ddd4d4e8b3d | Sources/OCAObject.h | Sources/OCAObject.h | //
// OCAObject.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
#import <Foundation/Foundation.h>
#define OCA_atomic atomic
#define OCALazyGetter(TYPE, PROPERTY) \
@synthesize PROPERTY = _##PROPERTY; \
- (TYPE)PROPERTY { \
if ( ! self... | //
// OCAObject.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
#import <Foundation/Foundation.h>
#define OCA_atomic atomic
#define OCALazyGetter(TYPE, PROPERTY) \
@synthesize PROPERTY = _##PROPERTY; \
- (TYPE)PROPERTY { \
if ( ! self... | Fix indentation of Assert macros | Fix indentation of Assert macros
| C | mit | Tricertops/Objective-Chain,iMartinKiss/Objective-Chain |
c91692c18f236014fb058fabb517eb19949f1cae | src/dukbind_std.h | src/dukbind_std.h | #pragma once
#ifndef DUKTAPE_H_INCLUDED
#error Duktape.h should be included before this header
#endif
#include <vector>
namespace dukbind
{
template< typename _Type_ >
void Push( duk_context * ctx, const std::vector<_Type_> & table )
{
size_t index, end = table.size();
duk_idx_t arr_... | #pragma once
#ifndef DUKTAPE_H_INCLUDED
#error Duktape.h should be included before this header
#endif
#include <vector>
namespace dukbind
{
template< typename _Type_ >
void Push( duk_context * ctx, const std::vector<_Type_> & table )
{
size_t index, end = table.size();
duk_idx_t arr_... | Fix for new Push signature | Fix for new Push signature
| C | mit | crazyjul/dukbind,crazyjul/dukbind |
d579fd0a3cea2f4a04096e2116794daba6bf6eec | src/rcimmixcons.h | src/rcimmixcons.h | // Copyright (c) <2015> <lummax>
// Licensed under MIT (http://opensource.org/licenses/MIT)
#ifndef RCIMMIXCONS_H
#define RCIMMIXCONS_H
#include <stdint.h>
#include <stdlib.h>
typedef struct {
size_t reference_count;
uint8_t spans_lines;
uint8_t forwarded;
uint8_t logged;
uint8_t marked;
uint... | // Copyright (c) <2015> <lummax>
// Licensed under MIT (http://opensource.org/licenses/MIT)
#ifndef RCIMMIXCONS_H
#define RCIMMIXCONS_H
#include <stdint.h>
#include <stdlib.h>
typedef struct {
size_t reference_count;
uint8_t spans_lines;
uint8_t forwarded;
uint8_t logged;
uint8_t marked;
uint... | Fix C-FFI: added pinned mark | Fix C-FFI: added pinned mark
| C | mit | lummax/librcimmixcons,lummax/librcimmixcons,lummax/librcimmixcons,lummax/librcimmixcons |
abc838f5e263c42082c324d84c1dcf47074656bc | src/Logger.h | src/Logger.h | // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
#pragma once
#include "Types.h"
#if defined(EEGEO_DROID)
#include <android/log.h>
#define EXAMPLE_LOG(...) __android_log_print(ANDROID_LOG_INFO,"Eegeo_Examples",__VA_ARGS__)
#else
#define EXAMPLE_LOG(...) printf(__VA_ARGS__)
#endif
| // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
#pragma once
#define EXAMPLE_LOG(...) printf(__VA_ARGS__)
| Remove references to Android from iOS API logger. | Remove references to Android from iOS API logger.
| C | bsd-2-clause | wrld3d/ios-api,wrld3d/ios-api,wrld3d/ios-api,wrld3d/ios-api |
d352a1145f833ee804dff6576b4c0d5ee04cb099 | quickdialog/QImageElement.h | quickdialog/QImageElement.h | //
// Copyright 2012 Ludovic Landry - http://about.me/ludoviclandry
//
// 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 ... | //
// Copyright 2012 Ludovic Landry - http://about.me/ludoviclandry
//
// 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 ... | Fix bug that was causing error building pod in RubyMotion project | Fix bug that was causing error building pod in RubyMotion project
| C | mit | raiffeisennet/QuickDialog |
ad5914fb29c4e32b2979bb4445a8a65eee90d625 | main.c | main.c |
#pragma config(Motor, port2, shooterleft, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port3, shooterright, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, spinnyintakeofdoomnumber1, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port5, ga... |
#pragma config(Motor, port2, shooterleft, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port3, shooterright, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, spinnyintakeofdoomnumber1, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port5, ga... | Add comment about ROBOTC "linking" | Add comment about ROBOTC "linking"
| C | apache-2.0 | IceAxeWarriors143A/NothingButNet2015,IceAxeWarriors143A/NothingButNet2015 |
bc686c34cb64bb3bfa636643367903f572fe8ece | src/kernel.c | src/kernel.c | #include "terminal.h"
#include "multiboot.h"
#include "pic.h"
#include "keyboard.h"
#include "frame_allocator.h"
#include "paging.h"
#include "assert.h"
//Calling convention on x86-64 System V ABI
//rdi, rsi, rdx, rcx for ints
void kernel_main(uintptr_t pmultiboot) {
init_terminal();
pic_init(0x20, 0x28);
pic_en... | #include "terminal.h"
#include "multiboot.h"
#include "pic.h"
#include "keyboard.h"
#include "frame_allocator.h"
#include "paging.h"
#include "assert.h"
//Calling convention on x86-64 System V ABI
//rdi, rsi, rdx, rcx for ints
void page_fault(void) {
terminal_printf("Fault");
assert(0!=0);
}
void kernel_main(uint... | Add page fault handler to abort on page fault. | Add page fault handler to abort on page fault.
| C | apache-2.0 | RichardHScott/os_c |
07e3a43edbaf84f04359d333013b423dde057d3b | pi_code/countbits.c | pi_code/countbits.c | #include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
int main (int argc, char *argv[])
{
char buf[4096];
int fd = open("inputcap", O_RDONLY);
memset(buf, 0, 4096);
int ret = read(fd, buf, 4000);
if (ret ... | #include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
int main (int argc, char *argv[])
{
char buf[4096];
int fd = open("inputcap", O_RDONLY);
memset(buf, 0, 4096);
int ret = read(fd, buf, 4000);
if (ret ... | Fix warning for lack of return from main. | Fix warning for lack of return from main.
| C | apache-2.0 | rlstrand/ultrasonic,rlstrand/ultrasonic,nord0296/ultrasonic,nord0296/ultrasonic |
06031732b6e87edfe67e65ce1daa1cc3cba5fb2f | Wangscape/noise/module/codecs/ForwardWrapperCodec.h | Wangscape/noise/module/codecs/ForwardWrapperCodec.h | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
#include "noise/module/Wrapper.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::Wrapper<noise::module::Forward>>
{
using ForwardWrapper = noise::module::Wrapper<noise::module::Forward>;
static codec::ob... | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
#include "noise/module/Wrapper.h"
#include "noise/module/Forward.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::Wrapper<noise::module::Forward>>
{
using ForwardWrapper = noise::module::Wrapper<noise::modu... | Add missing header to Forward codec | Add missing header to Forward codec
| C | mit | serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.