Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Make sure to include string for the definiton of Log.
// // Copyright (c) 2010-2012 Linaro Limited // // All rights reserved. This program and the accompanying materials // are made available under the terms of the MIT License which accompanies // this distribution, and is available at // http://www.opensource.org/licenses/mit-license.php // // Contributors: // Alexan...
// // Copyright (c) 2010-2012 Linaro Limited // // All rights reserved. This program and the accompanying materials // are made available under the terms of the MIT License which accompanies // this distribution, and is available at // http://www.opensource.org/licenses/mit-license.php // // Contributors: // Alexan...
Add missing newline (which breaks MSVC build???)
//===- ExternalPreprocessorSource.h - Abstract Macro Interface --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- ExternalPreprocessorSource.h - Abstract Macro Interface --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add APEmailWithLabel.h to the Swift bridging file.
// // APAddressBook-Bridging.h // APAddressBook // // Created by Alexey Belkevich on 7/31/14. // Copyright (c) 2014 alterplay. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "APAddressBook.h" #import "APContact.h" #import "APSocialProfile.h" #import "APAddress.h" #import...
// // APAddressBook-Bridging.h // APAddressBook // // Created by Alexey Belkevich on 7/31/14. // Copyright (c) 2014 alterplay. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "APAddressBook.h" #import "APContact.h" #import "APSocialProfile.h" #import "APAddress.h" #import...
Disable peripheral mode in N5
/* * 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 C++11 non-static member initialization.
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Correct define for this file. Fix function declarations.
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_WIDGET_BUTTON_H #define E_WIDGET_BUTTON_H EAPI Evas_Object *e_widget_iconsel_add(Evas *evas, Evas_Object *icon, Evas_Coord minw, Evas_Coord minh, void (*func) (void *data, void *data2), void *data, void *data2); EAPI Evas_Obj...
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_WIDGET_ICONSEL_H #define E_WIDGET_ICONSEL_H EAPI Evas_Object *e_widget_iconsel_add(Evas *evas, Evas_Object *icon, Evas_Coord minw, Evas_Coord minh, char **file); EAPI Evas_Object *e_widget_iconsel_add_from_file(Evas *evas, ch...
Update prototypes to make them more compliant.
#ifndef PWM_H #define PWM_H void PwmInit(uint8_t channel); void PwmSetPeriod(uint8_t channel, uint32_t frequency); void PwmSetDuty(uint8_t channel, uint8_t duty); typedef struct { uint32_t frequency; uint8_t duty; } PwmOutput; #endif //PWM_H
#ifndef PWM_H #define PWM_H extern void PwmInit(uint8_t channel); extern void PwmSetPeriod(uint8_t channel, uint32_t frequency); extern void PwmSetDuty(uint8_t channel, uint8_t duty); typedef struct { uint32_t frequency; uint8_t duty; } PwmOutput; #endif //PWM_H
Add missing decref in ctypes check
#ifndef NPY_CTYPES_H #define NPY_CTYPES_H #include <Python.h> #include "npy_import.h" /* * Check if a python type is a ctypes class. * * Works like the Py<type>_Check functions, returning true if the argument * looks like a ctypes object. * * This entire function is just a wrapper around the Python function of...
#ifndef NPY_CTYPES_H #define NPY_CTYPES_H #include <Python.h> #include "npy_import.h" /* * Check if a python type is a ctypes class. * * Works like the Py<type>_Check functions, returning true if the argument * looks like a ctypes object. * * This entire function is just a wrapper around the Python function of...
Add debug for android, solve all warning
#ifndef ABSTRACT_LEARNING_DEBUG_H #define ABSTRACT_LEARNING_DEBUG_H #include <stdlib.h> #include <stdio.h> #include <assert.h> #define FUNC_PRINT(x) printf(#x"=%d in %s, %d \n",x, __func__, __LINE__); #define FUNC_PRINT_ALL(x, type) printf(#x"="#type"%"#type" in %s, %d \n",x, __func__, __LINE__); #define CHECK_POIN...
#ifndef ABSTRACT_LEARNING_DEBUG_H #define ABSTRACT_LEARNING_DEBUG_H #include <stdlib.h> #include <stdio.h> #include <assert.h> /*Print method*/ #ifdef BUILD_FOR_ANDROID #include <android/log.h> #define ALPRINT(format, ...) __android_log_print(ANDROID_LOG_INFO, "AL", format,##__VA_ARGS__) #define ALPRINT_FL(format,...)...
Add example that becomes unsound if pthread_exit is only handeled for top-level threads
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.activated[+] threadJoins --sets ana.apron.privatization mutex-meet-tid // Modification of 19 that would fail if pthread_exit was only handled for the top-level thread #include <pthread.h> #include <assert.h> int g = 10; int h = 10;...
Add further problematic example where positive half is excluded
// PARAM: --sets solver td3 void main(void) { int x; int i = 41; while(i >= 12) { x = 0; i--; } }
// PARAM: --sets solver td3 void main(void) { int x; int i = 41; while(i >= 12) { x = 0; i--; } int y; int j = -40; while(-5 >= j) { y = 0; j++; } }
Enable use of stub from C++
/* * Copyright (c) , Arm Limited and affiliates. * 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 * * http://www.apache.org/licenses/LICENSE-2...
/* * Copyright (c) , Arm Limited and affiliates. * 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 * * http://www.apache.org/licenses/LICENSE-2...
Fix warning when BINARY_DIR already defined
/* * Copyright 2013 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2013 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Change magic string "abc" to better magic string "qux".
/* RUN: %clang_cc1 -E -trigraphs %s | grep bar RUN: %clang_cc1 -E -trigraphs %s | grep foo RUN: %clang_cc1 -E -trigraphs %s | not grep abc RUN: %clang_cc1 -E -trigraphs %s | not grep xyz RUN: %clang_cc1 -fsyntax-only -trigraphs -verify %s */ // This is a simple comment, /*/ does not end a comment, the trai...
/* RUN: %clang_cc1 -E -trigraphs %s | grep bar RUN: %clang_cc1 -E -trigraphs %s | grep foo RUN: %clang_cc1 -E -trigraphs %s | not grep qux RUN: %clang_cc1 -E -trigraphs %s | not grep xyz RUN: %clang_cc1 -fsyntax-only -trigraphs -verify %s */ // This is a simple comment, /*/ does not end a comment, the trai...
Add client_monitor_init to the header
#include <glib-object.h> void client_monitor_add (char *sender, GObject *object); void client_monitor_remove (char *sender, GObject *object);
#include <glib-object.h> #include <dbus/dbus-glib.h> void client_monitor_init (DBusGConnection *connection); void client_monitor_add (char *sender, GObject *object); void client_monitor_remove (char *sender, GObject *object);
Remove explanatory comment as it should be obvious what the member is
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" #include "defines.h" #include "error.h" namespace cpr { class Response { public: Response() = default; template <typename TextType, typename HeaderType, typename UrlType, typename CookiesType, typena...
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" #include "defines.h" #include "error.h" namespace cpr { class Response { public: Response() = default; template <typename TextType, typename HeaderType, typename UrlType, typename CookiesType, typena...
Set default line and row to 1
#ifndef SCANNER_H #define SCANNER_H #include <QString> #include <QChar> #include <QVector> #include "token.h" /** * @class Scanner * @brief Class representing a scanner (lexical analyzer). It takes a file path as input and generates tokens, either lazily or as a QVector. */ class Scanner { public: Scanner(cons...
#ifndef SCANNER_H #define SCANNER_H #include <QString> #include <QChar> #include <QVector> #include "token.h" /** * @class Scanner * @brief Class representing a scanner (lexical analyzer). It takes a file path as input and generates tokens, either lazily or as a QVector. */ class Scanner { public: Scanner(cons...
Optimize pset2 hacker edition slightly.
/**************************************************************************** * initials.c * * Computer Science 50 * Problem Set 2 - Hacker Edition * * Return uppercase initials of name provided. ***************************************************************************/ #include <stdio.h> #include <string.h> ...
/**************************************************************************** * initials.c * * Computer Science 50 * Problem Set 2 - Hacker Edition * * Return uppercase initials of name provided. ***************************************************************************/ #include <stdio.h> #include <string.h> ...
Add necessary include to get_device_id helper
#include <iostream> using std::cout; using std::cin; using std::endl; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDevices = get_numDevices(); cout << concol::RED << numDevices << " APS device" << (numDevices > 1 ? "s": "") << " found" << concol::R...
#include <iostream> #include <sstream> #include "concol.h" using std::cout; using std::cin; using std::endl; using std::string; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDevices = get_numDevices(); cout << concol::RED << numDevices << " APS devi...
Add dev home vm creds
// // PachubeAppCredentials.h // IoTally // // Created by Levent Ali on 09/02/2012. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #define kPBoAuthAppId @"e03db05a9cb717769d41" #define kPBoAuthAppSecret @"VYeiGP-4aLsQbm9Ywu7VKJJzSVRBvTeuyyGN2UyQsWestpcc" #define kPBoauthRedirect...
Update plugin version to 1.1
#pragma once #include <future> #include <list> #include <map> #include <set> #include <Shlwapi.h> #include "../lib/foobar2000_sdk/foobar2000/SDK/foobar2000.h" #include "../lib/tinyxml2/tinyxml2.h" #define PLUGIN_NAME "WPL Playlist support" #define PLUGIN_VERSION "1.0.2" #define CONSOLE_HEADER "foo_wpl: "
#pragma once #include <future> #include <list> #include <map> #include <set> #include <Shlwapi.h> #include "../lib/foobar2000_sdk/foobar2000/SDK/foobar2000.h" #include "../lib/tinyxml2/tinyxml2.h" #define PLUGIN_NAME "WPL Playlist support" #define PLUGIN_VERSION "1.1" #define CONSOLE_HEADER "foo_wpl: "
Fix for newlines and other non-printable chars in renderer
#ifndef PYFONT_H #define PYFONT_H #include <stdint.h> #include <stddef.h> struct PyFont { PyFont(uint8_t chars, uint8_t baseChar, const uint8_t* data, const uint16_t* offsets, const uint8_t* sizes): chars(chars), baseChar(baseChar), data(data), offsets(offsets), sizes(sizes) {} uint8_t chars; uin...
#ifndef PYFONT_H #define PYFONT_H #include <stdint.h> #include <stddef.h> struct PyFont { PyFont(uint8_t chars, uint8_t baseChar, const uint8_t* data, const uint16_t* offsets, const uint8_t* sizes): chars(chars), baseChar(baseChar), data(data), offsets(offsets), sizes(sizes) {} uint8_t chars; uin...
Fix the block database singleton
#ifndef BlockDatabase_H_INCLUDED #define BlockDatabase_H_INCLUDED #include <memory> #include <array> #include "Types/BlockType.h" #include "BlockID.h" #include "../../Texture/Texture_Atlas.h" namespace Block { class Database { public: static Database& get(); Database(); ...
#ifndef BlockDatabase_H_INCLUDED #define BlockDatabase_H_INCLUDED #include <memory> #include <array> #include "Types/BlockType.h" #include "BlockID.h" #include "../../Texture/Texture_Atlas.h" namespace Block { class Database { public: static Database& get(); const BlockType&...
Add catalog folder rename command
/* * 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...
Allow data to contain also lowercase hex characters.
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
Add example with ethernet leds
#include <inc/hw_types.h> #include <driverlib/sysctl.h> #include <stdio.h> #include <string.h> #include <inc/hw_memmap.h> #include <inc/hw_sysctl.h> #include <driverlib/gpio.h> #include <driverlib/debug.h> #define DEFAULT_STRENGTH GPIO_STRENGTH_2MA #define DEFAULT_PULL_TYPE GPIO_PIN_TYPE_STD_WPU #define PORT_E GPIO_PO...
Fix IO header include issue
/* $Id$ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Technologies, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2....
/* $Id$ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Technologies, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2....
Use atomic_inc function in histogram instead of reductions (which are not supported by PPCG)
#include "histogram.pencil.h" #include <pencil.h> static void calcHist( const int rows , const int cols , const int step , const unsigned char image[static const restrict rows][step] , int hist[static const restrict HISTOGRAM_BINS] //ou...
#include "histogram.pencil.h" #include <pencil.h> void atomic_inc(int *v); #ifndef __PENCIL__ void atomic_inc(int *v) { (*v)++; } #endif static void calcHist( const int rows , const int cols , const int step , const unsigned char image[static const rest...
Fix pthread_yield() not supported by OS X
#ifndef EMULATOR_PROCESS_H #include <pthread.h> #include <stdarg.h> #define MAX_ARGS 8 // A transputer process (more like a thread) typedef struct { pthread_t thread; void* args[MAX_ARGS]; void (*func)(); } Process; // Create a new process, with entry point 'func' and given stacksize. The // 'nargs' arg...
#ifndef EMULATOR_PROCESS_H #include <pthread.h> // OS X does not support pthread_yield(), only pthread_yield_np() #if defined(__APPLE__) || defined(__MACH__) #define pthread_yield() pthread_yield_np() #endif #include <stdarg.h> #define MAX_ARGS 8 // A transputer process (more like a thread) typedef struct { pth...
Update compat with old libcleri
/* * gramp.h - SiriDB Grammar Properties. * * Note: we need this file up-to-date with the grammar. The grammar has * keywords starting with K_ so the will all be sorted. * KW_OFFSET should be set to the first keyword and KW_COUNT needs the * last keyword in the grammar. * */ #ifndef SIRI_GRAMP...
/* * gramp.h - SiriDB Grammar Properties. * * Note: we need this file up-to-date with the grammar. The grammar has * keywords starting with K_ so the will all be sorted. * KW_OFFSET should be set to the first keyword and KW_COUNT needs the * last keyword in the grammar. * */ #ifndef SIRI_GRAMP...
Add SK_API to null canvas create method
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
Fix MSVC interpretation of our types.
// Copyright 2012 (c) Pavel Krajcevski // BC7IntTypes.h // This file contains all of the various platform definitions for fixed width integers // on various platforms. // !FIXME! Still needs to be tested on Windows platforms. #ifndef _TEX_COMP_TYPES_H_ #define _TEX_COMP_TYPES_H_ // Windows? #ifdef _MSC_VER typedef ...
// Copyright 2012 (c) Pavel Krajcevski // BC7IntTypes.h // This file contains all of the various platform definitions for fixed width integers // on various platforms. // !FIXME! Still needs to be tested on Windows platforms. #ifndef _TEX_COMP_TYPES_H_ #define _TEX_COMP_TYPES_H_ // Windows? #ifdef _MSC_VER typedef ...
Clean up in buildbot directories.
// RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only void test1(int x) { switch (x) { case 111111111111111111111111111111111111111: bar(); } } // Mismatched type between return and function result. int test2() { return; } void test3() { return 4; } void test4() { bar: baz: blong: bing: ; // PR5131 static long x = ...
// RUN: rm -f %S/statements.ll // RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only void test1(int x) { switch (x) { case 111111111111111111111111111111111111111: bar(); } } // Mismatched type between return and function result. int test2() { return; } void test3() { return 4; } void test4() { bar: baz: blong: bing:...
Add timestamp to output in the beginning of output.
/** * Copyright (c) 2015 Runtime Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
/** * Copyright (c) 2015 Runtime Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Add linked list implementation of queue
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> /* This is Stack Implementation using a Linked list */ #define MAXSIZE 101 #define BOOL_PRINT(bool_expr) "%s\n", (bool_expr) ? "true" : "false" typedef struct node{ int data; struct node* link; } node; node* head; //global variable node* create_newnode(in...
Convert BasicAA to be an immutable pass instead of a FunctionPass
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===// // // This file defines the default implementation of the Alias Analysis interface // that simply implements a few identities (two different globals cannot alias, // etc), but otherwise does no analysis. // //===---------------------------...
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===// // // This file defines the default implementation of the Alias Analysis interface // that simply implements a few identities (two different globals cannot alias, // etc), but otherwise does no analysis. // //===---------------------------...
Trim newline off of username
#include <unistd.h> #include <stdio.h> #include <string.h> #include <pthread.h> #include <errno.h> #include "spotify-fs.h" int main(int argc, char *argv[]) { int retval = 0; char *password = NULL; char *username = malloc(SPOTIFY_USERNAME_MAXLEN); if ((getuid() == 0) || (geteuid() == 0)) { fprintf(stderr, "Runnin...
#include <unistd.h> #include <stdio.h> #include <string.h> #include <pthread.h> #include <errno.h> #include "spotify-fs.h" int main(int argc, char *argv[]) { int retval = 0; char *password = NULL; char *username = malloc(SPOTIFY_USERNAME_MAXLEN); if ((getuid() == 0) || (geteuid() == 0)) { fprintf(stderr, "Runnin...
Make DuiPageSwitchAnimation not use dangling pointers.
/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libdui. ** ** If you have questions regarding the use of this file, p...
/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libdui. ** ** If you have questions regarding the use of this file, p...
Add nullability annotations to classes header
// // ILGClasses.h // Pods // // Created by Isaac Greenspan on 6/22/15. // // #import <Foundation/Foundation.h> typedef BOOL(^ILGClassesClassTestBlock)(__strong Class class); @interface ILGClasses : NSObject /** * Get a set of all of the classes passing a given test. * * @param test The block with which to ...
// // ILGClasses.h // Pods // // Created by Isaac Greenspan on 6/22/15. // // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef BOOL(^ILGClassesClassTestBlock)(__strong Class class); @interface ILGClasses : NSObject /** * Get a set of all of the classes passing a given test. * * @param test...
Fix another const-decoration mismatch, per Magnus.
/*------------------------------------------------------------------------- * * schemacmds.h * prototypes for schemacmds.c. * * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/com...
/*------------------------------------------------------------------------- * * schemacmds.h * prototypes for schemacmds.c. * * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/com...
Check if sys/queue.h have STAILQ_ interface. At least OpenBSD's one does not...
#ifndef SX_SLENTRY_H_ #define SX_SLENTRY_H_ #if HAVE_SYS_QUEUE_H #include <sys/queue.h> #else #include "sys_queue.h" #endif #if HAVE_SYS_TREE_H #include <sys/tree.h> #else #include "sys_tree.h" #endif struct sx_slentry { STAILQ_ENTRY(sx_slentry) next; char* text; }; struct sx_slentry* sx_slentry_new(char* text);...
#ifndef SX_SLENTRY_H_ #define SX_SLENTRY_H_ #if HAVE_SYS_QUEUE_H #include <sys/queue.h> /* OpenBSD-current as of 2015-08-30 does not define STAILQ_ENTRY anymore */ #ifndef STAILQ_ENTRY #include "sys_queue.h" #endif #else #include "sys_queue.h" #endif #if HAVE_SYS_TREE_H #include <sys/tree.h> #else #include "sys_tree....
Move MBEDTLS_MD5_C from mbetdls_device.h to targets.json
/* * mbedtls_device.h ******************************************************************************* * Copyright (c) 2017, STMicroelectronics * 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 L...
/* * mbedtls_device.h ******************************************************************************* * Copyright (c) 2017, STMicroelectronics * 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 Li...
Fix C++ compilation on windows.
/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable * * 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...
/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable * * 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...
Make this header file self-contained
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
Structure to hold cell energy data for a PHOS module
#ifndef ALIHLTPHOSNODULECELLENERGYDATA_H #define ALIHLTPHOSNODULECELLENERGYDATA_H struct AliHLTPHOSModuleCellEnergyData { AliHLTUInt8_t fModuleID; unsigned long cellEnergies[64][56][2]; }; #endif
Remove stale declaration of 'ia32_pre_transform_phase()'.
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Implements several optimizations for IA32. * @author Christian Wuerdig */ #ifndef FIRM_BE_IA32_IA32_OPTIMIZE_H #define FIRM_BE_IA32_IA32_OPTIMIZE_H #include "firm_types.h" /** * Prepares irg fo...
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Implements several optimizations for IA32. * @author Christian Wuerdig */ #ifndef FIRM_BE_IA32_IA32_OPTIMIZE_H #define FIRM_BE_IA32_IA32_OPTIMIZE_H #include "firm_types.h" /** * Performs conv a...
Add the missing PNaCl atomicops support.
// Protocol Buffers - Google's data interchange format // Copyright 2012 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
Disable interrupts around bit operations; ok deraadt@
/* $OpenBSD: atomic.h,v 1.2 2007/02/19 17:18:43 deraadt Exp $ */ /* Public Domain */ #ifndef __SPARC_ATOMIC_H__ #define __SPARC_ATOMIC_H__ #if defined(_KERNEL) static __inline void atomic_setbits_int(__volatile unsigned int *uip, unsigned int v) { *uip |= v; } static __inline void atomic_clearbits_int(__volatile ...
/* $OpenBSD: atomic.h,v 1.3 2007/04/27 19:22:47 miod Exp $ */ /* Public Domain */ #ifndef __SPARC_ATOMIC_H__ #define __SPARC_ATOMIC_H__ #if defined(_KERNEL) static __inline void atomic_setbits_int(__volatile unsigned int *uip, unsigned int v) { int psr; psr = getpsr(); setpsr(psr | PSR_PIL); *uip |= v; setpsr...
Modify the DISALLOW_COPY_AND_ASSIGN macro to use C++11's '= delete' syntax.
// Please don't add a copyright notice to this file. It contains source code // owned by other copyright holders (used under license). #ifndef BASE_MACROS_H_ #define BASE_MACROS_H_ // From Google C++ Style Guide // http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml // Accessed February 8, 2013 // // A mac...
// Please don't add a copyright notice to this file. It contains source code // owned by other copyright holders (used under license). #ifndef BASE_MACROS_H_ #define BASE_MACROS_H_ // A macro to disallow the copy constructor and operator= functions. #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ TypeName(const TypeNa...
Update current version 18. Described in tmcd/tmcd.c commit 1.232.
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2004 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14447 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2004 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14447 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
Add test case revealing crash of Goblint due to call of library function via function pointer
#include <fcntl.h> #include <unistd.h> typedef void (*fnct_ptr)(void); typedef int (*open_t)(const char*,int,int); typedef int (*ftruncate_t)(int,off_t); // Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than // than the expected number of arguments for the library...
Update MKR1300 board definition too
#define MICROPY_HW_BOARD_NAME "Arduino MKR1300" #define MICROPY_HW_MCU_NAME "samd21g18" #define MICROPY_PORT_A (PORT_PA24 | PORT_PA25) #define MICROPY_PORT_B (0) #define MICROPY_PORT_C (0) #include "internal_flash.h" #define CIRCUITPY_INTERNAL_NVM_SIZE 0 #define BOARD_FLASH_SIZE (0x00040000 - 0...
#define MICROPY_HW_BOARD_NAME "Arduino MKR1300" #define MICROPY_HW_MCU_NAME "samd21g18" #define MICROPY_PORT_A (0) #define MICROPY_PORT_B (0) #define MICROPY_PORT_C (0) #define CIRCUITPY_INTERNAL_NVM_SIZE 0 #define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000) #define DEFAULT_I2C_BUS_SCL (&...
Update for compatibility with multiple FS
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Add functions to disable and restore interrupts
/* 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...
Include the newly added json-enum-types.h header
#ifndef __JSON_GLIB_H__ #define __JSON_GLIB_H__ #include <json-glib/json-types.h> #include <json-glib/json-scanner.h> #include <json-glib/json-generator.h> #include <json-glib/json-parser.h> #include <json-glib/json-version.h> #endif /* __JSON_GLIB_H__ */
#ifndef __JSON_GLIB_H__ #define __JSON_GLIB_H__ #include <json-glib/json-types.h> #include <json-glib/json-scanner.h> #include <json-glib/json-generator.h> #include <json-glib/json-parser.h> #include <json-glib/json-version.h> #include <json-glib/json-enum-types.h> #endif /* __JSON_GLIB_H__ */
Add string constants and reorganize defaults
#pragma once #include "MeterWnd/Animations/AnimationTypes.h" #include "Settings.h" class SettingsDefaults { public: /* Default settings */ static const bool OnTop = true; static const AnimationTypes::HideAnimation DefaultHideAnim = AnimationTypes::Fade; static const bool HideFullscreen = false...
#pragma once #include "MeterWnd/Animations/AnimationTypes.h" #include "Settings.h" class SettingsDefaults { public: /* String Constants*/ static constexpr const wchar_t *Language = L"English"; static constexpr const wchar_t *Skin = L"Classic"; static constexpr const wchar_t *MainAppName = L"3RVX.exe";...
Add a single header file with everything needed by generated stubs.
/* * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. */ #ifndef CSTUBS_INTERNALS_H #define CSTUBS_INTERNALS_H /* Types and functions used by generated C code. */ #include "ctypes/primitives.h" #include "ctypes/complex_stubs.h...
Add xstrdup as a convenience macro around xstrndup
#ifndef MEM_H__ #define MEM_H__ #include <stdlib.h> #include "ocomm/o_log.h" void *xmalloc (size_t size); void *xcalloc (size_t count, size_t size); void *xrealloc (void *ptr, size_t size); size_t xmalloc_usable_size(void *ptr); char *xstralloc (size_t len); void *xmemdupz (const void *data, size_t len); char *xstrn...
#ifndef MEM_H__ #define MEM_H__ #include <stdlib.h> #include "ocomm/o_log.h" void *xmalloc (size_t size); void *xcalloc (size_t count, size_t size); void *xrealloc (void *ptr, size_t size); size_t xmalloc_usable_size(void *ptr); char *xstralloc (size_t len); void *xmemdupz (const void *data, size_t len); char *xstrn...
Remove another obsolete function declaration.
/* * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. */ #ifndef TYPE_INFO_STUBS_H #define TYPE_INFO_STUBS_H #include <caml/mlvalues.h> #include <caml/fail.h> #include <caml/callback.h> /* allocate_unpassable_struct_type_info ...
/* * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. */ #ifndef TYPE_INFO_STUBS_H #define TYPE_INFO_STUBS_H #include <caml/mlvalues.h> /* Read a C value from a block of memory */ /* read : 'a prim -> offset:int -> raw_pointer...
Add the ability to get Colliders from SImplePhysics
#pragma once #include "../IFactory.h" #include "../ISystem.h" #include <string> #include <vector> #include <map> #include "../AABBTree.h" class Property; class IMoverComponent; class SimplePhysics : public Sigma::IFactory, public ISystem<IMoverComponent> { public: SimplePhysics() { } ~SimplePhysics() { }; /...
#pragma once #include "../IFactory.h" #include "../ISystem.h" #include <string> #include <vector> #include <map> #include "../AABBTree.h" class Property; class IMoverComponent; class SimplePhysics : public Sigma::IFactory, public ISystem<IMoverComponent> { public: SimplePhysics() { } ~SimplePhysics() { }; /...
Update compile code for 4-pion analysis
#pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliChaoticity+; #pragma link C++ class AliThreePionRadii+; #pragma link C++ class AliChaoticityEventCollection+; #pragma link C++ class AliChaoticityEventStruct+; #pragma link C++ class AliChaoticityTrack...
#pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliChaoticity+; #pragma link C++ class AliThreePionRadii+; #pragma link C++ class AliChaoticityEventCollection+; #pragma link C++ class AliChaoticityEventStruct+; #pragma link C++ class AliChaoticityTrack...
Add prototype of MODBUSException function
#include "modlib.h" #include "parser.h" #include "exception.h" //Types typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Response frame content } MODBUSResponseStatus; //Type containing information about frame that is set up at slave side typedef struct { ...
#include "modlib.h" #include "parser.h" #include "exception.h" //Types typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Response frame content } MODBUSResponseStatus; //Type containing information about frame that is set up at slave side typedef struct { ...
Revert "posix/osx: fix type conflict on OSX native"
/* * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup posix_sockets */ /** * @{ * * @file * @brief ...
/* * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup posix_sockets */ /** * @{ * * @file * @brief ...
Fix "storage size of 'timer' isn't known" on Debian Squeeze
#include <stdio.h> #include <ruby.h> #include <ruby/encoding.h> static VALUE profiler_start(VALUE module, VALUE usec) { struct itimerval timer; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = NUM2LONG(usec); timer.it_value = timer.it_interval; setitimer(ITIMER_PROF, &timer, 0); retur...
#include <stdio.h> #include <sys/time.h> #include <ruby.h> #include <ruby/encoding.h> static VALUE profiler_start(VALUE module, VALUE usec) { struct itimerval timer; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = NUM2LONG(usec); timer.it_value = timer.it_interval; setitimer(ITIMER_PROF, ...
Add extension 'Minimize new Tabs'
/* Copyright (C) 2008-2010 Christian Dywan <christian@twotoasts.de> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later versio...
Return NULL in case of the dummy XML parser
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
Fix build breakage caused by memory leaks in llvm-c-test
/*===-- object.c - tool for testing libLLVM and llvm-c API ----------------===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
/*===-- object.c - tool for testing libLLVM and llvm-c API ----------------===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
Add octApron test for special globals invalidation
// SKIP PARAM: --sets ana.activated[+] octApron #include <assert.h> extern void magic(); int g; int h; void main() { int r, x; x = r; g = r; h = r + 1; assert(g < h); magic(); // invalidates (forgets) globals assert(g < h); // UNKNOWN! assert(x == r); // shouldn't forget locals }
Synchronize the mailbox after expunging messages to actually get them expunged.
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Split C++ statements out to their own file.
//===--- StmtCXX.h - Classes for representing C++ statements ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Include image view category in framework header.
// // ContentfulDeliveryAPI.h // ContentfulSDK // // Created by Boris Bügling on 04/03/14. // // #import <Foundation/Foundation.h> #import <ContentfulDeliveryAPI/CDAArray.h> #import <ContentfulDeliveryAPI/CDAAsset.h> #import <ContentfulDeliveryAPI/CDAClient.h> #import <ContentfulDeliveryAPI/CDAConfiguration.h> #im...
// // ContentfulDeliveryAPI.h // ContentfulSDK // // Created by Boris Bügling on 04/03/14. // // #import <Foundation/Foundation.h> #import <ContentfulDeliveryAPI/CDAArray.h> #import <ContentfulDeliveryAPI/CDAAsset.h> #import <ContentfulDeliveryAPI/CDAClient.h> #import <ContentfulDeliveryAPI/CDAConfiguration.h> #im...
Update driver version to 5.02.00-k1
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2006 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.01.00-k9"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2006 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k1"
Fix stupid error for Linux build.
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_GPU_GPU_CONFIG_H_ #define CHROME_GPU_GPU_CONFIG_H_ // This file declares common preprocessor configuration for the GPU process. #incl...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_GPU_GPU_CONFIG_H_ #define CHROME_GPU_GPU_CONFIG_H_ // This file declares common preprocessor configuration for the GPU process. #incl...
Add missing property for WebUtils mock
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jolla.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms of the Mozilla Pu...
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jolla.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms of the Mozilla Pu...
Make isAwesome public to convert nib-based buttons.
// // UIButton+PPiAwesome.h // PPiAwesomeButton-Demo // // Created by Pedro Piñera Buendía on 19/08/13. // Copyright (c) 2013 PPinera. All rights reserved. // #import <UIKit/UIKit.h> #import "NSString+FontAwesome.h" #import <QuartzCore/QuartzCore.h> #import <objc/runtime.h> typedef enum { IconPositionRight, ...
// // UIButton+PPiAwesome.h // PPiAwesomeButton-Demo // // Created by Pedro Piñera Buendía on 19/08/13. // Copyright (c) 2013 PPinera. All rights reserved. // #import <UIKit/UIKit.h> #import "NSString+FontAwesome.h" #import <QuartzCore/QuartzCore.h> #import <objc/runtime.h> typedef enum { IconPositionRight, ...
Add header file for external use (e.g. SST)
#ifndef __MEMORY_SYSTEM__H #define __MEMORY_SYSTEM__H #include <functional> #include <string> namespace dramsim3 { // This should be the interface class that deals with CPU class MemorySystem { public: MemorySystem(const std::string &config_file, const std::string &output_dir, std::function<v...
Add Storyboard outlets in Notifications cell class
// // UINotificationTableViewCell.h // YouLocal // // Created by Mihail Velikov on 5/3/15. // Copyright (c) 2015 YouLoc.al. All rights reserved. // #import <UIKit/UIKit.h> @interface NotificationTableViewCell : UITableViewCell @property (nonatomic, weak) UIImageView *avatarImage; @property (nonatomic, weak) UIIm...
// // UINotificationTableViewCell.h // YouLocal // // Created by Mihail Velikov on 5/3/15. // Copyright (c) 2015 YouLoc.al. All rights reserved. // #import <UIKit/UIKit.h> @interface NotificationTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *avatarImage; @property (weak, nonato...
Use file extension as fallback.
class EncoderFormat { public: std::string get() { return std::string(_format.begin(), _format.end()); } const void set(const std::wstring fileName, const std::wstring extension) { if (fileName.find(L"clusterfuzz-testcase-") == -1) { if (extension.length() > 1) _format = extension.substr(1, e...
class EncoderFormat { public: std::string get() { return std::string(_format.begin(), _format.end()); } const void set(const std::wstring fileName, const std::wstring extension) { if (fileName.find(L"clusterfuzz-testcase-") == -1) { if (extension.length() > 1) _format = extension.substr(1, e...
Move pthread-locking stuff to "internal.h". (_U_dyn_info_list_lock): Rename from "registration_lock" and change from r/w-lock to a simple mutex (spin) lock. (_U_dyn_register): Insert into doubly-linked list.
#include <libunwind.h> #ifndef HAVE_CMP8XCHG16 #include <pthread.h> /* Make it easy to write thread-safe code which may or may not be linked against libpthread. The macros below can be used unconditionally and if -lpthread is around, they'll call the corresponding routines otherwise, they do nothing. */ ...
#include "internal.h" pthread_mutex_t _U_dyn_info_list_lock = PTHREAD_MUTEX_INITIALIZER; void _U_dyn_register (unw_dyn_info_t *di) { mutex_lock (&_U_dyn_info_list_lock); { ++_U_dyn_info_list.generation; di->next = _U_dyn_info_list.first; di->prev = NULL; if (di->next) di->next->prev = di; ...
Add overloads for qDebug << and some eigen types.
#ifndef SRC_EIGEN_QDEBUG_H_ #define SRC_EIGEN_QDEBUG_H_ #include <iostream> #include <QDebug> #include <Eigen/Core> QDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector) { dbg << "[" << vector.x() << "|" << vector.y() << "]"; return dbg.maybeSpace(); } QDebug operator<<(QDebug dbg, const Eigen::Vector3f...
Define constructor, destructor and on_session_end methods.
#define MODULE_API_REVISION 1 struct api_version { int rev; size_t mi_size; }; struct moduleinfo { const char *name; struct api_version ver; }; #define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)}
#define MODULE_API_REVISION 2 struct rtpp_cfg_stable; struct rtpp_module_priv; struct rtpp_accounting; DEFINE_METHOD(rtpp_cfg_stable, rtpp_module_ctor, struct rtpp_module_priv *); DEFINE_METHOD(rtpp_module_priv, rtpp_module_dtor, void); DEFINE_METHOD(rtpp_module_priv, rtpp_module_on_session_end, void, struct rtpp_a...
Add license to bridging header
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "DetailViewController.h" #import "LoremIpsum.h"
// // Use this file to import your target's public headers that you would like to expose to Swift. // // 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/license...
Remove explicit conversion to boolean value.
#include <clib/dos_protos.h> #include <inline/dos_protos.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = (SysBase->LibNode.lib_Version >= 40) ? TRUE : FALSE; bool ch...
#include <clib/dos_protos.h> #include <inline/dos_protos.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = SysBase->LibNode.lib_Version >= 40; bool chipaga = GfxBase->...
Add a documentation for the bencoding namespace.
/** * @mainpage * * This is an automatically generated API documentation for the @c cpp-bencoding project. */
/** * @mainpage * * This is an automatically generated API documentation for the @c cpp-bencoding project. */ // Document the bencoding namespace (there is no better place). /// @namespace bencoding Main namespace of the bencoding library.
Add functional::State and its controls.
/*! \file state.h \brief The definition and its controls for a state monad. */ #ifndef FUNCTIONAL_STATE_H_ #define FUNCTIONAL_STATE_H_ #include <functional> #include <type_traits> #include <utility> namespace functional { template <typename S, typename T> using State = std::function<std::pair<T, S>(S)>; templa...
Comment on Backend member functions
#pragma once #include <memory> #include "xchainer/array.h" #include "xchainer/device.h" #include "xchainer/scalar.h" namespace xchainer { class Backend { public: virtual ~Backend() = default; virtual std::shared_ptr<void> Allocate(const Device& device, size_t bytesize) = 0; virtual void MemoryCopy(void...
#pragma once #include <memory> #include "xchainer/array.h" #include "xchainer/device.h" #include "xchainer/scalar.h" namespace xchainer { class Backend { public: virtual ~Backend() = default; // Allocates a memory chunk on the specified device. virtual std::shared_ptr<void> Allocate(const Device& devic...
Fix to allow compile under 32 bit.
//////////////////////////////////////////////////////////////////////////////// // // EXPANZ // Copyright 2008-2011 EXPANZ // All Rights Reserved. // // NOTICE: Expanz permits you to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ////////////////...
//////////////////////////////////////////////////////////////////////////////// // // EXPANZ // Copyright 2008-2011 EXPANZ // All Rights Reserved. // // NOTICE: Expanz permits you to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ////////////////...
Add regression tests where global is more precise than global-history due to non-side widen order
// PARAM: --enable ana.int.interval #include <pthread.h> #include <assert.h> // global priv succeeds // global-history fails due to [1,+inf] widen ([1,+inf] join [0,+inf]) -> [-inf,+inf] // sensitive to eval and widen order! int g = 0; int limit; // unknown pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; void *worke...
Add a pointer wrapper for vil_smart_ptr
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_WRAP_VIL_SMART_PTR_H #define VISTK_PYTHON_HELPERS_PYTHON_...
Use azy_server_run as a replacement for ecore_main_loop_begin
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <Azy.h> #include "EMS_Config.azy_server.h" /*============================================================================* * Local * *======================================================...
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <Azy.h> #include "EMS_Config.azy_server.h" /*============================================================================* * Local * *=====================================================...
Add RAStringSignal and RAStringValue to header
// // react-objc - a library for functional-reactive-like programming // https://github.com/tconkling/react-objc/blob/master/LICENSE #import "RAConnection.h" #import "RAConnectionGroup.h" #import "RABoolSignal.h" #import "RABoolValue.h" #import "RADoubleSignal.h" #import "RADoubleValue.h" #import "RAFloatSignal.h" #im...
// // react-objc - a library for functional-reactive-like programming // https://github.com/tconkling/react-objc/blob/master/LICENSE #import "RAConnection.h" #import "RAConnectionGroup.h" #import "RABoolSignal.h" #import "RABoolValue.h" #import "RADoubleSignal.h" #import "RADoubleValue.h" #import "RAFloatSignal.h" #im...
Update header include guard for root-path file.
/* * Copyright (c) 2010-2014, Delft University of Technology * Copyright (c) 2010-2014, K. Kumar (me@kartikkumar.com) * All rights reserved. * See http://bit.ly/1jern3m for license details. */ #ifndef ASSIST_INPUT_OUTPUT_H #define ASSIST_INPUT_OUTPUT_H #include <string> namespace assist { namesp...
/* * Copyright (c) 2010-2014, Delft University of Technology * Copyright (c) 2010-2014, K. Kumar (me@kartikkumar.com) * All rights reserved. * See http://bit.ly/1jern3m for license details. */ #ifndef ASSIST_ROOT_PATH_H #define ASSIST_ROOT_PATH_H #include <string> namespace assist { namespace in...
Remove function prototype that are now static in ta_data_interface.c
#ifndef TA_ADDDATASOURCEPARAM_PRIV_H #define TA_ADDDATASOURCEPARAM_PRIV_H /* The following is a private copy of the user provided * parameters for a TA_AddDataSource call. * * Code is in 'ta_data_interface.c' */ typedef struct { TA_SourceId id; TA_SourceFlag flags; TA_Period period; TA_String *locat...
#ifndef TA_ADDDATASOURCEPARAM_PRIV_H #define TA_ADDDATASOURCEPARAM_PRIV_H /* The following is a private copy of the user provided * parameters for a TA_AddDataSource call. * * Code is in 'ta_data_interface.c' */ typedef struct { TA_SourceId id; TA_SourceFlag flags; TA_Period period; TA_String *locat...
Remove dos line endings. Please remember to configure your windows SVN clients to default text files to 'eol-native'.
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s // RUN: cp %s %t // RUN: cp %S/fixit-include.h %T // RUN: not %clang_cc1 -fsyntax-only -fixit %t // RUN: %clang_cc1 -Wall -pedantic %t #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" in...
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s // RUN: cp %s %t // RUN: cp %S/fixit-include.h %T // RUN: not %clang_cc1 -fsyntax-only -fixit %t // RUN: %clang_cc1 -Wall -pedantic %t #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}...
Make worst case actual worst case.
#include <stdio.h> #include <stdlib.h> #include "../brk.h" #include <unistd.h> #include "clock.h" int main(int argc, char *argv[]) { int nbytes = 5; void **ptrs; long num; long i; num = atol(argv[1]); ptrs = malloc(sizeof(void*) * num); for(i = 0; i < num; i++) { ptrs[i] = malloc(nbytes); mall...
#include <stdio.h> #include <stdlib.h> #include "../brk.h" #include <unistd.h> #include "clock.h" #define MIN_ALLOC (1024) #define HEADER_SIZE (16) int main(int argc, char *argv[]) { void **ptrs; long num; long i; int small_malloc = HEADER_SIZE; int medium_malloc = (MIN_ALLOC - 3) * HEADER_SIZE; int larg...
Use <> instead of \"\"
/* Define the real-function versions of all inline functions defined in signal.h (or bits/sigset.h). */ #include <features.h> #define _EXTERN_INLINE #ifndef __USE_EXTERN_INLINES # define __USE_EXTERN_INLINES 1 #endif #include "signal.h"
/* Define the real-function versions of all inline functions defined in signal.h (or bits/sigset.h). */ #include <features.h> #define _EXTERN_INLINE #ifndef __USE_EXTERN_INLINES # define __USE_EXTERN_INLINES 1 #endif #include <signal.h>
Change date of copyright notice
#ifndef PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H #define PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H /* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of ...
#ifndef PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H #define PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H /* * * Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of ...
Fix invalid delete[] calls in ~Problem
#ifndef PROBLEM_H #define PROBLEM_H #include "sense.h" class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same ...
#ifndef PROBLEM_H #define PROBLEM_H #include "sense.h" class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same ...
Update patch level for update test.
#ifndef _version_h_ # define _version_h_ # define PROGRAM_NAME "xyzzy" # define PROGRAM_COPYRIGHT "Copyright (C) 1996-2005 T.Kamei" # define PROGRAM_MAJOR_VERSION 0 # define PROGRAM_MINOR_VERSION 2 # define PROGRAM_MAJOR_REVISION 3 # define PROGRAM_MINOR_REVISION 5 # define PROGRAM_PATCH_LEVEL 0 # define TITLE_BAR_S...
#ifndef _version_h_ # define _version_h_ # define PROGRAM_NAME "xyzzy" # define PROGRAM_COPYRIGHT "Copyright (C) 1996-2005 T.Kamei" # define PROGRAM_MAJOR_VERSION 0 # define PROGRAM_MINOR_VERSION 2 # define PROGRAM_MAJOR_REVISION 3 # define PROGRAM_MINOR_REVISION 5 # define PROGRAM_PATCH_LEVEL 1 # define TITLE_BAR_S...
Add command to list all objects owned by a given user
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2013 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...