text
stringlengths
4
6.14k
/** * @file log.c Logging * * Copyright (C) 2010 Creytiv.com */ #include <re.h> #include <restund.h> static struct { struct list logl; bool debug; bool stder; } lg = { .logl = LIST_INIT, .debug = false, .stder = true }; void restund_log_register_handler(struct restund_log *log) { if (!log) return; ...
//================================================================================================= /*! // \file blaze/math/constraints/DeclHermExpr.h // \brief Constraint on the data type // // Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redis...
// Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt' #pragma once #if 0 #include "Core/STL/Files/SubFile.h" #include "Core/STL/Containers/StaticArray.h" namespace GX_STL { namespace GXFile { // // Simple File Crypt Algorithm // template <uint Size> struct SimpleFileCryptAlgorithm { // t...
#ifndef __APPENDER_H__ #define __APPENDER_H__ #include "dgrObject.h" DGR2_NP_BEGIN struct DGR2_API Appender : public DGRObject { virtual bool publish(const Log& log) = 0; virtual void setFilter(Filter* filter) = 0; virtual Filter* getFilter() = 0; virtual void setFormatter(Formatter* formatter...
/* TODO : finish this */ #define NDK_HTTP_MAIN_CONF NGX_HTTP_MAIN_CONF #define NDK_HTTP_SRV_CONF NGX_HTTP_SRV_CONF #define NDK_HTTP_SIF_CONF NGX_HTTP_SIF_CONF #define NDK_HTTP_LOC_CONF NGX_HTTP_LOC_CONF #define NDK_HTTP_LIF_CONF ...
/** * @file MazeField.h * @author Albert Uchytil (xuchyt03), Tomas Coufal (xcoufa09) * @brief Class defining the the field on the board */ #ifndef MAZEFIELD_H #define MAZEFIELD_H #include "MazeCard.h" /// @brief Class containig the field data like card, and handles the neighborhood class MazeField { public: ...
#ifndef CAMERA_H #define CAMERA_H #include "GameObjects/GameObject.h" #include "GameObjects/Billboard.h" #include "GameObjects/Weapon.h" #include "Models/Armature.hpp" #include <iostream> #include <cmath> #include <glm/glm.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtx/rotate_vector.hpp> #include <SDL/SDL.h>...
/* * Copyright (C) 2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2013 Stephen Kelly <steveire@gmail.com> Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distrib...
/* $NiH: add_from_buffer.c,v 1.3 2006/05/09 23:41:32 wiz Exp $ add_from_buffer.c -- test case for adding file from buffer to archive Copyright (C) 1999, 2003, 2005 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <nih@giga.or...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "AssetTypeActions_Base.h" class FAssetTypeActions_Blackboard : public FAssetTypeActions_Base { public: // IAssetTypeActions Implementation virtual FText GetName() const override { return NSLOCTEXT("AssetTypeActions", "AssetTypeAction...
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled May 11 2021 09:30:43). // // Copyright (C) 1997-2019 Steve Nygard. // #import <XCTest/NSObject-Protocol.h> #import <XCTest/XCTElementSnapshotAttributeDataSource-Protocol.h> #import <XCTest/XCUIAXNotificationHandling-Protocol.h> @class NSArray, NS...
/*****************************************************************************/ /* */ /* © 2011, Aurbach & Associates, Inc. All rights reserved. */ /* */ /* Redistribution and use in source and binary forms, with or without */ /* modification, are permitted provided that the...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2018-2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
#ifndef PM_BASE64_H_ #define PM_BASE64_H_ #include "pm.h" #include <stdint.h> #include <stdio.h> #define PM_BASE64_DECODED_SIZE(x) ((PM_ROUND_UP(x, 4UL) * 3UL) / 4UL) #define PM_BASE64_ENCODED_SIZE(x) ((PM_ROUND_UP(x, 3UL) * 4UL) / 3UL) enum pm_base64_encoding_e { PM_BASE64_RFC3458, PM_BAS...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "MobilityCustomization.h" class FSceneComponentDetails : public IDetailCustomization { public: /** Makes a new instance of this detail layout class for a specific detail view requesting it */ static TSharedRef<IDetailCustomization> ...
// Copyright (c) 2017 Timo Savola. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <sys/types.h> struct cgroup_config { const char *title; const char *parent; }; extern const char cgroup_backend[]; void init_cgroup(pid_t pid, co...
/* * Copyright 2010 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrColor_DEFINED #define GrColor_DEFINED #include "include/core/SkColor.h" #include "include/core/SkColorPriv.h" #include "include/gpu/GrTypes.h" #include "include/...
#ifndef __TEST_H__ #define __TEST_H__ #include <stdio.h> char * Exec(char * soData, int * replylen); int TimerEvnet(); void OnInit(); #endif
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__twoIntsStruct_calloc_02.c Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-02.tmpl.c */ /* * @description * CWE: 401 Memory Leak * BadSource: calloc Allocate data using calloc() * GoodSource: Allocate data o...
#pragma once #include <algorithm> #include <cmath> #include "multiscalefilter/MultiScaleFilter.hpp" class FourierDecomposition { int window_type; double T;// period double sigma;//parameter sigma float beta, alpha, remap_sigma; int n;//order double omega_n; double fcos(double x) { return getGaussianWindow(a...
/* This file may have been modified by DJ Delorie (Jan 1991). If so, ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave, ** Rochester NH, 03867-2954, USA. */ /*- * Copyright (c) 1988 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and b...
/* * 2007 – 2013 Copyright Northwestern University * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details. */ #ifndef _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA_CNPPD_ST_NT #define _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA...
/* * Copyright (c) 1982, 1986, 1993, 1994 * The Regents of the University of California. 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 ret...
// vim:ts=8:expandtab #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <limits.h> #ifdef LINUX #include <iwlib.h> #endif #include "i3status.h" static const char *get_wireless_essid(const char *interface) { static char part[512]; #ifdef LINUX int skfd; if ...
/* $OpenBSD: rsa_saos.c,v 1.23 2017/05/02 03:59:45 deraadt Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * Thi...
// Copyright (c) 2009, Object Computing, Inc. // All rights reserved. // See the file license.txt for licensing information. #ifdef _MSC_VER # pragma once #endif #ifndef COMMANDARGHANDLER_H #define COMMANDARGHANDLER_H namespace QuickFAST { /// @brief Abstract interface to be implemented by objects /// that handle ...
/* * Copyright (C) 2012 Company 100, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condi...
/***************************************************************************** * Copyright (c) 2011, Marcello Bonfe' * ENDIF - ENgineering Department In Ferrara, * University of Ferrara. * All rights rese...
/* $Id$ * Author: Daniel Bosk <daniel.bosk@miun.se> * Date: 22 Dec 2012 */ /* * Copyright (c) 2012, Daniel Bosk <daniel.bosk@miun.se> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
/*============================================================================ Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions ...
// Copyright 2018 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 MEDIA_GPU_V4L2_V4L2_VP8_ACCELERATOR_H_ #define MEDIA_GPU_V4L2_V4L2_VP8_ACCELERATOR_H_ #include <vector> #include "base/macros.h" #include "base/...
// Copyright 2018 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 COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_NAVIGATION_CONSOLE_LOGGER_H_ #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_NAVIGATION_CONSOL...
/*- * Copyright (c) 2013, 2014 Jason Lingle * 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 ...
/* * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu * 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 o...
// Copyright 2017 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 ASH_WM_LOCK_ACTION_HANDLER_LAYOUT_MANAGER_H_ #define ASH_WM_LOCK_ACTION_HANDLER_LAYOUT_MANAGER_H_ #include "ash/ash_export.h" #include "ash/lock_...
/* * check_chitcpd.c * * Created on: Jan 11, 2014 * Author: borja */ #include <stdlib.h> #include <check.h> #include "chitcp/chitcpd.h" #include "serverinfo.h" #include "server.h" START_TEST (test_chitcpd_startstop) { int rc; serverinfo_t *si; si = calloc(1, sizeof(serverinfo_t)); si->serv...
#ifndef CMALLOC_CMALLOC_H #define CMALLOC_CMALLOC_H #include <unistd.h> void *cmalloc_aligned_alloc(size_t alignment, size_t size); void *cmalloc_calloc(size_t nmemb, size_t size); void cmalloc_free(void *ptr); void *cmalloc_malloc(size_t size); void *cmalloc_realloc(void *ptr, size_t size); void *cmalloc_memalign(s...
/* ----------------------------------------------------------------- */ /* The Japanese TTS System "Open JTalk" */ /* developed by HTS Working Group */ /* http://open-jtalk.sourceforge.net/ */ /* -----------------------------...
// // ActiveStarter.h // // $Id$ // // Library: Foundation // Package: Threading // Module: ActiveObjects // // Definition of the ActiveStarter class. // // Copyright (c) 2006-2007, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or ...
#pragma once #include "chockNgt.h" #include "Audio.h" class Cafe { public: Cafe(); ~Cafe(); void ToBeginning(void); int Draw(float time); void UpdateTime(float time) { last_call_time_ = time; } void StartScene(int nothing) { nothing = nothing; has_white_fade_ = false; ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated by scripts/bump-oss-version.js */ #pragma once #include <cstdint> #include <string_view> namespace ABI42_0_0facebo...
typedef unsigned char color; typedef struct { color Blue; color Green; color Red; } BGR; typedef struct { BGR content[16][16]; } color_block; typedef struct { short content[8][8]; } color_converted_block; color_block color_block_to_be_converted; /* RGB to YCbCr Conversion: */ // Y = 0.299*R + 0.587*G + 0.1...
/* * Copyright (c) 2021, The OpenThread Authors. * 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 ...
/* Copyright (c) 2014, Sebastian Eriksson * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of c...
#ifndef DOUBANGO_CONFIG_H #define DOUBANGO_CONFIG_H #define DOUBANGO_IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1))) #define DOUBANGO_ASM_INLINE 1 #define DOUBANGO_INTRINSIC 1 #endif /* DOUBANGO_CONFIG_H */
/* * Module name : lcd.c: write to LCD display * Author : TI-Avans, JW * Revision History : 20110228: - initial release; * Description : This module contains functions for writing to lcd-display * Test configuration: MCU : ATmega128 Dev.Board : BIGAVR6 Oscillator : External Clock 8.0...
/* * altivec_typeconversion.h * DevIL * * Created by Meloni Dario on 24/04/05. * */ #include "altivec_common.h" #ifdef ALTIVEC_GCC // data and newdata may be the same buffer // Used to convert RGB <-> BGR in various data types void abc2cba_byte(ILubyte* data, ILuint length, ILubyte* newdata); void abc2cba_s...
#pragma once #include "Classes/Modules/PackageModule/Private/PackageWidget.h" #include <TArc/DataProcessing/TArcDataNode.h> class PackageNode; class QAction; class PackageData : public DAVA::TArcDataNode { public: private: friend class PackageModule; QAction* importPackageAction = nullptr; QAction* co...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * Copyright (C) 1997 University of Chicago. * See COPYRIGHT notice in top-level directory. */ #include "adio.h" #include "adio_extern.h" #ifdef ROMIO_INSIDE_MPICH2 #include "mpiimpl.h" #endif void ADIO_End(int *error_code) { ADIOI_Flatlist_node *curr, *next; ...
#ifndef NVTRISTRIP_H #define NVTRISTRIP_H #ifndef NULL #define NULL 0 #endif namespace NvTriStrip { //////////////////////////////////////////////////////////////////////////////////////// // Public interface for stripifier //////////////////////////////////////////////////////////////////////////////////////// ...
/******************************************************************************** * * * F o u r - W a y S p l i t t e r * * ...
/* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. */ /* ----------------------------------------------------...
// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2010 Alessandro Tasora // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file at the top level of the distribution // and at http://projectchrono.org/license-chrono.txt. // #i...
#ifndef _CURSES_H #define _CURSES_H #include <ansi.h> /* Lots of junk here, not packaged right. */ extern char termcap[]; extern char tc[]; extern char *ttytype; extern char *arp; extern char *cp; extern char *cl; extern char *cm; extern char *so; extern char *se; extern char /* nscrn[ROWS][COLS], cscrn[ROWS][COLS]...
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA. All rights reserved. * Copyright © 2009-2011 Université Bordeaux 1 * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ /** \file * \brief Macros to help interaction between hwloc and glibc scheduling rou...
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LOGIN_MANAGER_MOCK_POLICY_STORE_H_ #define LOGIN_MANAGER_MOCK_POLICY_STORE_H_ #include "login_manager/policy_store.h" namespace login_man...
#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include "svm.h" char* line; int max_line_len = 1024; struct svm_node *x; int max_nr_attr = 64; struct svm_model* model; int predict_probability=0; void predict(FILE *input, FILE *output) { int correct = 0; int total = 0; double error =...
#include <ruby.h> VALUE sm_define_const(VALUE self, VALUE klass, VALUE val) { rb_define_const(klass, "FOO", val); return Qnil; } VALUE sm_const_defined(VALUE self, VALUE klass, VALUE id) { return (VALUE)rb_const_defined(klass, SYM2ID(id)); } void Init_subtend_module() { VALUE cls; cls = rb_define_class("Su...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_ROUTER_FACTORY_H_ #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SET...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
/* simq.c * * Solution of simultaneous linear equations AX = B * by Gaussian elimination with partial pivoting * * * * SYNOPSIS: * * double A[n*n], B[n], X[n]; * int n, flag; * int IPS[]; * int simq(); * * ercode = simq( A, B, X, n, flag, IPS ); * * * * DESCRIPTION: * * B, X, IPS are vectors o...
/* base64.h -- routines for converting to base64 * * This code is Copyright (c) 2017, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ int writeBase64aux(FILE *, FILE *, int); int writeBase64(const unsigned char *, size_t, unsi...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef FWL_TARGETIMP_H_ #define FWL_TARGETIMP_H_ #include "core/include/fxcr...
/*! * Copyright (c) 2016 by Contributors * \file input_split_shuffle.h * \brief base class to construct input split with global shuffling * \author Yifeng Geng */ // dmlc-core/include/dmlc/input_split_shuffle.h #ifndef BUBBLEFS_UTILS_DMLC_INPUT_SPLIT_SHUFFLE_H_ #define BUBBLEFS_UTILS_DMLC_INPUT_SPLIT_SHUFFLE_H_...
/* * * malloc_wrappers.c * * Author: Markku Rossi <mtr@iki.fi> * * Copyright (c) 2005-2016 Markku Rossi. * * See the LICENSE file for the details on licensing. * * Wrappers for system's memory allocation routines. * */ #include "piincludes.h" #include "pimalloc.h" #include <dlfcn.h> #include <signal.h> /...
#pragma once #include "cutlass/cutlass.h" #include "cutlass/conv/convolution.h" #include "cutlass/conv/conv2d_problem_size.h" #include "cutlass/conv/conv3d_problem_size.h" #include "cutlass/layout/tensor.h" #include "cutlass/layout/matrix.h" #include "cutlass/tensor_ref.h" namespace cutlass { namespace epilogue { na...
/** * @file * @copyright This code is licensed under the 3-clause BSD license.\n * Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n * See LICENSE.txt for details. */ #ifndef SPARROW_DFTB_REPULSIONPARAMETERS_H #define SPARROW_DFTB_REPULSIONPARAMETERS_H #include <vecto...
// Copyright 2016 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 BLIMP_CLIENT_CORE_SESSION_CLIENT_NETWORK_COMPONENTS_H_ #define BLIMP_CLIENT_CORE_SESSION_CLIENT_NETWORK_COMPONENTS_H_ #include <memory> #include...
// Copyright 2016 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 COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_ #define COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_ #include <string> #include <utility...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_loop_44.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml Template File: sources-sink-44.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate usin...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ #include <map> #include <string> #include <vector...
#import <UIKit/UIKit.h> @interface ViewController : UIViewController<UIImagePickerControllerDelegate, UINavigationControllerDelegate> @end
#include <stdbool.h> #include <stdio.h> #include <letmecreate/click/fan.h> #include <letmecreate/core/i2c.h> /* I2C address of EMC2301 */ #define EMC2301_ADDRESS (0x2F) /* Register addresses */ #define EMC2301_PRODUCT_ID_REG (0xFD) #define EMC2301_MANUFACTURER_ID_REG (0xFE) #define EMC2301_F...
// // Soap.h // SOAP-IOS // // Created by Elliott on 13-7-26. // Copyright (c) 2013年 Elliott. All rights reserved. // #import "SoapUtility.h" #import "SoapService.h" #import "DDXMLElement+WSDL.h"
#include <gaussian.h> #include <args.h> #include <stdbool.h> int main ( int argc, char *argv[] ) { double units; uint32_t gaussianSize; float gaussianSigma; char* imgname;//the name of the image file, taken by the arguments //read in the program's arguments if(readArguments(argc,argv,&imgname...
// ***************************************************************************** // // Copyright (c) 2014, Southwest Research Institute® (SwRI®) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met:...
#import <UIKit/UIKit.h> #import "ATTableViewController.h" @interface ATSettingSingleSelectViewController : ATTableViewController { } @end
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__sizeof_struct_34.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__sizeof.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize the source b...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ #include <string> #include "base/macros.h" #include ...
/* * type and other definitions * * written by Yasha (ITOH Yasufumi) * public domain * * $NetBSD: type_local.h,v 1.1 1998/09/01 19:51:09 itohy Exp $ */ #ifdef __STDC__ # define PROTO(x) x #else # define PROTO(x) () # ifndef const # define const # endif #endif #ifndef __BIT_TYPES_DEFINED__ typedef unsigned cha...
/* * * Copyright (c) 1999-2000, Vitaly V Belekhov * 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 unmodif...
/************************************************************************** Copyright (c) 2007-2008, Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source ...
/* Copyright (c) 2006, NIF File Format Library and Tools All rights reserved. Please see niflib.h for license. */ //-----------------------------------NOTICE----------------------------------// // Some of this file is automatically filled in by a Python script. Only // // add custom code in the designated areas o...
// Copyright (c) 2017 Vivaldi Technologies AS. All rights reserved #ifndef APP_VIVALDI_VERSION_CONSTANTS_H_ #define APP_VIVALDI_VERSION_CONSTANTS_H_ namespace vivaldi { // All constants in alphabetical order. The constants should be documented // alongside the definition of their values in the .cc file. extern cons...
// Copyright (c) 2006-2008 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org); 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 3 of the Li...
/* Copyright 2013, Peter A. Bigot * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions...
#ifndef ML_APPLICATION_H #define ML_APPLICATION_H #include <QApplication> #include <QString> class MeshLabApplication : public QApplication { public: enum HW_ARCHITECTURE {HW_32BIT = 32,HW_64BIT = 64}; MeshLabApplication(int &argc, char *argv[]):QApplication(argc,argv){} ~MeshLabApplication(){}...
// Chemfiles, a modern library for chemistry file reading and writing // Copyright (C) Guillaume Fraux and contributors -- BSD license #include <chemfiles.h> #include <stdlib.h> int main() { // [example] CHFL_ATOM* atom = chfl_atom("Na"); if (atom == NULL) { /* handle error */ } chfl_ato...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "vizwindow.h" #include "audio.hpp" #include "fm.hpp" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(FMSynth &fm, QWidget *parent = 0); ~MainWindow(); private slots:...
// Copyright 2013 The Flutter 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 FLUTTER_LIB_UI_TEXT_LINE_METRICS_H_ #define FLUTTER_LIB_UI_TEXT_LINE_METRICS_H_ #include "third_party/dart/runtime/include/dart_api.h" #include "t...
/** * Copyright (c) 2018, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com> */ #ifndef _LIGHT_H_ #define _LIGHT_H_ void light_init(void); #endif /* !_LIGHT_H_ */
// Copyright (c) 2018 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 QUICHE_QUIC_CORE_QPACK_QPACK_DECODER_H_ #define QUICHE_QUIC_CORE_QPACK_QPACK_DECODER_H_ #include <cstdint> #include <memory> #include <set> ...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_LOOKALIKES_LOOKALIKE_URL_SERVICE_H_ #define CHROME_BROWSER_LOOKALIKES_LOOKALIKE_URL_SERVICE_H_ #include <vector> #include "base/c...
#ifndef TWEBSOCKETFRAME_H #define TWEBSOCKETFRAME_H #include <QByteArray> #include <TGlobal> class T_CORE_EXPORT TWebSocketFrame { public: enum OpCode { Continuation = 0x0, TextFrame = 0x1, BinaryFrame = 0x2, Reserve3 = 0x3, Reserve4 = 0x4, Reserve5 = 0x5, ...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_ #define COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_ #include <map> #include <...
// Copyright 2015 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_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ #define UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ #include <vec...
/* $NetBSD: psychovar.h,v 1.3.4.1 2000/07/18 16:23:20 mrg Exp $ */ /* * Copyright (c) 1999, 2000 Matthew R. Green * 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 ...
/* * Copyright 2013 Couchbase, 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...