commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
29b9f22f7c286e43c4a617fcb3645f104256cd12 | src/test.c | src/test.c | #include <stdio.h>
#include <stdlib.h>
#include <security/pam_appl.h>
#include <security/pam_misc.h>
int main(int argc, char **argv)
{
pam_handle_t *pamh = NULL;
pam_sm_authenticate(pamh, 0, 1, "/home/aj/opensc/lib/opensc-pkcs11.so");
exit(0);
}
| #include <stdio.h>
#include <stdlib.h>
#include <security/pam_appl.h>
#include <security/pam_misc.h>
#include <security/pam_modules.h>
int main(int argc, char **argv)
{
pam_handle_t *pamh = NULL;
pam_sm_authenticate(pamh, 0, 1, "/home/aj/opensc/lib/opensc-pkcs11.so");
exit(0);
}
| Add security/pam_modules.h to fix compiler warning | Add security/pam_modules.h to fix compiler warning
| C | lgpl-2.1 | ffsdmad/pam_p11,OpenSC/pam_p11,AktivCo/pam-p11-gost,OpenSC/pam_p11,AktivCo/pam-p11-gost,ffsdmad/pam_p11,AktivCo/pam-p11-gost |
8b2bcc21bd7ab7936559bd2e6bb310075e5d0d08 | src/lib/ioloop-notify-none.c | src/lib/ioloop-notify-none.c | /* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "ioloop-internal.h"
#ifdef IOLOOP_NOTIFY_NONE
struct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__,
const char *path __attr_unused__,
io_callback_t *callback __attr_unused__,
void *context __attr_unused__)
{
r... | /* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "ioloop-internal.h"
#ifdef IOLOOP_NOTIFY_NONE
#undef io_add_notify
struct io *io_add_notify(const char *path __attr_unused__,
io_callback_t *callback __attr_unused__,
void *context __attr_unused__)
{
return NULL;
}
void io_loop_notify_remove(... | Fix for building without notify | Fix for building without notify
--HG--
branch : HEAD
| C | mit | jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot |
64d086a45bfb569038f9dcacc9e50ef04fecf574 | SoomlaiOSProfile/SoomlaiOSProfile/Blueprint.h | SoomlaiOSProfile/SoomlaiOSProfile/Blueprint.h | //
// Blueprint.h
// SoomlaiOSProfile
//
// Created by Gur Dotan on 6/9/14.
// Copyright (c) 2014 Soomla. All rights reserved.
//
#define BP_DB_KEY_PREFIX @"soomla.blueprint"
| //
// Blueprint.h
// SoomlaiOSProfile
//
// Created by Gur Dotan on 6/9/14.
// Copyright (c) 2014 Soomla. All rights reserved.
//
#define BP_DB_KEY_PREFIX @"soomla.levelup"
| Change DB prefix string to comply with Android's | Change DB prefix string to comply with Android's
| C | apache-2.0 | emperor1412/ios-profile,vedi/ios-profile,vedi/ios-profile,soomla/ios-profile,vedi/ios-profile,emperor1412/ios-profile |
1439f9421e67da83a16dc7350f50c5dabe85060e | ipxe/local/general.h | ipxe/local/general.h | #define DIGEST_CMD /* Image crypto digest commands */
#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */
#define IMAGE_COMBOOT /* COMBOOT */
#define IMAGE_TRUST_CMD /* Image trust management commands */
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define REBOOT_C... | #define DIGEST_CMD /* Image crypto digest commands */
#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */
#define IMAGE_COMBOOT /* COMBOOT */
#define IMAGE_TRUST_CMD /* Image trust management commands */
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define REBOOT_C... | Add NSLOOKUP and NTP commands to netboot.xyz | Add NSLOOKUP and NTP commands to netboot.xyz
| C | apache-2.0 | Dedsec1/netboot.xyz,chris18890/netboot.xyz,antonym/netboot.xyz,antonym/netboot.xyz,Dedsec1/netboot.xyz,antonym/netboot.xyz,chris18890/netboot.xyz,Dedsec1/netboot.xyz |
b6ffc70dcc58cbeae372c58675c14a9fe9dac3f9 | src/interfaces/libpq/win32.h | src/interfaces/libpq/win32.h | #include <winsock.h>
/*
* strcasecmp() is not in Windows, stricmp is, though
*/
#define strcasecmp(a,b) stricmp(a,b)
#define strncasecmp(a,b,c) _strnicmp(a,b,c)
#define ACCEPT_TYPE_ARG3 int
/*
* Some compat functions
*/
#define open(a,b,c) _open(a,b,c)
#define close(a) _close(a)
#define read(a,b,c) _read(a,b,c)
... | #include <winsock.h>
/*
* strcasecmp() is not in Windows, stricmp is, though
*/
#define strcasecmp(a,b) stricmp(a,b)
#define strncasecmp(a,b,c) _strnicmp(a,b,c)
/*
* Some compat functions
*/
#define open(a,b,c) _open(a,b,c)
#define close(a) _close(a)
#define read(a,b,c) _read(a,b,c)
#define write(a,b,c) _write(a,... | Remove broken (and unnecessary) definition of DEF_PGPORT. | Remove broken (and unnecessary) definition of DEF_PGPORT.
| C | apache-2.0 | tangp3/gpdb,janebeckman/gpdb,cjcjameson/gpdb,Postgres-XL/Postgres-XL,ahachete/gpdb,adam8157/gpdb,lisakowen/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,lintzc/gpdb,tangp3/gpdb,janebeckman/gpdb,cjcjameson/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,foyzur/gpdb,lisakowen/gpdb,xuegang/gpdb,rvs/gpdb,snaga/postgres-xl,Postgres-... |
6566e0278082294b97e7cd12eb4b4479abfee100 | src/fs/dvfs/dcache_no.c | src/fs/dvfs/dcache_no.c | /**
* @file
* @brief Handle cache lookup just by iterating vfs tree
* @author Denis Deryugin <deryugin.denis@gmail.com>
* @version 0.1
* @date 2015-06-09
*/
| /**
* @file
* @brief Handle cache lookup just by iterating vfs tree
* @author Denis Deryugin <deryugin.denis@gmail.com>
* @version 0.1
* @date 2015-06-09
*/
#include <fs/dvfs.h>
struct dentry *dvfs_cache_lookup(const char *path, struct dentry *base) {
return NULL;
}
struct dentry *dvfs_cache_get(char *path) {... | Implement stubs for trirvial cache | vfs: Implement stubs for trirvial cache
| C | bsd-2-clause | gzoom13/embox,Kefir0192/embox,Kefir0192/embox,gzoom13/embox,embox/embox,mike2390/embox,mike2390/embox,mike2390/embox,mike2390/embox,Kakadu/embox,embox/embox,Kefir0192/embox,mike2390/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,Kakadu/... |
f29b65fa18ae5bcae352ad1050a5b83d8ffffd53 | modules/vf_audio/sources/vf_SampleSource.h | modules/vf_audio/sources/vf_SampleSource.h | /*============================================================================*/
/*
Copyright (C) 2008 by Vinnie Falco, this file is part of VFLib.
See the file GNU_GPL_v2.txt for full licensing terms.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Pu... | /*============================================================================*/
/*
Copyright (C) 2008 by Vinnie Falco, this file is part of VFLib.
See the file GNU_GPL_v2.txt for full licensing terms.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Pu... | Make dtor virtual in SampleSource | Make dtor virtual in SampleSource
| C | mit | vinniefalco/VFLib,spthaolt/VFLib,spthaolt/VFLib,vinniefalco/VFLib |
48288f1523084969e246b6a50ae5e2b6d4e819b8 | include/shmlog_tags.h | include/shmlog_tags.h | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(Error)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionReuse)
SLTM(SessionClose)
SLTM(BackendOpen)
SLTM(BackendXID)
SLTM(BackendReuse)
SLTM(BackendClose)
SLTM(Htt... | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(Error)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionReuse)
SLTM(SessionClose)
SLTM(BackendOpen)
SLTM(BackendXID)
SLTM(BackendReuse)
SLTM(BackendClose)
SLTM(Htt... | Add shmem tag for Hits | Add shmem tag for Hits
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@361 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache |
6cab757bf92a547a94b319472dc16c536e7c4dc7 | OpenROV/Settings.h | OpenROV/Settings.h |
#ifndef __SETTINGS_H_
#define __SETTINGS_H_
#include <Arduino.h>
#include "Device.h"
// This section is for devices and their configuration
//Kit:
#define HAS_STD_LIGHTS (1)
#define LIGHTS_PIN 5
#define HAS_STD_CAPE (1)
#define HAS_STD_2X1_THRUSTERS (1)
#define HAS_STD_PILOT (1)
#define HAS_STD_CAMERAMOUNT (1)
#defin... |
#ifndef __SETTINGS_H_
#define __SETTINGS_H_
#include <Arduino.h>
#include "Device.h"
// This section is for devices and their configuration
//Kit:
#define HAS_STD_LIGHTS (1)
#define LIGHTS_PIN 5
#define HAS_STD_CAPE (1)
#define HAS_STD_2X1_THRUSTERS (1)
#define HAS_STD_PILOT (1)
#define HAS_STD_CAMERAMOUNT (1)
#defin... | Reset default settings to stock kit configuration | Reset default settings to stock kit configuration
| C | mit | LeeCheongAh/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,binary42/openrov-software-arduino,dieface/openrov-software-arduino,OpenROV/openrov-software-arduino,dieface/openrov-software-arduino,binary42/openrov-software-arduino,BrianAdams/openrov-software-arduino,OpenROV/openrov-software-arduino,OpenROV/op... |
dc2d1193248200276b37d429da9d865bd48c8f9c | mordor/version.h | mordor/version.h | #ifndef __MORDOR_VERSION_H__
#define __MORDOR_VERSION_H__
// OS
#ifdef _WIN32
# define WINDOWS
#else
# define POSIX
#endif
#ifdef __CYGWIN__
# define WINDOWS
# define CYGWIN
#endif
#if defined(linux) || defined(__linux__)
# define LINUX
#endif
#ifdef __APPLE__
# define OSX
# ifndef BSD
# define B... | #ifndef __MORDOR_VERSION_H__
#define __MORDOR_VERSION_H__
// OS
#ifdef _WIN32
# define WINDOWS
#else
# define POSIX
#endif
#ifdef __CYGWIN__
# define WINDOWS
# define CYGWIN
#endif
#if defined(linux) || defined(__linux__)
# define LINUX
#endif
#ifdef __APPLE__
# define OSX
# ifndef BSD
# define B... | Fix compiler warning in release | Fix compiler warning in release
Fix long standing warning that appears multiple time in Stash
release build:
warning C4005: 'NDEBUG' : macro redefinition
(example:
http://build.dechocorp.com/job/sync-release/arch=i386,dist=windows/2043/console)
If NDEBUG is already defined there is no need to define it
Change-Id: ... | C | bsd-3-clause | mtanski/mordor,mozy/mordor,adfin/mordor,mtanski/mordor,adfin/mordor,mozy/mordor,mtanski/mordor,adfin/mordor,mozy/mordor |
eae126f18257b9095732eb7d174b777c12ec82ab | string_hash.h | string_hash.h | #include <string.h>
#include <stdint.h>
/**
* Efficient string hash function.
*/
static uint32_t string_hash(const char *str)
{
uint32_t hash = 0;
int32_t c;
while ((c = *str++))
{
hash = c + (hash << 6) + (hash << 16) - hash;
}
return hash;
}
/**
* Test two strings for equality.
*/
static int string_comp... | #include <string.h>
#include <stdint.h>
/**
* Efficient string hash function.
*/
__attribute__((unused))
static uint32_t string_hash(const char *str)
{
uint32_t hash = 0;
int32_t c;
while ((c = *str++))
{
hash = c + (hash << 6) + (hash << 16) - hash;
}
return hash;
}
/**
* Test two strings for equality.
*... | Mark string functions unused, in case the header is included in files that only use one of them. | Mark string functions unused, in case the header is included in files that only use one of them.
git-svn-id: f6517e426f81db5247881cd92f7386583ace04fa@30387 72102866-910b-0410-8b05-ffd578937521
| C | mit | crontab/libobjc2,skudryas/gnustep-libobjc2,skudryas/gnustep-libobjc2,crontab/libobjc2 |
fd0197d26208b896caa958cc1780e8016f439711 | arch/mips/qemu/q-setup.c | arch/mips/qemu/q-setup.c | #include <linux/init.h>
#include <asm/io.h>
#include <asm/time.h>
#define QEMU_PORT_BASE 0xb4000000
static void __init qemu_timer_setup(struct irqaction *irq)
{
/* set the clock to 100 Hz */
outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */
outb_p(LATCH & 0xff , 0x40); /* LSB */
outb(LATCH >> 8 , 0x40); /* ... | #include <linux/init.h>
#include <asm/io.h>
#include <asm/time.h>
#define QEMU_PORT_BASE 0xb4000000
const char *get_system_type(void)
{
return "Qemu";
}
static void __init qemu_timer_setup(struct irqaction *irq)
{
/* set the clock to 100 Hz */
outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */
outb_p(LATCH ... | Implement get_system_type() for Qemu to get procfs-enabled kernels to link. | Implement get_system_type() for Qemu to get procfs-enabled kernels to
link.
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... |
526ffa6e0d2ec659f847c05c5e0bd9eeec5c6a7c | src/duk_selftest.h | src/duk_selftest.h | /*
* Selftest code
*/
#ifndef DUK_SELFTEST_H_INCLUDED
#define DUK_SELFTEST_H_INCLUDED
DUK_INTERNAL_DECL void duk_selftest_run_tests(void);
#endif /* DUK_SELFTEST_H_INCLUDED */
| /*
* Selftest code
*/
#ifndef DUK_SELFTEST_H_INCLUDED
#define DUK_SELFTEST_H_INCLUDED
#if defined(DUK_USE_SELF_TESTS)
DUK_INTERNAL_DECL void duk_selftest_run_tests(void);
#endif
#endif /* DUK_SELFTEST_H_INCLUDED */
| Fix compile warning when selftests disabled | Fix compile warning when selftests disabled
| C | mit | jmptrader/duktape,zeropool/duktape,nivertech/duktape,reqshark/duktape,kphillisjr/duktape,daimajia/duktape,sloth4413/duktape,kphillisjr/duktape,eddieh/duktape,haosu1987/duktape,sloth4413/duktape,sloth4413/duktape,pombredanne/duktape,skomski/duktape,pombredanne/duktape,skomski/duktape,thurday/duktape,chenyaqiuqiu/duktape... |
c6a31b64d9f980ef3e26bd26e4688788c80d310b | tests/regression/57-floats/12-subtraction_assignment.c | tests/regression/57-floats/12-subtraction_assignment.c | // PARAM: --enable ana.float.interval
#include <assert.h>
// previously failed in line 7 with "exception Invalid_argument("Cilfacade.get_ikind: non-integer type double ")"
//(same error as in sv-comp: float-newlib/float_req_bl_0220a.c)
// similar error also occured in the additional examples when branching on a float ... | // PARAM: --enable ana.float.interval
#include <assert.h>
// previously failed in line 7 with "exception Invalid_argument("Cilfacade.get_ikind: non-integer type double ")"
//(same error as in sv-comp: float-newlib/float_req_bl_0220a.c)
// similar error also occurred in the additional examples when branching on a float... | Modify test 57/12 to actually trigger the issue | Modify test 57/12 to actually trigger the issue
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
9efa56dd26e0ec05823bd367e69e21da3c35af2b | rts/RtsSymbols.h | rts/RtsSymbols.h | /* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 2000-2015
*
* RTS Symbols
*
* ---------------------------------------------------------------------------*/
#ifndef RTS_SYMBOLS_H
#define RTS_SYMBOLS_H
#ifdef LEADING_UNDERSCORE
#define MAYBE_LEADING_UNDERSCO... | /* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 2000-2015
*
* RTS Symbols
*
* ---------------------------------------------------------------------------*/
#ifndef RTS_SYMBOLS_H
#define RTS_SYMBOLS_H
#include "ghcautoconf.h"
#ifdef LEADING_UNDERSCORE
#defi... | Fix the DYNAMIC_GHC_PROGRAMS=NO build on Mac/Windows | Fix the DYNAMIC_GHC_PROGRAMS=NO build on Mac/Windows
LEADING_UNDERSCORE is defined in a header file, so we need to #include
that file where we use LEADING_UNDERSCORE.
Reviewed By: austin
Differential Revision: https://phabricator.haskell.org/D1382
| C | bsd-3-clause | sgillespie/ghc,sgillespie/ghc,sgillespie/ghc,vikraman/ghc,shlevy/ghc,ezyang/ghc,sdiehl/ghc,oldmanmike/ghc,sgillespie/ghc,da-x/ghc,sdiehl/ghc,mcschroeder/ghc,vikraman/ghc,da-x/ghc,elieux/ghc,AlexanderPankiv/ghc,snoyberg/ghc,shlevy/ghc,GaloisInc/halvm-ghc,ezyang/ghc,snoyberg/ghc,tjakway/ghcjvm,tjakway/ghcjvm,vTurbine/ghc... |
be7cae3c5a8571faa97ded3112f339f400d9a2ec | TWTValidation/TWTValidation.h | TWTValidation/TWTValidation.h | //
// TWTValidation.h
// TWTValidation
//
// Created by Prachi Gauriar on 3/28/2014.
// Copyright (c) 2014 Two Toasters, LLC. All rights reserved.
//
@import Foundation;
#import <TWTValidation/TWTValidator.h>
#import <TWTValidation/TWTBlockValidator.h>
#import <TWTValidation/TWTCompoundValidator.h>
#import <TW... | //
// TWTValidation.h
// TWTValidation
//
// Created by Prachi Gauriar on 3/28/2014.
// Copyright (c) 2014 Two Toasters, LLC. All rights reserved.
//
@import Foundation;
#import <TWTValidation/TWTValidator.h>
#import <TWTValidation/TWTValidationErrors.h>
#import <TWTValidation/TWTBlockValidator.h>
#import <TWTV... | Add new classes to umbrella header | Add new classes to umbrella header
| C | mit | twotoasters/TWTValidation,twotoasters/TWTValidation,twotoasters/TWTValidation |
7184f9e8ff130e010be0b6db2875d840a2f12edc | ext/redcarpet/redcarpet.h | ext/redcarpet/redcarpet.h | #ifndef REDCARPET_H__
#define REDCARPET_H__
#define RSTRING_NOT_MODIFIED
#include "ruby.h"
#include <stdio.h>
#ifdef HAVE_RUBY_ENCODING_H
# include <ruby/encoding.h>
# define redcarpet_str_new(data, size, enc) rb_enc_str_new(data, size, enc)
#else
# define redcarpet_str_new(data, size, enc) rb_str_new(data, size)
#en... | #ifndef REDCARPET_H__
#define REDCARPET_H__
#define RSTRING_NOT_MODIFIED
#include "ruby.h"
#include <stdio.h>
#include <ruby/encoding.h>
#define redcarpet_str_new(data, size, enc) rb_enc_str_new(data, size, enc)
#include "markdown.h"
#include "html.h"
#define CSTR2SYM(s) (ID2SYM(rb_intern((s))))
void Init_redcarpe... | Remove encoding conditionals that are no longer required | Remove encoding conditionals that are no longer required
These are no longer needed since we don't support Ruby 1.8.x anymore.
| C | mit | emq/redcarpet,fukayatsu/redcarpet,be9/redcarpet,Hacker0x01/redcarpet,emq/redcarpet,fukayatsu/redcarpet,kattybilly/redcarpet,gitcafe-dev/redcarpet,liquorburn/redcarpet,increments/greenmat,liquorburn/redcarpet,increments/greenmat,JuanitoFatas/redcarpet,Hacker0x01/redcarpet,kaneshin/redcarpet,Hacker0x01/redcarpet,incremen... |
f9316630a5ecdc69d1e0832f24a6b9abd2b45461 | server/tube.c | server/tube.c | #include "common.h"
#include "tube.h"
int FdTube;
FILE *TextTube;
void InitTubes(int textTube, int fdTube) {
SetCloexec(textTube);
SetCloexec(fdTube);
TextTube = fdopen(textTube, "a+");
DieIf(TextTube == 0, "fdopen");
FdTube = fdTube;
}
| #include "common.h"
#include "tube.h"
int FdTube;
FILE *TextTube;
void InitTubes(int textTube, int fdTube) {
SetCloexec(textTube);
SetCloexec(fdTube);
TextTube = fdopen(textTube, "a+");
setlinebuf(TextTube);
DieIf(TextTube == 0, "fdopen");
FdTube = fdTube;
}
| Put TextTube to line buffer mode | Server: Put TextTube to line buffer mode
| C | bsd-2-clause | ke7ofi/elvish,elves/elvish,elves/elvish,beni55/elvish,elves/elvish,CodyGuo/elvish,CodyGuo/elvish,elves/elvish,beni55/elvish,elves/elvish,ke7ofi/elvish |
396a83183195021106acb9262bd7b56242101f20 | include/shmlog_tags.h | include/shmlog_tags.h | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionReuse)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(Response)
SLTM(Status)
SLTM(URL)
SLTM(Protocol)
SLTM(HD_U... | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionReuse)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(HandlingPass)
SLTM(HandlingPipe)
SLTM(Request)
SLTM(Response)
SLTM(Stat... | Add shmlog tags for pipe and pass handling | Add shmlog tags for pipe and pass handling
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@131 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish |
6c02e1f26430e9fdc68f04c974d49b02816b40a5 | arduino/OpenROV/Motors.h | arduino/OpenROV/Motors.h | #ifndef __MOTORS_H_
#define __MOTORS_H_
#include <Servo.h>
#define MIDPOINT 128
class Motors {
private:
Servo port, vertical, starbord;
int port_pin, vertical_pin, starbord_pin;
public:
Motors(int p_pin, int v_pin, int s_pin);
void reset();
void go(int p, int v, int s);
void stop(... | #ifndef __MOTORS_H_
#define __MOTORS_H_
#include <Servo.h>
#define MIDPOINT 90
class Motors {
private:
Servo port, vertical, starbord;
int port_pin, vertical_pin, starbord_pin;
public:
Motors(int p_pin, int v_pin, int s_pin);
void reset();
void go(int p, int v, int s);
void stop()... | Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180) | Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
| C | mit | kavi87/openrov-cockpit,chaudhryjunaid/openrov-cockpit,chaudhryjunaid/openrov-cockpit,BrianAdams/openrov-cockpit,OpenROV/openrov-cockpit,kavi87/openrov-cockpit,BenjaminTsai/openrov-cockpit,BenjaminTsai/openrov-cockpit,spiderkeys/openrov-cockpit,BrianAdams/openrov-cockpit,spiderkeys/openrov-cockpit,BrianAdams/openrov-coc... |
28b425c367f9efa9ed03c339788c936f4f5dc399 | glibc/sysdeps/riscv/bits/string.h | glibc/sysdeps/riscv/bits/string.h | /* This file should provide inline versions of string functions.
Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.
This file should define __STRING_INLINES if functions are actually defined
as inlines. */
#ifndef _BITS_STRING_H
#define _BITS_STRING_H 1
#define _STRING_ARCH_unali... | /* This file should provide inline versions of string functions.
Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.
This file should define __STRING_INLINES if functions are actually defined
as inlines. */
#ifndef _BITS_STRING_H
#define _BITS_STRING_H 1
#define _STRING_ARCH_unali... | Change a "inline" to "__inline__" | Change a "inline" to "__inline__"
So "inline" isn't complient C, which means strict packages won't build
with it. This uses "__inline__" instead, which is ANSI C. This patch
is required to get freetype to build.
| C | lgpl-2.1 | manuelafm/riscv-gnu-toolchain,manuelafm/riscv-gnu-toolchain,manuelafm/riscv-gnu-toolchain |
48fa59bd9ce9c49e23b3ea45e87278f9883f77fb | syscall.c | syscall.c | #include <runtime.h>
#include <cgocall.h>
void runtime·asmstdcall(void *c);
void ·cSyscall(WinCall *c) {
runtime·cgocall(runtime·asmstdcall, c);
}
| #include <runtime.h>
#include <cgocall.h>
void runtime·asmstdcall(void *c);
void ·cSyscall(LibCall *c) {
runtime·cgocall(runtime·asmstdcall, c);
}
| Update for renamed struct in runtime.h (WinCall to LibCall) | Update for renamed struct in runtime.h (WinCall to LibCall)
| C | bsd-2-clause | gnpkrish/com-and-go,gnpkrish/com-and-go,tianlin/com-and-go,vijaygiri10/com-and-go,vijaygiri10/com-and-go |
72310c87a519b3530e54b96cd1ceb84e0d385a9c | math_compat.h | math_compat.h | #ifndef __math_compat_h
#define __math_compat_h
/* Define isnan and isinf on Windows/MSVC */
#ifndef HAVE_DECL_ISNAN
# ifdef HAVE_DECL__ISNAN
#include <float.h>
#define isnan(x) _isnan(x)
# endif
#endif
#ifndef HAVE_DECL_ISINF
# ifdef HAVE_DECL__FINITE
#include <float.h>
#define isinf(x) (!_finite(x))
# endif
#endif... | #ifndef __math_compat_h
#define __math_compat_h
/* Define isnan, isinf, infinity and nan on Windows/MSVC */
#ifndef HAVE_DECL_ISNAN
# ifdef HAVE_DECL__ISNAN
#include <float.h>
#define isnan(x) _isnan(x)
# endif
#endif
#ifndef HAVE_DECL_ISINF
# ifdef HAVE_DECL__FINITE
#include <float.h>
#define isinf(x) (!_finite(x))... | Define INFINITY and NAN when missing | Define INFINITY and NAN when missing
| C | mit | chenha0/json-c,Nzbuu/json-c,alagoutte/json-c,chenha0/json-c,PureSwift/json-c,chenha0/json-c,rgerhards/json-c,Nzbuu/json-c,Amineahd/json-c,cubieb/json-c,cubieb/json-c,Nzbuu/json-c,rgerhards/json-c,haoranzeus/json-c,PureSwift/json-c,colemancda/json-c,alagoutte/json-c,colemancda/json-c,colemancda/json-c,cubieb/json-c,Pure... |
bc7d187cc0e6c65a7dcb2bff013141a4e7d776bb | Airship/Common/UAAction.h | Airship/Common/UAAction.h | /*
Copyright 2009-2013 Urban Airship Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the f... | /*
Copyright 2009-2013 Urban Airship Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the f... | Add action predicate block typedef | Add action predicate block typedef
| C | bsd-2-clause | zhangqinghe/ios-library,ipmobiletech/ios-library,manuyavuz/ios-library,mikerowan/ios-library,grosch/ios-library,manuyavuz/ios-library,zhangqinghe/ios-library,zhangqinghe/ios-library,ipmobiletech/ios-library,mikerowan/ios-library,mikerowan/ios-library,ipmobiletech/ios-library,manuyavuz/ios-library,grosch/ios-library,gro... |
65788a4fd0699c3ed06bdd314ad1a8d5de5a6a3c | tutorial/clock.h | tutorial/clock.h | // A current_time function for use in the tests. Returns time in
// milliseconds.
#ifdef _WIN32
extern "C" bool QueryPerformanceCounter(uint64_t *);
extern "C" bool QueryPerformanceFrequency(uint64_t *);
double current_time() {
uint64_t t, freq;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&freq... | // A current_time function for use in the tests. Returns time in
// milliseconds.
#ifdef _WIN32
#include <Windows.h>
double current_time() {
LARGE_INTEGER freq, t;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&freq);
return (t.QuadPart * 1000.0) / freq.QuadPart;
}
// Gross, these come from W... | Fix build of tutorials that require libpng under Visual Studio. | Fix build of tutorials that require libpng under Visual Studio.
| C | mit | adasworks/Halide,ronen/Halide,smxlong/Halide,rodrigob/Halide,adasworks/Halide,mcanthony/Halide,myrtleTree33/Halide,lglucin/Halide,myrtleTree33/Halide,dougkwan/Halide,damienfir/Halide,fengzhyuan/Halide,dan-tull/Halide,ronen/Halide,lglucin/Halide,adasworks/Halide,aam/Halide,adasworks/Halide,ayanazmat/Halide,myrtleTree33/... |
88238b76084bb7d7e5f2c54a0b4fc56b446af1c4 | src/page_freelist.c | src/page_freelist.c | #include "redislite.h"
#include "page_string.h"
#include "util.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
void redislite_free_freelist(void *_db, void *_page)
{
redislite_page_string* page = (redislite_page_string*)_page;
if (page == NULL) return;
redislite_free(page);
}
void redislite_write_fre... | #include "redislite.h"
#include "page_string.h"
#include "util.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
void redislite_free_freelist(void *_db, void *_page)
{
redislite_page_string* page = (redislite_page_string*)_page;
if (page == NULL) return;
redislite_free(page);
}
void redislite_write_fre... | Remove unused byte in freelist | Remove unused byte in freelist
| C | bsd-2-clause | pombredanne/redislite,seppo0010/redislite,pombredanne/redislite,seppo0010/redislite |
ae2abc0bda94fd1e626223d3ee25e5dc21e94c00 | orc/orconce.c | orc/orconce.c |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <orc/orconce.h>
#include <orc/orcdebug.h>
#if defined(HAVE_THREAD_PTHREAD)
#include <pthread.h>
static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER;
void
_orc_once_init (void)
{
}
void
orc_once_mutex_lock (void)
{
pthread_mutex_lock (&once_... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <orc/orconce.h>
#include <orc/orcdebug.h>
#if defined(HAVE_THREAD_PTHREAD)
#include <pthread.h>
static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER;
void
_orc_once_init (void)
{
}
void
orc_once_mutex_lock (void)
{
pthread_mutex_lock (&once_... | Fix initialization of once mutex | win32: Fix initialization of once mutex
| C | bsd-3-clause | okuoku/nmosh-orc,MOXfiles/orc,okuoku/nmosh-orc,jpakkane/orc,MOXfiles/orc,mojaves/orc,Distrotech/orc,Distrotech/orc,Distrotech/orc,ahmedammar/platform_external_gst_liborc,mojaves/orc,okuoku/nmosh-orc,ahmedammar/platform_external_gst_liborc,ijsf/OpenWebRTC-orc,jpakkane/orc,jpakkane/orc,mojaves/orc,ijsf/OpenWebRTC-orc,ijs... |
7c18a18a5f79a27f52f80921a7b1f666407da6ff | third_party/hwloc/static-components.h | third_party/hwloc/static-components.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... | Include all x86 defines macros for hwloc | Include all x86 defines macros for hwloc
Copied from tensorflow/core/platform/platform.h#L59
Look for both gcc/clang and Visual Studio macros indicating we're compiling
for an x86 device.
| C | apache-2.0 | adit-chandra/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,ageron/tensorflow,annarev/tensorflow,gautam1858/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-... |
f9aaf858f4c83e5ec436aa98e57da8f63b0f64d0 | Masonry/MASCompositeConstraint.h | Masonry/MASCompositeConstraint.h | //
// MASCompositeConstraint.h
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
// Copyright (c) 2013 cloudling. All rights reserved.
//
#import "MASConstraint.h"
#import "MASUtilities.h"
/**
* A group of MASConstraint objects
* conforms to MASConstraint
*/
@interface MASCompositeConstraint : NSObject... | //
// MASCompositeConstraint.h
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
// Copyright (c) 2013 cloudling. All rights reserved.
//
#import "MASConstraint.h"
#import "MASUtilities.h"
/**
* A group of MASConstraint objects
* conforms to MASConstraint
*/
@interface MASCompositeConstraint : NSObject... | Remove non-existent 'view' parameter documentation | Remove non-existent 'view' parameter documentation
This was causing a warning when compiling with `-Wdocumentation` enabled. | C | mit | Lightricks/Masonry,connyliu/Masonry,mainXbegin/MyRepository,linlin5910/Masonry,MoMoWan/Masonry,Shawn-WangDapeng/Masonry,jianwoo/Masonry,fhchina/Masonry,HuylensHu/Masonry,mainXbegin/MyRepository,CoderJason1992/Masonry,LiDechao/Masonry,saberChen/Masonry,k131050059/Masonry,xswm1123/Masonry,k214k/Masonry,MoMoWan/Masonry,li... |
b7b0436fb866c5a19769458d47c72a0d2c55f8c0 | test/default/auth.c | test/default/auth.c |
#define TEST_NAME "auth"
#include "cmptest.h"
/* "Test Case 2" from RFC 4231 */
unsigned char key[32] = "Jefe";
unsigned char c[] = "what do ya want for nothing?";
unsigned char a[32];
int main(void)
{
int i;
crypto_auth(a,c,sizeof c - 1U,key);
for (i = 0;i < 32;++i) {
printf(",0x%02x",(unsigned int) a[i]... |
#define TEST_NAME "auth"
#include "cmptest.h"
/* "Test Case 2" from RFC 4231 */
unsigned char key[32] = "Jefe";
unsigned char c[] = "what do ya want for nothing?";
unsigned char a[32];
int main(void)
{
int i;
crypto_auth(a,c,sizeof c - 1U,key);
for (i = 0;i < 32;++i) {
printf(",0x%02x",(unsigned int) a[i]... | Test the presence of some extra functions | Test the presence of some extra functions
| C | isc | rustyhorde/libsodium,SpiderOak/libsodium,netroby/libsodium,JackWink/libsodium,Payshares/libsodium,eburkitt/libsodium,netroby/libsodium,akkakks/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,zhuqling/libsodium,rustyhorde/libsodium,pyparallel/libsodium,paragonie-scott/libsodium,eburkitt/libsodium,akkakks/libso... |
11cce755880127565e88bd50c63c6f0b7ee6051f | clutter-gst/clutter-gst-shaders.h | clutter-gst/clutter-gst-shaders.h |
#ifndef CLUTTER_GST_SHADERS_H
#define CLUTTER_GST_SHADERS_H
#include <clutter/clutter.h>
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n" \
"varying vec2 tex_coo... |
#ifndef CLUTTER_GST_SHADERS_H
#define CLUTTER_GST_SHADERS_H
#include <clutter/clutter.h>
/* Copied from test-shaders */
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n"
#define TEX_COORD "cogl_te... | Update the shaders to work with Cogl 1.6.0+ and GLES2 | sink: Update the shaders to work with Cogl 1.6.0+ and GLES2
The GLES2 shaders were considered private API until 1.6.0, see
discussion:
https://bugzilla.gnome.org/show_bug.cgi?id=661071
Let's update the variable names and depend on 1.6.0
| C | lgpl-2.1 | GNOME/clutter-gst,skinkie/clutter-gst,lubosz/clutter-gst,skinkie/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,ystreet/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,skinkie/clutter-gst,ystreet/clutter-gst,GNOME/clutter-gst,lubosz/clutter-gst,lubosz/clutter-gst |
81321c880914cd7de46c1234d3cc73eaedd1350e | src/libsodium/include/sodium/utils.h | src/libsodium/include/sodium/utils.h |
#ifndef __SODIUM_UTILS_H__
#define __SODIUM_UTILS_H__
#include <stddef.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __cplusplus
# define _SODIUM_C99(X) X
#else
# define _SODIUM_C99(X)
#endif
unsigned char *_sodium_alignedcalloc(unsigned char ** const unaligned_p,
... |
#ifndef __SODIUM_UTILS_H__
#define __SODIUM_UTILS_H__
#include <stddef.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__cplusplus) || !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
# define _SODIUM_C99(X)
#else
# define _SODIUM_C99(X) X
#endif
unsigned char *_sodium_alignedcal... | Define _SODIUM_C99 as empty on retarded compilers, not only when using C++ | Define _SODIUM_C99 as empty on retarded compilers, not only when using C++
| C | isc | eburkitt/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,tml/libsodium,soumith/libsodium,eburkitt/libsodium,mvduin/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,zhuqling/libsodium,netroby/libsodium,pmienk/libsodium,eburkitt/libsodium,donpark/libsodium,GreatFruitOmsk/libsodium,optedoblivion/android... |
ef1866db76ed10d64bf8cf97111554b2b2eb1278 | tests/torture.c | tests/torture.c | #include "torture.h"
#include <stdio.h>
static int verbosity = 0;
int torture_libssh_verbosity(void){
return verbosity;
}
int main(int argc, char **argv) {
(void) argc;
(void) argv;
return torture_run_tests();
}
| #include <stdio.h>
#include <libssh/libssh.h>
#include "torture.h"
static int verbosity = 0;
int torture_libssh_verbosity(void){
return verbosity;
}
int main(int argc, char **argv) {
int rc;
(void) argc;
(void) argv;
ssh_init();
rc = torture_run_tests();
ssh_finalize();
return rc;... | Call ssh_init() and ssh_finalize() before we run the tests. | tests: Call ssh_init() and ssh_finalize() before we run the tests.
| C | lgpl-2.1 | DouglasHeriot/libssh,DouglasHeriot/libssh,rofl0r/libssh,jt1/honeypot-libssh,kedazo/libssh,kedazo/libssh,robxu9/libssh,bigcat26/libssh-mod,rofl0r/libssh,pouete/libssh,Distrotech/libssh,elastichosts/libssh,bigcat26/libssh-mod,substack/libssh,sebadoom/libssh,bigcat26/libssh-mod,rofl0r/libssh,mwgoldsmith/ssh,substack/libss... |
96ca48b3682489579ed8f429e964462fffa6e095 | Source/core/paint/LayoutObjectDrawingRecorder.h | Source/core/paint/LayoutObjectDrawingRecorder.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 LayoutObjectDrawingRecorder_h
#define LayoutObjectDrawingRecorder_h
#include "core/layout/PaintPhase.h"
#include "platform/geometry/FloatRect.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 LayoutObjectDrawingRecorder_h
#define LayoutObjectDrawingRecorder_h
#include "core/layout/PaintPhase.h"
#include "platform/geometry/LayoutRect.h"... | Convert LayoutDrawingRecorder to be a simple helper of DrawingRecorder | Convert LayoutDrawingRecorder to be a simple helper of DrawingRecorder
This patch makes LayoutDrawingRecorder a non-virual subclass of
DrawingRecorder instead of carrying a DrawingRecorder member. This is
just a cleanup and should have no observable differences.
Review URL: https://codereview.chromium.org/1083223002
... | C | bsd-3-clause | smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk... |
3c4434c3aefc9063544bb2e0224ddc2f9b4cfea9 | Modules/Core/Common/include/itkImageSourceCommon.h | Modules/Core/Common/include/itkImageSourceCommon.h | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | Add missing itkImageRegionSplitterBase to ImageSourceCommon. | COMP: Add missing itkImageRegionSplitterBase to ImageSourceCommon.
Change-Id: I64f5635f1605c4ce4c47d56ad6c6abcda40c130d
| C | apache-2.0 | malaterre/ITK,heimdali/ITK,jmerkow/ITK,spinicist/ITK,spinicist/ITK,biotrump/ITK,atsnyder/ITK,spinicist/ITK,LucHermitte/ITK,biotrump/ITK,fbudin69500/ITK,thewtex/ITK,LucHermitte/ITK,LucasGandel/ITK,spinicist/ITK,msmolens/ITK,zachary-williamson/ITK,PlutoniumHeart/ITK,hendradarwin/ITK,richardbeare/ITK,biotrump/ITK,thewtex/... |
16c82aa3bcf4bdf7a19bdfe424de094b39c96e82 | src/imap/cmd-create.c | src/imap/cmd-create.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(struct client *client)
{
struct mail_storage *storage;
const char *mailbox;
int directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
storage = client_find_stora... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(struct client *client)
{
struct mail_storage *storage;
const char *mailbox, *full_mailbox;
int directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
full_mailbox ... | CREATE was broken if namespace prefixes were set. Patch by Andreas Fuchs. | CREATE was broken if namespace prefixes were set. Patch by Andreas Fuchs.
--HG--
branch : HEAD
| C | mit | dscho/dovecot,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch |
7a41ebe99da12b58622df6112624669a013e7659 | src/libgsm/gsm_create.c | src/libgsm/gsm_create.c | /*
* Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
* Universitaet Berlin. See the accompanying file "COPYRIGHT" for
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "gsm.h"
#include "private.h"
gsm gsm_create ... | /*
* Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
* Universitaet Berlin. See the accompanying file "COPYRIGHT" for
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "gsm.h"
#include "private.h"
gsm gsm_create ... | Fix typos in last commit. | Fix typos in last commit.
| C | lgpl-2.1 | davel/sox,cbagwell/sox,Distrotech/sox,CaptainHayashi/sox,CaptainHayashi/sox,davel/sox,MageSlayer/sox,jacksonh/sox,uklauer/sox,cbagwell/sox,Distrotech/sox,jacksonh/sox,pcqpcq/sox,mhartzel/sox_personal_fork,davel/sox,MageSlayer/sox,cbagwell/sox,MageSlayer/sox,Motiejus/sox,mhartzel/sox_personal_fork,davel/sox,Distrotech/s... |
9a59d6e0df981124edd1be8222f7b2efd41af6f7 | Tests/ObjectiveRocksTests-iOS-Bridging-Header.h | Tests/ObjectiveRocksTests-iOS-Bridging-Header.h | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import <ObjectiveRocks/RocksDB.h>
#import <ObjectiveRocks/RocksDBColumnFamily.h>
#import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h>
#import <ObjectiveRocks/RocksDBIterator.h>
#import <ObjectiveRocks/RocksDBP... | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import <ObjectiveRocks/RocksDB.h>
#import <ObjectiveRocks/RocksDBColumnFamily.h>
#import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h>
#import <ObjectiveRocks/RocksDBIterator.h>
#import <ObjectiveRocks/RocksDBP... | Fix bridging header for iOS Swift tests | Fix bridging header for iOS Swift tests
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks |
1cddcc0c8256bb6a37365d82329638b45bff2381 | ui/aura/event_filter.h | ui/aura/event_filter.h | // Copyright (c) 2011 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 UI_AURA_EVENT_FILTER_H_
#define UI_AURA_EVENT_FILTER_H_
#pragma once
#include "base/logging.h"
#include "ui/gfx/point.h"
namespace aura {
c... | // Copyright (c) 2011 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 UI_AURA_EVENT_FILTER_H_
#define UI_AURA_EVENT_FILTER_H_
#pragma once
#include "base/basictypes.h"
namespace aura {
class Window;
class Mous... | Include basictypes.h for DISALLOW macro. | aura: Include basictypes.h for DISALLOW macro.
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7976010
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@101986 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/... |
7c2c9830d91e8e04788c52e06d1398c9c01e3c1f | nelem.h | nelem.h |
// Copyright 2015 Malcolm Inglis <http://minglis.id.au>
//
// This file is part of Libmacro.
//
// Libmacro 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 Foundation, either version 3 of the License, or (at yo... |
// Copyright 2015 Malcolm Inglis <http://minglis.id.au>
//
// This file is part of Libmacro.
//
// Libmacro 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 Foundation, either version 3 of the License, or (at yo... | Change NELEM to take VA_ARGS to handle commas | Change NELEM to take VA_ARGS to handle commas
| C | agpl-3.0 | mcinglis/libmacro,mcinglis/libmacro,mcinglis/libmacro |
7575a6a3eec8a72cb36276f11924ad7a77185c43 | modules/ti.UI/url/url.h | modules/ti.UI/url/url.h | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#ifndef TITANIUM_URL_H_
#define TITANIUM_URL_H_
namespace ti
{
void NormalizeURLCallback(const char* url, char* buff... | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#ifndef TITANIUM_URL_H_
#define TITANIUM_URL_H_
#ifndef KEYVALUESTRUCT
typedef struct {
char* key;
char* val... | Include KeyValuePair definition, if needed. | Include KeyValuePair definition, if needed.
| C | apache-2.0 | wyrover/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,jvkops/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,jvk... |
00ce45e79a3abaf31a3861001b06107f461dcc90 | src/StdAfx.h | src/StdAfx.h |
/* StdAfx.h
*
* Copyright (C) 2013 Michael Imamura
*
* 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 ... |
/* StdAfx.h
*
* Copyright (C) 2013 Michael Imamura
*
* 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 ... | Add more common includes to PCH. | Add more common includes to PCH.
| C | apache-2.0 | ZoogieZork/Adventures-in-SDL2,ZoogieZork/Adventures-in-SDL2 |
2ec3a7c7af52d69bebbb149af9e6f09c0537c87f | src/common.h | src/common.h | /*
* This file is part of hat-trie.
*
* Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu>
*
*
* Common typedefs, etc.
*
*/
#ifndef HATTRIE_COMMON_H
#define HATTRIE_COMMON_H
typedef unsigned long value_t;
#endif
| /*
* This file is part of hat-trie.
*
* Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu>
*
*
* Common typedefs, etc.
*
*/
#ifndef HATTRIE_COMMON_H
#define HATTRIE_COMMON_H
#include "pstdint.h"
typedef uintptr_t value_t;
#endif
| Switch `value_t` to be `uintptr_t`. | Switch `value_t` to be `uintptr_t`.
This allows `value_t` to be 64-bit even on 64-bit architectures where
`unsigned long` is still 32-bit.
| C | mit | mheilman/hat-trie,dcjones/hat-trie,mheilman/hat-trie |
e3a06f573bba62836623a5bc6aab7b6df4c235e5 | common/timing.h | common/timing.h | #pragma once
#include <time.h>
#include <sys/time.h>
static inline unsigned long long current_time_ns() {
#ifdef __MACH__
clock_serv_t cclock;
mach_timespec_t mts;
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);
clock_get_time(cclock, &mts);
mach_port_deallocate(mach_task_self()... | #pragma once
#include <time.h>
#include <sys/time.h>
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
#endif
static inline unsigned long long current_time_ns() {
#ifdef __MACH__
clock_serv_t cclock;
mach_timespec_t mts;
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);
... | Fix compilation errors on Mac OS | Fix compilation errors on Mac OS
| C | bsd-3-clause | habanero-rice/tasking-micro-benchmark-suite,habanero-rice/tasking-micro-benchmark-suite,habanero-rice/tasking-micro-benchmark-suite |
b3ac11e59b52a1fe715defc31664de840124c8b9 | src/io/terminal_io.h | src/io/terminal_io.h | #ifndef TERMINALIO_H
#define TERMINALIO_H
typedef struct io io_t;
typedef struct chip8 chip8_t;
io_t * terminal_io_new(void);
void terminal_io_render(io_t *, chip8_t *);
void terminal_io_listen(io_t *, chip8_t *);
#endif
| #ifndef TERMINAL_IO_H
#define TERMINAL_IO_H
typedef struct io io_t;
typedef struct chip8 chip8_t;
io_t * terminal_io_new(void);
void terminal_io_render(io_t *, chip8_t *);
void terminal_io_listen(io_t *, chip8_t *);
#endif
| Use TERMINAL_IO_H as inclusion guard | Use TERMINAL_IO_H as inclusion guard
| C | mit | gsamokovarov/chip8.c,gsamokovarov/chip8.c |
0991b7ce2c05818328bfa2c63d84aa5a42f807a5 | src/core/util/cpptoml.h | src/core/util/cpptoml.h | // -----------------------------------------------------------------------------
//
// Copyright (C) The BioDynaMo Project.
// 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.
//
// See the LICENSE file distrib... | // -----------------------------------------------------------------------------
//
// Copyright (C) The BioDynaMo Project.
// 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.
//
// See the LICENSE file distrib... | Add macro to assign Double3 values from toml files | Add macro to assign Double3 values from toml files
| C | apache-2.0 | BioDynaMo/biodynamo,BioDynaMo/biodynamo,BioDynaMo/biodynamo,BioDynaMo/biodynamo |
c6ca1e4e1a51dd96759930447ffdb8ee93070893 | src/whitgl/logging.c | src/whitgl/logging.c | #include <stdarg.h>
#include <stdio.h>
#include <whitgl/logging.h>
#define LOG_BUFFER_MAX (256)
char _buffer[LOG_BUFFER_MAX];
void whitgl_logit(const char *file, const int line, const char *str, ...)
{
va_list args;
va_start(args, str);
vsnprintf(_buffer, LOG_BUFFER_MAX, str, args);
printf("%24s:%03d %s\n", fil... | #include <stdarg.h>
#include <stdio.h>
#include <whitgl/logging.h>
#define LOG_BUFFER_MAX (256)
char _buffer[LOG_BUFFER_MAX];
void whitgl_logit(const char *file, const int line, const char *str, ...)
{
va_list args;
va_start(args, str);
vsnprintf(_buffer, LOG_BUFFER_MAX, str, args);
printf("%24s:%03d %s\n", fil... | Use __builtin_trap to break to debugger | Use __builtin_trap to break to debugger
| C | mit | whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl |
18ab829f18d2d6e3ef8330820ee95dab9a24809a | test/src/test_util.c | test/src/test_util.c | #include "test_util.h"
#include <util.h>
#include <ftw.h>
#include <stdio.h>
static int remove_callback(const char* file,
const struct stat* UNUSED(stat),
int UNUSED(typeflag),
struct FTW* UNUSED(ftwbuf)) {
return remove(file);
}
int... | #include "test_util.h"
#include <util.h>
#include <ftw.h>
#include <stdio.h>
static int remove_callback(const char* file,
const struct stat* UNUSED(stat),
int UNUSED(typeflag),
struct FTW* UNUSED(ftwbuf)) {
return remove(file);
}
int... | Delete test directory only if it exists | Delete test directory only if it exists
This should fix tests.
| C | bsd-3-clause | rbruggem/mqlog,rbruggem/mqlog |
f97b16539903d9cdf18fedde80d8c70e629f7935 | numpy/core/src/multiarray/multiarraymodule_onefile.c | numpy/core/src/multiarray/multiarraymodule_onefile.c | /*
* This file includes all the .c files needed for a complete multiarray module.
* This is used in the case where separate compilation is not enabled
*/
#include "common.c"
#include "hashdescr.c"
#include "numpyos.c"
#include "scalarapi.c"
#include "descriptor.c"
#include "flagsobject.c"
#include "ctors.c"
#inclu... | /*
* This file includes all the .c files needed for a complete multiarray module.
* This is used in the case where separate compilation is not enabled
*
* Note that the order of the includs matters
*/
#include "common.c"
#include "arraytypes.c"
#include "hashdescr.c"
#include "numpyos.c"
#include "scalarapi.c"
... | Include arraytypes.c early for the no separate compilation case. | Include arraytypes.c early for the no separate compilation case.
| C | bsd-3-clause | rmcgibbo/numpy,stuarteberg/numpy,hainm/numpy,ajdawson/numpy,jonathanunderwood/numpy,jonathanunderwood/numpy,njase/numpy,MaPePeR/numpy,rhythmsosad/numpy,simongibbons/numpy,dimasad/numpy,mhvk/numpy,Srisai85/numpy,CMartelLML/numpy,rhythmsosad/numpy,solarjoe/numpy,Anwesh43/numpy,cowlicks/numpy,sinhrks/numpy,ContinuumIO/num... |
dd61142aeb5732142483b303c8f54224ba274b3d | NestSDK/NestSDK/NestSDKAccessToken.h | NestSDK/NestSDK/NestSDKAccessToken.h | #import <Foundation/Foundation.h>
#import <JSONModel/JSONModel.h>
#pragma mark macros
#pragma mark const
FOUNDATION_EXTERN NSString *const NestSDKAccessTokenDidChangeNotification;
#pragma mark enum
#pragma mark typedef
#pragma mark Protocol
@interface NestSDKAccessToken : NSObject <NSSecureCoding>
#pragma mark P... | #import <Foundation/Foundation.h>
#import <JSONModel/JSONModel.h>
#pragma mark macros
#pragma mark const
FOUNDATION_EXTERN NSString *const NestSDKAccessTokenDidChangeNotification;
FOUNDATION_EXTERN NSString *const NestSDKAccessTokenChangeNewKey;
FOUNDATION_EXTERN NSString *const NestSDKAccessTokenChangeOldKey;
#pr... | Access token change key added for export | Access token change key added for export
| C | mit | petroakzhygitov/nest-ios-sdk,petroakzhygitov/nest-ios-sdk,petroakzhygitov/nest-ios-sdk |
2af2e83757582fdc8f5838562d2c6377afef4536 | include/Mixer.h | include/Mixer.h | /* $Id$ */
/* Copyright (c) 2017 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Mixer */
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the Li... | /* $Id$ */
/* Copyright (c) 2017 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Mixer */
/* 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. Redistri... | Complete the license switch to 2-clause BSD | Complete the license switch to 2-clause BSD
Thanks ocochard for the heads up!
| C | bsd-2-clause | DeforaOS/Mixer,DeforaOS/Mixer |
cdc4160c8aff31bdb7859285d021f5a122ed755d | docs/sample_code/MYINST/MYINST.h | docs/sample_code/MYINST/MYINST.h | #include <Instrument.h> // the base class for this instrument
class MYINST : public Instrument {
public:
MYINST();
virtual ~MYINST();
virtual int init(double *, int);
virtual int configure();
virtual int run();
private:
void doupdate();
int _nargs, _inchan, _branch;
float _amp, _pan;
float *_in;
};
| #include <Instrument.h> // the base class for this instrument
class MYINST : public Instrument {
public:
MYINST();
virtual ~MYINST();
virtual int init(double *, int);
virtual int configure();
virtual int run();
private:
void doupdate();
float *_in;
int _nargs, _inchan, _branch;
float _amp, _pan;
};
| Change order of declarations to suppress compiler warning. | Change order of declarations to suppress compiler warning.
| C | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
c4faa6a77516f51e292f32b4bbe379a9ceffcd73 | geom/geocad/inc/TOCCExports.h | geom/geocad/inc/TOCCExports.h | // @(#)geom/geocad:$Id$
// Author: Cinzia Luzzi 5/5/2012
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)geom/geocad:$Id$
// Author: Cinzia Luzzi 5/5/2012
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Revert "[GeoCAD] Protect all of OpenCascade headers from declaring Printf." | Revert "[GeoCAD] Protect all of OpenCascade headers from declaring Printf."
This reverts commit c71e9ade417b5c1c9f3de614672a0060037df931.
| C | lgpl-2.1 | olifre/root,karies/root,karies/root,olifre/root,olifre/root,karies/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,karies/root,root-mirror/root,karies/root,root-mirr... |
d37ba3ca6d6134078cf064cf69a6c0e25fdc35e0 | include/uwhd/sync/ModelSync.h | include/uwhd/sync/ModelSync.h | //===-- ModelSync.h - Wireless Syncing of GameModel ---------------- c++ --===//
//
// UWH Timer
//
// This file is distributed under the BSD 3-Clause License.
// See LICENSE.TXT for details.
//
//===-----------------------------------------------------------... | //===-- ModelSync.h - Wireless Syncing of GameModel ---------------- c++ --===//
//
// UWH Timer
//
// This file is distributed under the BSD 3-Clause License.
// See LICENSE.TXT for details.
//
//===-----------------------------------------------------------... | Add missing destructor bodies... oops | [sync] Add missing destructor bodies... oops
| C | bsd-3-clause | Navisjon/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display |
cddefbcae9e86420f4f98646a49ea4ff2fa1a6b0 | app/include/u8g2_fonts.h | app/include/u8g2_fonts.h |
#ifndef _U8G2_FONTS_H
#define _U8G2_FONTS_H
#define U8G2_FONT_TABLE_ENTRY(font)
// ***************************************************************************
// Configure U8glib fonts
//
#ifndef U8G2_FONT_TABLE_EXTRA
//
// Add a U8G2_FONT_TABLE_ENTRY for each font you want to compile into the image
#define U8G2_FON... |
#ifndef _U8G2_FONTS_H
#define _U8G2_FONTS_H
#define U8G2_FONT_TABLE_ENTRY(font)
// ***************************************************************************
// Configure U8glib fonts
//
#ifndef U8G2_FONT_TABLE_EXTRA
//
// Add a U8G2_FONT_TABLE_ENTRY for each font you want to compile into the image
// See https://g... | Add comment for font list | Add comment for font list
| C | mit | marcelstoer/nodemcu-firmware,FelixPe/nodemcu-firmware,nwf/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nodemcu/nodemcu-firmware,eku/nodemcu-firmware,TerryE/nodemcu-firmware,vsky279/nodemcu-firmware,marcelstoer/nodemcu-firmware,devsaurus/nodemcu-firmware,eku/nodemcu-firmware,FelixPe/nodemcu-firmware,vsky279/nodemcu-firmwa... |
8d0c966cb3b23c9383c76d7bd919fff09702cc31 | include/gvki/Debug.h | include/gvki/Debug.h | #ifndef GVKILL_DEBUG_H
#define GVKILL_DEBUG_H
#include <cstdlib>
#include <iostream>
// FIXME: These need to be made Windows comptabile
#define DEBUG(X) if (getenv("GVKI_DEBUG") != NULL) X
#define DEBUG_MSG(X) DEBUG( std::cerr << "\033[32m***GVKILL:" << X << "***\033[0m" << std::endl)
// FIXME: This belongs in its o... | #ifndef GVKILL_DEBUG_H
#define GVKILL_DEBUG_H
#include <cstdlib>
#include <iostream>
// FIXME: These need to be made Windows comptabile
#define DEBUG(X) if (getenv("GVKI_DEBUG") != NULL) X
#define DEBUG_MSG(X) DEBUG( std::cerr << "\033[32m***GVKI:" << X << "***\033[0m" << std::endl)
// FIXME: This belongs in its own... | Fix typos in DEBUG_MSG and ERROR_MSG macros | Fix typos in DEBUG_MSG and ERROR_MSG macros
| C | bsd-3-clause | mc-imperial/gvki,mc-imperial/gvki,giuliojiang/gvki,giuliojiang/gvki,mc-imperial/gvki,giuliojiang/gvki |
cb6f7f153352d83d52ee0c5c35ab11845b072512 | zephyr/test/drivers/src/test_mocks.c | zephyr/test/drivers/src/test_mocks.c | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "test_mocks.h"
DEFINE_FFF_GLOBALS;
/* Mocks for common/init_rom.c */
DEFINE_FAKE_VALUE_FUNC(const void *, init_rom_map, const void *, in... | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <ztest.h>
#include "test_mocks.h"
DEFINE_FFF_GLOBALS;
/* Mocks for common/init_rom.c */
DEFINE_FAKE_VALUE_FUNC(const void *, init_rom_m... | Add a test rule to reset the FFF fakes | zephyr: Add a test rule to reset the FFF fakes
Add a test rule to reset all the fakes so that tests no longer
have to be responsible for it.
BRANCH=none
BUG=none
TEST=zmake configure --clobber --test test-drivers
Signed-off-by: Yuval Peress <50dc11c009bd4d7e9d9d15a383c1743ce5ee82ef@google.com>
Change-Id: Ifbb9107aec... | C | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec |
f2e0239a6d615477e783bf413d5dde860f2b12de | MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerInternal.h | MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerInternal.h | /** @file
Internal Header file for PEI Services Table Pointer Library.
Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The f... | /** @file
Internal Header file for PEI Services Table Pointer Library.
Copyright (c) 2006, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The f... | Fix the constructor typo. The new type should follow PI spec. | Fix the constructor typo. The new type should follow PI spec.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@4363 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
bcf3710e675c279e04aa90ef12f97f3b686597c7 | Router/RTRNodeState.h | Router/RTRNodeState.h | //
// RTRNodeState.h
// Router
//
// Created by Nick Tymchenko on 14/09/15.
// Copyright (c) 2015 Pixty. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, RTRNodeState) {
RTRNodeStateNotInitialized = 0,
RTRNodeStateInactive = 1,
RTRNodeStateDeactivating = 2,
RTRN... | //
// RTRNodeState.h
// Router
//
// Created by Nick Tymchenko on 14/09/15.
// Copyright (c) 2015 Pixty. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, RTRNodeState) {
RTRNodeStateNotInitialized = 0,
RTRNodeStateInactive = 1,
RTRNodeStateDeactivating = 2,
RTRN... | Add helper functions for state | Add helper functions for state
| C | mit | joomcode/Lighthouse,pixty/Lighthouse,joomcode/Lighthouse,pixty/Router |
958bfb18a876a10d862ba71a34c67bf15ccf3274 | src/parse_git_st.h | src/parse_git_st.h | #ifndef __PARSE_GIT_ST_H
#define __PARSE_GIT_ST_H
#include <vector>
#include <string>
const int PIPE_LINE_BUFFER_SIZE = 256;
class GitStatusParser {
std::vector<std::string*> pipe_buffer;
std::string* branch;
std::vector<std::string*> new_files;
std::vector<std::string*> modified_files;
std::vec... | #ifndef __PARSE_GIT_ST_H
#define __PARSE_GIT_ST_H
#include <vector>
#include <string>
const int PIPE_LINE_BUFFER_SIZE = 256;
class GitStatusParser {
std::vector<std::string*> pipe_buffer;
std::string* branch;
std::vector<std::string*> new_files;
std::vector<std::string*> modified_files;
std::vec... | Add getters for branch and files. | Add getters for branch and files.
| C | mit | tomaszwojcik/git-ec,tomaszwojcik/git-ec |
ba47f3aadd8375867bad03c508dffa3b3228c67a | src/test.c | src/test.c | #include "config.h"
#include <util/delay.h>
#include "usart.h"
void send_block(unsigned bytes, char *buff)
{
for(int i = 0; i < bytes; ++i)
{
usart_transmit(buff[i]);
}
}
int main(int argc, char **argv)
{
usart_init();
char msg[] = "Loading bootloader in 3 seconds.";
send_block(sizeo... | #include "config.h"
#include <util/delay.h>
#include "usart.h"
void send_block(unsigned bytes, char *buff)
{
for(int i = 0; i < bytes; ++i)
{
usart_transmit(buff[i]);
}
}
int main(int argc, char **argv)
{
usart_init();
char msg[] = "Loading bootloader in 3 seconds.";
send_block(sizeo... | Test application was jumping to a wrong address. | Test application was jumping to a wrong address.
| C | mit | MiroslavVitkov/megaboot,MiroslavVitkov/megaboot |
20e037a8c506c9918ffe25e092a6a593187d93d5 | lib/Target/ARM/ARMTargetObjectFile.h | lib/Target/ARM/ARMTargetObjectFile.h | //===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix a typo - this unbreaks llvm-gcc build on arm | Fix a typo - this unbreaks llvm-gcc build on arm
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@78059 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,ll... |
82f76d7cbaaa0839555e1054b246a5cc79b6b17d | queue.h | queue.h | #include <stdlib.h>
#ifndef __QUEUE_H__
#define __QUEUE_H__
struct Queue;
typedef struct Queue Queue;
#endif | #include <stdlib.h>
#ifndef __QUEUE_H__
#define __QUEUE_H__
struct Queue;
typedef struct Queue Queue;
Queue* Queue_Create(size_t n);
void Queue_Destroy(Queue* q);
void Queue_Enqueue(Queue* q, void* e);
void* Queue_Dequeue(Queue* q);
#endif | Add basic operation function declaration | Add basic operation function declaration
| C | mit | MaxLikelihood/CADT |
2df15fffc612b53b2c8e4ff3c981a82441bc00ae | drivers/crypto/padlock.h | drivers/crypto/padlock.h | /*
* Driver for VIA PadLock
*
* Copyright (c) 2004 Michal Ludvig <michal@logix.cz>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
... | /*
* Driver for VIA PadLock
*
* Copyright (c) 2004 Michal Ludvig <michal@logix.cz>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
... | Fix sparse warning about 1-bit signed bit-field | [PADLOCK] Fix sparse warning about 1-bit signed bit-field
Change the bit-field in struct cword to unsigned to shut sparse up.
Signed-off-by: Herbert Xu <ef65de1c7be0aa837fe7b25ba9a7739905af6a55@gondor.apana.org.au>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program... |
0c5865eeaa060368d4e69a6effbfe90b82335d32 | include/gui-components.h | include/gui-components.h | #ifndef GUI_COMPONENTS
#define GUI_COMPONENTS
void typewriterTextEffect() {
}
//reminder: use composition
//reminder: game will be played almost entirely through keyboard
class TextBox {
};
class ContextMenu {};
#endif
| #ifndef GUI_COMPONENTS
#define GUI_COMPONENTS
#endif
| DELETE USELESS CLASSES -ok that was fun | DELETE USELESS CLASSES -ok that was fun
| C | apache-2.0 | Blaze349/Pokemon-Clone,Blaze349/Pokemon-Clone |
29f847ae3dae83f4ab24b8a9f1ecffc74d49d68c | xchainer/array_node.h | xchainer/array_node.h | #pragma once
#include <memory>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
namespace xchainer {
class OpNode;
class ArrayNode {
public:
ArrayNode() = default;
const std::shared_ptr<OpNode>& next_node() { return next_node_; }
std::shared_ptr<const OpNode> next_node() const { return next... | #pragma once
#include <memory>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
namespace xchainer {
class OpNode;
class ArrayNode {
public:
ArrayNode() = default;
const std::shared_ptr<OpNode>& next_node() { return next_node_; }
std::shared_ptr<const OpNode> next_node() const { return next... | Use reset() to make optional empty | Use reset() to make optional empty
| C | mit | ktnyt/chainer,wkentaro/chainer,wkentaro/chainer,wkentaro/chainer,okuta/chainer,hvy/chainer,niboshi/chainer,niboshi/chainer,keisuke-umezawa/chainer,hvy/chainer,keisuke-umezawa/chainer,tkerola/chainer,jnishi/chainer,chainer/chainer,keisuke-umezawa/chainer,ktnyt/chainer,okuta/chainer,jnishi/chainer,chainer/chainer,jnishi/... |
aba69416a9ab69d96e3927d098c293aaca2799e3 | wfd/parser/driver.h | wfd/parser/driver.h | /*
* This file is part of wysiwidi
*
* Copyright (C) 2014 Intel Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opt... | /*
* This file is part of wysiwidi
*
* Copyright (C) 2014 Intel Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opt... | Add user-defined constructor to the wfd::Driver class | Add user-defined constructor to the wfd::Driver class
| C | lgpl-2.1 | michaelolbrich/wds,jku/wysiwidi,alexshalamov/wysiwidi-2,felipemogollon/wysiwidi,01org/wds,michaelolbrich/wds,UIKit0/wysiwidi,ayoubayoub/wysiwidi,01org/wds,275288698/wds,felipemogollon/wysiwidi,alexshalamov/wysiwidi-2,ironsmile/wysiwidi,michaelolbrich/wds,ironsmile/wysiwidi,ayoubayoub/wysiwidi,alexshalamov/wds,UIKit0/wy... |
486d2738965d5e62c08e42a29cc635e6e9be7477 | 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.
--HG--
branch : HEAD
| C | mit | jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot |
55a46b37da13f6db357392b53132593341ad116e | src/plugins/zlib/istream-bzlib.c | src/plugins/zlib/istream-bzlib.c | /* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"
#ifdef HAVE_BZLIB
#include <bzlib.h>
#define BZLIB_INCLUDE
#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gzread BZ2_bzread
#de... | /* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"
#ifdef HAVE_BZLIB
#include <stdio.h>
#include <bzlib.h>
#define BZLIB_INCLUDE
#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gz... | Include stdio.h in case bzlib.h needs it. | bzlib: Include stdio.h in case bzlib.h needs it.
| C | mit | damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot |
e8fad243e1003a0113dc229ed18bd16651c009b4 | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
#define NUMERO_DE_TENTATIVAS 5
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
... | #include <stdio.h>
#define NUMERO_DE_TENTATIVAS 5
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
... | Update files, Alura, Introdução a C, Aula 2.9 | Update files, Alura, Introdução a C, Aula 2.9
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
4c840f9e0771e5f91fd467f93e5309a290567f2a | JMAttributedFormat.h | JMAttributedFormat.h | //
// JMAttributedFormat.h
// JMAttributedFormat
//
// Created by Jonathon Mah on 2015-04-11.
// This file is licensed under the MIT License. See LICENSE.txt for full details.
//
#import <Foundation/Foundation.h>
@interface NSObject (JMAttributedFormat_Optional)
- (NSAttributedString *)attributedDescription;
@en... | //
// JMAttributedFormat.h
// JMAttributedFormat
//
// Created by Jonathon Mah on 2015-04-11.
// This file is licensed under the MIT License. See LICENSE.txt for full details.
//
#import <Foundation/Foundation.h>
@interface NSObject (JMAttributedFormat_Optional)
- (nullable NSAttributedString *)attributedDescrip... | Add nullable annotations to header | Add nullable annotations to header
| C | mit | jmah/JMAttributedFormat |
34a63918b86f54ccf4bd53b82bf9396a11007e31 | src/hooks.h | src/hooks.h | /*
* hooks.h
* StatusSpec project
*
* Copyright (c) 2014 thesupremecommander
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#pragma once
#include "stdafx.h"
#include <map>
#define CLIENT_DLL
#define GLOWS_ENABLE
#include "cdll_int.h"
#include "KeyValues.h"
#include "igamer... | /*
* hooks.h
* StatusSpec project
*
* Copyright (c) 2014 thesupremecommander
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#pragma once
#include "stdafx.h"
#include <map>
#define CLIENT_DLL
#define GLOWS_ENABLE
#include "cdll_int.h"
#include "KeyValues.h"
#include "igamer... | Remove map not used anymore. | Remove map not used anymore.
| C | bsd-2-clause | fwdcp/StatusSpec,fwdcp/StatusSpec |
794927c94dd8c7644a94a05d12d260ee4322fad5 | include/systemMacro.h | include/systemMacro.h | //PLEASE INCLUDE THIS FILE ON ANY ANNWVYN HEADER
/*This file conrain macro and symbols definition that have to be
* parsed by precompiler on each file.
* They handle diferencies between compilers
*/
//-------------------------DLL EXPORT -------------------------------//
//DLL management for visual studio compiller.
#... | //PLEASE INCLUDE THIS FILE ON ANY ANNWVYN HEADER
/*This file conrain macro and symbols definition that have to be
* parsed by precompiler on each file.
* They handle diferencies between compilers
*/
//-------------------------DLL EXPORT -------------------------------//
//DLL management for visual studio compiller.
#... | Correct compillation for GCC apparently... | Correct compillation for GCC apparently...
| C | mit | Ybalrid/Annwvyn,Ybalrid/Annwvyn,Ybalrid/Annwvyn |
ff35a2bf9537e5d46271a58e7e40f50aa1bbd20f | libtest/GlobalVariable.c | libtest/GlobalVariable.c | #include <sys/types.h>
#include <stdint.h>
typedef int8_t s8;
typedef uint8_t u8;
typedef int16_t s16;
typedef uint16_t u16;
typedef int32_t s32;
typedef uint32_t u32;
typedef int64_t s64;
typedef uint64_t u64;
typedef signed long sL;
typedef unsigned long uL;
typedef float f32;
typedef double f64;
typedef unsigned lo... | #include <sys/types.h>
#include <stdint.h>
typedef int8_t s8;
typedef uint8_t u8;
typedef int16_t s16;
typedef uint16_t u16;
typedef int32_t s32;
typedef uint32_t u32;
typedef int64_t s64;
typedef uint64_t u64;
typedef signed long sL;
typedef unsigned long uL;
typedef float f32;
typedef double f64;
typedef unsigned lo... | Initialize all the global vars in the hope it will stop MacOS from complaining | Initialize all the global vars in the hope it will stop MacOS from complaining
| C | bsd-3-clause | majioa/ffi,mvz/ffi,majioa/ffi,majioa/ffi,mvz/ffi,yghannam/ffi,yghannam/ffi,MikaelSmith/ffi,ferventcoder/ffi,sparkchaser/ffi,MikaelSmith/ffi,tduehr/ffi,ferventcoder/ffi,tduehr/ffi,yghannam/ffi,ffi/ffi,ffi/ffi,ferventcoder/ffi,sparkchaser/ffi,ferventcoder/ffi,majioa/ffi,MikaelSmith/ffi,ffi/ffi,sparkchaser/ffi,sparkchaser... |
98de92ee0513d37d2eb9fff482f999bb229540b7 | link-grammar/lg_assert.h | link-grammar/lg_assert.h | /* There is no include guard here - by purpose. This file can be included
* after system includes that redefine the assert() macro.
* The actual problem for which this file got separated from utilities.h
* happens in the sat-solver code, when local include files include
* Solver.h which in turn includes the system'... | /* There is no include guard here - by purpose. This file can be included
* after system includes that redefine the assert() macro.
* The actual problem for which this file got separated from utilities.h
* happens in the sat-solver code, when local include files include
* Solver.h which in turn includes the system'... | Document 2 FIXME's for an app-embedded LG library | assert(): Document 2 FIXME's for an app-embedded LG library
| C | lgpl-2.1 | ampli/link-grammar,linas/link-grammar,opencog/link-grammar,opencog/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,linas/link-grammar,linas/link-grammar,linas/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,linas/link-grammar,opencog/link-grammar,ampl... |
03cbdc9d568682564dbdd115ddce031aae1da6c5 | runtime/src/launch/zebra/launch-zebra.c | runtime/src/launch/zebra/launch-zebra.c | #include <stdio.h>
#include <string.h>
#include "chpllaunch.h"
#include "chpl_mem.h"
#include "error.h"
static char* chpl_launch_create_command(int argc, char* argv[],
int32_t numLocales) {
int i;
int size;
char baseCommand[256];
char* command;
chpl_compute_real_bina... | #include <stdio.h>
#include <string.h>
#include "chpllaunch.h"
#include "chpl_mem.h"
#include "error.h"
static char** chpl_launch_create_argv(int argc, char* argv[]) {
const int largc = 3;
char *largv[largc];
largv[0] = (char *) "zebra";
largv[1] = (char *) "-fast";
largv[2] = (char *) "-r";
return chpl... | Update the zebra launcher to use chpl_launch_using_exec() as implemented in r18010. | Update the zebra launcher to use chpl_launch_using_exec() as
implemented in r18010.
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@18032 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| C | apache-2.0 | CoryMcCartan/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/c... |
2b03ded9e3f9a0668784a2090852625adfd58485 | sys/config/include/config/config_fcb.h | sys/config/include/config/config_fcb.h | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Update to catch up with renames of internal structures. | Update to catch up with renames of internal structures.
| C | apache-2.0 | mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,wes3/incubator-mynewt-core,mlaz/mynewt-core,wes3/incubator-mynewt-core,an... |
e920c4cab8adfdbddac8ff0f06da083a533aab87 | Kit/iOSKit.h | Kit/iOSKit.h | //
// iOSKit.h
// iOSKit
//
// Created by Yarik Smirnov on 1/23/12.
// Copyright (c) 2012 e-Legion ltd. All rights reserved.
//
#ifndef Elegion_iOSKit_h
#define Elegion_iOSKit_h
#import "ELIconView.h"
#import "ELInfoView.h"
#import "ELPickerView.h"
#import "ELSwipeController.h"
#endif
| //
// iOSKit.h
// iOSKit
//
// Created by Yarik Smirnov on 1/23/12.
// Copyright (c) 2012 e-Legion ltd. All rights reserved.
//
#ifndef Elegion_iOSKit_h
#define Elegion_iOSKit_h
#import "ELIconView.h"
#import "ELInfoView.h"
#import "ELPickerView.h"
#import "ELSwipeController.h"
#endif
| Add Drawing Kit header in general header | Add Drawing Kit header in general header
| C | apache-2.0 | elegion/iOSKit,elegion/iOSKit |
e8105903d78c81119754a42926951d9d17e191ba | arch/powerpc/include/asm/kmap_types.h | arch/powerpc/include/asm/kmap_types.h | #ifndef _ASM_POWERPC_KMAP_TYPES_H
#define _ASM_POWERPC_KMAP_TYPES_H
#ifdef __KERNEL__
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your opti... | #ifndef _ASM_POWERPC_KMAP_TYPES_H
#define _ASM_POWERPC_KMAP_TYPES_H
#ifdef __KERNEL__
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your opti... | Fix DEBUG_HIGHMEM build break from d4515646699 | powerpc: Fix DEBUG_HIGHMEM build break from d4515646699
Code was added to mm/higmem.c that depends on several
kmap types that powerpc does not support. We add dummy
invalid definitions for KM_NMI, KM_NM_PTE, and KM_IRQ_PTE.
According to list discussion, this fix should not be needed
anymore starting with 2.6.33. Th... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
dd45649d55a60797d3d8b4fe665862df0cbf6a79 | examples/c/plcdemos.h | examples/c/plcdemos.h | /* $Id$
Everything needed by the C demo programs.
Created to avoid junking up plplot.h with this stuff.
*/
#ifndef __PLCDEMOS_H__
#define __PLCDEMOS_H__
#include "plConfig.h"
#include "plplot.h"
#include <math.h>
#include <string.h>
#include <ctype.h>
/* define PI if not defined by math.h */
/* Actually M_PI see... | /* $Id$
Everything needed by the C demo programs.
Created to avoid junking up plplot.h with this stuff.
*/
#ifndef __PLCDEMOS_H__
#define __PLCDEMOS_H__
#include <math.h>
#include <string.h>
#include <ctype.h>
#include "plConfig.h"
#include "plplot.h"
/* define PI if not defined by math.h */
/* Actually M_PI se... | Move system header files to top in order to get rid of redefine warnings for Visual C++. | Move system header files to top in order to get rid of redefine warnings for Visual C++.
svn path=/trunk/; revision=9609
| C | lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot |
0d108288da8d10c4ecb149d3df0ccf09c3af4b78 | src/chemkit/point3.h | src/chemkit/point3.h | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the ... | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the ... | Add typedefs for Point3f and Point3d | Add typedefs for Point3f and Point3d
This adds two typedefs for Point3f and Point3d.
| C | bsd-3-clause | kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit |
a7601999342df118f9b9f1acdcf96c0478239638 | test/CodeGen/PR2001-bitfield-reload.c | test/CodeGen/PR2001-bitfield-reload.c | // RUN: clang-cc -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t
// RUN: grep "ret i32" %t | count 1
// RUN: grep "ret i32 1" %t | count 1
// PR2001
/* Test that the result of the assignment properly uses the value *in
the bitfield* as opposed to the RHS. */
static int f... | // RUN: clang-cc -triple i386-unknown-unknown -O3 -emit-llvm -o - %s | FileCheck %s
// PR2001
/* Test that the result of the assignment properly uses the value *in
the bitfield* as opposed to the RHS. */
static int foo(int i) {
struct {
int f0 : 2;
} x;
return (x.f0 = i);
}
int bar() {
// CHECK: ret i3... | Update a test to FileCheck. | Update a test to FileCheck.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@89610 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
6d58640be1e9d8bf8408864f293b75c1d48da06b | src/opencc_convert.h | src/opencc_convert.h | /*
* Open Chinese Convert
*
* Copyright 2010 BYVoid <byvoid1@gmail.com>
*
* 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... | /*
* Open Chinese Convert
*
* Copyright 2010 BYVoid <byvoid1@gmail.com>
*
* 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... | Check cplusplus in header files. | Check cplusplus in header files.
| C | apache-2.0 | BYVoid/OpenCC,capturePointer/OpenCC,wisperwinter/OpenCC,BYVoid/OpenCC,mxgit1090/OpenCC,j717273419/OpenCC,BYVoid/OpenCC,Arthur2e5/OpenCC,xuecai/OpenCC,chongwf/OpenCC,mxgit1090/OpenCC,PeterCxy/OpenCC,capturePointer/OpenCC,chongwf/OpenCC,xuecai/OpenCC,chongwf/OpenCC,BYVoid/OpenCC,capturePointer/OpenCC,Arthur2e5/OpenCC,mxg... |
774da31effcdeb4e70817e8e28f89fd623403269 | src/psysclose-unix.c | src/psysclose-unix.c | /*
* Copyright (C) 2016 Alexander Saprykin <xelfium@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
... | /*
* Copyright (C) 2016 Alexander Saprykin <xelfium@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
... | Handle EINTR when doing close() only on HP-UX | Handle EINTR when doing close() only on HP-UX
| C | unknown | saprykin/plib,saprykin/plibsys,saprykin/plibsys,saprykin/plib,saprykin/plibsys |
4875bf2dc8e4ac99863c4756857e553e02090b48 | test/Sema/attr-used.c | test/Sema/attr-used.c | // RUN: %clang_cc1 -verify -fsyntax-only -Wno-private-extern %s
extern int l0 __attribute__((used)); // expected-warning {{used attribute ignored}}
__private_extern__ int l1 __attribute__((used)); // expected-warning {{used attribute ignored}}
struct __attribute__((used)) s { // expected-warning {{'used' attribute on... | // RUN: %clang_cc1 -verify -fsyntax-only -Wno-private-extern %s
extern int l0 __attribute__((used)); // expected-warning {{used attribute ignored}}
__private_extern__ int l1 __attribute__((used)); // expected-warning {{used attribute ignored}}
struct __attribute__((used)) s { // expected-warning {{'used' attribute on... | Check that we don't warn on this testcase. This is basically a test that Decl::isUsed checks the attribute. If the function had a body just the check is DeclMustBeEmitted would be sufficient. | Check that we don't warn on this testcase. This is basically a test that
Decl::isUsed checks the attribute. If the function had a body just the check
is DeclMustBeEmitted would be sufficient.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@168514 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
bb1747b1bf92431e5c5e9699824d2ef52f863f45 | fmacros.h | fmacros.h | #ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE
#endif
#if... | #ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
#define _XOPEN_SOURCE 600
#endif
#if __APPLE__ && __MACH__
#define _OSX
#endif
#endif
| Fix strerror_r on some esoteric platforms | Fix strerror_r on some esoteric platforms
Defining _XOPEN_SOURCE=1 causes strange behavior on Debian kfreebsd
archs (i.e. GNU userspace with FreeBSD kernel) when _GNU_SOURCE is not
defined.
Not sure I fully understand the bizarre semantics, but it seems to
use the XSI-compliant interface
(int strerror_r(int, char*, s... | C | bsd-3-clause | thomaslee/hiredis,thomaslee/hiredis,jinguoli/hiredis,owent-contrib/hiredis,owent-contrib/hiredis,redis/hiredis,redis/hiredis,jinguoli/hiredis,redis/hiredis,jinguoli/hiredis,charsyam/hiredis,charsyam/hiredis |
7e4fff3bb420820b67562ccd1d706e17d795cf8d | UnitTest++/RequiredCheckTestReporter.h | UnitTest++/RequiredCheckTestReporter.h | #ifndef UNITTEST_REQUIRED_CHECK_TEST_REPORTER_H
#define UNITTEST_REQUIRED_CHECK_TEST_REPORTER_H
#include "HelperMacros.h"
#include "ThrowingTestReporter.h"
namespace UnitTest {
class TestResults;
// This RAII class decorates the current TestReporter with
// a version that throws after reporting a failure.
... | #ifndef UNITTEST_REQUIRED_CHECK_TEST_REPORTER_H
#define UNITTEST_REQUIRED_CHECK_TEST_REPORTER_H
#include "HelperMacros.h"
#include "ThrowingTestReporter.h"
namespace UnitTest {
class TestResults;
// This RAII class decorates the current TestReporter with
// a version that throws after reporting a failure.
... | Fix "assignment operator could not be generated" warning | Fix "assignment operator could not be generated" warning
This shows up with /W4 on MSVC. Fixes #107.
| C | mit | grahamreeds/unittest-cpp,unittest-cpp/unittest-cpp,pjohnmeyer/unittest-cpp,pjohnmeyer/unittest-cpp,grahamreeds/unittest-cpp,unittest-cpp/unittest-cpp,unittest-cpp/unittest-cpp,grahamreeds/unittest-cpp |
c925a7d9aa57a5e4436cea8902518f93875230f3 | src/tests/recursion/stack_recursion.c | src/tests/recursion/stack_recursion.c | /**
* @file
* @brief tests proper stack usage (particularly, right handling
* of window overflow/underflow on SPARC).
*
* @date 14.08.09
* @author Eldar Abusalimov
*/
#include <embox/test.h>
#include <test/misc.h>
#define RECURSION_DEPTH 32
EMBOX_TEST(run);
static int run(void) {
return test_misc_recursion(... | /**
* @file
* @brief Tests proper stack usage.
*
* @date 14.08.09
* @author Eldar Abusalimov
*/
#include <embox/test.h>
#include <test/misc.h>
EMBOX_TEST_SUITE("Stack usage tests");
static int fib(int k) {
if (k < 2) {
return k;
} else {
return fib(k - 1) + fib(k - 2);
}
}
TEST_CASE("Recursively calcul... | Rewrite recursion test to calculate Fibonacci | Rewrite recursion test to calculate Fibonacci | C | bsd-2-clause | Kefir0192/embox,gzoom13/embox,gzoom13/embox,vrxfile/embox-trik,Kakadu/embox,vrxfile/embox-trik,embox/embox,mike2390/embox,Kakadu/embox,vrxfile/embox-trik,Kefir0192/embox,Kefir0192/embox,Kakadu/embox,mike2390/embox,mike2390/embox,abusalimov/embox,Kefir0192/embox,Kakadu/embox,mike2390/embox,mike2390/embox,embox/embox,emb... |
235f68e300b1941b36349111f0921ac506859b72 | firmware/Nanpy/cfg.h | firmware/Nanpy/cfg.h | #pragma once
#define BAUDRATE 115200
#define USE_Servo 1
#define USE_Tone 0
#define USE_LiquidCrystal 1
#define USE_Stepper 1
#define USE_EEPROM 1
#define USE... | #pragma once
#define BAUDRATE 115200
#define USE_Servo 1
#define USE_Tone 0
#define USE_LiquidCrystal 1
#define USE_Stepper 1
#define USE_EEPROM 1
#define USE... | Disable features requiring external libs | Disable features requiring external libs
| C | mit | joppi/nanpy,ryanvade/nanpy,nanpy/nanpy |
ca74d831440a39165d25d220e30a2f0a6f678301 | libgnomeui/gnome-window.h | libgnomeui/gnome-window.h | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* gnome-window.h: wrappers for setting window properties
*
* Author: Chema Celorio <chema@celorio.com>
*/
/*
* These functions are a convenience wrapper for gtk_window_set_title
* This allows all the gnome-apps to have a consitent wa... | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* gnome-window.h: wrappers for setting window properties
*
* Author: Chema Celorio <chema@celorio.com>
*/
/*
* These functions are a convenience wrapper for gtk_window_set_title
* This allows all the gnome-apps to have a consitent wa... | Use GtkDialog, not GnomeDialog. (GnomeAbout, GnomeAbout): Derive from | Use GtkDialog, not GnomeDialog. (GnomeAbout, GnomeAbout): Derive from
2001-04-25 Martin Baulig <baulig@suse.de>
* gnome-about.[ch]: Use GtkDialog, not GnomeDialog.
(GnomeAbout, GnomeAbout): Derive from GtkDialog, not GnomeDialog.
* gnome-client.[ch]: Likewise.
(gnome_client_save_any_dialog, gnome_client_save_e... | C | lgpl-2.1 | Distrotech/libgnomeui,Distrotech/libgnomeui,Distrotech/libgnomeui |
a141b0159da3f91cd0086552fd0a4056e7043546 | libavcodec/lzo.h | libavcodec/lzo.h | /*
* LZO 1x decompression
* copyright (c) 2006 Reimar Doeffinger
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License,... | /*
* LZO 1x decompression
* copyright (c) 2006 Reimar Doeffinger
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License,... | Fix _LZO_H vs. LZO_H typo | Fix _LZO_H vs. LZO_H typo
git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@7732 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
| C | lgpl-2.1 | prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg |
01dc85d1e99ea9ff3c09b67985f52c77ce461315 | tests/apps/wine.h | tests/apps/wine.h | /**************************************************************************
*
* Copyright 2016 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software wit... | /**************************************************************************
*
* Copyright 2016 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software wit... | Use __inline to fix MSVC build. | tests/apps: Use __inline to fix MSVC build.
| C | lgpl-2.1 | jrfonseca/drmingw,jrfonseca/drmingw,jrfonseca/drmingw,jrfonseca/drmingw |
bf7e1ff9c40570768a5c0f57b68ec6188479db66 | primitiv/model.h | primitiv/model.h | #ifndef PRIMITIV_MODEL_H_
#define PRIMITIV_MODEL_H_
#include <string>
#include <vector>
#include <unordered_map>
#include <unordered_set>
namespace primitiv {
class Parameter;
/**
* Set of parameters and specific algorithms.
*/
class Model {
Model(const Model &) = delete;
Model &operator=(const Model &) = del... | #ifndef PRIMITIV_MODEL_H_
#define PRIMITIV_MODEL_H_
#include <string>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <primitiv/mixins.h>
namespace primitiv {
class Parameter;
/**
* Set of parameters and specific algorithms.
*/
class Model : mixins::Nonmovable<Model> {
public:
Mode... | Add Nonmovable inheritance to Model. | Add Nonmovable inheritance to Model.
| C | apache-2.0 | odashi/primitiv,odashi/primitiv,odashi/primitiv |
a532922ccf61505c9ac667ae40f617aea8376f95 | SSPSolution/SSPSolution/LeverEntity.h | SSPSolution/SSPSolution/LeverEntity.h | #ifndef SSPAPPLICATION_ENTITIES_LEVERENTITY_H
#define SSPAPPLICATION_ENTITIES_LEVERENTITY_H
#include "Entity.h"
struct LeverSyncState {
};
class LeverEntity :
public Entity
{
private:
//Variables
bool m_isActive;
float m_range;
public:
LeverEntity();
virtual ~LeverEntity();
int Initialize(int entityID, Physi... | #ifndef SSPAPPLICATION_ENTITIES_LEVERENTITY_H
#define SSPAPPLICATION_ENTITIES_LEVERENTITY_H
#include "Entity.h"
struct LeverSyncState {
int entityID;
bool iActive;
};
class LeverEntity :
public Entity
{
private:
//Variables
bool m_isActive;
float m_range;
bool m_needSync;
public:
LeverEntity();
virtual ~Lev... | UPDATE Lever entity sync state | UPDATE Lever entity sync state
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
0e213c5f54728abb8404b6382342fb08da8c086e | src/ioc/ioc.h | src/ioc/ioc.h | #ifndef APIMOCK_IOC_H
#define APIMOCK_IOC_H
#include <unordered_map>
#include <string>
namespace ApiMock {
class ServiceRegistry {
static std::unordered_map<std::string, void*> container;
public:
template<typename T>
static void Register(T* object) {
container[typeid(T).name()] = reinterpret_cast<void*>(... | #ifndef APIMOCK_IOC_H
#define APIMOCK_IOC_H
#include <unordered_map>
#include <typeinfo>
#include <string>
namespace ApiMock {
class ServiceRegistry {
static std::unordered_map<std::string, void*> container;
public:
template<typename T>
static void Register(T* object) {
container[typeid(T).name()] = rein... | Include typeinfo header for RTTI | Include typeinfo header for RTTI
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
c761f40467a76c5bba819324ddc489c214c5a5da | test/Analysis/uninit-vals-ps-region.c | test/Analysis/uninit-vals-ps-region.c | // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
struct s {
int data;
};
struct s global;
void g(int);
void f4() {
int a;
if (global.data == 0)
a = 3;
if (global.data == 0) // When the true branch is feasible 'a = 3'.
g(a); // no-warning
}
| // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
struct s {
int data;
};
struct s global;
void g(int);
void f4() {
int a;
if (global.data == 0)
a = 3;
if (global.data == 0) // When the true branch is feasible 'a = 3'.
g(a); // no-warning
}
// Test uninitialized value due ... | Add uninitialized values test case. | Add uninitialized values test case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@80388 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
cfd228e32d8544d1bf088106060a88479dc5fbb6 | intf/include/monsoon/metric_value-inl.h | intf/include/monsoon/metric_value-inl.h | #ifndef MONSOON_METRIC_VALUE_INL_H
#define MONSOON_METRIC_VALUE_INL_H
#include <utility>
namespace monsoon {
inline metric_value::metric_value(metric_value&& other) noexcept
: value_(std::move(other.value_))
{}
inline auto metric_value::operator=(metric_value&& other) noexcept
-> metric_value& {
value_ = std::m... | #ifndef MONSOON_METRIC_VALUE_INL_H
#define MONSOON_METRIC_VALUE_INL_H
#include <utility>
namespace monsoon {
inline metric_value::metric_value(metric_value&& other) noexcept
: value_(std::move(other.value_))
{}
inline auto metric_value::operator=(metric_value&& other) noexcept
-> metric_value& {
value_ = std::m... | Use an unsigned long for non-negative longs. | Use an unsigned long for non-negative longs.
| C | bsd-2-clause | nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus |
4ebbd5b7b92a0b184605c9a64a16e49417ce37a2 | Sources/FKBenchmark.h | Sources/FKBenchmark.h | // Part of FoundationKit http://foundationk.it
#import <mach/mach_time.h>
#import "FKInternal.h"
/**
If we are in Debug-Mode this functions benchmarks the given block and logs
information about it's duration. Otherwise the block is just executed.
@param title the name of the benchmark
@param block the block to ... | // Part of FoundationKit http://foundationk.it
#import <mach/mach_time.h>
#import "FKInternal.h"
/**
If we are in Debug-Mode this functions benchmarks the given block and logs
information about it's duration. Otherwise the block is just executed.
@param title the name of the benchmark
@param block the block to ... | Fix analyzer warning that title is not read | Fix analyzer warning that title is not read
| C | mit | foundationkit/FoundationKit,foundationkit/FoundationKit,foundationkit/FoundationKit |
db57bd7faea002d5e73e0468a6e131416c1059df | phase-01/main.c | phase-01/main.c | #include <stdlib.h>
int main(int argc, char *argv[])
{
return EXIT_SUCCESS;
}
| /**
* Phase 01 - Get a Window that works and can be closed.
*
* This code won't be structured very well, just trying to get stuff working.
*/
#include <stdlib.h>
int main(int argc, char *argv[])
{
return EXIT_SUCCESS;
}
| Add a little header explaining the purpose of phase-01 | Add a little header explaining the purpose of phase-01
| C | mit | Faison/xlib-learning |
111522b5ef16dd6907e194a6b1f4d9af5d0dc0fa | code/src/util/tools.h | code/src/util/tools.h | /*
* tools.h
*
* Created on: May 4, 2011
* Author: wozniak
*/
#ifndef TOOLS_H
#define TOOLS_H
/**
Determine the length of an array of pointers
*/
int array_length(void** array);
#define append(string, args...) string += sprintf(string, ## args)
#endif /* TOOLS_H_ */
| /*
* tools.h
*
* Created on: May 4, 2011
* Author: wozniak
*/
#ifndef TOOLS_H
#define TOOLS_H
/**
Determine the length of an array of pointers
*/
int array_length(void** array);
#define append(string, args...) string += sprintf(string, ## args)
#define vappend(string, args...) string += vsprintf(stri... | Check in new macro vappend()- not actually used | Check in new macro vappend()- not actually used
git-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@1737 dc4e9af1-7f46-4ead-bba6-71afc04862de
| C | apache-2.0 | basheersubei/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,swift-lang/swift-t,swift-lang/swift-t,blue42u/swift-t,swift-lang/swift-t,blue42u/swift-t,blue42u/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,blue42u/swift-t,swift-lang/swift-t,blue42u/swift-t,swift-lang/swift-t,ba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.