text stringlengths 9 948k |
|---|
//---------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation 1993-1994
//
// File: cache.c
//
// This files contains code for the common cache lists
//
// History:
// 09-02-93 ScottH Created
// 01-31-94 ScottH Split into separate files
//
//---------... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
// Copyright 2010 Todd Ditchendorf
//
// 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) Facebook, Inc. and its affiliates.
//
// 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 applicabl... |
/*
Copyright (c) 2019, Plume Design Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... |
#ifndef VISUALISER_H
#define VISUALISER_H
#include "flags.h"
class SectorSet;
extern FlagGroup visualiserFlags;
extern void visualiseSectorsToFile(const SectorSet& sectors, const std::string& filename);
#endif |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:28 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/PassKitCore.framework/PassKitCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:35:28 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/PrivateFrameworks/RelevanceE... |
/*
FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms... |
//
// AbsDellComputerDisplaycard.h
// factory-ex
//
// Created by nonoking on 2017/6/3.
// Copyright © 2017年 nonoking. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AbsComputerDisplaycard.h"
@interface AbsDellComputerDisplaycard : NSObject<AbsComputerDisplaycard>
@end |
/*
*Copyright (C) 2015 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 applicabl... |
/* kill function */
#include "fb.h"
#include <errno.h>
/*:::::*/
FBCALL int fb_FileKill( FBSTRING *str )
{
int res = 0, err = 0;
if( str->data != NULL )
{
res = remove( str->data );
err = errno;
}
/* del if temp */
fb_hStrDelTemp( str );
if ( res == 0 )
{
res = FB_RTERROR_OK;
}
else
{
switch (e... |
/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
* other uses are authorized. This software is owned by Renesas El... |
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <glob.h>
#include <libgen.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdnoreturn.h>
#include <string.h>
#include <strings.h>
#include <sys/stat.h>
#inc... |
/*
* This definitions of the PIC18LF242 MCU.
*
* This file is part of the GNU PIC library for SDCC, originally
* created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
*
* This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:58 UTC.
*
* SDCC is licensed under the GNU Public license (GPL) ... |
/**
* @copyright
* Copyright (C) 2020 Assured Information Security, Inc.
*
* @copyright
* 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 limitatio... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
// Copyright 2010-2014, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... |
/*******************************************************************************
System Interrupts File
Company:
Microchip Technology Inc.
File Name:
interrupt.c
Summary:
Interrupt vectors mapping
Description:
This file maps all the interrupt vectors to their corresponding
implementatio... |
REAL*8 ZEELOG, ZEPSC, ZEPSCO, ZEPSCQ, ZEPSCT, ZEPSCW
REAL*8 ZEPSEC, ZEPSCR
PARAMETER (ZEELOG = 1.E-07) !1.e-10 (not good for 32-bit machines)
PARAMETER (ZEPSC = 1.E-20)
PARAMETER (ZEPSCO = 1.E-10)
PARAMETER (ZEPSCQ = 1.E-10)
PARAMETER (ZEPSCT = 1.E-20)
PARAMETER (ZEPSCW = 1.E-... |
//
// Demo3ViewController.h
// LYEmptyViewDemo
//
// Created by liyang on 2017/12/1.
// Copyright © 2017年 liyang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface Demo3ViewController : UIViewController
@end |
/*
* Unit tests for named pipe functions in Wine
*
* Copyright (c) 2002 Dan Kegel
*
* 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 you... |
/**
**/
/**
Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/li... |
/**
******************************************************************************
* @file USB_Device/AUDIO_Standalone/Src/usbd_audio_if.c
* @author MCD Application Team
* @brief USB Device Audio interface file.
******************************************************************************
* @attentio... |
/*
* -- High Performance Computing Linpack Benchmark (HPL)
* HPL - 1.0a - January 20, 2004
* Antoine P. Petitet
* University of Tennessee, Knoxville
* Innovative Computing Laborato... |
#import "MTBuffer.h"
@interface MTBufferReader : NSObject
- (instancetype)initWithData:(NSData *)data;
- (bool)readBytes:(void *)bytes length:(NSUInteger)length;
- (bool)readInt32:(int32_t *)value;
- (bool)readInt64:(int64_t *)value;
- (NSData *)readRest;
@end
@interface MTBufferReader (TL)
- (bool)readTLString:(... |
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
+---------... |
/************************************************************************
myscriptsite.h/.cpp
The IActiveScriptSite implementation for internal script hosting.
Objects of this class essentially represent running hosted scripts.
They are double linked with the CSiteManager due to the need to share
info between objec... |
//////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by: Miguel Mo... |
#pragma once
#include <Manager.h>
#include <SFML/System/Clock.hpp>
#include <memory>
#include <imgui.h>
#include <imgui-SFML.h>
#include <SFML/Graphics.hpp>
class DeveloperModeManager : public Manager<DeveloperModeManager> {
friend class CRSP<DeveloperModeManager>;
private:
DeveloperModeManager();
~Devel... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2010 The University of Tennessee a... |
/**
* \file
*
* \brief AT30TSE75X Temperature Sensor Driver Quick Start
*
* Copyright (C) 2012-2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
#ifndef _vsop_h_
#define _vsop_h_
#ifdef __cplusplus
extern "C" {
#endif
double CalcSunEclipticLongitudeEC(double dt);
double CalcSunEclipticLatitudeEC(double dt);
double CalcSunEarthRadius(double dt);
#ifdef __cplusplus
}
#endif
#endif |
/*
U8g2Graphing - a simple graphing function for U8g2 library
Kampidh 2020
Licensed under MIT license
*/
#ifndef U8G2GRAPH_H
#define U8G2GRAPH_H
#include <Arduino.h>
#include <U8g2lib.h>
class U8g2Graphing
{
public:
U8g2Graphing(U8G2 *u8g);
~U8g2Graphing();
void begin(uint16_t fromx, uint16_t fr... |
#pragma once
#ifdef _WINDOWS //64位系统没有预定义 WIN32
#ifdef __cplusplus
#define DLL_EXPORT_C_DECL extern "C" __declspec(dllexport)
#else
#define DLL_EXPORT_DECL __declspec(dllexport)
#endif
#else
#ifdef __cplusplus
#define DLL_EXPORT_C_DECL extern "C"
#else
#define DLL_EXPORT_DECL extern
#endif
#endif
#ifdef _WINDOWS
#def... |
#ifndef IP_VIDEO_CP_M04_REGSLICE_0_SC_H_
#define IP_VIDEO_CP_M04_REGSLICE_0_SC_H_
// (c) Copyright 1995-2022 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property... |
// Copyright (c) 2019 PaddlePaddle 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... |
//
// ProgressViewController.h
// Copyright © 2016 Sequencing. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LocationViewController.h"
#import <SQFileSelectorProtocol.h>
#import "UIViewControllerWithVideoBackground.h"
@interface ProgressViewController : UIViewControllerWithVideoBackground <LocationView... |
#include "strkey.h"
#include <stdbool.h>
#include "stellarxdr.h"
#include "vendor/base32/base32.h"
#include "vendor/crc16/crc16.h"
bool encode_check(const uint8_t *in, char *out, uint8_t version_byte) {
uint8_t buffer[35];
buffer[0] = version_byte;
for (int i = 0; i < 32; i++) {
buffer[i + 1] = in[i];
}
... |
/*******************************************************************************
System Initialization File
File Name:
initialization.c
Summary:
This file contains source code necessary to initialize the system.
Description:
This file contains source code necessary to initialize the system. It
... |
/*
* File: sci/net/network.c
*
* Network sopport.
* Ring 0, kernel base.
*
* History:
* 2016 - Created by Fred Nora.
*/
// #
// The goal of this module is not to do any low level
// nic initialization.
// The goal here is to build a network manager support routines.
// So this way, the netw... |
/*
* Copyright (c) 2020-2020, Bluetrum Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-11-19 greedyhao first version
*/
/*
* NOTE: DO NOT include this file on the header file.
*/
#ifndef LOG_TAG
#define DBG_TAG ... |
//
// ViewController.h
// YYH_SceneKit_VR_01
//
// Created by 杨昱航 on 2017/7/4.
// Copyright © 2017年 杨昱航. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end |
// -*- C++ -*-
//=============================================================================
/**
* @file Thread_Hook.h
*
* $Id: Thread_Hook.h 1861 2011-08-31 16:18:08Z mesnierp $
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
//=============================================================================
... |
/* File automatically generated by Parser/asdl_c.py. */
#include <stddef.h>
#include "Python.h"
#include "Python-ast.h"
static PyTypeObject AST_type;
static PyTypeObject *mod_type;
static PyObject* ast2obj_mod(void*);
static PyTypeObject *Module_type;
_Py_IDENTIFIER(body);
_Py_IDENTIFIER(type_ignores);
static char *... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef LUCKYBLOCKCOIN_QT_TRANSACTIONRECORD_H
#define LUCKYBLOCKCOIN_QT_TRANSACTIONRECORD_H
#include "amount.h"
#include "ui... |
/*D***********************************************************
* Modul: DBI - database select
* Statuswerte
*
* Copyright: yafra.org, Switzerland
**************************************************************/
#include <mpmain.h>
#include <mpsqlsel.h>
#include <mpprodbi.h> /* Prototypes f�r ANSI-C ... |
/*
* Copyright (C) 2015 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WA... |
/**
* @file ui_config_mod.h
* @brief
* @author raiden00
* @date 2015-09-28
**/
/******************************************************************************
* project: UniSP
* chip: STM32F334x8
* compiler: arm-none-eabi-gcc
*
******************************************************************************/
#ifde... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2015 Google, Inc
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <mmc.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
#include "mmc_private.h"
int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
... |
/* mpfr_set_exp - set the exponent of a floating-point number
Copyright 2002-2004, 2006-2019 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms o... |
#include <Python.h>
static const Py_ssize_t EXPECTED_MASK_LEN = 4;
static PyObject *
fast_mask(PyObject *self, PyObject *args)
{
PyObject *input, *mask, *result;
Py_ssize_t input_len, mask_len, i = 0;
char *input_charmap, *result_charmap, *mask_charmap;
if(!PyArg_ParseTuple(args, "YY", &input, &m... |
//
// ZGListViewModel.h
// listDemo
//
// Created by mac on 2020/3/19.
// Copyright © 2020 mac. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ZGBaseDataSource.h"
#import <UIKit/UIKit.h>
#import "UICollectionView+ZGRegist.h"
#import "ZGBaseAdapt.h"
NS_ASSUME_NONNULL_BEGIN
@interface ZGListView... |
//
// CocosScrollView.h
// A UISCrollView imitator for Cocos2d
//
// Created by Levi on 5/25/13.
//
// The MIT License (MIT)
//
// Copyright (c) 2013 Levi Lansing, zephLabs.org
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentat... |
#include <stdio.h>
#include <stdlib.h>
#include <GL/glut.h>
#include "SubLiME.h"
/* B-spline data: knots, coefficients, degree */
/* number of control point & degree of the spline */
#define CPN 8
#define DEG 3
/* knots of a uniform bspline */
float knots[CPN+DEG+1] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ... |
/*
* 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 ... |
// Copyright 2013 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_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_
#define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_
#include "base/compiler_specific.h"... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Define if clock_gettime is available in libc */
/* #undef DNS_USE_CPU_CLOCK_FOR_ID */
/* Define is no secure id variant is available */
#define DNS_USE_GETTIMEOFDAY_FOR_ID 1
/* Define to 1 if... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// clang-format off
/*****************************************************************************/
#ifndef GTNODE
#error Define GTNODE before including this file.
#endif
/*********... |
#include "red_black_tree.h"
#include <assert.h>
/***********************************************************************/
/* FUNCTION: RBTreeCreate */
/**/
/* INPUTS: All the inputs are names of functions. CompFunc takes two */
/* void pointers to keys and returns 1 if the first arguement is */
/* "greater than... |
/*
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2016, Linaro Ltd.
* 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 2019 Google
*
* 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 in w... |
/*
* Copyright (c) 2016 Qosmos and/or its affiliates.
* 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 applicab... |
/* ###################################################################
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : Cpu.h
** Project : SOLINDAR
** Processor : MC9S08QE128CLK
** Component : MC9S08QE128_80
** Version : Component 01.003, Driver 0... |
//
// AutomaticViewController.h
// RZNotificationView
//
// Created by Marian Paul on 05/10/12.
// Copyright (c) 2012 Rezzza. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AutomaticViewController : UIViewController
- (IBAction)pushViewController:(id)sender;
- (IBAction)presentModalController:(id)sen... |
/*
* include/linux/omap_ion.h
*
* Copyright (C) 2011 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the h... |
/************************************************
unixsocket.c -
created at: Thu Mar 31 12:21:29 JST 1994
Copyright (C) 1993-2007 Yukihiro Matsumoto
************************************************/
#include "rubysocket.h"
#ifdef HAVE_SYS_UN_H
struct unixsock_arg {
struct sockaddr_un *sockaddr;
sock... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "UIButton.h"
#import "ShakeMgrExt.h"
@class MMWebImageView;
@interface ShakeMsgUnreadButton : UIButton <ShakeMgrExt>
{
MMWebImageView *oIconImageView;
}
- (void).cxx... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:22:55 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/Frameworks/Intents.framework/Intents
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
... |
#ifndef PROCESS_H
#define PROCESS_H
#include <string>
/*
Basic class for Process representation
It contains relevant attributes as shown below
*/
class Process {
public:
Process(int pid): pid_(pid){} // constructor
int Pid(); // TODO: See src/process.cpp
std::string User(); ... |
#pragma once
#include <cassert>
#include <cstdint>
#include <stdexcept>
#include "../../../md5.h"
#include "../../../saver.h"
namespace Nes {
enum class MirrorMode : uint8_t {
Horizontal,
Vertical,
OnescreenLo,
OnescreenHi,
FourScreen
};
class Mapper {
public:
std::vector<uint8_t> prg;
std::vector<uint8_t>... |
//
// CASToken.h
// Classy
//
// Created by Jonas Budelmann on 16/09/13.
// Copyright (c) 2013 cloudling. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, CASTokenType) {
CASTokenTypeUnknown,
CASTokenTypeIndent,
CASTokenTypeOutdent,
CASTokenTypeEOS,
CASToken... |
/* SPDX-License-Identifier: MIT */
#include <math.h>
#include <string.h>
#include <graphene.h>
#include <mutest.h>
static void
vectors_vec4_const (void)
{
const graphene_vec4_t *vec;
vec = graphene_vec4_zero ();
mutest_expect ("zero() vec4 to not be null",
mutest_pointer ((void *) vec),
... |
#ifndef NET_SNIFFER_H
#define NET_SNIFFER_H
#include <net/if.h>
#include "net/connection_list.h"
#include "net/packet_processor.h"
#include "net/internet/http/logger.h"
namespace net {
class sniffer {
public:
static const size_t kMinSize = 1024 * 1024;
static const size_t kMaxSize = 1024 * 1024 * 1024;
st... |
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... |
/** @file
DfciGlobalPrivate.h
Contains global macros and structures for DFCI
Copyright (c) 2018, Microsoft 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 cod... |
//
// IMCoreConstants.h
// InMobiSDK
//
// Copyright © 2018 InMobi. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef IMCoreConstants_h
#define IMCoreConstants_h
#define kIMEmptyStr @""
#define kIMMillisInSec 1000.0f
#pragma mark - Block Typedef Constants
typedef void (^ASCompletionBlock)(void);... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <wait.h>
#define InodeNum 1024//i节点数目
#define BlkNum (80*1024)//磁盘块的数目
#define BlkSize 1024//磁盘块大小为1K
#define BlkPerNode 1024//每个文件包含的最大的磁盘块数目
#define DISK "disk.txt"
#define BUFF "buff.txt... |
//
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2013 Project Chrono
// 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.
//
// Fil... |
/** @file
Implementation of the 6 PEI Ffs (FV) APIs in library form.
This code only knows about a FV if it has a EFI_HOB_TYPE_FV entry in the HOB list
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms a... |
#include "rio.h"
ssize_t rio_readn( int fd, void *buf, size_t n )
{
size_t nleft = n;
char *bufp = buf;
while( nleft > 0 )
{
ssize_t nread = read( fd, bufp, nleft );
// EOF
if( nread == 0 ) {
break;
}
if( nread == -1 )
{
if( er... |
// SoftEther VPN Source Code - Stable Edition Repository
// Cedar Communication Module
//
// SoftEther VPN Server, Client and Bridge are free software under the Apache License, Version 2.0.
//
// Copyright (c) Daiyuu Nobori.
// Copyright (c) SoftEther VPN Project, University of Tsukuba, Japan.
// Copyright (c) SoftEt... |
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#ifndef SAFE_RELEASE
# define SAFE_RELEASE(x) if( x != NULL ) { x->Release(); x = NULL; }
#endif |
/*-
* Copyright (c) 2012
* Ben Gray <bgray@freebsd.org>.
* 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,... |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "../Math/Vector.h"
#include "../Utility/UTFUtils.h"
#include <vector>
namespace RenderOverlays { namespace DebuggingDi... |
#ifndef PILLOW_BYTEARRAYHELPERS_H
#define PILLOW_BYTEARRAYHELPERS_H
#ifndef QBYTEARRAY_H
#include <QtCore/QByteArray>
#endif // QBYTEARRAY_H
#ifndef QSTRING_H
#include <QtCore/QString>
#endif // QSTRING_H
#ifndef QSTRINGBUILDER_H
#include <QtCore/QStringBuilder>
#endif // QSTRINGBUILDER_H
namespace Pillow
{
//
// P... |
//========================== Open Steamworks ================================
//
// This file is part of the Open Steamworks project. All individuals associated
// with this project do not claim ownership of the contents
//
// The code, comments, and all related files, projects, resources,
// redistributables includ... |
// compile
// gcc 3-return.c -o 3-return
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
void win()
{
printf("Congratulations, you win!!! You successfully changed the code flow\n");
}
int main(int argc, char **argv)
{
char buffer[64];
printf("You win this game if you are able ... |
//
// Author: Vladimir Novick , <vlad.novick@gmail.com>
//
// https://www.linkedin.com/in/vladimirnovick
//
// https://github.com/Vladimir-Novick/
//
// (c) 1996 - 2017, Vladimir Novick
//
// Purpose: Fast Data Compression
//
//*************************************... |
#ifndef tp_maps_PostBlitLayer_h
#define tp_maps_PostBlitLayer_h
#include "tp_maps/layers/PostLayer.h"
namespace tp_maps
{
//##################################################################################################
class TP_MAPS_SHARED_EXPORT PostBlitLayer: public PostLayer
{
public:
//####################... |
////////////////////////////////////////////////////////////////////////////////
// Pac-Man clone
//
// Copyright (c) 2021 Kwena Mashamaite (kwena.mashamaite1@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... |
/*==========================================================================
*
* Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
*
* File: dpnsvrservprov.h
* Content: DirectPlay8 DPNSVR service provider header file
*@@BEGIN_MSINTERNAL
* History:
* Date By Reason
* ==... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
/*
* wifi.h
*
* Created on: Dec 30, 2014
* Author: Minh
*/
#ifndef USER_WIFI_H_
#define USER_WIFI_H_
#include "os_type.h"
typedef enum{
HTTP_IDLE,
DEV_ACTIVE,
DEV_CANCELL,
DEV_OTA,
} HTTP_STAU;
extern HTTP_STAU httpStatus;
typedef void (*WifiCallback)(uint8_t);
void ICACHE_FLASH_ATTR WIFI_Connect(uin... |
/* file: algorithm_kernel.h */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* 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 Li... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_dest_struct_memcpy_61a.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_dest.label.xml
Template File: sources-sink-61a.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate using malloc(... |
//
// NTSlidingViewController.h
// NTSlidingViewController
//
// Created by nonstriater on 14-2-24.
// Copyright (c) 2014年 xiaoran. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^NTTransitionCompleteBlock)(NSUInteger from,NSUInteger to);
@interface NTSlidingViewController : UINavigationControlle... |
/*
* bootmem - A boot-time physical memory allocator and configurator
*
* Copyright (C) 1999 Ingo Molnar
* 1999 Kanoj Sarcar, SGI
* 2008 Johannes Weiner
*
* Access to this subsystem has to be serialized externally (which is true
* for the boot process anyway).
*/
#include <linux... |
/* Copyright (c) 2007-2008 CSIRO
Copyright (c) 2007-2009 Xiph.Org Foundation
Copyright (c) 2008 Gregory Maxwell
Written by Jean-Marc Valin and Gregory Maxwell */
/**
@file celt.h
@brief Contains all the functions for encoding and decoding audio
*/
/*
Redistribution and use in source and binary forms, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.