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 |
|---|---|---|---|---|---|---|---|---|---|
a835e62e608714541135f90a26f46e919e3e52aa | 2018/clone/clone-vm-sample.c | 2018/clone/clone-vm-sample.c | // We have to define the _GNU_SOURCE to get access to clone(2) and the CLONE_*
// flags from sched.h
#define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static int child_func(void* arg) {
char* buf = (cha... | // We have to define the _GNU_SOURCE to get access to clone(2) and the CLONE_*
// flags from sched.h
#define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static int child_func(void* arg) {
char* buf = (cha... | Change the sample to pass message from parent as well | Change the sample to pass message from parent as well
| C | unlicense | eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog |
4f515b1847d32452f9c0abbc5325eeb3ac94b7e2 | tensorflow/lite/kernels/internal/reference/integer_ops/lut.h | tensorflow/lite/kernels/internal/reference/integer_ops/lut.h | /* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Use ++i instead of i++ | Use ++i instead of i++
| C | apache-2.0 | tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimi... |
2f2658506c4d344daa40dce57e69ca2e209ed99a | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 86
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 87
#endif
| Update Skia milestone to 87 | Update Skia milestone to 87
Change-Id: Ic755236e56a0b8064c5539c0a483fffbd4d9f334
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/312156
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,ao... |
7af5ca84a6606374928cb5f2e15e14fff686fc63 | lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h | lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h | //===- lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h ---------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | //===- lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.h ---------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | Fix comment in AArch64 ELF backend | Fix comment in AArch64 ELF backend
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@222814 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld |
f687a87560979bec5f7fc58f79e47baacb70cc25 | FABOperation/FABAsyncOperation.h | FABOperation/FABAsyncOperation.h | //
// FABAsyncOperation.h
// FABOperation
//
// Copyright © 2016 Twitter. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* Completion block that can be called in your subclass implementation. It is up to you when you want to call it.
*/
typedef void(^FABAsyncOperationCompletionBlock)(NSError *__n... | //
// FABAsyncOperation.h
// FABOperation
//
// Copyright © 2016 Twitter. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* Completion block that can be called in your subclass implementation. It is up to you when you want to call it.
*/
typedef void(^FABAsyncOperationCompletionBlock)(NSError *__n... | Update comments to refer to finishWithError | Update comments to refer to finishWithError
markDone was renamed to finishWithError | C | mit | google-fabric/FABOperation,twitter-fabric/FABOperation,google-fabric/FABOperation,twitter-fabric/FABOperation |
b929a1e2a5a963272516b620382684472d2d7a95 | arduino/OpenROV/AConfig.h | arduino/OpenROV/AConfig.h | #ifndef __ACONFIG_H_
#define __ACONFIG_H_
/* This must be before alphabetically before all other files that reference these settings for the compiler to work
* or you may get vtable errors.
*/
/* This section is for devices and their configuration. IF you have not setup you pins with the
* standard configuration of... | #ifndef __ACONFIG_H_
#define __ACONFIG_H_
/* This must be before alphabetically before all other files that reference these settings for the compiler to work
* or you may get vtable errors.
*/
/* This section is for devices and their configuration. IF you have not setup you pins with the
* standard configuration of... | Add automation for arduino board selection for compilation | Add automation for arduino board selection for compilation
| C | mit | codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software |
1014b5f7f77c211a6d145240207c578de9ffda70 | tests/regression/13-privatized/56-aget_extern_init_minimal.c | tests/regression/13-privatized/56-aget_extern_init_minimal.c | // SKIP
#include <pthread.h>
#include <stdlib.h>
extern int optind ;
pthread_t hthread ;
void *signal_waiter(void *arg )
{
}
int main(int argc , char **argv )
{
pthread_create(& hthread, NULL, & signal_waiter, NULL);
if (optind >= argc) {
if (optind == argc) {
// mine-lazy priv should also read Unkn... | Add manual test where mine-W is more precise than mine-lazy due to extern global init top | Add manual test where mine-W is more precise than mine-lazy due to extern global init top
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
bf562de155364372c4dd93c5471e4a709c52f7e7 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 89
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 90
#endif
| Update Skia milestone to 90 | Update Skia milestone to 90
Change-Id: Ib4ef9057cb623b2d8ea57c40fb6f67ac731471f0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353778
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,goo... |
94b6cc19ea03b5fdcdb25e0e3663b663509757e4 | jobs/AsyncLog.c | jobs/AsyncLog.c | //
// AsyncLog.c
// Ctest
//
// Created by Yanjiu Huang on 3/24/14.
// Copyright (c) 2014 Yanjiu Huang. All rights reserved.
//
#include <stdio.h>
#include "AsyncLog.h"
void async_log_error(const char* format,...){
}
void async_log_debug(const char* format,...){
}
void async_log_info(const char* format,..... | //
// AsyncLog.c
// Ctest
//
// Created by Yanjiu Huang on 3/24/14.
// Copyright (c) 2014 Yanjiu Huang. All rights reserved.
//
#include <stdio.h>
#include <stdarg.h>
#include "AsyncLog.h"
void async_log_error(const char* format, ...){
va_list arg;
va_start(arg, format);
vfprintf(stderr, format,... | Add the Async Log implementation | Add the Async Log implementation
| C | mit | yanjiuhuang/AsyncTalk,yanjiuhuang/AsyncTalk |
074f128cb1a27348516a8820f4bd079bac4d6ac3 | blogposting_p.h | blogposting_p.h | /*
This file is part of the kblog library.
Copyright (c) 2007 Christian Weilbach <christian_weilbach@web.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... | /*
This file is part of the kblog library.
Copyright (c) 2007 Christian Weilbach <christian_weilbach@web.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... | Fix extra semicolor causing build failure | Fix extra semicolor causing build failure
svn path=/trunk/KDE/kdepimlibs/; revision=694789
| C | lgpl-2.1 | KDE/kblog,KDE/kblog |
4d11a3161be0592729610d34e47bd2ece8d92ace | examples/6lbr/dev/enc28j60/enc28j60-arch.h | examples/6lbr/dev/enc28j60/enc28j60-arch.h | /*
* Copyright (c) 2013, CETIC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | Add missing EC28J60 arch definition file | Add missing EC28J60 arch definition file
| C | bsd-3-clause | bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr | |
0e83ee4322f2f7c169bbf47f86770dc7cad04ac7 | examples/ghc/gen-files/ghc_boot_platform.h | examples/ghc/gen-files/ghc_boot_platform.h | #ifndef __PLATFORM_H__
#define __PLATFORM_H__
#define BuildPlatform_NAME "x86_64-unknown-linux"
#define HostPlatform_NAME "x86_64-unknown-linux"
#define TargetPlatform_NAME "x86_64-unknown-linux"
#define x86_64_unknown_linux_BUILD 1
#define x86_64_unknown_linux_HOST 1
#define x86_64_unknown_linux_TARGET 1
#define... | Add more files into gen-files | Add more files into gen-files
| C | mit | antalsz/hs-to-coq,antalsz/hs-to-coq | |
10ace4b69498745ef706ccc513c73be14d035f8f | test2/structs/C11/anon2.c | test2/structs/C11/anon2.c | // RUN: %ocheck 3 %s
struct nest {
union {
struct {
union {
int i;
};
};
};
};
int main()
{
struct nest n = {
.i = 2
};
n.i++;
return n.i;
}
| Add anonymous nested struct test | Add anonymous nested struct test
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
3fa6e944890353f7937fab4c04d4e4fd1ac77fdc | ui/base/ime/character_composer.h | ui/base/ime/character_composer.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_IME_CHARACTER_COMPOSER_H_
#define UI_BASE_IME_CHARACTER_COMPOSER_H_
#pragma once
#include <vector>
#include "base/basictypes.h"
#inc... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_IME_CHARACTER_COMPOSER_H_
#define UI_BASE_IME_CHARACTER_COMPOSER_H_
#pragma once
#include <vector>
#include "base/basictypes.h"
#inc... | Fix link error when component=shared_library is set | Fix link error when component=shared_library is set
BUG=103789
TEST=Manual
Review URL: http://codereview.chromium.org/8515013
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@109554 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,gavinp/chro... |
18ea3bfa8059ab859a758a65fd006327f1da31fd | boards/posix/nrf52_bsim/cmdline.h | boards/posix/nrf52_bsim/cmdline.h | /*
* Copyright (c) 2019 Oticon A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This header exists solely to allow drivers meant for the native_posix board
* to be used directly in the nrf52_bsim board.
* Note that such reuse should be done with great care.
*
* The command line arguments parsing logic fro... | /*
* Copyright (c) 2019 Oticon A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This header exists solely to allow drivers meant for the native_posix board
* to be used directly in the nrf52_bsim board.
* Note that such reuse should be done with great care.
*
* The command line arguments parsing logic fro... | Add missing header guard and extern C block | nrf52_bsim: Add missing header guard and extern C block
Add a missing header guard and an extern "C" block
in one of the nrf52_bsim headers
Signed-off-by: Alberto Escolar Piedras <52be3174920ed06cbdfbcf9622a1a6c68e942617@oticon.com>
| C | apache-2.0 | nashif/zephyr,nashif/zephyr,nashif/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,galak/zephyr,galak/zephyr,zephyrproject-rtos/ze... |
6446caf75a12bccdfc9b1af81586a1340b968db4 | Atomic/Atomic.h | Atomic/Atomic.h | //
// Atomic.h
// Atomic
//
// Created by Adlai Holler on 12/5/15.
// Copyright © 2015 Adlai Holler. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for Atomic.
FOUNDATION_EXPORT double AtomicVersionNumber;
//! Project version string for Atomic.
FOUNDATION_EXPORT const unsigned char At... | //
// Atomic.h
// Atomic
//
// Created by Adlai Holler on 12/5/15.
// Copyright © 2015 Adlai Holler. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Atomic.
FOUNDATION_EXPORT double AtomicVersionNumber;
//! Project version string for Atomic.
FOUNDATION_EXPORT const unsign... | Remove silly import of UIKit | Remove silly import of UIKit
| C | mit | Adlai-Holler/Atomic,Adlai-Holler/Atomic |
15585314e9802d0c9d341fb9a6b396fd6520e8d4 | tests/regression/28-race_reach/36-indirect_racefree.c | tests/regression/28-race_reach/36-indirect_racefree.c | #include <pthread.h>
#include "racemacros.h"
int g;
int *g1;
int *g2;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&mutex);
access(*g1);
pthread_mutex_lock(&mutex);
return NULL;
}
int main(void) {
g1 = g2 = &g;
create_threads(t);
assert_racefree(*g2)... | #include <pthread.h>
#include "racemacros.h"
int g;
int *g1;
int *g2;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&mutex);
access(*g1);
pthread_mutex_lock(&mutex);
return NULL;
}
int main(void) {
g1 = g2 = &g;
create_threads(t);
pthread_mutex_lock(&m... | Fix 28/36 to actually be race free | Fix 28/36 to actually be race free
It was the same as 28/37.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
a863c597d08a689be2103b67bc254ff749091fb9 | fw/new/libs/AdapterBoard/AdapterBoard.c | fw/new/libs/AdapterBoard/AdapterBoard.c | #ifndef ADAPTERBOARD_H
#define ADAPTERBOARD_H
#include <RGBLed.h>
#define LED_R 13
#define LED_G 9
#define LED_B 10
#define BACKLIGHT_PIN 0
class AdapterBoard
{
public:
AdapterBoard();
void init();
void poll();
private:
RGBLed led;
Backlight backlight;
};
#endif
| #ifndef ADAPTERBOARD_H
#define ADAPTERBOARD_H
#include <RGBLed.h>
#define LED_R 13
#define LED_G 9
#define LED_B 10
#define BACKLIGHT_PIN 11
#define SW_ON 4
#define SW_UP 12
#define SW_DOWN 6
class AdapterBoard
{
public:
AdapterBoard();
void init();
void poll();
private:
RGBLed led;
Backligh... | Add switch pin definitions, fix pin for backlight | Add switch pin definitions, fix pin for backlight
| C | bsd-3-clause | OSCARAdapter/OSCAR,OSCARAdapter/OSCAR |
4ae24681241a740719a370ade51d0cfa4608dbb8 | apps/c_blinky/main.c | apps/c_blinky/main.c | #include <firestorm.h>
#include <gpio.h>
#define LED_1 1
void main(void) {
gpio_enable_output(LED_0);
gpio_enable_output(LED_1);
while(1) {
gpio_set(LED_0);
gpio_clear(LED_1);
delay_ms(500);
gpio_set(LED_1);
gpio_clear(LED_0);
delay_ms(500);
}
}
| #include <firestorm.h>
#include <gpio.h>
#define LED_1 1
/* Delay for for the given microseconds (approximately).
*
* For a 16 MHz CPU, 1us == 16 instructions (assuming each instruction takes
* one cycle). */
static void busy_delay_us(int duration)
{
// The inner loop instructions are: 14 NOPs + 1 SUBS/ADDS + 1 C... | Use a "busy" delay function for blinky | WORKAROUND: Use a "busy" delay function for blinky
While the timer support is not fixed, use a delay function the keeps the CPU
busy using a certain amount of NOPs.
| C | apache-2.0 | google/tock-on-titan,google/tock-on-titan,google/tock-on-titan |
c4589974f09becf2c271e03153fe5e47709186a5 | include/matrix_access_impl.h | include/matrix_access_impl.h | //-----------------------------------------------------------------------------
// Element Access
//-----------------------------------------------------------------------------
template<class T>
T& matrix<T>::at( std::size_t row, std::size_t col ){
return data_.at(row*cols_+col);
}
template<class T>
const T& matri... | //-----------------------------------------------------------------------------
// Element Access
//-----------------------------------------------------------------------------
template<class T>
T& matrix<T>::at( std::size_t row, std::size_t col ){
// TODO throw if out of bounds
return data_.at(row*cols_+col);
}
... | Add todo comment on at() functions. | Add todo comment on at() functions.
| C | mit | actinium/cppMatrix,actinium/cppMatrix |
a0accd6f92395240ef6bddf17903880af8201937 | server/Bundle.h | server/Bundle.h | typedef struct Bundle Bundle;
struct Bundle {
MatrixServer* matrix;
Db* db;
int epfd;
int threadNo; //for init only, not used in the threads
std::string portNo; //for init only, not used in the threads
};
| Move struct definition to header as it is reused in different cpp files | Move struct definition to header as it is reused in different cpp files
| C | mit | BTriay/QMessenger,BTriay/QMessenger,BTriay/QMessenger | |
52e1beb3dfe634b6e05cd28e480fce984ba36141 | bst.c | bst.c | #include "bst.h"
static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v);
struct BSTNode
{
BSTNode* left;
BSTNode* right;
BSTNode* p;
void* k;
};
struct BST
{
BSTNode* root;
};
BST* BST_Create(void)
{
BST* T = (BST* )malloc(sizeof(BST));
T->root = NULL;
return T;
}
BSTNode* BSTNode_Create(void* k)
{
BS... | #include "bst.h"
static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v);
struct BSTNode
{
BSTNode* left;
BSTNode* right;
BSTNode* p;
void* k;
};
struct BST
{
BSTNode* root;
};
BST* BST_Create(void)
{
BST* T = (BST* )malloc(sizeof(BST));
T->root = NULL;
return T;
}
BSTNode* BSTNode_Create(void* k)
{
BS... | Add BST inorder traversal function implementation | Add BST inorder traversal function implementation
| C | mit | MaxLikelihood/CADT |
0ce4e4a4d016a671fafd162852530e7c768b9a6c | dir.c | dir.c | #include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char *dircat(char *d1, char *d2)
{
char *new = malloc(strlen(d1) + strlen(d2) + 2);
sprintf(new, "%s/%s", d1, d2);
return new;
}
void dirwalk(char *name, void (*func)(char *, void *), void *ctx)
{
DIR *dir = opendir(... | #include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char *dircat(char *d1, char *d2)
{
char *new = malloc(strlen(d1) + strlen(d2) + 2);
sprintf(new, "%s/%s", d1, d2);
return new;
}
void dirwalk(char *name, void (*func)(char *, void *), void *ctx)
{
DIR *dir = opendir(... | Fix bug with . and .. | Fix bug with . and ..
| C | mit | akojo/quickfind |
371fd15fa3e58cda2f575d443d5c9cd06551821f | src/xedgewarp.c | src/xedgewarp.c | // vim:ts=4:sw=4:expandtab
#include <stdlib.h>
#include <stdio.h>
#include "randr.h"
#include "types.h"
#include "globals.h"
int main(void) {
// TODO
}
| // vim:ts=4:sw=4:expandtab
#include <stdlib.h>
#include <stdio.h>
#include <err.h>
#include <xcb/xcb.h>
#include <xcb/xcb_aux.h>
#include "randr.h"
#include "types.h"
#include "globals.h"
xcb_connection_t *connection;
xcb_window_t root;
static void initialize(void) {
int display;
connection = xcb_connect(NUL... | Initialize X11 connection and root screen. | Initialize X11 connection and root screen.
| C | mit | Airblader/xedgewarp,Airblader/xedgewarp |
1d40a955d93f517c1468a62896fd2ec24e3660ce | include/swift/Basic/Dwarf.h | include/swift/Basic/Dwarf.h | //===--- Dwarf.h - DWARF constants ------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | //===--- Dwarf.h - DWARF constants ------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | Adjust for new LLVM BinaryFormat library in r304864. | Adjust for new LLVM BinaryFormat library in r304864.
| C | apache-2.0 | lorentey/swift,xedin/swift,frootloops/swift,stephentyrone/swift,ahoppen/swift,xedin/swift,stephentyrone/swift,sschiau/swift,huonw/swift,benlangmuir/swift,karwa/swift,alblue/swift,ahoppen/swift,airspeedswift/swift,OscarSwanros/swift,return/swift,practicalswift/swift,jmgc/swift,frootloops/swift,airspeedswift/swift,parker... |
068f57c5ca513befac3b3b56de36eed2ee78400d | src/common/image_base.h | src/common/image_base.h | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_COMMON_IMAGE_BASE_H
#define VSNRAY_COMMOM_IMAGE_BASE_H 1
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>
#include <visionaray/pixel_format.h>
namespace visionaray
{
class i... | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_COMMON_IMAGE_BASE_H
#define VSNRAY_COMMOM_IMAGE_BASE_H 1
#include <cstddef>
#include <cstdint>
#include <string>
#include <visionaray/aligned_vector.h>
#include <visionaray/pixel_format.h>
namespace ... | Store image data in aligned_vector | Store image data in aligned_vector
| C | mit | tu500/visionaray,szellmann/visionaray,ukoeln-vis/ctpperf,ukoeln-vis/ctpperf,tu500/visionaray,szellmann/visionaray |
adddb65f4656b0b03b24fa3868e2a8c555af18da | src/osmo-bts-sysmo/utils.h | src/osmo-bts-sysmo/utils.h | #ifndef SYSMOBTS_UTILS_H
#define SYSMOBTS_UTILS_H
#include <stdint.h>
#include "femtobts.h"
struct gsm_bts_trx;
int band_femto2osmo(GsmL1_FreqBand_t band);
int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn);
int sysmobts_get_nominal_power(struct gsm_bts_trx *trx);
int sysmobts_get_target_powe... | #ifndef SYSMOBTS_UTILS_H
#define SYSMOBTS_UTILS_H
#include <stdint.h>
#include "femtobts.h"
struct gsm_bts_trx;
int band_femto2osmo(GsmL1_FreqBand_t band);
int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn);
int sysmobts_get_nominal_power(struct gsm_bts_trx *trx);
#endif
| Remove left-over from non-generic power control | sysmobts: Remove left-over from non-generic power control
| C | agpl-3.0 | geosphere/osmo-bts,osmocom/osmo-bts,geosphere/osmo-bts,telenoobie/osmo-bts,telenoobie/osmo-bts,osmocom/osmo-bts,telenoobie/osmo-bts,geosphere/osmo-bts,geosphere/osmo-bts,osmocom/osmo-bts,telenoobie/osmo-bts |
6b17df768563131677401dca775cf010c846c537 | features/cryptocell/FEATURE_CRYPTOCELL310/mbedtls_device.h | features/cryptocell/FEATURE_CRYPTOCELL310/mbedtls_device.h | /*
* mbedtls_device.h
*
* Copyright (C) 2018, Arm Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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
*... | /*
* mbedtls_device.h
*
* Copyright (C) 2018, Arm Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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
*... | Make the alternative sha512 optional | Make the alternative sha512 optional
Have the alternative sha512 undefined by default,
in order not to break backwards compatability.
| C | apache-2.0 | kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed |
97ad6120c4d1d754486b845a77edc4e73eabcf39 | CS_143/Router.h | CS_143/Router.h |
#ifndef __CS_143__Router__
#define __CS_143__Router__
#include <string>
#include "Device.h"
class Router : public Device
{
public:
// Bellman-Ford
//void updateRouting(Packet);
// create static routing table
void addRouting(Packet);
// add a link to the router
void addLink(std::str... |
#ifndef __CS_143__Router__
#define __CS_143__Router__
#include <string>
#include "Device.h"
class Router : public Device
{
public:
// Bellman-Ford
//void updateRouting(Packet);
// create static routing table
void addRouting(Packet);
// add a link to the router
void addLink(std::str... | Add comment about unordered map | Add comment about unordered map
| C | mit | zatricion/NetSim,zatricion/NetSim,zatricion/NetSim,zatricion/NetSim |
cefaf9c58a58eeba6034ac1ad6f64086b7e4190b | include/DgospreyRevision.h | include/DgospreyRevision.h | /* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
#ifndef DGOSPREY_REVISION_H
#define DGOSPREY_REVISION_H
#define DGOSPREY_REVISION "git commit 8603d37 on 2015-01-21"
#endif // DGOSPREY_REVISION_H
| /* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
#ifndef DGOSPREY_REVISION_H
#define DGOSPREY_REVISION_H
#define DGOSPREY_REVISION "git commit 660a43d on 2015-02-09"
#endif // DGOSPREY_REVISION_H
| Test run successful after libmesh update | Test run successful after libmesh update
| C | lgpl-2.1 | lindsayad/dgosprey-fork,lindsayad/dgosprey-fork,lindsayad/dgosprey-fork,aladshaw3/dgosprey,aladshaw3/dgosprey,aladshaw3/dgosprey,aladshaw3/dgosprey,lindsayad/dgosprey-fork |
8c0a9b8bc56ad4a3cc29f10ae747a7cd0f1eb531 | src/guacenc/image-stream.h | src/guacenc/image-stream.h | /*
* Copyright (C) 2016 Glyptodon, Inc.
*
* 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, pub... | /*
* Copyright (C) 2016 Glyptodon, Inc.
*
* 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, pub... | Replace placeholder with required mask and index properties. | GUAC-236: Replace placeholder with required mask and index properties.
| C | apache-2.0 | apache/guacamole-server,flangelo/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,flangelo/guacamole-server,apache/guacamole-server,apache/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-serve... |
03aa62a6586db5c9065846140fd974de29fd363d | TrustKit/Reporting/TSKPinFailureReport.h | TrustKit/Reporting/TSKPinFailureReport.h | //
// TSKPinFailureReport.h
// TrustKit
//
// Created by Alban Diquet on 5/27/15.
// Copyright (c) 2015 Data Theorem. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TSKPinFailureReport : NSObject
@property (readonly) NSString *appBundleId;
@property (readonly) NSString *appVersion;
@propert... | //
// TSKPinFailureReport.h
// TrustKit
//
// Created by Alban Diquet on 5/27/15.
// Copyright (c) 2015 Data Theorem. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TSKPinFailureReport : NSObject
@property (readonly, nonatomic) NSString *appBundleId; // Not part of the HPKP spec
@property (... | Switch to non atomic properties | Switch to non atomic properties
| C | mit | datatheorem/TrustKit,FredericJacobs/TrustKit,FredericJacobs/TrustKit,datatheorem/TrustKit,CedarLogic/TrustKit,CedarLogic/TrustKit,FredericJacobs/TrustKit,CedarLogic/TrustKit,datatheorem/TrustKit,datatheorem/TrustKit |
1c871b33812d0c7f22b0490593485f6d7d6f80d6 | src/wordcounts.h | src/wordcounts.h | #ifndef __WORDCOUNTS_H__
#define __WORDCOUNTS_H__
#include <string>
#include <map>
#include <Rcpp.h>
typedef std::unordered_map<std::string, int> hashmap;
class WordCounts
{
private:
hashmap map;
public:
WordCounts();
~WordCounts();
void print();
Rcpp::DataFrame as_data_frame();
void add... | #ifndef __WORDCOUNTS_H__
#define __WORDCOUNTS_H__
#include <string>
#include <unordered_map>
#include <Rcpp.h>
typedef std::unordered_map<std::string, int> hashmap;
class WordCounts
{
private:
hashmap map;
public:
WordCounts();
~WordCounts();
void print();
Rcpp::DataFrame as_data_frame();
... | Replace include <map> with <unordered_map> | Replace include <map> with <unordered_map>
| C | unlicense | zbwrnz/zwc |
f26f972cf79bc911fd3997d903128b7aac8b1677 | cbits/h_iconv.c | cbits/h_iconv.c | #include "h_iconv.h"
// Wrapper functions, since iconv_open et al are macros in libiconv.
iconv_t h_iconv_open(const char *tocode, const char *fromcode) {
return iconv_open(tocode, fromcode);
}
void h_iconv_close(iconv_t cd) {
iconv_close(cd);
}
size_t h_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
... | #include "h_iconv.h"
// Wrapper functions, since iconv_open et al are macros in libiconv.
iconv_t h_iconv_open(const char *tocode, const char *fromcode) {
return iconv_open(tocode, fromcode);
}
void h_iconv_close(iconv_t cd) {
iconv_close(cd);
}
size_t h_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
... | Add a comment explaining why iconv needs a (void*) for its parameter. | Add a comment explaining why iconv needs a (void*) for its parameter. | C | bsd-3-clause | judah/haskeline,ghc/packages-haskeline,leroux/packages-haskeline,ghc/packages-haskeline,judah/haskeline |
58e986af5cca1bce399680feacaf3d394700acc2 | host/WProgram.h | host/WProgram.h | #ifndef WProgram_h
#define WProgram_h
#ifndef HOST_MIDIDUINO
#define HOST_MIDIDUINO
#endif
#define _BV(i) (1 << (i))
#define PSTR(s) (s)
#define GUI_NUM_ENCODERS 4
#define GUI_NUM_BUTTONS 4
#define BUTTON_PRESSED(i) false
#define BUTTON_RELEASED(i) false
#define BUTTON_DOWN(i) false
#define BUTTON_UP(i) true
#incl... | #ifndef WProgram_h
#define WProgram_h
#ifndef HOST_MIDIDUINO
#define HOST_MIDIDUINO
#endif
#define _BV(i) (1 << (i))
#define PSTR(s) (s)
#define GUI_NUM_ENCODERS 4
#define GUI_NUM_BUTTONS 8
#include <stdio.h>
void handleIncomingMidi();
#define BOARD_ID 0x89
#define SYSEX_BUF_SIZE 8192
#define setLed()
#define cl... | Fix number of buttons on the host and remove the placeholder macros | Fix number of buttons on the host and remove the placeholder macros
| C | lgpl-2.1 | wesen/mididuino,wesen/mididuino,wesen/mididuino,wesen/mididuino,wesen/mididuino,wesen/mididuino |
9e868196a26d39cd38f1f2b07876ffcea5037076 | sql/sqlite/inc/TSQLiteRow.h | sql/sqlite/inc/TSQLiteRow.h | // @(#)root/sqlite:$Id$
// Author: o.freyermuth <o.f@cern.ch>, 01/06/2013
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/sqlite:
// Author: o.freyermuth <o.f@cern.ch>, 01/06/2013
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix fatal typo in code guard | Fix fatal typo in code guard
| C | lgpl-2.1 | tc3t/qoot,kirbyherm/root-r-tools,tc3t/qoot,tc3t/qoot,Dr15Jones/root,tc3t/qoot,Dr15Jones/root,tc3t/qoot,Dr15Jones/root,Dr15Jones/root,tc3t/qoot,kirbyherm/root-r-tools,Dr15Jones/root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,tc3t/qoot,tc3t/qoot,kirbyherm/root-r-tools,Dr15Jones/root,Dr15Jones/root,kirbyherm/root-r-too... |
7bf1f1785e610d9d5148552963edb7b00ff77700 | src/uri_judge/begginer/1098_sequence_ij_4.c | src/uri_judge/begginer/1098_sequence_ij_4.c | /**
https://www.urionlinejudge.com.br/judge/en/problems/view/1098
TODO:
Resolver a formatação da última impressão do loop.
Está:
I=2.0 J=3.0
I=2.0 J=4.0
I=2.0 J=5.0
Mas deveria estar:
I=2 J=3
I=2 J=4
I=2 J=5
*/
#include <stdio.h>
int main(){
double i, j;
i = 0;
do{
for (j = 1; j <= 3; j++){
if (i == (int... | /**
https://www.urionlinejudge.com.br/judge/en/problems/view/1098
*/
#include <stdio.h>
int main(){
int i, j;
float iR, jR;
for(i = 0; i <= 20; i += 2){
for (j = 10; j <= 30; j += 10){
iR = (float) i/10;
jR = (float) (i+j)/10;
if (i % 10) printf("I=%.1f J=%.1f\n", iR, jR);
else printf("I=%.0f J... | Fix bug and solves the sequence | Fix bug and solves the sequence
| C | unknown | Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs |
1773c647646869de8a38d0c8820100d80ae5274a | testmud/mud/home/Text/sys/bin/wiz/tool/ls.c | testmud/mud/home/Text/sys/bin/wiz/tool/ls.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add rudimentary directory listing command | Add rudimentary directory listing command
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
b612df775fe720c879ef2d2b28f49f7ae83b9c5d | third-party/bsp/stmf4cube/pdm_filter_stub.c | third-party/bsp/stmf4cube/pdm_filter_stub.c | /**
* @file
* @brief
*
* @author Alexander Kalmuk
* @date 24.08.2018
*/
#include <assert.h>
#include <stm32f4_discovery.h>
#include <pdm_filter.h>
void PDM_Filter_Init(PDMFilter_InitStruct * Filter) {
assert(0);
}
int32_t PDM_Filter_64_MSB(uint8_t* data, uint16_t* dataOut,
uint16_t MicGain, PDMFilter_... | Add stub for PDM sound filter | stm32f4: Add stub for PDM sound filter
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox | |
38aacad3cb4842a267d2cd5a22d0e6439c0d37e6 | drivers/auth/mbedtls/mbedtls_common.c | drivers/auth/mbedtls/mbedtls_common.c | /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <debug.h>
/* mbed TLS headers */
#include <mbedtls/memory_buffer_alloc.h>
#include <mbedtls/platform.h>
/*
* mbed TLS heap
*/
#if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)
#d... | /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <debug.h>
/* mbed TLS headers */
#include <mbedtls/memory_buffer_alloc.h>
#include <mbedtls/platform.h>
/*
* mbed TLS heap
*/
#if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)
#d... | Increase heapsize for mbedtls library | Increase heapsize for mbedtls library
The mbedTLS library requires larger heap memory for verification of RSASSA-PSS
signature in certificates during Trusted Board Boot. This patch increases the
heap memory for the same.
Change-Id: I3c3123d7142b7b7b01463516ec436734895da159
Signed-off-by: Soby Mathew <4d7af7c5c404e079... | C | bsd-3-clause | achingupta/arm-trusted-firmware,lsigithub/arm-trusted-firmware_public,lsigithub/arm-trusted-firmware_public,achingupta/arm-trusted-firmware |
c58ad1fadf8452588badec5c236425aeba82c850 | runtime/bin/socket_base_fuchsia.h | runtime/bin/socket_base_fuchsia.h | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_
#define RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_
#if !defined(RUN... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_
#define RUNTIME_BIN_SOCKET_BASE_FUCHSIA_H_
#if !defined(RUN... | Fix Unix domain socket headers for Fuchsia | [dart:io] Fix Unix domain socket headers for Fuchsia
Change-Id: I053b41e29184f5edb3d4f19573ead5124528f12c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140624
Reviewed-by: Zichang Guo <d26af3001798f91912fb1504666bca93c093d553@google.com>
Commit-Queue: Jason Simmons <345008440c885d4763d50f58e545b9839f60f79f... | C | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
386d0f2cc405b3f65615f8d50d00ffcbb88c1a9d | src/event.c | src/event.c | #include "event.h"
int init_event_system(void)
{
event_loop = uv_loop_new();
return 1;
}
void cleanup_event_system(void)
{
log_message(LOG_DEBUG, "cleaning up event system!\n");
uv_loop_close(event_loop);
free(event_loop);
}
void event_process(void)
{
log_message(LOG_DEBUG, "processing events!\n");
uv_run... | #include "event.h"
int init_event_system(void)
{
event_loop = malloc(sizeof *event_loop);
if (!event_loop) {
log_message(LOG_ERROR, "Could not allocate memory for event loop");
return 0;
}
if (uv_loop_init(event_loop) < 0) {
log_message(LOG_ERROR, "Could not initialize event loop");
f... | Initialize loop using new API | Initialize loop using new API
| C | bsd-2-clause | CloudSites/OpenBalance,CloudSites/OpenBalance,CloudSites/OpenBalance |
16f93c03ba8a8c01d03f8c1b8d5f5aedc169d6a0 | src/containers/hash_map.h | src/containers/hash_map.h | #ifndef JTL_HASH_MAP_H__
#define JTL_HASH_MAP_H__
#include <memory>
namespace jtl {
template <typename Key,
typename Value>
class HashMap {
struct MapNode {
MapNode(Key k, Value v) : key(k), value(v) {}
~MapNode() {
delete key;
delete value;
}
Key key;
Value value;
}; /... | Add initial layout of hash map implementation | Add initial layout of hash map implementation
| C | mit | j-haj/algorithms-datastructures | |
c162a1e20af4a2bb48f86f4faeb0be09dbe75c75 | tests/longjmp/setlongjmp.c | tests/longjmp/setlongjmp.c | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <setjmp.h>
#include <stdio.h>
static jmp_buf buf;
int main(void) {
volatile int result = -1;
if (!setjmp(buf) ) {
result = ... | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <setjmp.h>
#include <stdio.h>
#include "native_client/src/include/nacl_assert.h"
static jmp_buf buf;
int trysetjmp(int longjmp_arg... | Test that invoking longjmp with an argument of 0 causes setjmp to return 1 | Test that invoking longjmp with an argument of 0 causes setjmp to return 1
Newlib's x86_64 implementation of longjmp previously failed for this case.
Update the setlongjmp.c test to check the return value of setjmp.
Additionally fail if setjmp returns 0 twice to avoid an infinite
loop in the recent failure case.
BUG=... | C | bsd-3-clause | sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client |
1efee7879cd4c6dda74f38f807155a8497fd046d | test/CodeGen/unsupported.c | test/CodeGen/unsupported.c | // RUN: clang -verify -emit-llvm -o - %s
int f0(int x) {
int vla[x];
return vla[x-1]; // expected-error {{cannot compile this return inside scope with VLA yet}}
}
| // RUN: clang -verify -emit-llvm -o - %s
void *x = L"foo"; // expected-error {{cannot compile this wide string yet}}
| Update test case; VLA's are now supported. | Update test case; VLA's are now supported.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@64168 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
2b4ca17c046947150b49eb22a7b026a29482a2a7 | source/gloperate-qt/include/gloperate-qt/qt-includes-begin.h | source/gloperate-qt/include/gloperate-qt/qt-includes-begin.h | /******************************************************************************\
* gloperate
*
* Copyright (C) 2014 Computer Graphics Systems Group at the
* Hasso-Plattner-Institut (HPI), Potsdam, Germany.
\******************************************************************************/
// Turn off warnings gener... | /******************************************************************************\
* gloperate
*
* Copyright (C) 2014 Computer Graphics Systems Group at the
* Hasso-Plattner-Institut (HPI), Potsdam, Germany.
\******************************************************************************/
// Turn off warnings gener... | Remove unrecognized gcc warning flag | Remove unrecognized gcc warning flag
| C | mit | cginternals/gloperate,lanice/gloperate,Beta-Alf/gloperate,cginternals/gloperate,j-o/gloperate,lanice/gloperate,j-o/gloperate,hpicgs/gloperate,j-o/gloperate,Beta-Alf/gloperate,p-otto/gloperate,hpi-r2d2/gloperate,p-otto/gloperate,cginternals/gloperate,hpicgs/gloperate,p-otto/gloperate,hpicgs/gloperate,hpi-r2d2/gloperate,... |
a1da8b7f99f6b08dff4e99202d346d08f762a9d3 | tests/regression/31-ikind-aware-ints/16-enums-compare.c | tests/regression/31-ikind-aware-ints/16-enums-compare.c | //PARAM: --enable ana.int.enums --disable ana.int.def_exc
int main(){
int top = rand();
int x,y;
if(top){
x = 1;
} else{
x = 0;
}
assert(x<2);
return 0;
}
| Add test case for less-than comparision on enums. | Add test case for less-than comparision on enums.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
a9c930d89e24dcb68345df73f6f8068224b34e66 | src/port/gui.c | src/port/gui.c | #include "../sccs.h"
/*
* Copyright (c) 2001 Andrew Chang All rights reserved.
*/
int
gui_useDisplay(void)
{
char *p;
if ((p = getenv("BK_NO_GUI_PROMPT")) && *p) return (0);
if (win32() || macosx()) return ((p = getenv("BK_GUI")) && *p);
return (getenv("DISPLAY") && (p = getenv("BK_GUI")) && *p);
}
char... | #include "../sccs.h"
/*
* Copyright (c) 2001 Andrew Chang All rights reserved.
*/
int
gui_useDisplay(void)
{
char *p;
if ((p = getenv("BK_NO_GUI_PROMPT")) && *p) return (0);
if (win32() || macosx()) return ((p = getenv("BK_GUI")) && *p);
return (getenv("DISPLAY") && (p = getenv("BK_GUI")) && *p);
}
char... | Fix launching our GUIs in Mac OS X 10.10. | Fix launching our GUIs in Mac OS X 10.10.
bk: 54947f4dZaedAuVpUTDfrtsbDBPyVA | C | apache-2.0 | bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper |
cc680488220415b0d04a30c5c08e23eb6dc05c96 | test/main.c | test/main.c | #include <stdlib.h>
#include <stdio.h>
#include "../src/prompt.h"
int main(void)
{
for (;;)
{
char *line = prompt("> ");
if (line == NULL)
break;
printf("You wrote '%s'\n", line);
free(line);
}
prompt_free();
return 0;
}
| #include <stdlib.h>
#include <stdio.h>
#ifdef DEBUG
# include "../src/prompt.h"
#else
# include <prompt.h>
#endif
int main(void)
{
for (;;)
{
char *line = prompt("> ");
if (line == NULL)
break;
printf("You wrote '%s'\n", line);
free(line);
}
prompt_free();
return 0;
}
| Set header location depending on flags | Set header location depending on flags
| C | isc | lollek/libprompt |
f0ed4e0b35ce1473577c121148696fde18ef78ef | test/jid_test.c | test/jid_test.c | /**
* xmp3 - XMPP Proxy
* Copyright (c) 2012 Drexel University
*
* @file jid_test.c
* Unit tests for JID functions.
*/
#include <test-dept.h>
#include <stdlib.h>
#include <stdio.h>
#include "jid.h"
void setup(void) {
}
void teardown(void) {
restore_function(&calloc);
}
static void* always_failing_calloc(... | Add some beginning test functions (for jid.c). | Add some beginning test functions (for jid.c).
| C | mit | BellerophonMobile/xmp3,BellerophonMobile/xmp3,BellerophonMobile/xmp3 | |
14c4c26204b144e00e7e317f5ccbb75ed916fdc1 | tests/regression/01-cpa/35-enum.c | tests/regression/01-cpa/35-enum.c | // PARAM: --disable ana.int.interval --disable ana.int.def_exc --enable ana.int.enums
void main(){
int n = 1;
for (; n; n++) { // fixed point not reached here
}
return;
} | Add failing test case for enums | Add failing test case for enums
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
2453526cd6fffa027cfe80d1221eae0be0784ce0 | interface/target/hal/DBG_Freescale/DBG_KL26Z/frdm_kl26z_app_config.c | interface/target/hal/DBG_Freescale/DBG_KL26Z/frdm_kl26z_app_config.c | /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Add target description for KL26Z | Add target description for KL26Z
| C | apache-2.0 | sg-/CMSIS-DAP,sg-/DAPLink,rosterloh/CMSIS-DAP,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,sg-/CMSIS-DAP,rosterloh/CMSIS-DAP,sg-/CMSIS-DAP,sg-/DAPLink,rosterloh/CMSIS-DAP,google/DAPLink-port | |
97738e2694165e58e33dadc7ec0411beb048c449 | src/loginwindow.h | src/loginwindow.h | #ifndef _LOGINWINDOW_H_
#define _LOGINWINDOW_H_
#include <string>
#include <iostream>
#include "window.h"
using namespace std;
class LoginWindow : public Window {
string name;
string pass;
public:
LoginWindow():Window("Login") {}
const string& getUsername() const {
return name;
}
con... | #ifndef _LOGINWINDOW_H_
#define _LOGINWINDOW_H_
#include <string>
#include <iostream>
#include "window.h"
using namespace std;
class LoginWindow : public Window {
string name;
string pass;
public:
LoginWindow():Window("Login") {}
const string& getUsername() const {
return name;
}
con... | Change login logic, add 'l' cmd | Change login logic, add 'l' cmd
| C | mit | nyz93/advertapp,nyz93/advertapp |
8ab0d21f8a7b364e5649abaa534304e9474c08f8 | searchcore/src/vespa/searchcore/proton/bucketdb/remove_batch_entry.h | searchcore/src/vespa/searchcore/proton/bucketdb/remove_batch_entry.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/base/globalid.h>
#include <vespa/document/bucket/bucketid.h>
#include <persistence/spi/types.h>
namespace proton::bucketdb {
class RemoveBatchEntry {
document::GlobalId... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/base/globalid.h>
#include <vespa/document/bucket/bucketid.h>
#include <persistence/spi/types.h>
namespace proton::bucketdb {
/*
* Class containing meta data for a single d... | Add class comment for proton::bucketdb::RemoveBatchEntry. | Add class comment for proton::bucketdb::RemoveBatchEntry.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
02e86ccfe9fc04afbd5275d4b2f27881d61e3ced | ServerMonitoringService/ServerMonitoringService/SystemMemory.h | ServerMonitoringService/ServerMonitoringService/SystemMemory.h | #ifndef _SYSTEMEMORY_H_
#define _SYSTEMEMORY_H_
#include "windows.h"
class SystemMemory
{
private:
MEMORYSTATUSEX memoryStat;
private:
int memoryCall();
public:
int getLoadPercent(int &val);
int getUsage(double &val);
int getTotalByte(DWORD &val);
int getFreeByte(DWORD &val);
};
#endif | #ifndef _SYSTEMEMORY_H_
#define _SYSTEMEMORY_H_
#include "windows.h"
typedef unsigned long DWORD;
class SystemMemory
{
private:
MEMORYSTATUSEX memoryStat;
private:
int memoryCall();
public:
int getLoadPercent(int &val);
int getUsage(double &val);
int getTotalByte(DWORD &val);
int getFreeByte(DWORD &val);... | Define 'unsigned long' as 'DWORD' for cross-platform | Define 'unsigned long' as 'DWORD' for cross-platform
| C | mit | bg0820/SMS,bg0820/SMS |
268f2a58905b8528cdc17556388dd28848fa18d0 | sa.h | sa.h | #ifndef FINAL_SEQUENTIALSA_SA_H_
#define FINAL_SEQUENTIALSA_SA_H_
#endif // FINAL_SEQUENTIALSA_SA_H_
| #ifndef FINAL_SEQUENTIALSA_SA_H_
#define FINAL_SEQUENTIALSA_SA_H_
#define TEMPERATURE 100 /*Initial temperature*/
#define TEMPERATURE_DECREMENT 0.99 /*The amount by which teh temperature is decrement each iteration*/
#define TEMPERATURE_FINAL 0.01 /*The coolest temperature, time to stop*/
#define NUMBER_ITERATIONS 100... | Move constant declarations to header file | Move constant declarations to header file
| C | mit | vramdhanie/sequentialsa,vramdhanie/sequentialsa |
6c241d80c44336405e199ff0c96c876d17b939e4 | gmtk.h | gmtk.h | #ifndef _GMTK_H_
#define _GMTK_H_
#include "half.h"
#include "angle.h"
#include "vector.h"
#include "matrix.h"
#include "quaternion.h"
#endif//_GMTK_H_ | #ifndef _GMTK_H_
#define _GMTK_H_
#include "half.h"
#include "angle.h"
#include "percent.h"
#include "vector.h"
#include "matrix.h"
#include "quaternion.h"
#endif//_GMTK_H_ | Add percentage class to main header | Add percentage class to main header
| C | mit | dyeo/gmtk,DanYeomans/gmtk,DanYeomans/gmtk,dyeo/gmtk |
dc0e7eda7bc21434d072fb925685a82b4b0b38e2 | kilo.c | kilo.c | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disable_raw_mode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enable_raw_mode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disable_raw_mode);
struct termios... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disable_raw_mode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enable_raw_mode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disable_raw_mode);
struct termios... | Disable Ctrl-C and Ctrl-Z (Ctrl-Y on macOS) | Disable Ctrl-C and Ctrl-Z (Ctrl-Y on macOS)
| C | bsd-2-clause | oldsharp/kilo,oldsharp/kilo |
cd84c7964893696d19844fdd281095ad57c109b2 | utils/cbits/DebugCallback.c | utils/cbits/DebugCallback.c | #include <stdio.h>
#include <stdlib.h>
#include <vulkan/vulkan.h>
VKAPI_ATTR VkBool32 VKAPI_CALL
debugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
VkDebugUtilsMessageTypeFlagsEXT messageType,
const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData,
void *... | #include <stdio.h>
#include <stdlib.h>
#include <vulkan/vulkan.h>
VKAPI_ATTR VkBool32 VKAPI_CALL
debugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
VkDebugUtilsMessageTypeFlagsEXT messageType,
const VkDebugUtilsMessengerCallbackDataEXT *pCallbackData,
void *... | Write debugCallbackFatal in terms of debugCallback | Write debugCallbackFatal in terms of debugCallback
| C | bsd-3-clause | expipiplus1/vulkan,expipiplus1/vulkan,expipiplus1/vulkan |
097e181807b77c8bf0427837c508bddbb8cc0330 | source/threadingzeug/include/threadingzeug/parallelfor.h | source/threadingzeug/include/threadingzeug/parallelfor.h | #pragma once
#include <functional>
#include <vector>
#include <threadingzeug/threadingzeug.h>
namespace threadingzeug
{
template<typename T>
THREADINGZEUG_API void parallel_for(const std::vector<T>& elements, std::function<void(const T& element)> callback);
template<typename T>
THREADINGZEUG_API void parallel_for(... | #pragma once
#include <functional>
#include <vector>
#include <threadingzeug/threadingzeug.h>
namespace threadingzeug
{
template<typename T>
void parallel_for(const std::vector<T>& elements, std::function<void(const T& element)> callback);
template<typename T>
void parallel_for(std::vector<T>& elements, std::funct... | Fix compile warning on Windows: C4273: 'threadingzeug::parallel_for' : inconsistent dll linkage | Fix compile warning on Windows: C4273: 'threadingzeug::parallel_for' : inconsistent dll linkage
| C | mit | lanice/libzeug,mjendruk/libzeug,cginternals/libzeug,simonkrogmann/libzeug,hpi-r2d2/libzeug,j-o/libzeug,mjendruk/libzeug,p-otto/libzeug,kateyy/libzeug,hpi-r2d2/libzeug,mjendruk/libzeug,cginternals/libzeug,simonkrogmann/libzeug,p-otto/libzeug,lanice/libzeug,cginternals/libzeug,j-o/libzeug,lanice/libzeug,j-o/libzeug,katey... |
807d73e3f1ae1cf89d5c000d8070c9e43d80b453 | sample/sample.c | sample/sample.c | #define MODULE sample
#include <sqmodule.h>
#include <stdio.h>
DECLARE_SQAPI
static SQInteger func(HSQUIRRELVM v)
{
static char s[] = "Hello, modules!";
SQAPI(pushstring)(v, s, sizeof(s) - 1);
return 1;
}
// Module init function
SQRESULT MODULE_INIT(HSQUIRRELVM v, HSQAPI api)
{
printf("in sqmodule_l... | #define MODULE sample
#include <sqmodule.h>
#include <stdio.h>
DECLARE_SQAPI
static SQInteger func(HSQUIRRELVM v)
{
static char s[] = "Hello, modules!";
SQAPI(pushstring)(v, s, sizeof(s) - 1);
return 1;
}
// Module init function
SQRESULT MODULE_INIT(HSQUIRRELVM v, HSQAPI api)
{
printf("in sqmodule_l... | Update for sqmodule API change. | Update for sqmodule API change.
| C | mit | pfalcon/squirrel-modules,pfalcon/squirrel-modules,pfalcon/squirrel-modules |
8ef5102c2ad6f1c0cd8098cdf45473d49f62e8de | searchlib/src/vespa/searchlib/memoryindex/posting_list_entry.h | searchlib/src/vespa/searchlib/memoryindex/posting_list_entry.h | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# pragma once
#include <vespa/vespalib/datastore/entryref.h>
namespace search::memoryindex {
/**
* Entry per document in memory index posting list.
*/
class PostingListEntry {
mutable datastore::En... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# pragma once
#include <vespa/vespalib/datastore/entryref.h>
namespace search::memoryindex {
/**
* Entry per document in memory index posting list.
*/
class PostingListEntry {
mutable datastore::En... | Fix indentation and update comment. | Fix indentation and update comment.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
903afa33c486e3f00be40b431fb2919a6e10364b | hal/common/mbed_error.c | hal/common/mbed_error.c | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Allow the trace output by mbed error to be conditional of NDEBUG. | Allow the trace output by mbed error to be conditional of NDEBUG.
This change avoid inclusion of printf and friends code in a binary when it
is compiled with the macro NDEBUG enabled (this macro is usually enabled
for production builds).
Unlike assert, the error function will still crash/halt the execution of the
app... | C | apache-2.0 | fanghuaqi/mbed,monkiineko/mbed-os,YarivCol/mbed-os,CalSol/mbed,adustm/mbed,mazimkhan/mbed-os,arostm/mbed-os,karsev/mbed-os,NXPmicro/mbed,theotherjimmy/mbed,svogl/mbed-os,mikaleppanen/mbed-os,nRFMesh/mbed-os,netzimme/mbed-os,svogl/mbed-os,andcor02/mbed-os,bcostm/mbed-os,RonEld/mbed,catiedev/mbed-os,radhika-raghavendran/... |
5f2d956f85e538af7c4b031f6b3f7e35d7a3638f | Support/ResponseDetective.h | Support/ResponseDetective.h | //
// ResponseDetective.h
//
// Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved.
// Licensed under the MIT License.
//
/// Project version number for ResponseDetective.
extern double ResponseDetectiveVersionNumber;
/// Project version string for ResponseDetective.
extern const unsigned char ResponseDetectiv... | //
// ResponseDetective.h
//
// Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved.
// Licensed under the MIT License.
//
/// Project version number for ResponseDetective.
extern double ResponseDetectiveVersionNumber;
/// Project version string for ResponseDetective.
extern const unsigned char ResponseDetectiv... | Add global foundation import to umbrella header | Add global foundation import to umbrella header
| C | mit | netguru/ResponseDetective,netguru/ResponseDetective |
cac90afd0859ca39008f774c88fcb5239de946fe | socket/Socket.h | socket/Socket.h | #ifndef _SOCKET_H_
#define _SOCKET_H_
namespace bittorrent
{
namespace socket
{
struct Buffer
{
Buffer(char *b, std::size_t bl)
: buf(b), buflen(bl), used(0) { }
char *buf;
std::size_t buflen;
std::size_t used;
};
... | #ifndef _SOCKET_H_
#define _SOCKET_H_
#include <WinSock2.h>
#include <cstddef>
namespace bittorrent
{
namespace socket
{
struct Buffer
{
Buffer(char *b, std::size_t bl)
: buf(b), buflen(bl), used(0) { }
char *buf;
std::size_t buflen;
... | Add Address, Port and IoService classes in namespace socket, and complete classes' declaration. | Add Address, Port and IoService classes in namespace socket, and complete
classes' declaration.
| C | bsd-2-clause | airtrack/bitwave,airtrack/bitwave |
38a4089a9ef17f3185cb6ec4506f0734b53eabea | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k4"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k5"
| Update driver version to 5.03.00-k5 | [SCSI] qla4xxx: Update driver version to 5.03.00-k5
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
72da7bcd68b38501b1e5b4c7bffab7a1093c5a40 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k3"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k4"
| Update driver version to 5.03.00-k4 | [SCSI] qla4xxx: Update driver version to 5.03.00-k4
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k... |
3eb59f9875a3874df94e26371dd7ab29a26efc52 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k8"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k9"
| Update driver version to 5.03.00-k9 | [SCSI] qla4xxx: Update driver version to 5.03.00-k9
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... |
4c9654096e1e6d9cb1bf4574432a992ecdc24117 | src/registers.h | src/registers.h | /*
* registers.h
*/
#ifndef REGISTERS_H
#define REGISTERS_H
#define REGSIZE 8 /* number of registers */
/* Program Registers */
#define EAX 0x0
#define ECX 0x1
#define EDX 0x2
#define EBX 0x3
#define ESP 0x4
#define EBP 0x5
#define ESI 0x6
#define EDI 0x7
#define RNONE 0xf /* i.e. - no register needed */
/... | /*
* registers.h
*/
#ifndef REGISTERS_H
#define REGISTERS_H
#define REGSIZE 8 /* number of registers */
/* Program Registers */
#define EAX 0x0
#define ECX 0x1
#define EDX 0x2
#define EBX 0x3
#define ESP 0x4
#define EBP 0x5
#define ESI 0x6
#define EDI 0x7
#define RNONE 0xf /* i.e. - no register needed */
/... | Add descriptions of the CC's | Add descriptions of the CC's
| C | isc | sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS |
fcead07c6f0a7f919a2856257a37f9efd453c524 | include/simbatch/batch.h | include/simbatch/batch.h | /****************************************************************************/
/* This file is part of the Simbatch project */
/* written by Jean-Sebastien Gay, ENS Lyon */
/* */
/* C... | /****************************************************************************/
/* This file is part of the Simbatch project. */
/* written by Jean-Sebastien Gay and Ghislain Charrier, ENS Lyon. */
/* */
/* C... | Add documentation in doxygen style (use JAVA_BRIEF) | Add documentation in doxygen style (use JAVA_BRIEF)
git-svn-id: 20e1f66da029c194d4fbd4305fcdc34286e936b0@6168 48e7efb5-ca39-0410-a469-dd3cf9ba447f
| C | lgpl-2.1 | frs69wq/Simbatch,frs69wq/Simbatch,frs69wq/Simbatch,frs69wq/Simbatch |
1760bba625b57fbe10b6c0ec8585e0c54c90b907 | includes/values.h | includes/values.h | #ifndef __VALUES_H__
# define __VALUES_H__
#include "mpc.h"
typedef struct {
int type;
long num;
/* Error and Symbol types have some string data */
char* err;
char* sym;
/* Count and Pointer to a list of "lval*" */
int ... | #ifndef __VALUES_H__
# define __VALUES_H__
#include "mpc.h"
typedef struct s_lval {
int type;
long num;
/* Error and Symbol types have some string data */
char* err;
char* sym;
/* Count and Pointer to a list of "lval*" */... | Fix forward lval struct declaration | Fix forward lval struct declaration
| C | mit | oleiade/lipstick |
75219476c5d5c5f418075dfe35e033fea95e7787 | bluetooth/bdroid_buildcfg.h | bluetooth/bdroid_buildcfg.h | /*
* Copyright 2013 The Android Open Source Project
*
* 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 applica... | /*
* Copyright 2013 The Android Open Source Project
*
* 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 applica... | Use run time parameters to control LE features | Use run time parameters to control LE features
Use values read from controller to enable and control LE features such as
multi advertising, RPA offload, maximum irk size etc
bug 15393216
| C | apache-2.0 | maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead |
ed02ba882c16165e6d7241e4b59cb9bacd653a4e | milestone2/1.c | milestone2/1.c | extern void print_int(int x);
extern void print_string(char c[]);
int x;
char c;
void main(void){
// check signed-ness of char -> int conversion
x = -1;
c = x;
print_string("should get -1\ngot: ");
print_int(c);
print_string("\n\n");
x = -2147483647;
print_string("should get -2147483... | extern void print_int(int x);
extern void print_string(char c[]);
int x;
char c;
void main(void){
/* check signed-ness of char -> int conversion */
x = -1;
c = x;
print_string("should get -1\ngot: ");
print_int(c);
print_string("\n\n");
x = -2147483647;
print_string("should get -2147... | Edit comments so they align with our C-- spec | Edit comments so they align with our C-- spec
| C | unlicense | mgaut72/cmm-examples,mgaut72/cmm-examples |
20530dabfaebe04c7fdd9ca6637c0ab093f7db24 | src/tool/hpcrun/unwind/mips/_unw-datatypes.h | src/tool/hpcrun/unwind/mips/_unw-datatypes.h | #ifndef _UNWIND_DATATYPE_H
#define _UNWIND_DATATYPE_H
#include <unwind/common/std_unw_cursor.h>
typedef void* unw_word_t;
#endif
| Add _unw_datatypes.h to unwind/mips directory | Add _unw_datatypes.h to unwind/mips directory
| C | bsd-3-clause | zcth428/hpctoolkit111,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,zc... | |
00b0796e07fdb5817ed880fe622c15f0ab549a0b | MdePkg/Include/Protocol/MonotonicCounter.h | MdePkg/Include/Protocol/MonotonicCounter.h | /** @file
Monotonic Counter Architectural Protocol as defined in PI SPEC VOLUME 2 DXE
This code provides the services required to access the systems monotonic counter
Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program a... | /** @file
Monotonic Counter Architectural Protocol as defined in PI SPEC VOLUME 2 DXE
This code provides the services required to access the systems monotonic counter
Copyright (c) 2006 - 2010, Intel Corporation
All rights reserved. This program a... | Fix typo in Monotonic Counter GUID macro name | Fix typo in Monotonic Counter GUID macro name
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@9806 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 |
0302e97ebcbb18c9b0bd97ac6641f4b79c401bd0 | libs/fst/config.h | libs/fst/config.h | /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
#define HAVE_ALLOCA_H 1
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1
/* Define to 1 if you have the `pthread' library (-lpthread). */
#define HAVE_LIBPTHREAD 1
/* Define to 1 if you h... | /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
#define HAVE_ALLOCA_H 1
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1
/* Define to 1 if you have the `pthread' library (-lpthread). */
#define HAVE_LIBPTHREAD 1
/* Define to 1 if you h... | Fix build on FreeBSD, which has no alloca.h | Fix build on FreeBSD, which has no alloca.h
| C | isc | YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys |
97a1b20724963af57de4e08b4baf17e8243ba4d5 | src/datablocks/kreborder.h | src/datablocks/kreborder.h | /***************************************************************************
* Copyright © 2004 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under th... | /***************************************************************************
* Copyright © 2004 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under th... | Fix Krazy warnings: explicit - KreBorder | Fix Krazy warnings: explicit - KreBorder
svn path=/trunk/extragear/utils/krecipes/; revision=1119814
| C | lgpl-2.1 | eliovir/krecipes,eliovir/krecipes,eliovir/krecipes,eliovir/krecipes |
d239760f811873271d32388f649c69e73802da8d | tests/regression/06-symbeq/31-var_eq-unknown-invalidate.c | tests/regression/06-symbeq/31-var_eq-unknown-invalidate.c | // PARAM: --set ana.activated[+] var_eq
// ldv-benchmarks: u__linux-concurrency_safety__drivers---net---ethernet---ethoc.ko.cil.c
#include <assert.h>
struct resource {
char const *name ;
unsigned long flags ;
struct resource *parent ;
struct resource *sibling ;
struct resource *child ;
};
struct resour... | Add var_eq unsound unknown function invalidate test | Add var_eq unsound unknown function invalidate test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
3fd3731b09766f04091941d7bf5ffab824394a0d | 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;
std::deque<ADDRINT> *dyn_address_queue;
Bbv *bbv;
UINT64 thread_num;
ADDRINT bbv_base;
UINT64 bbv_count;
A... | #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;
std::deque<ADDRINT> *dyn_address_queue;
Bbv *bbv;
UINT64 thread_num;
ADDRINT bbv_base;
UINT64 bbv_count;
A... | Fix data type for syscall return value to be native word size (ADDRINT rather than INT32) so negative system call return values are passed back correctly | [sift] Fix data type for syscall return value to be native word size (ADDRINT rather than INT32) so negative system call return values are passed back correctly
| C | mit | abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper |
391385fc4ec94084cebabd40dde97217645bf274 | src/lib/pk_pad/eme_oaep/oaep.h | src/lib/pk_pad/eme_oaep/oaep.h | /*
* OAEP
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_OAEP_H_
#define BOTAN_OAEP_H_
#include <botan/eme.h>
#include <botan/hash.h>
namespace Botan {
/**
* OAEP (called EME1 in IEEE 1363 and in earlier versions of the library)
*/
class BOTAN_PU... | /*
* OAEP
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_OAEP_H_
#define BOTAN_OAEP_H_
#include <botan/eme.h>
#include <botan/hash.h>
namespace Botan {
/**
* OAEP (called EME1 in IEEE 1363 and in earlier versions of the library)
* as specified in... | Add note on OAEP version implemented | Add note on OAEP version implemented [ci skip]
| C | bsd-2-clause | randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/... |
6972c7b3cb1c3b4e58b4205e221cdce2e0dfee68 | include/HubFramework/HUBComponentCategories.h | include/HubFramework/HUBComponentCategories.h | #import <Foundation/Foundation.h>
/**
* Type for objects that describe a component category to use for fallbacks using `HUBComponentFallbackHandler`
*
* An application using the Hub Framework can declare any number of categories to use when performing fallback logic
* for components, in case an unknown componen... | #import <Foundation/Foundation.h>
/**
* Type for objects that describe a component category to use for fallbacks using `HUBComponentFallbackHandler`
*
* An application using the Hub Framework can declare any number of categories to use when performing fallback logic
* for components, in case an unknown componen... | Add component category for banners | Add component category for banners
Needed for components like billboards, promotions etc that are neither
cards or rows. | C | apache-2.0 | spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework |
329ca68e8c93524d269611d301a4dea908bb33d3 | test/ClangModules/Inputs/custom-modules/ObjCImplicitProperties.h | test/ClangModules/Inputs/custom-modules/ObjCImplicitProperties.h | __attribute__((objc_root_class))
@interface ImplicitProperties
- (id)implicitProperty;
- (void)setImplicitProperty:(id)implicitProperty;
- (void)setAnotherImplicitProperty:(int)implicitProperty;
- (int)anotherImplicitProperty;
@end
__attribute__((objc_root_class))
@interface BadImplicitProperties
- (int)nonVoidReturn... | __attribute__((objc_root_class))
@interface ImplicitProperties
- (id)implicitProperty;
- (void)setImplicitProperty:(id)implicitProperty;
- (void)setAnotherImplicitProperty:(int)implicitProperty;
- (int)anotherImplicitProperty;
@end
__attribute__((objc_root_class))
@interface BadImplicitProperties
- (int)nonVoidReturn... | Add some more tests for mixing methods and properties. | [ClangImporter] Add some more tests for mixing methods and properties.
The rule right now is basically "the class is most important, followed by
the superclass, followed by protocols", which I think is the right rule.
As long as we aren't required to /check/ the conformance to an Objective-C
protocol, we should be fin... | C | apache-2.0 | russbishop/swift,calebd/swift,zisko/swift,dduan/swift,rudkx/swift,slavapestov/swift,slavapestov/swift,Jnosh/swift,amraboelela/swift,xwu/swift,shajrawi/swift,alblue/swift,devincoughlin/swift,LeoShimonaka/swift,tjw/swift,mightydeveloper/swift,sdulal/swift,hooman/swift,jtbandes/swift,jckarter/swift,tardieu/swift,practical... |
a879a164495db6daa4d809fbaba1617c9ade5919 | test/Driver/mips-long-double.c | test/Driver/mips-long-double.c | // RUN: %clang_cc1 -triple mips64-unknown-freebsd -std=c11 -verify %s
// RUN: %clang_cc1 -triple mips-unknown-freebsd -std=c11 -verify %s
// RUN: %clang_cc1 -triple mips-unknown-linux-std=c11 -verify %s
// RUN: %clang_cc1 -triple mips64-unknown-linux-std=c11 -verify %s
// expected-no-diagnostics
#ifdef _ABI64
# ifdef... | // RUN: %clang_cc1 -triple mips64-unknown-freebsd -std=c11 -verify %s
// RUN: %clang_cc1 -triple mips-unknown-freebsd -std=c11 -verify %s
// RUN: %clang_cc1 -triple mips-unknown-linux -std=c11 -verify %s
// RUN: %clang_cc1 -triple mips64-unknown-linux -std=c11 -verify %s
// expected-no-diagnostics
#ifdef _ABI64
# ifd... | Add missing spaces. This doesn't cause problems in practice because we only warn about _Static_assert with -pedantic. | Add missing spaces. This doesn't cause problems in practice because we only warn
about _Static_assert with -pedantic.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@171860 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-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-cl... |
90de5eb32b7edd7107ad5ab7c083d55ee84bee83 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 107
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 108
#endif
| Update Skia milestone to 108 | Update Skia milestone to 108
Change-Id: I9b44ccf2c942eefbb9992e0a130690c8d24116ac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/581916
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Auto-Submit: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com>
Review... | C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia |
55662d5c57bbd169747d58cd26319062054a6303 | kernel/core/main.c | kernel/core/main.c | #include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#include <truth/physical_allocator.h>
void kernel_main(void *multiboot_tables) {
init_interrupts();
enum status unused(status) = init_log("log");
init_physical_allocator(multiboot_tables);
logf("The Kernel of Truth\n\tVersion %d.%d.... | #include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#include <truth/physical_allocator.h>
void kernel_main(void *multiboot_tables) {
init_interrupts();
enum status unused(status) = init_log("log");
init_physical_allocator(multiboot_tables);
logf("The Kernel of Truth\n\tVersion %d.%d.... | Add project website to startup message | Add project website to startup message
| C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
e2db3e62cfe0e413b0497a345c6d5bf03097974a | DOM/TKDOMMaker.h | DOM/TKDOMMaker.h | //
// TKDOMProxyMaker.h
// TumblKitNG
//
// Created by uasi on 09/10/31.
// Copyright 2009 99cm.org. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#import <ActorKit/ActorKit.h>
// TKDOMMaker
//
// Make a DOMDocument from given URL synchronously
//
@interface TKDOMMaker : NSObject {
... | //
// TKDOMProxyMaker.h
// TumblKitNG
//
// Created by uasi on 09/10/31.
// Copyright 2009 99cm.org. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#import <ActorKit/ActorKit.h>
// TKDOMMaker
//
// Make a DOMDocument from given URL synchronously
//
@interface TKDOMMaker : NSObject {
}
... | Remove unused instance variable 'workerPool_' | Remove unused instance variable 'workerPool_'
| C | bsd-2-clause | uasi/tumblkit,uasi/tumblkit |
9c0c3451a66ad78dad1c9394d38a2a3be2dc89df | src/helpers/TimingHelpers.h | src/helpers/TimingHelpers.h | /*
Copyright (C) 2015 George White <stonehippo@gmail.com>, All rights reserved.
See https://raw.githubusercontent.com/stonehippo/sploder/master/LICENSE.txt for license details.
*/
// ******************* Timing helpers *******************
void startTimer(long &timer) {
timer = millis();
}
boolean isTimerExpired(... | /*
Copyright (C) 2015 George White <stonehippo@gmail.com>, All rights reserved.
See https://raw.githubusercontent.com/stonehippo/sploder/master/LICENSE.txt for license details.
*/
// ******************* Timing helpers *******************
void startTimer(long &timer) {
timer = millis();
}
boolean isTimerExpired(... | Fix bug in timing helper | Fix bug in timing helper | C | mit | stonehippo/tankbot,stonehippo/tankbot |
ddff322b329ad4425fc5bd53a7c911a6709c98ae | lib/neatogen/multispline.h | lib/neatogen/multispline.h | /* $Id$Revision: */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (c)... | Add support for edge routing to ports on the periphery of nodes, and splines for multiedges. | Add support for edge routing to ports on the periphery of nodes,
and splines for multiedges.
| C | epl-1.0 | BMJHayward/graphviz,tkelman/graphviz,ellson/graphviz,MjAbuz/graphviz,tkelman/graphviz,jho1965us/graphviz,MjAbuz/graphviz,ellson/graphviz,MjAbuz/graphviz,pixelglow/graphviz,kbrock/graphviz,jho1965us/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,ellson/graphviz,kbrock/graphviz,BMJHayward... | |
237c7004130c08be3ea1a06d0e5ac76b1a153e5a | peer_testing.h | peer_testing.h | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#define READ \
fake_read
#else
#define READ \
read
#endif
#endif
| #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#ifdef __cplusplus
extern "C" {
#endif
ssize_t fake_read(int fd, void *buf, size_t count);
#ifdef __cplusplus
}
#endif
#define READ \
fake_read
#else
#define READ \
read
#endif
#endif
| Add "extern C" stuff for clean compile of tests. | Add "extern C" stuff for clean compile of tests.
| C | mit | mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet |
2b7d5dd221477e233f77c8c729ee34f61600cfca | es-app/src/EmulationStation.h | es-app/src/EmulationStation.h | #pragma once
// These numbers and strings need to be manually updated for a new version.
// Do this version number update as the very last commit for the new release version.
#define PROGRAM_VERSION_MAJOR 2
#define PROGRAM_VERSION_MINOR 0
#define PROGRAM_VERSION_MAINTENANCE 1
#define PROGRAM_VERSION_STRI... | #pragma once
// These numbers and strings need to be manually updated for a new version.
// Do this version number update as the very last commit for the new release version.
#define PROGRAM_VERSION_MAJOR 2
#define PROGRAM_VERSION_MINOR 0
#define PROGRAM_VERSION_MAINTENANCE 1
#define PROGRAM_VERSION_STRI... | Update version to 2.0.1b SDL mod by Krejza9. | Update version to 2.0.1b SDL mod by Krejza9. | C | mit | Krejza9/EmulationStation-sdlmixer,Krejza9/EmulationStation-sdlmixer,Krejza9/EmulationStation-sdlmixer |
ad9448408a5d2863db4aa2cb5d1f0d4a27689528 | IntelSiliconPkg/Include/IndustryStandard/FirmwareVersionInfo.h | IntelSiliconPkg/Include/IndustryStandard/FirmwareVersionInfo.h | /** @file
Intel Firmware Version Info (FVI) related definitions.
@todo: update document/spec reference
Copyright (c) 2016, 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... | Add Intel Firmware Version Info (FVI) definitions | IntelSiliconPkg: Add Intel Firmware Version Info (FVI) definitions
Adding Intel Firmware Version Info (FVI) related defines & structures.
FVI enables reporting the Firmware Versions using SMBIOS OEM Type.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Giri P Mudusuru <25c53ebec15b492d82d7bf064... | C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 | |
c9b5c9177cf8e289da3459ef82770bac4c685e1b | misc/c_hex_esc.c | misc/c_hex_esc.c | /*
* Hex escapes in C code can be confusing; this is non-portable:
*
* const char *str = "\xffab";
*
* GCC will warn:
*
* warning: hex escape sequence out of range [enabled by default]
*
* To avoid this, you can e.g. use the following form:
*
* const char *str = "\xff" "ab";
*
* If the C... | Add an example of C string hex escape quirks | Add an example of C string hex escape quirks
| C | mit | eddieh/duktape,thurday/duktape,skomski/duktape,haosu1987/duktape,pombredanne/duktape,zeropool/duktape,markand/duktape,sloth4413/duktape,zeropool/duktape,eddieh/duktape,pombredanne/duktape,tassmjau/duktape,chenyaqiuqiu/duktape,harold-b/duktape,thurday/duktape,sloth4413/duktape,jmptrader/duktape,thurday/duktape,thurday/d... | |
4e24df1ba483b3028017176b08bc336b8ca79274 | AFToolkit/AFToolkit.h | AFToolkit/AFToolkit.h | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#pragma mark - Common Import
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "UITableViewCell+Universal.h"
#import "AFDBClient.h"
#imp... | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "UITableViewCell+Universal.h"
#import "AFDBClient.h"
#import "AFVi... | Add defines header to toolkit header | Add defines header to toolkit header
| C | mit | mlatham/AFToolkit |
83cf9c9d6a93e0a651547662d556da840bf66b98 | testmud/mud/home/Game/sys/testd.c | testmud/mud/home/Game/sys/testd.c | #include <kotaka/paths.h>
#include <kotaka/log.h>
#include "~/test.h"
#include <status.h>
static void create()
{
}
void ignite(int count)
{
call_out("bomb", 0, count);
}
static void bomb(int quota)
{
int max;
max = (int)sqrt((float)quota);
if (quota % max != 0) {
max = quota % max;
}
if (max > quota) {
... | #include <kotaka/paths.h>
#include <kotaka/log.h>
#include "~/test.h"
#include <status.h>
static void create()
{
}
void ignite(int count)
{
call_out("bomb", 0, count);
}
void touchall()
{
int i;
LOGD->post_message("test", LOG_INFO, "Beginning touch");
call_out("do_touch", 0, status(ST_OTABSIZE) - 1);
}
stati... | Add call_touch to game test | Add call_touch to game test
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
ad7f53cdb35644304350b077a9ac11e5ec588036 | tests/include/alt-dummy/ecp_alt.h | tests/include/alt-dummy/ecp_alt.h | /* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* 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
... | /* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* 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
... | Define public fields of mbedtls_ecp_group in alt test header | Define public fields of mbedtls_ecp_group in alt test header
And don't define configuration macros that only apply to the built-in
implementation.
Signed-off-by: Gilles Peskine <f805f64266d288fc5467baa7be6cd0ff366f477b@arm.com>
| C | apache-2.0 | Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls |
192b4b9f4ff72f49c2b04255be5bf9f83c036b99 | SSPSolution/AIDLL/AIComponent.h | SSPSolution/AIDLL/AIComponent.h | #ifndef AIDLL_AI_AICOMPONENT_H
#define AIDLL_AI_AICOMPONENT_H
#include <DirectXMath.h>
struct AIComponent
{
int active = 0;
int entityID = -1;
int direction;
int currentPos;
int nextPos;
DirectX::XMVECTOR waypoints[8];
};
#endif | #ifndef AIDLL_AI_AICOMPONENT_H
#define AIDLL_AI_AICOMPONENT_H
#include <DirectXMath.h>
struct AIComponent
{
int active = 0;
int entityID = -1;
int direction;
int currentWaypoint;
int nextWaypoint;
DirectX::XMVECTOR waypoints[8];
};
#endif | UPDATE changes made to names of variables in the AIComopnent | UPDATE changes made to names of variables in the AIComopnent
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
45169603e17e944b18aa19f66602c32c54fbf90e | sploits/sploit1.c | sploits/sploit1.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "shellcode.h"
#define TARGET "/tmp/target2"
int main(void)
{
char *args[3];
char *env[1];
char buf[248];
memset(buf, 0x90, 248);
strncpy(buf+195, shellcode, 45);
strncpy(buf+244, "\x08\xfd\xff\xbf", 4);
//strncpy(bu... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "shellcode.h"
#define TARGET "/tmp/target1"
int main(void)
{
char *args[3];
char *env[1];
char buf[248];
memset(buf, 0x90, 248);
strncpy(buf+195, shellcode, 45);
strncpy(buf+244, "\x08\xfd\xff\xbf", 4);
//strncpy(bu... | Make sure the sploit points to the correct target | Make sure the sploit points to the correct target | C | mit | somethingnew2-0/CS642-HW1 |
a4e756b0fb114822a5c2cc0c3a1ecd68308093a4 | KPNavViewController.h | KPNavViewController.h | #import <KPToolbox/KPViewController.h>
@class KPNavigationController;
@interface KPNavViewController : KPViewController
@property(readwrite, weak) KPNavigationController* navigationController;
@property(readwrite, strong) NSString* navigationTitle;
@property(readwrite, strong) NSButton* backButton;
@property(read... | #import <KPToolbox/KPViewController.h>
@class KPNavigationController;
@interface KPNavViewController : KPViewController
@property(readwrite, weak) KPNavigationController* navigationController;
@property(readwrite, copy) NSString* navigationTitle;
@property(readwrite, strong) NSButton* backButton;
@property(readwr... | Use a copy property semantics instead of strong. | Use a copy property semantics instead of strong.
| C | mit | konstantinpavlikhin/KSPNavigationController |
223c87c1570327fc88dd8e98534aef9e1ac8c534 | AdjacentDifferenceStreamProvider.h | AdjacentDifferenceStreamProvider.h | #ifndef ADJACENT_DIFFERENCE_STREAM_PROVIDER_H
#define ADJACENT_DIFFERENCE_STREAM_PROVIDER_H
#include "StreamProvider.h"
#include "Utility.h"
template<typename T, typename Subtractor>
class AdjacentDifferenceStreamProvider
: public StreamProvider<ReturnType<Subtractor, T&, T&>> {
public:
using DiffType = Retu... | #ifndef ADJACENT_DIFFERENCE_STREAM_PROVIDER_H
#define ADJACENT_DIFFERENCE_STREAM_PROVIDER_H
#include "StreamProvider.h"
#include "Utility.h"
template<typename T, typename Subtractor>
class AdjacentDifferenceStreamProvider
: public StreamProvider<ReturnType<Subtractor, T&, T&>> {
public:
using DiffType = Retu... | Make adjacent difference getter consistent with other providers | Make adjacent difference getter consistent with other providers
| C | mit | jscheiny/Streams,respu/Streams,bowlofstew/Streams,bowlofstew/Streams,respu/Streams,jscheiny/Streams |
9496821bdda5defa93aa3ae2ea476b662fb729b5 | src/commands.h | src/commands.h | #ifndef LACO_COMMANDS_H
#define LACO_COMMANDS_H
struct LacoState;
typedef void (*LacoHandler)(struct LacoState* laco, const char** arguments);
struct LacoCommand {
const char** matches;
LacoHandler handler;
};
void laco_dispatch(const struct LacoCommand* commands,
struct LacoState* laco, cons... | #ifndef LACO_COMMANDS_H
#define LACO_COMMANDS_H
struct LacoState;
typedef void (*LacoHandler)(struct LacoState* laco, const char** arguments);
struct LacoCommand {
const char** matches;
LacoHandler handler;
};
/**
* Goes through each instance from the list of commands and see if there is
* a match with for co... | Add documentation for the laco_dispatch function | Add documentation for the laco_dispatch function
| C | bsd-2-clause | sourrust/laco |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.