commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
9e317ee873422d95bee44059585ea107f12d76ab | alura/c/forca.c | alura/c/forca.c | #include <stdio.h>
#include <string.h>
void abertura() {
printf("*******************\n");
printf("* Jogo de Forca *\n");
printf("*******************\n\n");
}
int main() {
char palavrasecreta[20];
sprintf(palavrasecreta, "MELANCIA");
int acertou = 0;
int enforcou = 0;
char chutes[26];
int tentat... | #include <stdio.h>
#include <string.h>
void abertura() {
printf("*******************\n");
printf("* Jogo de Forca *\n");
printf("*******************\n\n");
}
void chuta() {
char chute;
printf("Qual letra? ");
scanf(" %c", &chute);
chutes[tentativas] = chute;
tentativas++;
}
int main() {
char pal... | Update files, Alura, Introdução a C - Parte 2, Aula 4.2 | Update files, Alura, Introdução a C - Parte 2, Aula 4.2
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
bf666ed43d3e13c4234487585589f82370608d8e | compat.h | compat.h | #ifndef COMPAT_H
#define COMPAT_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef __dead
#define __dead
#endif
#ifndef HAVE_REALLOCARRAY
void *reallocarray(void *, size_t, size_t);
#endif /* !HAVE_REALLOCARRAY */
#endif /* COMPAT_H */
| #ifndef COMPAT_H
#define COMPAT_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef __FreeBSD__
#define __dead __dead2
#endif /* __FreeBSD__ */
#if defined(__linux__) || defined(__CYGWIN__)
#ifndef __dead
#ifdef __GNUC__
#define __dead __attribute__((__noreturn__))
#else
#define __dead
#endif
#endif
#endif /* ... | Revert "Only define __dead if it's missing" | Revert "Only define __dead if it's missing"
This reverts commit 7f5694ac1cf3a68b462a9f22e03a12a719249ee5.
Partial fix to #202.
| C | mit | DBOTW/pick,thoughtbot/pick,thoughtbot/pick,DBOTW/pick,DBOTW/pick,calleerlandsson/pick,calleerlandsson/pick,thoughtbot/pick,thoughtbot/pick,calleerlandsson/pick |
3c593c947c55984815838c6ad7dce3b66cced4a3 | test/CFrontend/2008-02-11-AnnotateBuiltin.c | test/CFrontend/2008-02-11-AnnotateBuiltin.c | // RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.annotation
int main() {
int x = 0;
return __builtin_annotation(x, "annotate");
}
| Test case for annotate builtin. | Test case for annotate builtin.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@46999 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,ap... | |
58a63187d7c783687c04349e59c72d2f3a04af42 | Smartling.i18n/SmartlingLib.h | Smartling.i18n/SmartlingLib.h | // Copyright 2015 Smartling, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this work except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2015 Smartling, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this work except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Fix import to be able to use Smartling.i18n as dynamic framework via cocoapods | Fix import to be able to use Smartling.i18n as dynamic framework via cocoapods
| C | apache-2.0 | Smartling/ios-i18n,belkevich/ios-i18n,Smartling/ios-i18n,belkevich/ios-i18n |
22feab4c47ae7b5a6f41cbcdf83a6649ae62b0a1 | cpp/Spellable.h | cpp/Spellable.h | // Spellable.h
#ifndef SPELLABLE_H
#define SPELLABLE_H
#include <string>
template <class T>
class Spellable {
T* value;
public:
Spellable() {};
Spellable(T* value): value(value) {}
Spellable(T v) { value = new T(v); }
void SetValue(T* v) { value = v; }
void SetValue(T v) { value = new T(v); }
T GetValue() c... | // Spellable.h
#ifndef SPELLABLE_H
#define SPELLABLE_H
#include <string>
template <class T>
class Spellable {
T* value;
public:
// TODO: new values are never deleted!
Spellable() { value = NULL; };
Spellable(T* value): value(value) {}
Spellable(T v) { value = new T(v); }
void SetValue(T* v) { value = v; }
... | Handle precision of fractions better | Handle precision of fractions better | C | cc0-1.0 | dancxjo/spell-dollars,dancxjo/spell-dollars,dancxjo/spell-dollars |
cf1dc543f142263917468c19249d6a3e920b17b2 | src/entropy/win32_stats/es_win32.h | src/entropy/win32_stats/es_win32.h | /**
* Win32 EntropySource Header File
* (C) 1999-2008 Jack Lloyd
*/
#ifndef BOTAN_ENTROPY_SRC_WIN32_H__
#define BOTAN_ENTROPY_SRC_WIN32_H__
#include <botan/entropy_src.h>
namespace Botan {
/**
* Win32 Entropy Source
*/
class BOTAN_DLL Win32_EntropySource : public EntropySource
{
public:
std::string name... | /**
* Win32 EntropySource Header File
* (C) 1999-2008 Jack Lloyd
*/
#ifndef BOTAN_ENTROPY_SRC_WIN32_H__
#define BOTAN_ENTROPY_SRC_WIN32_H__
#include <botan/entropy_src.h>
namespace Botan {
/**
* Win32 Entropy Source
*/
class BOTAN_DLL Win32_EntropySource : public EntropySource
{
public:
std::string name... | Fix return types in declaration | Fix return types in declaration
| C | bsd-2-clause | webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz... |
303c1b421822d50d2f7313ae538e2dc33f096d33 | deps/include/cgen_intrinsics.h | deps/include/cgen_intrinsics.h | /*
Copyright (c) 2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the follo... | /*
Copyright (c) 2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the follo... | Use int64_t for cgen intrinsics | Use int64_t for cgen intrinsics
| C | bsd-2-clause | JuliaPackageMirrors/ParallelAccelerator.jl,IntelLabs/ParallelAccelerator.jl,malekbr/julia-to-tiramisu |
057101774bb1130712d69607015dfc13df81256d | src/template.c | src/template.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
off_t get_file_size(const char *filename) {
struct stat buffer;
return (stat(filename, &buffer)==0 ? buffer.st_size : -1);
}
int file_is_readable(char *filename) {
if ( access(filename, R_... | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
off_t get_file_size(const char *filename) {
struct stat buffer;
return (stat(filename, &buffer)==0 ? buffer.st_size : -1);
}
int file_is_readable(char *filename) {
if ( access(filename, R_... | Add printing of file size | Add printing of file size
| C | apache-2.0 | nathanielng/code-templates,nathanielng/code-templates,nathanielng/code-templates |
5146b6a58c922e99626f9c8a9f8bd7d042ab7536 | hist/inc/TH1I.h | hist/inc/TH1I.h | // @(#)root/hist:$Name: $:$Id: TH1I.h,v 1.1 2002/05/18 11:02:49 brun Exp $
// Author: Rene Brun 08/09/2003
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | // @(#)root/hist:$Name: $:$Id: TH1I.h,v 1.1 2003/09/08 12:50:23 brun Exp $
// Author: Rene Brun 08/09/2003
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Fix a typo (thanks to Robert Hatcher) | Fix a typo (thanks to Robert Hatcher)
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@10919 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT |
ba9bc2d01d0b260f73b1eb087afc057bb3538eb5 | MBTA-APIs/Services/MBTA-v2/ServiceMBTA_sensitive.h | MBTA-APIs/Services/MBTA-v2/ServiceMBTA_sensitive.h | //
// ServiceMBTA_sensitive.h
// MBTA-APIs
//
// Created by Steve Caine on 01/05/115.
// Copyright (c) 2015 Steve Caine. All rights reserved.
//
// your private key to the MBTA-v2 API goes here
#define key_MBTA_v2_API @""
// you should not commit any version of this file that contains the key
// to any source-co... | //
// ServiceMBTA_sensitive.h
// MBTA-APIs
//
// Created by Steve Caine on 01/05/15.
// Copyright (c) 2015 Steve Caine. All rights reserved.
//
// your private key to the MBTA-v2 API goes here
#define key_MBTA_v2_API @""
// you should not commit any version of this file that contains the key
// to any source-con... | Fix typo in created date. | Fix typo in created date.
| C | mit | SteveCaine/MBTA-RestKit,SteveCaine/MBTA-RestKit |
3249f48c79fefb59f834a02fb8c0acb816064610 | include/shell.h | include/shell.h | #ifndef SHELL_H
#define SHELL_H
#include <stdbool.h>
#define report_error() fprintf(stderr, "[%s: %s():%d] %s\n", __FILE__, \
__FUNCTION__, \
__LINE__, \
strerror(errno));
#define sizeof_array(x) (sizeof(x) / sizeof(*x))
#define DEFAULT_PROMPT "$ "
#define DEFAULT_PATH "/bin:/usr/bin/:/... | #ifndef SHELL_H
#define SHELL_H
#include <stdbool.h>
#define report_error() fprintf(stderr, "[%s: %s():%d] %s\n", __FILE__, \
__FUNCTION__, \
__LINE__, \
strerror(errno));
#define sizeof_array(x) (sizeof(x) / sizeof(*x))
typedef struct command_t{
char **array;
unsigned int eleme... | Remove double definition of default env variables | Remove double definition of default env variables
| C | mit | tywkeene/Shell |
d95a2b00d4fb8f00865295192b524b3f047a2d96 | temperature.c | temperature.c | // Copyright 2016, Jeffrey E. Bedard
#include "temperature.h"
#include "config.h"
#include "font.h"
#include "util.h"
#include <stdio.h>
uint8_t get_temp(void)
{
return xstatus_system_value(XSTATUS_SYSFILE_TEMPERATURE) / 1000;
}
// Returns x offset for next item
uint16_t draw_temp(xcb_connection_t * xc, const uint16_t... | // Copyright 2016, Jeffrey E. Bedard
#include "temperature.h"
#include "config.h"
#include "font.h"
#include "util.h"
#include <stdio.h>
static uint8_t get_temp(void)
{
return xstatus_system_value(XSTATUS_SYSFILE_TEMPERATURE) / 1000;
}
static uint8_t format(char * restrict buf, const uint8_t sz)
{
return snprintf(buf... | Make get_temp() static. Split out format(). | Make get_temp() static. Split out format().
| C | mit | jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus |
2d612e6f8088ddb930dc26fc90e1ba2e3dd0284b | test2/vla/standard_nonconst.c | test2/vla/standard_nonconst.c | // RUN: %ocheck 1 '-DNULL=(void *)0'
// RUN: %ocheck 0 '-DNULL=0'
int null_is_ptr_type()
{
char s[1][1+(int)NULL];
int i = 0;
sizeof s[i++];
return i;
}
main()
{
return null_is_ptr_type();
}
| // RUN: %ocheck 1 %s '-DNULL=(void *)0'
// RUN: %ocheck 0 %s '-DNULL=0'
int null_is_ptr_type()
{
char s[1][1+(int)NULL];
int i = 0;
sizeof s[i++];
return i;
}
main()
{
return null_is_ptr_type();
}
| Fix standard-nonconst vla test commands | Fix standard-nonconst vla test commands
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
0b08a3698e0cc1a26d7a85238c5035ceeb564e3a | src/keyimpl.h | src/keyimpl.h | #pragma once
#include "jwtxx/jwt.h"
#include <string>
namespace JWTXX
{
struct Key::Impl
{
virtual ~Impl() {}
virtual std::string sign(const void* data, size_t size) const = 0;
virtual bool verify(const void* data, size_t size, const std::string& signature) const = 0;
};
}
| #pragma once
#include "jwtxx/jwt.h"
#include <string>
namespace JWTXX
{
struct Key::Impl
{
// Need this for polymorphic behavior.
virtual ~Impl() = default;
// Need this due to the Rule of Five.
Impl() = default;
Impl(const Impl&) = delete;
Impl& operator=(const Impl&) = delete;
Impl(Imp... | Enable move and disable copy for key implementations. | Enable move and disable copy for key implementations.
| C | mit | madf/jwtxx,madf/jwtxx,RealImage/jwtxx,RealImage/jwtxx |
c4eb3b452e12e514b75a77d2fe3caf0f64962353 | iOS/PlayPlan/Profile/ProfileViewController.h | iOS/PlayPlan/Profile/ProfileViewController.h | //
// ProfileViewController.h
// PlayPlan
//
// Created by Zeacone on 15/11/8.
// Copyright © 2015年 Zeacone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PlayPlan.h"
@interface ProfileViewController : UIViewController <UITableViewDelegate, UITableViewDataSource>
@end
| //
// ProfileViewController.h
// PlayPlan
//
// Created by Zeacone on 15/11/8.
// Copyright © 2015年 Zeacone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PlayPlan.h"
@class ProfileViewController;
@protocol MainDelegate <NSObject>
- (void)dismissViewController:(MainViewController *)mainViewController... | Add delegate for profile view controller. | Add delegate for profile view controller.
| C | mit | Zeacone/PlayPlan,Zeacone/PlayPlan |
205fdc8110e486b439b5ad280aba63f049a6b7e7 | test2/inline/cant.c | test2/inline/cant.c | // RUN: %check -e %s
#define always_inline __attribute((always_inline))
always_inline hidden(int);
void always_inline __attribute((noinline)) noinline(void)
{
}
always_inline void print(const char *fmt, ...)
{
}
always_inline void old(a, b)
int a, b;
{
}
always_inline void addr(int x)
{
int *p = &x;
*p = 3;
}
... | Test inability to inline certain functions | Test inability to inline certain functions
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler | |
3c48e853eb6e6e85a4429b717620cfa9a5218867 | SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c | SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c | /** @file
Provides a secure platform-specific method to detect physically present user.
Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this d... | /** @file
Provides a secure platform-specific method to detect physically present user.
Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this d... | Update the default return value of UserPhysicalPresent to TRUE. | Update the default return value of UserPhysicalPresent to TRUE.
Signed-off-by: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@13191 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 |
022915baa2aa0f7c026d22591ece0c914254b6b4 | test/Parser/cxx-in-c.c | test/Parser/cxx-in-c.c | // RUN: %clang_cc1 -fsyntax-only -verify
// PR9137
void f0(int x) : {};
void f1(int x) try {};
| // RUN: %clang_cc1 -fsyntax-only -verify %s
// PR9137
void f0(int x) : {}; // expected-error{{expected function body after function declarator}}
void f1(int x) try {}; // expected-error{{expected function body after function declarator}}
| Fix test for previous commit | Fix test for previous commit
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@124861 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
d3b29d4bbec8837a655dde42f2b0cdb852b2626d | MFSideMenu/MFSideMenuShadow.h | MFSideMenu/MFSideMenuShadow.h | //
// MFSideMenuShadow.h
// MFSideMenuDemoSearchBar
//
// Created by Michael Frederick on 5/13/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MFSideMenuShadow : NSObject
@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign... | //
// MFSideMenuShadow.h
// MFSideMenuDemoSearchBar
//
// Created by Michael Frederick on 5/13/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MFSideMenuShadow : NSObject
@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign... | Change weak reference to assign for backwards compatibility | Change weak reference to assign for backwards compatibility
| C | bsd-3-clause | appcom-interactive/MFSideMenu,Magnat12/MFSideMenu,mikefrederick/MFSideMenu,andrespch/MFSideMenu,AxialExchange/MFSideMenu,eleostech/MFSideMenu |
cfa529182fda9e64aaf4621800ec7e8724892737 | test/CFrontend/2006-07-31-PR854.c | test/CFrontend/2006-07-31-PR854.c | // RUN: llvm-gcc %s -S -o -
// PR854
struct kernel_symbol {
unsigned long value;
};
unsigned long loops_per_jiffy = (1<<12);
static const char __kstrtab_loops_per_jiffy[]
__attribute__((section("__ksymtab_strings"))) = "loops_per_jiffy";
static const struct kernel_symbol __ksymtab_loops_per_jiffy
__attrib... | // RUN: %llvmgcc% %s -S -o -
// PR854
struct kernel_symbol {
unsigned long value;
};
unsigned long loops_per_jiffy = (1<<12);
static const char __kstrtab_loops_per_jiffy[]
__attribute__((section("__ksymtab_strings"))) = "loops_per_jiffy";
static const struct kernel_symbol __ksymtab_loops_per_jiffy
__attri... | Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't have it in our path and to ensure it uses the configured llvm-gcc not just any one randomly placed in the path. | Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't
have it in our path and to ensure it uses the configured llvm-gcc not just
any one randomly placed in the path.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@29522 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llv... |
d93fae659ca26558c62dd654e24293be024408af | test/Index/c-index-getCursor-pp.c | test/Index/c-index-getCursor-pp.c | #define OBSCURE(X) X
#define DECORATION
typedef int T;
void OBSCURE(func)(int x) {
OBSCURE(T) DECORATION value;
}
// RUN: c-index-test -cursor-at=%s:1:11 %s | FileCheck -check-prefix=CHECK-1 %s
// CHECK-1: macro definition=OBSCURE
// RUN: c-index-test -cursor-at=%s:2:14 %s | FileCheck -check-prefix=CHECK-2 %s
// CH... | #define OBSCURE(X) X
#define DECORATION
typedef int T;
void OBSCURE(func)(int x) {
OBSCURE(T) DECORATION value;
}
#include "a.h"
// RUN: c-index-test -cursor-at=%s:1:11 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-1 %s
// CHECK-1: macro definition=OBSCURE
// RUN: c-index-test -cursor-at=%s:2:14 -I%S/Inputs %s | ... | Update clang_getCursor() test to check searches on include directives | Update clang_getCursor() test to check searches on include directives
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@117063 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
4e139df2bc57e16133860dac7612265bcef77032 | subdoc/path.h | subdoc/path.h | #ifndef SUBDOC_PATH_H
#define SUBDOC_PATH_H
#include "subdoc-api.h"
#include "jsonsl_header.h"
#ifdef __cplusplus
extern "C" {
#endif
#define COMPONENTS_ALLOC 32
typedef struct subdoc_PATH_st {
struct jsonsl_jpr_st jpr_base;
struct jsonsl_jpr_component_st components_s[COMPONENTS_ALLOC];
int has_negix; /*... | #ifndef SUBDOC_PATH_H
#define SUBDOC_PATH_H
#include "subdoc-api.h"
#include "jsonsl_header.h"
#ifdef __cplusplus
extern "C" {
#endif
// Maximum number of components in a path. Set to 33 to allow 32 'actual'
// components plus the implicit root element.
#define COMPONENTS_ALLOC 33
typedef struct subdoc_PATH_st {
... | Allow access to documents of depth 32 | Allow access to documents of depth 32
| C | apache-2.0 | mnunberg/subjson,mnunberg/subjson |
8650caef5b7e0729e2edabe780dfcdea6d6648d7 | include/bitops.h | include/bitops.h | #ifndef __BITOPS_H__
#define __BITOPS_H__
#include <asm/bitops.h>
#include <types.h>
static inline int fls(int x)
{
return WORD_BITS - __clz(x);
}
static inline int ffs(int x)
{
/* mask the least significant bit only */
return fls(x & -x);
}
static inline int log2(int x)
{
if (!x)
return INF;
int sig... | #ifndef __BITOPS_H__
#define __BITOPS_H__
#include <asm/bitops.h>
#include <types.h>
static inline int fls(int x)
{
return WORD_BITS - __clz(x);
}
static inline int ffs(int x)
{
/* mask the least significant bit only */
return fls(x & -x);
}
static inline int digits(const unsigned int n)
{
assert(sizeof(... | Add digits() to count digits of `unsigned int` value | Add digits() to count digits of `unsigned int` value
| C | apache-2.0 | onkwon/yaos,onkwon/yaos,onkwon/yaos |
507c61e2567c01f86e8bea87a37b173318779fb4 | libexec/lukemftpd/nbsd2fbsd.h | libexec/lukemftpd/nbsd2fbsd.h | /* $FreeBSD$ */
/* XXX: Depend on our system headers protecting against multiple includes. */
#include <paths.h>
#undef _PATH_FTPUSERS
#include <pwd.h>
#define _DIAGASSERT(x)
#include <sys/_types.h>
#ifndef _SIZE_T_DECLARED
typedef __size_t size_t;
#define _SIZE_T_DECLARED
#endif
long long strsuftollx(const char *,... | /* $FreeBSD$ */
/* XXX: Depend on our system headers protecting against multiple includes. */
#include <paths.h>
#undef _PATH_FTPUSERS
#include <pwd.h>
#define _DIAGASSERT(x)
#include <sys/_types.h>
#ifndef _SIZE_T_DECLARED
typedef __size_t size_t;
#define _SIZE_T_DECLARED
#endif
long long strsuftollx(const char *,... | Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD translation^H^H^Hhack layer. | Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD
translation^H^H^Hhack layer.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
80e4e2a943d9a156ed2a674a76a1da42b891dd57 | Josh_Zane_Sebastian/src/main.h | Josh_Zane_Sebastian/src/main.h | #define T_INT 0
#define T_CHR 1
#define T_RTN 2
struct stack_node {
struct stack_node *cdr;
union node_data data;
char type;
}
union node_data {
struct routine routine;
int numval;
}
struct routine {
struct routine *parent;
struct iq_node *nodes;
int num_nodes;
}
struct iq_node {
... | #define T_INT 0
#define T_CHR 1
#define T_RTN 2
struct stack_node {
struct stack_node *cdr;
union node_data data;
char type;
}
union node_data {
struct routine routine;
int numval;
}
struct routine {
struct routine *parent;
struct iq_node *nodes;
}
struct iq_node {
struct iq_node *ne... | Remove unused node-counter in routines | Remove unused node-counter in routines
| C | mit | aacoppa/final,aacoppa/final |
36bf68a93c844399befddd3830407561a4d18810 | Pod/Classes/SEEngineProtocol.h | Pod/Classes/SEEngineProtocol.h | //
// SEEngineProtocol.h
// Pods
//
// Created by Danil Tulin on 3/14/16.
//
//
#import <Foundation/Foundation.h>
@protocol EngineProtocol <NSObject>
- (void)feedBGRAImageData:(u_int8_t *)data
width:(NSUInteger)width
heieght:(NSUInteger)height;
@property (nonatomic) CGFloat progress;
@end
| //
// SEEngineProtocol.h
// Pods
//
// Created by Danil Tulin on 3/14/16.
//
//
#import <Foundation/Foundation.h>
@protocol EngineProtocol <NSObject>
@required
- (void)feedBGRAImageData:(u_int8_t *)data
width:(NSUInteger)width
heieght:(NSUInteger)height;
@property (nonatomic) float progress;
@end
| Add required and CGFloat -> float | Add required and CGFloat -> float
| C | mit | tulindanil/SEUIKit |
4a1681141d6a415ffbcad7dd5b672b01dd75d429 | search/config.h | search/config.h | /* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN */
#include "txt-seg/config.h"
#define MAX_TERM_BYTES MAX_TXT_SEG_BYTES
/* consider both math & term */
#define MAX_QUERY_BYTES (MAX_TXT_SEG_BYTES * 32)
#define MAX_QUERY_WSTR_LEN (MAX_TXT_SEG_LEN * 32)
#define MAX_MERGE_POSTINGS 4096
#define SNIPPET_PADDING 80
#def... | /* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN */
#include "txt-seg/config.h"
#define MAX_TERM_BYTES MAX_TXT_SEG_BYTES
/* consider both math & term */
#define MAX_QUERY_BYTES (MAX_TXT_SEG_BYTES * 32)
#define MAX_QUERY_WSTR_LEN (MAX_TXT_SEG_LEN * 32)
#define MAX_MERGE_POSTINGS 4096
#define SNIPPET_PADDING 320
#de... | Enlarge snippet size and rank volumn. | Enlarge snippet size and rank volumn.
| C | mit | approach0/search-engine,approach0/search-engine,yzhan018/the-day-after-tomorrow,yzhan018/the-day-after-tomorrow,t-k-/the-day-after-tomorrow,yzhan018/the-day-after-tomorrow,yzhan018/the-day-after-tomorrow,yzhan018/the-day-after-tomorrow,t-k-/the-day-after-tomorrow,t-k-/the-day-after-tomorrow,yzhan018/the-day-after-tomor... |
d03603a903096eebfab0972a78e5038c41c75534 | framework/JPetUser/JPetUser.h | framework/JPetUser/JPetUser.h | // JPet User - JPetUser.h
#ifndef JPET_USER_H
#define JPET_USER_H
#include "TNamed.h"
class JPetUser: public TNamed
{
protected:
int m_id;
std::string m_name;
std::string m_lastName;
std::string m_login;
std::string m_password;
bool m_isRoot;
std::string m_creationDate;
std::string m_lastLoginDate;
... | // JPet User - JPetUser.h
#ifndef JPET_USER_H
#define JPET_USER_H
#include "TNamed.h"
class JPetUser: public TNamed
{
protected:
int m_id;
std::string m_name;
std::string m_lastName;
std::string m_login;
std::string m_password;
bool m_isRoot;
std::string m_creationDate;
std::string m_lastLoginDate;
... | Change body of the toggleUserLoggedStatus method. | Change body of the toggleUserLoggedStatus method.
| C | apache-2.0 | kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework |
a58465ff0f6acb358e7ce91e076803f53ab340da | chapter2/myspace.c | chapter2/myspace.c | #include <cs50.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
// declare main so that it takes input from command line
int main(int argc, string argv[])
{
for (int i = 1; i < argc; i++)
{
for (int j = 0, k = strlen(argv[i]); j < k; j++)
{
if (j % 2 == 0)
{
... | Add additional string iteration program example | Add additional string iteration program example
| C | mit | cs50sacramento/source-code-1617,cs50sacramento/source-code-1617,cs50sacramento/source-code-1617 | |
e141aba93148a0e2b5bbcbde36b37d3cf171d1f2 | chapter27/chapter27_drill.c | chapter27/chapter27_drill.c | /* Chapter 27, drill
1. Write a Hello World program
2. Define two variables holding "Hello" and "World!", concatenate them with
a space in between and output them as "Hello World!"
3. Define a function taking a char* p and an int x, print their values in
the format "p is 'foo' and x is 7". Ca... | /* Chapter 27, drill
1. Write a Hello World program
2. Define two variables holding "Hello" and "World!", concatenate them with
a space in between and output them as "Hello World!"
3. Define a function taking a char* p and an int x, print their values in
the format "p is 'foo' and x is 7". Ca... | Modify Chapter 27, drill to comply with C89 standard | Modify Chapter 27, drill to comply with C89 standard
| C | mit | bewuethr/stroustrup_ppp,bewuethr/stroustrup_ppp |
5d1c50d7b497f623c65e24f2d02c5f867f74afcc | restnotifier/idletime.c | restnotifier/idletime.c | #include <QtGlobal>
#if defined Q_WS_X11
#include <X11/extensions/scrnsaver.h>
#endif
// return idle time in seconds
int getIdleSecs()
{
#if defined Q_WS_X11
int code, idle_sec;
XScreenSaverInfo *ssinfo = XScreenSaverAllocInfo();
if (!ssinfo)
goto fail;
Display *display = XOpenDisplay(0);
... | #include <QtGlobal>
// headers
#if defined Q_WS_X11
#include <X11/extensions/scrnsaver.h>
#elif defined Q_WS_WIN
#include <windows.h>
#endif
// ^ headers
// return idle time in seconds
int getIdleSecs()
{
// linux
#if defined Q_WS_X11
int code, idle_sec;
XScreenSaverInfo *ssinfo = XScreenSaverAllocInfo();
... | Add idle time function for windows | Add idle time function for windows
| C | mit | swarmer/restnotifier,swarmer/restnotifier,swarmer/restnotifier |
8a601496ec30617c6df42f31f4221b8cb1b2f866 | tests/sv-comp/cfg/uncil/and_join_invariant_true-unreach-call.c | tests/sv-comp/cfg/uncil/and_join_invariant_true-unreach-call.c | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
void __VERIFIER_assert(int cond) {
if (!(cond)) {
ERROR: __VERIFIER_error();
}
return;
}
int main()
{
int x = __VERIFIER_nondet_int();
if (x > 0 && x < 2)
__VERIFIER_assert(x == 1);
... | Add test about witness un-CIL invariant being incorrect when branches joined | Add test about witness un-CIL invariant being incorrect when branches joined
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
dc811801dc3917f525058e06e89484704cc4b98c | installer/loader.h | installer/loader.h | #ifndef LOADER_H
#define LOADER_H
#include "../../../libwiiu/src/coreinit.h"
#include "../../../libwiiu/src/socket.h"
#include "../../../libwiiu/src/types.h"
void _start();
void _entryPoint();
/* Arbitrary kernel write syscall */
void kern_write(void *addr, uint32_t value);
#endif /* LOADER_H */ | #ifndef LOADER_H
#define LOADER_H
#include "../../../libwiiu/src/coreinit.h"
#include "../../../libwiiu/src/socket.h"
#include "../../../libwiiu/src/types.h"
/* Kernel address table */
#if VER == 200
#define KERN_ADDRESS_TBL 0x0
#elif VER == 210
#define KERN_ADDRESS_TBL 0x0
#elif VER == 300
#define KERN_AD... | Add KERN_ADDRESS_TBL for each version | Add KERN_ADDRESS_TBL for each version
| C | mit | wiiudev/pyGecko,cfwprpht/pyGecko,FIX94/pyGecko,FIX94/pyGecko,shinyquagsire23/pyGecko,cfwprpht/pyGecko,wiiudev/pyGecko,shinyquagsire23/pyGecko |
2b3e2bb2d4c5fb0185a42b50354278fea97aa817 | src/include/s6-rc/s6rc-constants.h | src/include/s6-rc/s6rc-constants.h | /* ISC license. */
#ifndef S6RC_CONSTANTS_H
#define S6RC_CONSTANTS_H
#define S6RC_COMPILED_BASE "/etc/s6-rc/compiled"
#define S6RC_LIVE_BASE "/s6/s6-rc"
#define S6RC_COMPILED_DIR_LEN 32
#define S6RC_ONESHOT_RUNNER "s6rc-oneshot-runner"
#define S6RC_ONESHOT_RUNNER_LEN (sizeof S6RC_ONESHOT_RUNNER - 1)
#endif
| /* ISC license. */
#ifndef S6RC_CONSTANTS_H
#define S6RC_CONSTANTS_H
#define S6RC_COMPILED_BASE "/etc/s6-rc/compiled"
#define S6RC_LIVE_BASE "/run/s6-rc"
#define S6RC_COMPILED_DIR_LEN 32
#define S6RC_ONESHOT_RUNNER "s6rc-oneshot-runner"
#define S6RC_ONESHOT_RUNNER_LEN (sizeof S6RC_ONESHOT_RUNNER - 1)
#endif
| Change default live to /run/s6-rc | Change default live to /run/s6-rc
| C | isc | skarnet/s6-rc,skarnet/s6-rc |
a689b6dd0ccf5734c9c22058cb20c5a18f8fc795 | sapi/sapi-dylink.h | sapi/sapi-dylink.h | /// @file sapi-dylink.h
/// @brief Define the record used for runtime linking.
/// This structure allows forth to easily look up things on the C
/// side of the world.
///
/// Special Rules:
/// - The very first item is the size of the record.
///
// This could be packed more tightly, but its now exactly
// 16 by... | /// @file sapi-dylink.h
/// @brief Define the record used for runtime linking.
/// This structure allows forth to easily look up things on the C
/// side of the world.
///
/// Special Rules:
/// - The very first item is the size of the record.
///
// This could be packed more tightly, but its now exactly
// 16 by... | Clarify the dynamic linking structure. | Clarify the dynamic linking structure.
| C | bsd-2-clause | rbsexton/sockpuppet,rbsexton/sockpuppet |
74dab7fd5a5e1ddc73ffb56bfaeaeaae43ce609c | Common/Categories/UITableView+DynamicSizing.h | Common/Categories/UITableView+DynamicSizing.h | #import <UIKit/UIKit.h>
@protocol UITableViewDataSourceDynamicSizing;
@interface UITableView (DynamicSizing)
- (void)registerClass:(Class)cellClass forDynamicCellReuseIdentifier:(NSString *)identifier;
- (void)registerNib:(UINib *)nib forDynamicCellReuseIdentifier:(NSString *)identifier;
- (CGFloat)minimumHeightForCe... | #import <UIKit/UIKit.h>
@protocol UITableViewDataSourceDynamicSizing;
@interface UITableView (DynamicSizing)
- (void)registerClass:(Class)cellClass forDynamicCellReuseIdentifier:(NSString *)identifier;
- (void)registerNib:(UINib *)nib forDynamicCellReuseIdentifier:(NSString *)identifier;
- (CGFloat)minimumHeightForCe... | Make sure to mark all the methods in the dynamic sizing data source as required | Make sure to mark all the methods in the dynamic sizing data source as required
| C | lgpl-2.1 | xNUTs/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS |
0aec39c69e2f002dd5020272f30bf1f488ce4815 | src/condor_ckpt/machdep.old.h | src/condor_ckpt/machdep.old.h | #include <setjmp.h>
/*
Portability: A single method works on all the platforms we have tried
so far, but this may not be true for all platforms.
*/
#if defined(ULTRIX42) || defined(ULTRIX43) || defined(SUNOS41)
# define SETJMP _setjmp
# define LONGJMP _longjmp
extern "C" {
int SETJMP( jmp_buf env );
void LONG... | #include <setjmp.h>
#include <sys/param.h>
#include <sys/vmparam.h>
/*
Portability: A single method works on all the platforms we have tried
so far, but this may not be true for all platforms.
*/
#if defined(ULTRIX42) || defined(ULTRIX43) || defined(SUNOS41)
# define SETJMP _setjmp
# define LONGJMP _longjmp
exter... | Include both <sys/param.h> and <sys/vmparam.h> since both SUNOS and ULTRIX will need them. | Include both <sys/param.h> and <sys/vmparam.h> since both SUNOS and
ULTRIX will need them.
| C | apache-2.0 | htcondor/htcondor,clalancette/condor-dcloud,htcondor/htcondor,djw8605/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,djw8605/condor,djw8605/htcondor,bbockelm/condor-network-accounting,djw8605/htcondor,clalancet... |
b41a7d20027f4730f34885ebbca539d9fdb78c9c | test/CodeGen/address-space.c | test/CodeGen/address-space.c | // RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 5
int foo __attribute__((address_space(1)));
int ban[10] __attribute__((address_space(1)));
int bar() { return foo; }
int baz(int i) { return ban[i]; } | // RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 5
int foo __attribute__((address_space(1)));
int ban[10] __attribute__((address_space(1)));
int bar() { return foo; }
int baz(int i) { return ban[i]; }
| Add ending newline to test. | Add ending newline to test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@46692 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
cbbe9c8b5c645affee7aadc2d6aebb989de81989 | src/libmv/base/id_generator.h | src/libmv/base/id_generator.h | // Copyright (c) 2007, 2008 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, p... | Add another missing file :( | Add another missing file :(
| C | mit | SoylentGraham/libmv,rgkoo/libmv-blender,keir/libmv,rgkoo/libmv-blender,Nazg-Gul/libmv,petertsoi/libmv,petertsoi/libmv,keir/libmv,libmv/libmv,libmv/libmv,petertsoi/libmv,libmv/libmv,rgkoo/libmv-blender,Nazg-Gul/libmv,SoylentGraham/libmv,Nazg-Gul/libmv,petertsoi/libmv,Nazg-Gul/libmv,rgkoo/libmv-blender,Nazg-Gul/libmv,rgk... | |
25110f8d507c8432ac6849e2682a40983f752d8e | config.def.h | config.def.h | #ifdef HAVE_FORK
#define HAVE_FORK 1
#endif
#if HAVE_FORK
# if TARGET_OS_IPHONE || APPLE_SDK_IPHONEOS
# define HAVE_SYSTEM 0
# else
# define HAVE_SYSTEM 1
# endif
#else
# define HAVE_SYSTEM 0
#endif
#if HAVE_SYSTEM
#include "p/sh.h"
#endif
#include "p/spp.h"
#include "p/acr.h"
#include "p/pod.h"
#include "p/cpp.h"... | #ifdef HAVE_FORK
#define HAVE_FORK 1
#endif
#if HAVE_FORK
# if TARGET_OS_IPHONE || APPLE_SDK_IPHONEOS || APPLE_SDK_IPHONESIMULATOR
# define HAVE_SYSTEM 0
# else
# define HAVE_SYSTEM 1
# endif
#else
# define HAVE_SYSTEM 0
#endif
#if HAVE_SYSTEM
#include "p/sh.h"
#endif
#include "p/spp.h"
#include "p/acr.h"
#include... | Fix build for the iPhone Simulator | Fix build for the iPhone Simulator
| C | mit | radare/spp,radare/spp,radare/spp,radare/spp |
7c3bd324629ef4acd69b8c9eed9379c872283916 | include/matrix_constructors_impl.h | include/matrix_constructors_impl.h | //-----------------------------------------------------------------------------
// Constructors
//-----------------------------------------------------------------------------
template<class T>
matrix<T>::matrix():data_(),rows_(0),cols_(0){}
template<class T>
matrix<T>::matrix( std::size_t rows, std::size_t cols ):
... | //-----------------------------------------------------------------------------
// Constructors
//-----------------------------------------------------------------------------
template<class T>
matrix<T>::matrix():data_(),rows_(0),cols_(0){}
template<class T>
matrix<T>::matrix( std::size_t rows, std::size_t cols ):
... | Add comment about init_list constructor. | Add comment about init_list constructor.
| C | mit | actinium/cppMatrix,actinium/cppMatrix |
e17247a4550b9c9b3394ea378b61ecea17a75da3 | Linkedlists/02.c | Linkedlists/02.c | #include <stdio.h>
#include <stdlib.h>
typedef struct n
{
int data;
struct n * next;
} node;
/* Print Linked list values */
void showList(node * list){
int i = 1;
while( list != NULL){
printf("#%d. node, data: %d at pointed: %p, and points to %p\n", i, list->data, list, list->next);
list = list->next;... | Add another nodes by for loop way. | Add another nodes by for loop way.
| C | mit | enverarslan/DataStructures | |
d1bc8e95445224276d7896b8b08cbb0b28a0ca80 | include/linux/err.h | include/linux/err.h | #ifndef _LINUX_ERR_H
#define _LINUX_ERR_H
#include <linux/compiler.h>
#include <asm/errno.h>
/*
* Kernel pointers have redundant information, so we can use a
* scheme where we can return either an error code or a dentry
* pointer with the same return value.
*
* This should be a per-architecture thing, to allow ... | #ifndef _LINUX_ERR_H
#define _LINUX_ERR_H
#include <linux/compiler.h>
#include <asm/errno.h>
/*
* Kernel pointers have redundant information, so we can use a
* scheme where we can return either an error code or a dentry
* pointer with the same return value.
*
* This should be a per-architecture thing, to allow ... | Add an ERR_CAST() function to complement ERR_PTR and co. | Add an ERR_CAST() function to complement ERR_PTR and co.
Add an ERR_CAST() function to complement ERR_PTR and co. for the purposes
of casting an error entyped as one pointer type to an error of another
pointer type whilst making it explicit as to what is going on.
This provides a replacement for the ERR_PTR(PTR_ERR(... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
ef63a5a9f90205a0d9067b3b27d44118fd195bdb | sift/recorder/threads.h | sift/recorder/threads.h | #ifndef __THREAD_INFO_H
#define __THREAD_INFO_H
#include "globals.h"
#include "sift_writer.h"
#include "bbv_count.h"
#include "pin.H"
#include <deque>
typedef struct {
Sift::Writer *output;
ADDRINT dyn_addresses[Sift::MAX_DYNAMIC_ADDRESSES];
UINT32 num_dyn_addresses;
Bbv *bbv;
UINT64 thread_num;
AD... | #ifndef __THREAD_INFO_H
#define __THREAD_INFO_H
#include "globals.h"
#include "sift_writer.h"
#include "bbv_count.h"
#include "pin.H"
#include <deque>
typedef struct {
Sift::Writer *output;
UINT64 dyn_addresses[Sift::MAX_DYNAMIC_ADDRESSES];
UINT32 num_dyn_addresses;
Bbv *bbv;
UINT64 thread_num;
ADD... | Fix 32-bit compile by making the per-thread address data 64-bit | [recorder] Fix 32-bit compile by making the per-thread address data 64-bit
| C | mit | abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper |
b9d54ddf6698d75309f2ea4b0dbd8fb2b5f63517 | common_video/interface/texture_video_frame.h | common_video/interface/texture_video_frame.h | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Add intermediate TextureVideoFrame typedef for Chromium | Add intermediate TextureVideoFrame typedef for Chromium
BUG=1128
R=perkj@webrtc.org
TBR=stefan
Review URL: https://webrtc-codereview.appspot.com/42239004
git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@8630 4adac7df-926f-26a2-2b94-8c16560cd09d
| C | bsd-3-clause | svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758 | |
c5ae794fe0663a31138d5e248076a9dbd6bafa76 | src/flsputils.c | src/flsputils.c | #include <math.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "fake-lock-screen-pattern.h"
void flsp_draw_circle(cairo_t *context, gint x, gint y,
gint radius, GdkRGBA circle, GdkRGBA border)
{
cairo_set_line_width(context, 9);
cairo_set_source_rgb(context, border.red, border.green, borde... | Implement function to draw circle | Implement function to draw circle
| C | mit | kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern | |
9af5280bb7f53ddff998b69ad6007349ffcfeb7c | 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
| C | mit | LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot |
7197e7747848558933d7ee48da1d4ffd5ddc335b | libsel4muslccamkes/src/sys_yield.c | libsel4muslccamkes/src/sys_yield.c | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sel4/sel4.h>
l... | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sel4/sel4.h>
l... | Remove seL4_Yield() since it's removed from the RT kernel. | Remove seL4_Yield() since it's removed from the RT kernel.
JIRA CAMKES-429
| C | bsd-2-clause | smaccm/camkes-tool,smaccm/camkes-tool,smaccm/camkes-tool,smaccm/camkes-tool |
4afc72fe4adaa08c52b1b5fcbd7ef76ff60404b2 | Sift/SFDebug.h | Sift/SFDebug.h | // Copyright (c) 2016 Sift Science. All rights reserved.
@import Foundation;
/** Debug output that can be turned on/off by SF_DEBUG_ENABLE macro. */
#ifdef SF_DEBUG_ENABLE
#define SF_DEBUG(FORMAT, ...) NSLog(@"%s:%d " FORMAT, __FUNCTION__, __LINE__, ## __VA_ARGS__)
#else
#define SF_DEBUG(...)
#endif
/** Log messages... | // Copyright (c) 2016 Sift Science. All rights reserved.
@import Foundation;
/** Debug output that can be turned on/off by SF_DEBUG_ENABLE macro. */
#ifdef SF_DEBUG_ENABLE
#define SF_DEBUG(FORMAT, ...) NSLog(@"%s:%d " FORMAT, __FUNCTION__, __LINE__, ## __VA_ARGS__)
#else
#define SF_DEBUG(...)
#endif
/** Log messages... | Add empty SF_IMPORTANT macro for release build | Add empty SF_IMPORTANT macro for release build
| C | mit | SiftScience/sift-ios,SiftScience/sift-ios,SiftScience/sift-ios,SiftScience/sift-ios |
1980b7bb0ffee0750ed832fc1b474c6ae6e85b00 | lib/libc/minimal/include/stddef.h | lib/libc/minimal/include/stddef.h | /* stddef.h */
/*
* Copyright (c) 2014 Wind River Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | /* stddef.h */
/*
* Copyright (c) 2014 Wind River Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Use offsetof() builtin with GCC | lib: Use offsetof() builtin with GCC
The default offsetof() implementation generates a warning
(variably modified <variable> at file scope) when used in
to define the size of an array. By using this builtin with
GCC we avoid the warning and make sure no variable-size
arrays are used.
Change-Id: Iae215f777241f7daaa061... | C | apache-2.0 | erwango/zephyr,zephyriot/zephyr,rsalveti/zephyr,runchip/zephyr-cc3220,holtmann/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,punitvara/zephyr,finikorg/zephyr,pklazy/zephyr,zephyriot/zephyr,kraj/zephyr,erwango/zephyr,galak/zephyr,bboozzoo/zephyr,finikorg/zephyr,mbolivar/zephyr,runchip/zephyr-cc3220,ldts/zephyr,galak/zeph... |
188b56251284352d2a2da90d5fab31276a834ff7 | testsuite/tests/rts/T7037_main.c | testsuite/tests/rts/T7037_main.c | #include <stddef.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
const char *args[2] = {"T7037", NULL};
execv("./T7037", args);
}
| #include <stddef.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
#ifdef __MINGW32__
const
#endif
char * args[2] = {"T7037", NULL};
execv("./T7037", args);
}
| Make T7037 work on both Windows and other platforms | Make T7037 work on both Windows and other platforms
| C | bsd-3-clause | mcschroeder/ghc,forked-upstream-packages-for-ghcjs/ghc,tibbe/ghc,ryantm/ghc,TomMD/ghc,oldmanmike/ghc,nkaretnikov/ghc,mettekou/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,mfine/ghc,mettekou/ghc,mcschroeder/ghc,AlexanderPankiv/ghc,christiaanb/ghc,snoyberg/ghc,ghc-android/ghc,snoyberg/ghc,christiaanb/ghc,h... |
27e5d7c74125784cb278b44e12881ca3596ee868 | STM32F103GNU/src/startup.c | STM32F103GNU/src/startup.c | /*
* startup.h
*
* Created on: Nov 15, 2016
* Author: RoyerAriel
*/
#ifndef STARTUP_C_
#define STARTUP_C_
#include "Timer.h"
void startup()
{
//Start Systick Timer at 1ms
Systick_Startup();
AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; //0x2000000
}
#endif /* STARTUP_C_ */
| /*
* startup.h
*
* Created on: Nov 15, 2016
* Author: RoyerAriel
*/
#ifndef STARTUP_C_
#define STARTUP_C_
#include "Timer.h"
void startup()
{
//Start Systick Timer at 1ms
Systick_Startup();
AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; //0x2000000disable jtag
}
#endif /* STARTU... | Disable Jtag came enable by default | Disable Jtag came enable by default
Disable Jtag came enable by default and use GPIOB P04,P03 and P05 | C | epl-1.0 | royel21/STM32F103GNU,royel21/STM32F103GNU |
d6e3fda253c18d1a30c14d5b176737c337c00b00 | IAAI.c | IAAI.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STTY "/bin/stty "
const char RAW[] = STTY "raw";
const char COOKED[] = STTY "cooked";
const char default_str[] = "I AM AN IDIOT ";
int main(int argc, char **argv) {
system(RAW);
const char *str;
if ( argc == 2 )
str = argv[1];
else
s... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STTY "/bin/stty "
const char RAW[] = STTY "raw";
const char COOKED[] = STTY "cooked";
const char default_str[] = "I AM AN IDIOT ";
int main(int argc, char **argv) {
system(RAW);
const char *str;
if ( argc == 2 )
str = argv[1];
else
s... | Allow non printing chars to also work well | Allow non printing chars to also work well
| C | mit | vinamarora8/IAAI |
7e9ee0eb7233bcfb93f53a18320cf8187c5f5d89 | libutils/include/utils/fence.h | libutils/include/utils/fence.h | /*
* Copyright 2016, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(D61_... | /*
* Copyright 2016, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(D61_... | Move trailing . inside comment | libutils: Move trailing . inside comment
| C | bsd-2-clause | agacek/util_libs,agacek/util_libs,agacek/util_libs,agacek/util_libs |
5ffd5d785b8d50aae883fe39055de6e422649418 | qstr/main.c | qstr/main.c | // ** QueryString
//
// This program reads chars from stdin without echo and put to stdout.
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
int main(int argc, char * args[])
{
struct termios old_tio, new_tio;
unsigned char c;
/* get the terminal settings for stdin */
tcgetattr(... | Add qstr - query string utility | Add qstr - query string utility | C | mit | showcode/tools | |
86fb835194f54ccecc33bfaf71f38b636993baab | test/Preprocessor/comment_save_macro.c | test/Preprocessor/comment_save_macro.c | // RUN: clang-cc -E -C %s | FileCheck -strict-whitespace %s
// CHECK: boo bork bar // zot
// RUN: clang-cc -E -CC %s | FileCheck -strict-whitespace %s
// CHECK: boo bork /* blah*/ bar // zot
// RUN: clang-cc -E %s | FileCheck -strict-whitespace %s
// CHECK: boo bork bar
#define FOO bork // blah
boo FOO bar // zot
| // RUN: clang-cc -E -C %s | FileCheck -strict-whitespace %s &&
// CHECK: boo bork bar // zot
// RUN: clang-cc -E -CC %s | FileCheck -strict-whitespace %s &&
// CHECK: boo bork /* blah*/ bar // zot
// RUN: clang-cc -E %s | FileCheck -strict-whitespace %s
// CHECK: boo bork bar
#define FOO bork // blah
boo FOO bar //... | Fix a broken test in rev. 85199. | Fix a broken test in rev. 85199.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@85200 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
22f57814c548ceb55bd4295768ff1873f3f4e3ae | webserver.c | webserver.c | #include <netinet/in.h>
#include <stdio.h>
#include <sys/socket.h>
int main(int argc, char** argv)
{
int listen_fd;
struct sockaddr_in serv_addr;
listen_fd = socket(AF_INET, SOCK_STREAM, 0);
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
serv_addr.sin_port = htons(8080);
bin... | #include <netinet/in.h>
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#define TRUE 1
#define BUFFER_SIZE 8096
int main(int argc, char** argv)
{
int listen_fd;
int connection_fd;
socklen_t length;
int err;
int read_len;
char buffer[BUFFER_SIZE+1];
struct sockaddr_in serv_addr;
struct sock... | Implement accept of incoming requests | Implement accept of incoming requests
| C | apache-2.0 | benjic/web-server,benjic/web-server |
a2c066c1346a897b8a62fac75951009107437f34 | serialization/include/SerializationToStream.h | serialization/include/SerializationToStream.h | /// \file
/// \brief This header contains functionality needed for serializing and deserealizing to/from a stream
#pragma once
#include "ISerializable.h"
#include "IStorage.h"
#include <iostream>
/// Contains all the functionality provided by the library.
namespace simpson
{
/// Serialize object to ostream
std::ost... | /// \file
/// \brief This header contains functionality needed for serializing and deserealizing to/from a stream
#pragma once
#include "IStorage.h"
#include <iostream>
/// Contains all the functionality provided by the library.
namespace simpson
{
class ISerializable;
/// Serialize object to ostream
std::ostream&... | Change include to forward declaration | Change include to forward declaration
| C | mit | artem-ogre/simpson,artem-ogre/simpson |
6779aa4e1884e4bb6e87820f7d29f08a84fde425 | Kiwi/KiwiConfiguration.h | Kiwi/KiwiConfiguration.h | //
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import <Foundation/Foundation.h>
#define KW_VERSION 0.5
// Blocks being unavailable cripples the usability of Kiwi, but is supported
// because they are not available on anything less than a device running 3.2.
#i... | //
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import <Foundation/Foundation.h>
#define KW_VERSION 0.5
// Blocks being unavailable cripples the usability of Kiwi, but is supported
// because they are not available on anything less than a device running 3.2.
#i... | Add support for disabling blocks externally via preprocessor macro definitions at the project or target level | Add support for disabling blocks externally via preprocessor macro definitions at the project or target level
| C | bsd-3-clause | ecaselles/Kiwi,allending/Kiwi,LiuShulong/Kiwi,TaemoonCho/Kiwi,emodeqidao/Kiwi,weslindsay/Kiwi,depop/Kiwi,emodeqidao/Kiwi,unisontech/Kiwi,samkrishna/Kiwi,tangwei6423471/Kiwi,samkrishna/Kiwi,tangwei6423471/Kiwi,indiegogo/Kiwi,JoistApp/Kiwi,LiuShulong/Kiwi,ashfurrow/Kiwi,howandhao/Kiwi,iosRookie/Kiwi,hyperoslo/Tusen,emode... |
5df03525b7db34b41c9993140e55877a1f0e8fd3 | test/Driver/avr-mmcu.c | test/Driver/avr-mmcu.c | // A test for the propagation of the -mmcu option to -cc1 and -cc1as
// RUN: %clang -### -target avr -mmcu=atmega328p -save-temps %s 2>&1 | FileCheck %s
// CHECK: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega328p"
// CHECK: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega328p"
| // A test for the propagation of the -mmcu option to -cc1 and -cc1as
// RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega328p -save-temps %s 2>&1 | FileCheck %s
// CHECK: clang{{.*}} "-cc1" {{.*}} "-target-cpu" "atmega328p"
// CHECK: clang{{.*}} "-cc1as" {{.*}} "-target-cpu" "atmega328p"
| Add a missing -no-canonical-prefixes to test. | [Driver] Add a missing -no-canonical-prefixes to test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@300873 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-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-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
6f92873e8a06ee7d5159d04aac1377c67e2b8c44 | BIObjCHelpers/Interface/BIObjCHelpers.h | BIObjCHelpers/Interface/BIObjCHelpers.h | //
// BIObjCHelpers.h
// BIObjCHelpersExample
//
// Created by Bogdan Iusco on 1/19/15.
// Copyright (c) 2015 Bogdan Iusco. All rights reserved.
//
// Starters
#import "BIStarterProtocol.h"
#import "BILifecycle.h"
#import "BIStartersFactory.h"
#import "BIOperationQueue.h"
// Views
#import "BITableView.h"
// Data... | //
// BIObjCHelpers.h
// BIObjCHelpersExample
//
// Created by Bogdan Iusco on 1/19/15.
// Copyright (c) 2015 Bogdan Iusco. All rights reserved.
//
// Starters
#import "BIStarterProtocol.h"
#import "BILifecycle.h"
#import "BIStartersFactory.h"
#import "BIOperationQueue.h"
#import "BILaunchStartersFactory.h"
// Vi... | Add BILaunchStartersFactory to interface file | Add BILaunchStartersFactory to interface file
| C | mit | grigaci/BIObjCHelpers |
0e4d41f065f7803d096e6c53b3956c820186c3ea | freebsd/util.h | freebsd/util.h | #include <libutil.h>
#ifndef TAILQ_END
#define TAILQ_END(head) NULL
#endif
| #include <libutil.h>
#ifndef TAILQ_END
#define TAILQ_END(head) NULL
#endif
#ifndef SIMPLEQ_HEAD
#define SIMPLEQ_HEAD STAILQ_HEAD
#define SIMPLEQ_HEAD_INITIALIZER STAILQ_HEAD_INITIALIZER
#define SIMPLEQ_ENTRY STAILQ_ENTRY
#define SIMPLEQ_INIT STAILQ_INIT
#define SIMPLEQ_INSERT_AFTER STAILQ_INSERT_AFTER
#defin... | Add SIMPLEQ->STAILQ macros for freebsd. | Add SIMPLEQ->STAILQ macros for freebsd.
| C | isc | conformal/spectrwm,conformal/spectrwm,conformal/spectrwm |
e5155ae7c734428d5456c1b7d47bbc2ac31f6da9 | inputhandler.c | inputhandler.c | //This is a preliminary version of this file for testing and learning purposes
//Author: Jonas Iacobi
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
char* getMessage(char* filename){
char* msg = NULL;
int msgLength, txtLength;
FILE *fp = fopen( filename, "r");
if(fp){
... | Revert "Revert "Created a preliminary getMessage method"" | Revert "Revert "Created a preliminary getMessage method""
This reverts commit 7d29c8faff9ffba05d14e7597e78dd24da7eaab4.
| C | mit | Zaladar/PPM,Zaladar/PPM,Zaladar/PPM | |
264a4058eb58ba078069f2cc2ff6fa9ae015bc4d | src/stack.h | src/stack.h | #ifndef _STACK_H_
#define _STACK_H_
/*
* data stack for use with automaton infrastructure
*/
#include "dataStackEntry.h"
typedef struct stack Stack;
Stack *stack_create(int size);
void stack_destroy(Stack *st);
void reset(Stack *st);
void push(Stack *st, DataStackEntry d);
Da... | /*
* Copyright (c) 2013, Court of the University of Glasgow
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* thi... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | jsventek/Cache,fergul/Cache,jsventek/Cache,fergul/Cache,jsventek/Cache,fergul/Cache |
eee5fc4106b389daeb709112f77b1a2e41ceee30 | src/sysdeps/tryarc4random_addrandom.c | src/sysdeps/tryarc4random_addrandom.c | /* ISC license. */
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
#include <stdlib.h>
int main (void)
{
arc4random_addrandom("", 1) ;
return 0 ;
}
| /* ISC license. */
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
#include <stdlib.h>
int main (void)
{
unsigned char *blah = "" ;
arc4random_addrandom(blah, 1) ;
return 0 ;
}
| Fix arc4random_addrandom detection for -Werror=pointer-sign | Fix arc4random_addrandom detection for -Werror=pointer-sign
| C | isc | skarnet/skalibs,skarnet/skalibs |
b56a4389c1ae7ce29e2221db3339ce7a9ec2ff62 | test/main.c | test/main.c | #include <stdio.h>
#include "bincookie.h"
int main(int argc, char *argv[]) {
if (argc != 2) {
printf("Usage: %s [Full path to Cookies.binarycookies file]\n", argv[0]);
printf("Example: %s Cookies.binarycookies\n", argv[0]);
return 1;
}
binarycookies_t *bc = binarycookies_init(argv... | #include <stdio.h>
#include "bincookie.h"
int main(int argc, char *argv[]) {
if (argc != 2) {
printf("Usage: %s [Full path to Cookies.binarycookies file]\n", argv[0]);
printf("Example: %s Cookies.binarycookies\n", argv[0]);
return 1;
}
binarycookies_t *bc = binarycookies_init(argv... | Use macro to check security of cookie | Use macro to check security of cookie
| C | mit | Tatsh/libbinarycookies,Tatsh/libbinarycookies |
1f1e880a7ff7fc1dcb3dbba5910ff6e5a65603c6 | net/proxy/proxy_resolver_mac.h | net/proxy/proxy_resolver_mac.h | // Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once
#include <string>
#include "googleurl/src/gurl.h"
#incl... | // Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once
#include <string>
#include "googleurl/src/gurl.h"
#incl... | Fix a typo, that could cause a crash on mac. | Fix a typo, that could cause a crash on mac.
BUG=50717
TBR=rvargas
TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash.
Review URL: http://codereview.chromium.org/3023030
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@54279 4ff67af0-8c30-449e-8e8b-ad334ec8d88... | C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
6f608d521539a6c6d492185c964853021ba4a5a3 | lib/assembly.h | lib/assembly.h | /* ===-- assembly.h - compiler-rt assembler support macros -----------------===
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*
* ===-------------------------------------------------------... | /* ===-- assembly.h - compiler-rt assembler support macros -----------------===
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*
* ===-------------------------------------------------------... | Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF. | Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@86542 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
c1c9990cbac5231efe8989ab34909ef948fb73cd | cpp/include/phevaluator/card.h | cpp/include/phevaluator/card.h | #ifndef PHEVALUATOR_CARD_H
#define PHEVALUATOR_CARD_H
#ifdef __cplusplus
#include <unordered_map>
#include <string>
namespace phevaluator {
class Card {
public:
Card() {}
Card(int id) : id_(id) {}
Card(std::string name) {
const std::unordered_map<char, int> rankMap = {
{'2', 0}, {'3', 1}, {'4', 2... | #ifndef PHEVALUATOR_CARD_H
#define PHEVALUATOR_CARD_H
#ifdef __cplusplus
#include <unordered_map>
#include <string>
namespace phevaluator {
class Card {
public:
Card() {}
Card(int id) : id_(id) {}
Card(std::string name) {
const std::unordered_map<char, int> rankMap = {
{'2', 0}, {'3', 1}, {'4', 2... | Add parameter type `const char []` to the Card constructor | Add parameter type `const char []` to the Card constructor
| C | apache-2.0 | HenryRLee/PokerHandEvaluator,HenryRLee/PokerHandEvaluator,HenryRLee/PokerHandEvaluator |
213ebf26505763a32d7248b0e86a1cb7b50d9f6a | test2/arrays/qualified_type_checks.c | test2/arrays/qualified_type_checks.c | // RUN: %ucc -fsyntax-only %s
typedef int array[3];
const array yo; // int const yo[3];
// ^~ no const here
h(array); // int h(int [3]);
i(const array); // int i(int const [3]);
// ^~ no const here
j(int[const]); // int j(int *const);
_Static_assert(_Ge... | Add function parameter qualifier type tests | Add function parameter qualifier type tests
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
c13fa6ae63ef93364adc41d332eaa249f3585ec6 | lib/bytestream.h | lib/bytestream.h | #ifndef __BYTESTREAM__
#define __BYTESTREAM__
#include <stdint.h>
#include <unistd.h>
#define BS_RO 0
#define BS_RW 1
typedef struct _ByteStream {
char* filename;
size_t size;
uint8_t* data;
uint32_t offset;
int exhausted;
} ByteStream;
ByteStream* bsalloc(unsigned int size);
ByteStream* bsmap(char* fil... | #ifndef __BYTESTREAM__
#define __BYTESTREAM__
#include <stdint.h>
#include <unistd.h>
#define BS_RO 0
#define BS_RW 1
// MAP_ANONYMOUS is MAP_ANON on OSX, so this will let us compile
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif
typedef struct _ByteStream {
char* filename;
size_t size;
uint8_t*... | Fix compilation on OSX MAP_ANONYMOUS is MAP_ANON on OSX, so this will let the project compile. | Fix compilation on OSX
MAP_ANONYMOUS is MAP_ANON on OSX, so this
will let the project compile.
| C | bsd-3-clause | strazzere/dexterity,rchiossi/dexterity,rchiossi/dexterity,rchiossi/dexterity,strazzere/dexterity,strazzere/dexterity |
766a76e551d945fc2513a7c2968544a19c810d96 | common/bpf/lib/dbg.h | common/bpf/lib/dbg.h | #ifndef __LIB_DBG__
#define __LIB_DBG__
#define DEBUG
#ifdef DEBUG
# define printk(fmt, ...) \
({ \
char ____fmt[] = fmt; \
trace_printk(____fmt, sizeof(____fmt), \
##__VA_ARGS__); \
})
#else
# define printk(fmt, ...) \
do { } while (0)
#endif
#endif /* __LIB_DBG__ */
| #ifndef __LIB_DBG__
#define __LIB_DBG__
#ifdef DEBUG
# define printk(fmt, ...) \
({ \
char ____fmt[] = fmt; \
trace_printk(____fmt, sizeof(____fmt), \
##__VA_ARGS__); \
})
#else
# define printk(fmt, ...) \
do { } while (0)
#endif
#endif /* __LIB_DBG__ */
| Remove DEBUG for performance testing. | Remove DEBUG for performance testing.
| C | apache-2.0 | gumpt/cilium,mskarbek/cilium,scanf/cilium,tgraf/cilium,scanf/cilium,cilium/cilium,gumpt/cilium,ivar-lazzaro/cilium,michi-covalent/cilium,michi-covalent/cilium,michi-covalent/cilium,ivar-lazzaro/cilium,scanf/cilium,michi-covalent/cilium,tklauser/cilium,mskarbek/cilium,gumpt/cilium,scanf/cilium,ivar-lazzaro/cilium,mskarb... |
399869422abf30a0f635596263fd315ea9bde266 | Kiwi/KiwiConfiguration.h | Kiwi/KiwiConfiguration.h | //
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import <Foundation/Foundation.h>
#define KW_VERSION 0.5
// Blocks being unavailable cripples the usability of Kiwi, but is supported
// because they are not available on anything less than a device running 3.2.
#i... | //
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import <Foundation/Foundation.h>
#define KW_VERSION 0.5
// Blocks being unavailable cripples the usability of Kiwi, but is supported
// because they are not available on anything less than a device running 3.2.
#i... | Add support for disabling blocks externally via preprocessor macro definitions at the project or target level | Add support for disabling blocks externally via preprocessor macro definitions at the project or target level
| C | bsd-3-clause | LiuShulong/Kiwi,samkrishna/Kiwi,carezone/Kiwi,howandhao/Kiwi,ecaselles/Kiwi,allending/Kiwi,TaemoonCho/Kiwi,howandhao/Kiwi,indiegogo/Kiwi,PaulTaykalo/Kiwi,JoistApp/Kiwi,samkrishna/Kiwi,indiegogo/Kiwi,carezone/Kiwi,LiuShulong/Kiwi,unisontech/Kiwi,ashfurrow/Kiwi,weslindsay/Kiwi,iosRookie/Kiwi,depop/Kiwi,TaemoonCho/Kiwi,ho... |
a5f492b226f651d8296498f9b412756868b5b333 | src/http/resourcestrategy.h | src/http/resourcestrategy.h | #ifndef APIMOCK_RESOURCESTRATEGY_H
#define APIMOCK_RESOURCESTRATEGY_H
#include "requestdata.h"
#include "responsedata.h"
namespace ApiMock {
class ResourceStrategy {
public:
virtual ~ResourceStrategy() {}
virtual ResponseData CreateResponse(const RequestData& request) = 0;
};
}
#endif | Add a resource strategy interface | Add a resource strategy interface
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock | |
d2283df39723e542416a1fcb4fd292780fe690f5 | src/qt4compat.h | src/qt4compat.h | #ifndef QT4COMPAT_H
#define QT4COMPAT_H
#include <QtCore/QtGlobal>
#ifndef Q_LIKELY
# define Q_LIKELY(s) s
#endif
#ifndef Q_UNLIKELY
# define Q_UNLIKELY(s) s
#endif
#ifndef Q_UNREACHABLE
# define Q_UNREACHABLE() Q_ASSERT(false)
#endif
#ifndef Q_ASSUME
# define Q_ASSUME(s) if (s) {} else { Q_UNREACHABLE(); }
#endif... | #ifndef QT4COMPAT_H
#define QT4COMPAT_H
#include <QtCore/QtGlobal>
#if !defined(Q_UNREACHABLE) && !defined(Q_ASSUME)
# if defined(Q_CC_INTEL) || defined(Q_CC_MSVC)
# define Q_UNREACHABLE() __assume(0)
# define Q_ASSUME(s) __assume(s)
# elif defined(Q_CC_CLANG)
# define Q_UNREACHABLE() __builtin_unreachable()
# eli... | Use compiler detection for Q_LIKELY, Q_UNLIKELY, Q_ASSUME, Q_UNREACHABLE | Use compiler detection for Q_LIKELY, Q_UNLIKELY, Q_ASSUME, Q_UNREACHABLE [ci skip]
| C | mit | sjinks/qt_eventdispatcher_epoll,sjinks/qt_eventdispatcher_epoll |
6f55e50c181265bae4615173f62f806db75bc33f | src/streampos.h | src/streampos.h | #ifndef ICAL_STREAMPOS_H
#define ICAL_STREAMPOS_H
namespace ical {
/**
* Represents a postion in the (source) stream. It is used for constructing
* nice error messages.
*
* Note: only CRLF ("\r\n") is considered as a line ending in order to match
* the definition of 'content line' from RFC 5545.
*/
class Strea... | #ifndef ICAL_STREAMPOS_H
#define ICAL_STREAMPOS_H
namespace ical {
/**
* Represents a postion in the (source) stream. It is used for constructing
* nice error messages.
*
* Note: only CRLF ("\r\n") is considered as a line ending in order to match
* the definition of 'content line' from RFC 5545.
*/
class Strea... | Return one-based line/column numbers from StreamPos. | Return one-based line/column numbers from StreamPos.
(Because obviously people expect "Line 1" to mean the first line...)
| C | mit | LuboO/iCalendar-parser_PA193_Rteam |
e4953de7dde3021a682d99e05b2784177ebebc93 | include/icmpv4.h | include/icmpv4.h | #ifndef ICMPV4_H
#define ICMPV4_H
#include "syshead.h"
#include "netdev.h"
#define ICMP_V4_REPLY 0x00
#define ICMP_V4_DST_UNREACHABLE 0x03
#define ICMP_V4_SRC_QUENCH 0x04
#define ICMP_V4_REDIRECT 0x05
#define ICMP_V4_ECHO 0x08
#define ICMP_V4_ROUTER_ADV 0x09
#define ICMP_V4_ROUTE... | #ifndef ICMPV4_H
#define ICMPV4_H
#include "syshead.h"
#include "netdev.h"
#define ICMP_V4_REPLY 0x00
#define ICMP_V4_DST_UNREACHABLE 0x03
#define ICMP_V4_SRC_QUENCH 0x04
#define ICMP_V4_REDIRECT 0x05
#define ICMP_V4_ECHO 0x08
#define ICMP_V4_ROUTER_ADV 0x09
#define ICMP_V4_ROUTE... | Add ICMPv4 dst unreachable -message definition | Add ICMPv4 dst unreachable -message definition
Yeah, this might end up being unimplemented :-(
| C | mit | saminiir/level-ip,saminiir/level-ip |
fc1d23276088fe389f4e804da1b8f071ee3b00f9 | src/tool/hpcrun/utilities/arch/aarch64/specific-inline-asm-gctxt.h | src/tool/hpcrun/utilities/arch/aarch64/specific-inline-asm-gctxt.h | #ifndef SPECIFIC_INLINE_ASM_GCTXT
#define SPECIFIC_INLINE_ASM_GCTXT
#endif
| #ifndef SPECIFIC_INLINE_ASM_GCTXT
#define SPECIFIC_INLINE_ASM_GCTXT
#define INLINE_ASM_GCTXT(uc) getcontext(&uc)
#endif
| Define the INLINE_ASM_GCTXT() macro for aarch64. This was breaking the MEMLEAK source on arm. | Define the INLINE_ASM_GCTXT() macro for aarch64.
This was breaking the MEMLEAK source on arm.
| C | bsd-3-clause | HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit |
0cad538ae17f8e05375d1edf1d9f49bb4049e39b | test/Preprocessor/header_lookup1.c | test/Preprocessor/header_lookup1.c | // RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3.*4'
#include <stddef.h>
| // RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3'
#include <stddef.h>
| Change this test to reflect the state we are moving in. The Clang builtin headers are no longer going to receive the old 'implicit extern "C" block' semantics. This hint is actually ignored by both Clang and GCC at this point, and Clang's own builtin headers can simply be changed if there is any issue with this. Clang ... | Change this test to reflect the state we are moving in. The Clang
builtin headers are no longer going to receive the old 'implicit extern
"C" block' semantics. This hint is actually ignored by both Clang and
GCC at this point, and Clang's own builtin headers can simply be changed
if there is any issue with this. Clang ... | C | apache-2.0 | apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
ccdd7bb8566b2fd1da5c4b5c8eaa2db43a69e720 | testsuite/libffi.go/static-chain.h | testsuite/libffi.go/static-chain.h | #ifdef __aarch64__
# define STATIC_CHAIN_REG "x18"
#elif defined(__alpha__)
# define STATIC_CHAIN_REG "r1"
#elif defined(__arm__)
# define STATIC_CHAIN_REG "ip"
#elif defined(__sparc__)
# if defined(__arch64__) || defined(__sparcv9)
# define STATIC_CHAIN_REG "g5"
# else
# define STATIC_CHAIN_REG "g2"
# endif
#elif... | #ifdef __aarch64__
# define STATIC_CHAIN_REG "x18"
#elif defined(__alpha__)
# define STATIC_CHAIN_REG "$1"
#elif defined(__arm__)
# define STATIC_CHAIN_REG "ip"
#elif defined(__sparc__)
# if defined(__arch64__) || defined(__sparcv9)
# define STATIC_CHAIN_REG "g5"
# else
# define STATIC_CHAIN_REG "g2"
# endif
#elif... | Fix alpha static chain register name | testsuite: Fix alpha static chain register name
| C | mit | biosbits/libffi,Distrotech/libffi,Distrotech/libffi,joshtriplett/libffi,Pan7/libffi,Pan7/libffi,biosbits/libffi,s1341/libffi,bgarrels/libffi,joshtriplett/libffi,nmav/libffi,rth7680/libffi,joshtriplett/libffi,rth7680/libffi,plicease/libffi,Pan7/libffi,bgarrels/libffi,s1341/libffi,nmav/libffi,biosbits/libffi,joshtriplett... |
d4bca385d8d7e068e7d2075131bf14e5bb417692 | src/autowiring/stdafx.h | src/autowiring/stdafx.h | // Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#pragma once
// Internal build flag for namespace discrimination
#define AUTOWIRING_IS_BEING_BUILT
// Only include these headers in cases where a pch can be generated
// Currently this is only supported on MSVC
#ifdef _MSC_VER
#include <thread>
#if... | // Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#pragma once
// Internal build flag for namespace discrimination
#define AUTOWIRING_IS_BEING_BUILT
// Only include these headers in cases where a pch can be generated
// Currently this is only supported on MSVC
#ifdef _MSC_VER
#ifndef NOMINMAX
#d... | Make better use of precompiled header | Make better use of precompiled header
These headers are used pretty much everywhere in autowiring. New compile time is 50% of what it was on MSVC.
Before: 33.87s
After: 17.77s
| C | apache-2.0 | leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring |
8a89ea553494c0ca429a57f792a097adb1f25ce2 | Sources/ObjectiveChain.h | Sources/ObjectiveChain.h | //
// ObjectiveChain.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
//
//
| //
// ObjectiveChain.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
//
//
#import "OCAConnection.h"
#import "OCAProducer.h"
| Add first classes to umbrella header | Add first classes to umbrella header
| C | mit | Tricertops/Objective-Chain,iMartinKiss/Objective-Chain |
97d3b3cf2a7b220c34f7b467129fe9de8558e2be | utils/metatag.c | utils/metatag.c | /* metatag.c: Program for adding metadata to a file
* By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap,
* Connie Yu
*
* 2014/06/06
* */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char** argv){
char* buffer;
int fd, i, len;
if(argc < 3){
... | /* metatag.c: Program for adding metadata to a file
* By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap,
* Connie Yu
*
* 2014/06/06
* */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_LEN 1024
int main(int argc, char** argv){
char* buffer;
int fd, i, len;
i... | Add max length error check | Add max length error check
| C | mit | dmtaylor/cmps111-proj4,dmtaylor/cmps111-proj4 |
b8b9c29202e0ab25889fc745d3e5f7f99c3e9624 | regs_amd64.h | regs_amd64.h | // Offset of each register in the register map,
// as it's saved by asm_entry_amd64.s
#pragma once
#define RAX 0x00
#define RBX 0x08
#define RCX 0x10
#define RDX 0x18
#define RSI 0x20
#define RDI 0x28
#define R8 0x30
#define R9 0x38
#define R10 0x40
#define R11 0x48
#define R12 0x50
#define R13 0x58
#define R14 0x6... | // Offset of each register in the register map,
// as it's saved by asm_entry_amd64.s
#pragma once
#define RAX 0x00
#define RBX 0x08
#define RCX 0x10
#define RDX 0x18
#define RSI 0x20
#define RDI 0x28
#define R8 0x30
#define R9 0x38
#define R10 0x40
#define R11 0x48
#define R12 0x50
#define R13 0x58
#define R14 0x6... | Fix one more register addressing bug | Fix one more register addressing bug
| C | mit | yamnikov-oleg/cgo-callback,yamnikov-oleg/cgo-callback |
605871452bcb4c742ed960c09d518be03b349cf3 | base/inc/TVersionCheck.h | base/inc/TVersionCheck.h | // @(#)root/base:$Name: $:$Id: TVersionCheck.h,v 1.2 2007/05/10 16:04:32 rdm Exp $
// Author: Fons Rademakers 9/5/2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | // @(#)root/base:$Name: $:$Id: TVersionCheck.h,v 1.3 2007/05/10 18:16:58 rdm Exp $
// Author: Fons Rademakers 9/5/2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Hide a static function to CINT. With this fix g4root compiles OK. | Hide a static function to CINT. With this fix g4root compiles OK.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@18737 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | simonpf/root,jrtomps/root,tc3t/qoot,vukasinmilosevic/root,mkret2/root,0x0all/ROOT,root-mirror/root,root-mirror/root,Dr15Jones/root,omazapa/root-old,esakellari/root,mhuwiler/rootauto,esakellari/my_root_for_test,nilqed/root,mkret2/root,cxx-hep/root-cern,olifre/root,lgiommi/root,satyarth934/root,gbitzes/root,davidlt/root,... |
c44c18c4d13d6fde1d38e603f00029deaf7ff002 | src/libc4/include/util/error.h | src/libc4/include/util/error.h | #ifndef ERROR_H
#define ERROR_H
/*
* Note that we include "fmt" in the variadic argument list, because C99
* apparently doesn't allow variadic macros to be invoked without any vargs
* parameters.
*/
#define ERROR(...) var_error(__FILE__, __LINE__, __VA_ARGS__)
#define FAIL() simple_error(__FILE__, __... | #ifndef ERROR_H
#define ERROR_H
/*
* Note that we include "fmt" in the variadic argument list, because C99
* apparently doesn't allow variadic macros to be invoked without any vargs
* parameters.
*/
#define ERROR(...) var_error(__FILE__, __LINE__, __VA_ARGS__)
#define FAIL() simple_error(__FILE__, __... | Fix braindamage: assertions were not enabled in debug builds. | Fix braindamage: assertions were not enabled in debug builds.
| C | mit | bloom-lang/c4,bloom-lang/c4,bloom-lang/c4 |
42d51980ef24c2e9b93fcfd2d3aa8c0e50dc27a7 | CefSharp.Core/RequestContext.h | CefSharp.Core/RequestContext.h | // Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "Internals\MCefRefPtr.h"
#include "RequestContextSettings.h"
#include "include\cef_request_context.h"
us... | // Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "Internals\MCefRefPtr.h"
#include "RequestContextSettings.h"
#include "include\cef_request_context.h"
us... | Add nullptr check and return NULL for implicitor operator when object is not initialized | Add nullptr check and return NULL for implicitor operator when object is not initialized
| C | bsd-3-clause | jamespearce2006/CefSharp,dga711/CefSharp,twxstar/CefSharp,battewr/CefSharp,windygu/CefSharp,Haraguroicha/CefSharp,yoder/CefSharp,gregmartinhtc/CefSharp,rlmcneary2/CefSharp,Livit/CefSharp,windygu/CefSharp,joshvera/CefSharp,yoder/CefSharp,jamespearce2006/CefSharp,AJDev77/CefSharp,ITGlobal/CefSharp,ITGlobal/CefSharp,Viole... |
f606322980ae5739c9358a5b374da676ce796627 | include/common.h | include/common.h | /**
* common.h
*
* Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com>
*/
#ifndef GIT_STASHD_COMMON_H
#define GIT_STASHD_COMMON_H
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define _GNU_SOURCE
#define NOOPT_FOUND_V -1
#define CLEAN... | /**
* common.h
*
* Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com>
*/
#ifndef GIT_STASHD_COMMON_H
#define GIT_STASHD_COMMON_H
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define _GNU_SOURCE
#define NULL_BYTE 1
#define NOT_FOUND ... | Add NULL_BYTE macro, rename others | Add NULL_BYTE macro, rename others
| C | mit | nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd |
3fbbffc2c6a09a8faffcbd40645029d41d1044ad | test/default/cmptest.h | test/default/cmptest.h |
#ifndef __CMPTEST_H__
#define __CMPTEST_H__
#include <stdio.h>
#include "sodium.h"
#define TEST_NAME_RES TEST_NAME ".res"
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
#ifdef HAVE_ARC4RANDOM
# undef rand
# define rand(X) arc4random(X)
#endif
FILE *fp_res;
int xmain(void);
int main(void)
{
FILE *fp... |
#ifndef __CMPTEST_H__
#define __CMPTEST_H__
#include <stdio.h>
#include "sodium.h"
#define TEST_NAME_RES TEST_NAME ".res"
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
#ifdef HAVE_ARC4RANDOM
# undef rand
# define rand(X) arc4random(X)
#endif
FILE *fp_res;
int xmain(void);
int main(void)
{
FILE *fp... | Check xmain() return code in tests. | Check xmain() return code in tests.
| C | isc | Payshare/libsodium,Payshares/libsodium,donpark/libsodium,netroby/libsodium,mvduin/libsodium,akkakks/libsodium,Payshares/libsodium,tml/libsodium,donpark/libsodium,pmienk/libsodium,akkakks/libsodium,optedoblivion/android_external_libsodium,GreatFruitOmsk/libsodium,paragonie-scott/libsodium,donpark/libsodium,GreatFruitOms... |
a67b4a35ab897730d7847a96ca4b20925e0c7c38 | test/profile/instrprof-error.c | test/profile/instrprof-error.c | // RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE="%t/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s
int main(int argc, const char *argv[]) {
if (argc < 2)
return 1;
return 0;
}
// CHECK: LLVM Profile: Failed to write file
| // RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t/ LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s
int main(int argc, const char *argv[]) {
if (argc < 2)
return 1;
return 0;
}
// CHECK: LLVM Profile: Failed to write file
| Remove quotes around env variable, NFC | [profile] Remove quotes around env variable, NFC
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@264824 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
f8c8f68c19c6fdb074047ebd0d05f5595a6a5686 | src/output/output_hls.h | src/output/output_hls.h | #include "output_http.h"
#include "output_ts_base.h"
namespace Mist{
class OutHLS : public TSOutput{
public:
OutHLS(Socket::Connection &conn);
~OutHLS();
static void init(Util::Config *cfg);
void sendTS(const char *tsData, size_t len = 188);
void sendNext();
void onHTTP();
bool isReadyF... | #include "output_http.h"
#include "output_ts_base.h"
namespace Mist{
class OutHLS : public TSOutput{
public:
OutHLS(Socket::Connection &conn);
~OutHLS();
static void init(Util::Config *cfg);
void sendTS(const char *tsData, size_t len = 188);
void sendNext();
void onHTTP();
bool isReadyF... | Fix HLS being seen as input during init | Fix HLS being seen as input during init
| C | unlicense | DDVTECH/mistserver,DDVTECH/mistserver,DDVTECH/mistserver,DDVTECH/mistserver,DDVTECH/mistserver |
21dbe15f7dd0f0511bc0178d142213c3fadfcb99 | arch/arm/mach-w90x900/include/mach/regs-usb.h | arch/arm/mach-w90x900/include/mach/regs-usb.h | /*
* arch/arm/mach-w90x900/include/mach/regs-usb.h
*
* Copyright (c) 2008 Nuvoton technology corporation.
*
* Wan ZongShun <mcuos.com@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 Fo... | Add Usb register controller header file dfine | [ARM] 5499/1: Add Usb register controller header file dfine
Add Usb register controller header file dfine.
w90p910 usb ip is standard,but some mutifunction
controll pin must be special define in w90p910
Signed-off-by: Wan ZongShun <7d90017055ae88f9b614c1a99b7a29176cffa725@gmail.com>
Signed-off-by: Russell King <f6aa0... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... | |
4eaa650e89278c8f6e3defd636433629d6bc2770 | src/main/entity/components/SkillComponent.h | src/main/entity/components/SkillComponent.h | #ifndef SKILLCOMPONENT_H_
#define SKILLCOMPONENT_H_
/**
* Enumeration for identifying different skills.
*/
enum skill_t {
Melee,
Swords,
BastardSword,
Maces,
SpikedMace,
FirstAid
};
/**
* Data structure to represent an Entity's skill.
*/
typedef struct
{
skill_t skill; ///< The type of skill
int ranks; //... | #ifndef SKILLCOMPONENT_H_
#define SKILLCOMPONENT_H_
/**
* Data structure to represent an Entity's skill.
*/
typedef struct
{
int ranks; ///< Current ranks in the skill
int xp; ///< Amount of XP earned towards next rank
} SkillComponent;
/**
* Enumeration for identifying different skills.
*/
enum skill_t {
NOSK... | Add NOSKILL skill type, remove from component | Add NOSKILL skill type, remove from component
The component will be going into a MultiComponentManager, so it will already be indexed by skill_t; storing skill_t in the component as well is redundant, unnecessary, and redundant.
| C | mit | Kromey/roglick |
631e13f0aac39105f7837035cffccf9c48fe16ab | mc/inc/LinkDef.h | mc/inc/LinkDef.h | // @(#)root/mc:$Name: $:$Id: LinkDef.h,v 1.2 2002/04/26 08:46:10 brun Exp $
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ global gMC;
#pragma link C++ enum PDG_t;
#pragma link C++ enum TMCProcess;
#pragma link C++ class TVirtualMC+;
... | // @(#)root/mc:$Name: $:$Id: LinkDef.h,v 1.2 2002/04/26 09:25:02 brun Exp $
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ global gMC;
#pragma link C++ enum PDG_t;
#pragma link C++ enum TMCProcess;
#pragma link C++ class TVirtualMC+;
... | Add TMCVerbose to the list of mc classes | Add TMCVerbose to the list of mc classes
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@6190 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT |
5f5f1422181bf195aafc27e30339d5960a787f7a | main.c | main.c | #include <stdint.h>
#include "ports.h"
#include "pic.h"
#include "gdt.h"
#include "idt.h"
#include "irq.h"
#include "screen.h"
void entry(void) {
pic_remap(IRQ0, IRQ8);
pic_set_masks(0, 0);
gdt_init((struct GDT *)(0x500));
idt_init((struct IDT *)(0x500 + sizeof(struct GDT)));
__asm__ __volatile__ ("sti");
scr... | #include <stdint.h>
#include "ports.h"
#include "pic.h"
#include "gdt.h"
#include "idt.h"
#include "irq.h"
#include "screen.h"
void entry(void) {
pic_remap(IRQ0, IRQ8);
pic_set_masks(0, 0);
idt_init((struct IDT *)(0x500));
gdt_init((struct GDT *)(0x500 + sizeof(struct IDT)));
__asm__ __volatile__ ("sti");
scr... | Set up IDT first to ensure exceptions are handled | Set up IDT first to ensure exceptions are handled
| C | apache-2.0 | shockkolate/shockk-os,shockkolate/shockk-os,shockkolate/shockk-os |
10fbce820f580d058bdfb1ab89cf01a027da3161 | gitst.c | gitst.c |
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#define GITBUF 2048
int
main(int argc, char **argv)
{
int pid, ret;
int pipes[2];
char gitbuff[GITBUF];
size_t gitlen;
char b;
char *br;
int childst;
if(pipe(pipes) != 0)
{
perror("Error cre... |
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#define GITBUF 2048
int
main(int argc, char **argv)
{
int pid, ret;
int pipes[2];
char gitbuff[GITBUF];
size_t gitlen;
char b;
char *br;
int childst;
if(pipe(pipes) != 0)
{
perror("Error cre... | Convert to `git branch` for performance | Convert to `git branch` for performance
- Using `git status` is eificient to get only the current branch but in
a repo with a large number of untracked files it can stall for a long
time getting the status of a repository. Git Branch is much better in
these cases.
| C | bsd-3-clause | wnh/prompt_utils |
df717db1600e062dcd96be7ba4ae431252d578dd | test2/float/call/many_floats.c | test2/float/call/many_floats.c | // RUN: %ucc -o %t %s
// RUN: %ocheck 0 %t
// RUN: %t | %output_check 'Hello 5 2.3' 'Hello 5 2.3'
// should run without segfaulting
main()
{
printf("Hello %d %.1f\n",
5,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3,
2.3); // this causes an infinite loop in glibc's printf()
pr... | // RUN: %ucc -o %t %s
// RUN: %ocheck 0 %t
// RUN: %t | %output_check 'Hello 5 5.9' '7.3 8.7 10.1 11.5 12.9 14.3 15.7 17.1 18.5 19.9' 'Hello 5 15.7' '14.3 12.9 11.5 10.1 8.7 7.3 5.9 4.5 3.1 1.7 0.3'
// should run without segfaulting
main()
{
printf("Hello %d %.1f\n"
"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %... | Format strings and more through test for stack floats | Format strings and more through test for stack floats
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
7ba01aa3a21bd1edb41e5639584f153d694b967a | test/core/tsi/alts/fake_handshaker/fake_handshaker_server.h | test/core/tsi/alts/fake_handshaker/fake_handshaker_server.h | /*
*
* Copyright 2018 gRPC authors.
*
* 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 agree... | /*
*
* Copyright 2018 gRPC authors.
*
* 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 agree... | Fix differing parameter name clang tidy warning | Fix differing parameter name clang tidy warning
| C | apache-2.0 | muxi/grpc,muxi/grpc,vjpai/grpc,ctiller/grpc,nicolasnoble/grpc,firebase/grpc,muxi/grpc,donnadionne/grpc,jtattermusch/grpc,jboeuf/grpc,ctiller/grpc,grpc/grpc,stanley-cheung/grpc,jboeuf/grpc,stanley-cheung/grpc,ejona86/grpc,ejona86/grpc,stanley-cheung/grpc,firebase/grpc,muxi/grpc,stanley-cheung/grpc,nicolasnoble/grpc,grpc... |
b5707323dd01a74be0169d3550d565b35c2c6ca2 | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | // 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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility impact of this change.
BUG=66078
TEST=none (tested manually with m... | C | bsd-3-clause | adobe/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chrom... |
73d218160c386019ea849719d36212c06d3962d2 | core/alsp_src/win32/mswin32_config.h | core/alsp_src/win32/mswin32_config.h | /*
* mswin32_config.h Hand made MSWin32 configuration file.
* Copyright (c) 1996 Applied Logic Systems, Inc.
*
* Author: Chuck Houpt
* Creation: 1/30/96
*/
#include "dfltsys.h"
#define MSWin32 1
#define OSStr "mswin32"
#ifdef __GNUC__
#define EXTERNAL_STATE 1
#endif
/* Temp. disable threading until thread... | /*
* mswin32_config.h Hand made MSWin32 configuration file.
* Copyright (c) 1996 Applied Logic Systems, Inc.
*
* Author: Chuck Houpt
* Creation: 1/30/96
*/
#include "dfltsys.h"
#define MSWin32 1
#define OSStr "mswin32"
#ifdef __GNUC__
#define EXTERNAL_STATE 1
#endif
/* Temp. disable threading until thread... | Remove defunct missing defs that interfere with CI build | Remove defunct missing defs that interfere with CI build | C | mit | AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.