max_stars_repo_path stringlengths 4 186 | max_stars_repo_name stringlengths 7 73 | max_stars_count float64 0 14.7k | id stringlengths 5 7 | text stringlengths 10 753k | lang stringclasses 1
value |
|---|---|---|---|---|---|
include/Packets/UseItem.h | SometimesRain/realmnet | 10 | 1996608 | #pragma once
#include <Packets/Packet.h>
#include <DataObjects/SlotObject.h>
#include <DataObjects/Location.h>
#ifdef LIB
#define PACKET_API __declspec(dllexport)
#else
#define PACKET_API __declspec(dllimport)
#endif
class PACKET_API UseItem : public ClientPacket
{
public:
int time;
SlotObject slotObject;
Locatio... | c |
Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/LowLevelParticles/src/PtBatcher.h | windystrife/UnrealEngine_NVIDIAGameWork | 1 | 5594553 | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | c |
Common/MapGuideCommon/System/CryptographyManager.h | achilex/MgDev | 2 | 7202031 | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | c |
middleware/http/include/http/outbound/handle.h | casualcore/casual | 0 | 3322472 | //!
//! Copyright (c) 2021, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#pragma once
#include "http/outbound/state.h"
#include "common/message/dispatch.h"
#include "common/communication/ipc.h"
#include "common/functional.h"
namespace casual
{
... | c |
modified_rdkit/Code/DataStructs/FPBReader.h | hjuinj/RDKit_mETKDG | 3 | 1240743 | //
// Copyright (c) 2016 <NAME>
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <RDGeneral/export.h>
#ifndef RD_FPBREADER_H_DEC2015... | c |
src/fs/driver/fat/fatfs_subr.c | KutuevVladimir/embox | 1 | 8162692 | /**
* @file
* @brief
*
* @date 14.08.2012
* @author <NAME>
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <fs/fat.h>
#include <fs/node.h>
#include <fs/vfs.h>
#include <fs/hlpr_path.h>
int fat_check_filename(char *filename) {
char *point;
int len;
int extlen;
/* fi... | c |
src/syntax/AST/Null.h | pougetat/decacompiler | 0 | 852991 | #ifndef NULL_H
#define NULL_H
#include "AbstractLiteral.h"
#include "../../context/NullType.h"
class Null : public AbstractLiteral
{
public:
AbstractExpr * Clone();
void Display(string tab);
AbstractType * VerifyExpr(
EnvironmentType * env_types,
Environm... | c |
src/aimp_dotnet/SDK/FileManager/AimpFileInfo.h | Smartoteka/aimp_dotnet | 52 | 5180131 | // ----------------------------------------------------
// AIMP DotNet SDK
// Copyright (c) 2014 - 2020 <NAME>
// https://github.com/martin211/aimp_dotnet
// Mail: <EMAIL>
// ----------------------------------------------------
#pragma once
#include "SDK\AimpObject.h"
#include "SDK\ManagedAimpCore.h"
namespace AIMP {... | c |
external/bsd/less/dist/lsystem.c | calmsacibis995/minix | 0 | 940889 | /* $NetBSD: lsystem.c,v 1.4 2013/09/04 19:44:21 tron Exp $ */
/*
* Copyright (C) 1984-2012 <NAME>
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
*
* For more information, see the README file.
*/
/*
* Routines to execute... | c |
net/net_types.h | chands10/comdb2 | 1,133 | 5243327 | /*
Copyright 2020 <NAME>.
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 writing... | c |
Drivers/Metal/Shaders/PBR.h | nalexandru/NekoEngine | 8 | 2467589 | #ifndef PBR_h
#define PBR_h
#include <metal_stdlib>
using namespace metal;
#include "Light.h"
#include "Material.h"
#include "Tonemap.h"
#include "ShaderTypes.h"
#define PI 3.141592653589793
struct PBRArgs
{
constant struct ShaderArguments *shaderArgs;
float4 vertexColor;
float3 viewPosition;
float3 normal;
fl... | c |
libs/mavlink_skyward_lib/mavlink_lib/hermes/mavlink_msg_ada_tm.h | skyward-er/skyward-boardcore | 6 | 3071854 | #pragma once
// MESSAGE ADA_TM PACKING
#define MAVLINK_MSG_ID_ADA_TM 167
MAVPACKED(
typedef struct __mavlink_ada_tm_t {
uint64_t timestamp; /*< When was this logged*/
float target_dpl_altitude; /*< Target deployment altitude*/
float kalman_x0; /*< Kalman state variable 0 (pressure)*/
float kalman_x1; /*< Kalm... | c |
utils/ByteOrder.h | marcusspangenberg/SymphonyMediaBridge | 13 | 7924280 | #pragma once
#include <algorithm>
#include <arpa/inet.h>
#include <cstdint>
#include <cassert>
inline bool isBigEndian() noexcept
{
const uint32_t test = 1;
return reinterpret_cast<const char*>(&test) == 0;
}
template <typename T>
T hton(T value) noexcept
{
if (!isBigEndian())
{
char* ptr = re... | c |
src/RIOT/cpu/arm7_common/periph/pm.c | ARte-team/ARte | 2 | 5363342 | /*
* Copyright (C) 2017 Freie Universität Berlin
*
* 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.
*/
/**
* @ingroup cpu_arm7_common
* @ingroup drivers_periph_pm
* @{
*
* @file
* ... | c |
tools/testing/selftests/kvm/lib/kvm_util_internal.h | fergy/aplit_linux-5 | 0 | 2480945 | /*
* tools/testing/selftests/kvm/lib/kvm_util_internal.h
*
* Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/
#ifndef SELFTEST_KVM_UTIL_INTERNAL_H
#define SELFTEST_KVM_UTIL_INTERNAL_H
#include "sparsebit.h"
#define KVM_DEV_PATH "/dev/kvm"
#ifndef BITS_PE... | c |
coap_client/main.c | smartuni/Environ.me | 5 | 5036472 | /**
* @brief Small test client for the CoAP server in the sensor node.
*
* @author <NAME>
* @author <NAME>
*/
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include "thread.h"
#include "... | c |
src/q/boys.c | briling/aepm | 1 | 793276 | #include "common.h"
#include "boys.h"
/* <NAME>. Phys. 84, 3963 (1986) */
static inline double boys0(double z){
if(z<EPS1){
return 1.0;
}
double t = sqrt(z);
return 0.5 * SQRTPI / t * erf(t);
}
static inline double boys_next(double z, int n, double prev, double ez){
if(z<EPS1){
return 1.0/(2.0*n+1.... | c |
src/Graphics/IndexBuffer.h | NikiNatov/Minecraft_Clone | 0 | 6850683 | #pragma once
#include "Core\Base.h"
class IndexBuffer
{
public:
IndexBuffer(const uint32_t* data, uint32_t count);
~IndexBuffer();
void Bind();
void Unbind();
inline uint32_t GetCount() const { return m_Count; }
private:
uint32_t m_RendererID;
uint32_t m_Count;
}; | c |
uboot1.1.6/drivers/smc911x.h | tonghua209/samsun6410_linux_3_0_0_1_for_aws | 0 | 5242546 | /*
* SMSC LAN9[12]1[567] Network driver
*
* (c) 2007 Pengutronix, <NAME> <[EMAIL PROTECTED]>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published... | c |
zircon/system/uapp/mutex_pi_exerciser/tracer.h | opensource-assist/fuschia | 3 | 5768444 | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <fbl/macros.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <memory>
#include <stdio.h>
#includ... | c |
FangameReader/GlSizedTexture.h | TheBiob/DeadSplit | 3 | 2486787 | #pragma once
#include <Renderer.h>
namespace Fangame {
//////////////////////////////////////////////////////////////////////////
class CGlSizedTexture : public IImageRenderData {
public:
virtual TIntVector2 GetImageSize() const
{ return size; }
void SetImageSize( TIntVector2 newValue )
{ size = newValue; }
... | c |
OrderingS/CSTkMdDetailPanel.h | yihongmingfeng/OrderingS | 0 | 6544632 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "UIView.h"
@class BaseVc, NSObject<CSTkMdDetailPanelDelegate>, UILabel;
@interface CSTkMdDetailPanel : UIView
{
NSObject<CSTkMdDetailPanelDelegate> *_delegate;
BaseVc *_... | c |
aws-cpp-sdk-glue/include/aws/glue/model/GetResourcePoliciesResult.h | lintonv/aws-sdk-cpp | 1 | 1834735 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/GluePolicy.h>
#include <utilit... | c |
ports/samd/mpconfigport.h | 2d4d/ArduPy | 95 | 7602882 | #include <stdint.h>
#include "mpconfigcommon.h"
#include "mpconfigboard.h"
// fatfs configuration
#define MICROPY_PY_BUILTINS_COMPLEX (1)
#define MICROPY_HW_ENABLE_STORAGE (1)
#define MICROPY_HW_HAS_FLASH (1)
#define FILESYSTEM_BLOCK_SIZE (512)
#define MICROPY_FATFS_USE_LABEL (1)
#define MICROPY_FATFS_... | c |
GPIO_IRQ/r_glyph/src/glyph/config.h | AngeloDagostino/renesas | 1 | 6581807 | /*-------------------------------------------------------------------------*
* File: Config.h
*-------------------------------------------------------------------------*
* Description:
* Configuration file for The Generic API for Graphics LCD
* Glyph
*-----------------------------------------------------... | c |
tcr/include/tencentcloud/tcr/v20190924/model/DownloadHelmChartResponse.h | suluner/tencentcloud-sdk-cpp | 43 | 2239073 | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | c |
tests/CompileTests/OpenMP_tests/dynamicChunk.c | maurizioabba/rose | 488 | 734772 | #include <stdio.h>
#include <omp.h>
int foo (void)
{
double a[1000];
int i;
int n;
scanf("%d",&n);
#pragma omp for schedule(dynamic,50)
for (i=0;i<n;i++)
{
a[i]=(double)i/2.0;
}
printf("a[878]=%f\n",a[878]);
return 0;
} | c |
Sources/Extras/CoreAudio/PublicUtility/CACFDistributedNotification.h | nnanhthu/QuickomVC | 170 | 207478 | /*
File: CACFDistributedNotification.h
Abstract: Part of CoreAudio Utility Classes
Version: 1.1
*/
#if !defined(__CACFDistributedNotification_h__)
#define __CACFDistributedNotification_h__
//==================================================================================================
// Includes
//======... | c |
src/http_server_accept_and_handle_conn.h | ruuvi/esp32-wifi-manager | 4 | 7809955 | /**
* @file http_server_accept_and_handle_conn.h
* @author TheSomeMan
* @date 2021-11-20
* @copyright Ruuvi Innovations Ltd, license BSD-3-Clause.
*/
#ifndef HTTP_SERVER_ACCEPT_AND_HANDLE_CONN_H
#define HTTP_SERVER_ACCEPT_AND_HANDLE_CONN_H
#include "os_wrapper_types.h"
#include "lwip/api.h"
#ifdef __cplusplus
e... | c |
include/x86/up2.h | nazeer22/mraa | 3 | 8332230 | /*
* Author: <NAME> <<EMAIL>>
* Based on work from: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Copyright (c) 2017 Emutex Ltd.
* Copyright (c) 2014 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation fi... | c |
include/msvcrt/fenv.h | vitorhnn/wine | 3 | 4211428 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the Wine project.
*/
#ifndef _INC_FENV
#define _INC_FENV
#include <float.h>
#define FE_TONEAREST _RC_NEAR
#define FE_UPWARD _RC_UP
#define FE_DOWNWARD _RC_DOWN
#define FE_TOWARDZERO _RC_CHOP
#ifdef __c... | c |
backup/lib/my/includes/mylib.h | Exiels/APS | 0 | 891291 | /*
** EPITECH PROJECT, 2020
** mylib.h
** File description:
** mylib
*/
#ifndef MYLIB_H_
#define MYLIB_H_
//Defines:
#define RED "\x1B[31m"
#define GRN "\x1B[32m"
#define YEL "\x1B[33m"
#define BLU "\x1B[34m"
#define MAG "\x1B[35m"
#define CYN "\x1B[36m"
#define WHT "\x1B[37m"... | c |
ieee_sep/ActivePower.h | Tylores/ieee_sep | 0 | 4336862 | ///////////////////////////////////////////////////////////
// ActivePower.h
// Implementation of the Class ActivePower
// Created on: 13-Apr-2020 2:51:20 PM
// Original author: shu
///////////////////////////////////////////////////////////
#if !defined(EA_06C3C79D_7FFE_4cdf_B482_C7027093C61E__INCLUDED_)
#de... | c |
extern/blueMSX/Src/VideoRender/hq2x.h | twoinke/steckschwein-emulator | 2 | 7103903 | #ifndef HQ2X_H
#define HQ2X_H
void hq2x_init(void);
void hq2x_32(void* pSrc, void* pDest, int Xres, int Yres, int BpL);
#endif | c |
finite-volume/source/operators.h | agrippa/hpgmg-hiper | 1 | 2823315 | //------------------------------------------------------------------------------------------------------------------------------
// <NAME>
// <EMAIL>
// Lawrence Berkeley National Lab
//------------------------------------------------------------------------------------------------------------------------------
#ifndef... | c |
folly/container/Access.h | agenih/facebook | 2 | 519059 | /*
* Copyright 2017-present Facebook, 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 a... | c |
src/ui/Style/9Sprite.h | raptoravis/two | 578 | 4622966 | // Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#pragma once
#ifndef TWO_MODULES
#include <stl/span.h>
#endif
#include <ui/Forward.h>
#include <ui/F... | c |
include/jcu/transport/tls_transport.h | jc-lab/jcu-transport | 0 | 4358594 | /**
* @file tls_transport.h
* @author <NAME> <<EMAIL>>
* @date 2019/12/16
* @copyright Copyright (C) 2019 jc-lab.\n
* This software may be modified and distributed under the terms
* of the Apache License 2.0. See the LICENSE file for details.
*/
#ifndef __JCU_TRANSPORT_TLS_TRANSPORT_H__
#... | c |
module/sds/src/mod_sds.c | taotieren/SCP-firmware | 1 | 4083540 | /*
* Arm SCP/MCP Software
* Copyright (c) 2017-2018, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <fwk_assert.h>
#include <fwk_element.h>
#include <fwk_errno.h>
#include <fwk... | c |
steerlib/include/util/MemoryMapper.h | x-y-z/SteerSuite-CUDA | 1 | 3667506 | //
// Copyright (c) 2009-2010 <NAME>, <NAME>, <NAME>, <NAME>
// See license.txt for complete license.
//
#ifndef __UTIL_MEMORY_MAPPER_H__
#define __UTIL_MEMORY_MAPPER_H__
/// @file MemoryMapper.h
/// @brief Declares a platform-independent memory mapper for reading files.
#include "Globals.h"
namespace Util {
/**
... | c |
src/randomizer/text.h | RobertTheSable/reverseFE3 | 0 | 1295752 | #pragma once
class TextMap{
public:
TextMap(const char*);
int get_length(int);
private:
int cmd_lengths[255];
}; | c |
kronos_apps/ioserver/io_task.h | ecmwf/kronos | 4 | 1799487 | #ifndef io_task_H
#define io_task_H
#include "common/json.h"
#include "common/network/message.h"
#include "ioserver/io_data.h"
#define MAX_WRITE_SIZE 1048576
/*
* generic functor for an iotask
*/
typedef struct IOTaskFunctor {
/* input-data needed by this task */
void* data;
/*
* execute the ta... | c |
src/sha/sha_sample.c | umedoblock/fugou | 0 | 8292963 | #include "sha.h"
typedef unsigned char uchar;
void validation_hex(sha1sum_t *sha1sum, char *expected_hex, char *message)
{
char hex[80];
sha1_get_hex(hex, sha1sum);
fprintf(stdout, "%s\n", message);
if (strcmp(expected_hex, hex) == 0) {
fprintf(stdout, "correct\n");
}
else {
f... | c |
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/MFFunnyImageRpc.h | ceekay1991/AliPayForDebug | 5 | 7479377 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@interface MFFunnyImageRpc : NSObject
{
}
- (void)imageSent:(id)arg1;
- (id)imageTrending:(id)arg1;
- (id)imageSe... | c |
JieBanApp/src/Chat/Chat/Chat/Controllers/GroupChat/RXGroupAdminsViewController.h | splsylp/RXDemo | 0 | 8038941 | //
// RXGroupAdminsViewController.h
// Chat
//
// Created by apple on 2019/11/19.
// Copyright © 2019 ronglian. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface RXGroupAdminsViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END | c |
include/AD/rewrite/burs2.h | AaronNGray/prop-cc-new | 1 | 3667052 | //////////////////////////////////////////////////////////////////////////////
// NOTICE:
//
// ADLib, Prop and their related set of tools and documentation are in the
// public domain. The author(s) of this software reserve no copyrights on
// the source code and any code generated using the tools. You are encourag... | c |
paddle/fluid/framework/op_desc.h | zmxdream/Paddle | 2 | 5039841 | /* Copyright (c) 2016 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 by applicable law or agr... | c |
GoogleWifi Headers/JETEditClientStaticIPListViewController.h | LemaMichael/BetterGoogleWifi | 1 | 4826589 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import "JETGroupAwareCollectionViewController.h"
#import "GOONavigationCustomization-Protocol.h"
@class GOONavigationStyle, JETInsightsDat... | c |
src/sys/contrib/octeon-sdk/cvmx-raid.h | lastweek/source-freebsd | 0 | 7621941 | /***********************license start***************
* Copyright (c) 2003-2010 Cavium Inc. (<EMAIL>). 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 sourc... | c |
Archived/v1/WCDistractionFreeXcodePlugin/Headers/Frameworks/IDEKit/IDEAccountPrefsDeveloperAccountDetailViewController.h | wokalski/Distraction-Free-Xcode-plugin | 25 | 1082498 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import <IDEKit/IDEViewController.h>
@class DVTBorderedView, DVTDeveloperRecord, DVTObservingToken, IDERollOverTableView, NSArrayController, NSError, NSImageView, NSPredicate, NSSet;
@i... | c |
include/slos.h | rcslab/aurora | 10 | 6544709 | #ifndef _SLOS_H_
#define _SLOS_H_
#include <sys/param.h>
#include <sys/condvar.h>
#include <sys/kernel.h>
#include <sys/limits.h>
#include <sys/lock.h>
#include <sys/lockmgr.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
#include <sys/uuid.h>
#include <vm/vm.h>
#include <vm/uma.h>
#include <vm/vm_object.h>
/* Max... | c |
DesktopTime/DTILayoutController/DTILayoutController.h | newmarcel/DesktopTime | 14 | 207646 | //
// DTILayoutController.h
// DesktopTime
//
// Created by <NAME> on 05.02.21.
//
#import <Cocoa/Cocoa.h>
#import <DesktopTimeKit/DesktopTimeKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface DTILayoutController : NSObject
@property (nonatomic, readonly, nullable) DTILayout *currentLayout;
- (void)reloadLayout;
- (void... | c |
WWPageView/WWPageView.h | WadeWangTW/WWPageView | 0 | 155241 | //
// WWPageView.h
// WWPageView
//
// Created by <NAME> on 2016/4/26.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, WWPageViewResourceType){
WWPageViewResourceTypeImageURL,
WWPageViewResourceTypeImage
};
@class WWPageView;
@protocol WWPageViewDat... | c |
src/ngx_http_graphite_allocator.h | sorc1/graphite-nginx-module | 132 | 8130037 | #ifndef _NGX_HTTP_GRAPHITE_ALLOCATOR_H_INCLUDED_
#define _NGX_HTTP_GRAPHITE_ALLOCATOR_H_INCLUDED_
#include <nginx.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct ngx_http_graphite_allocator_s {
void *pool;
void *(*alloc)(void *pool, size_t size);
void (*free)(void *po... | c |
src/midi.h | mnyrenius/old-sid | 0 | 3220338 | #ifndef _MIDI_HANDLER_H
#define _MIDI_HANDLER_H
#include <stdint.h>
#include "uart.h"
#include <avr/io.h>
template<class TCallback>
class Midi
{
public:
Midi (Uart & serial)
: _serial (serial)
, _running_status (0)
, _expected (0)
, _data_index (0)
, _running (0)
, _clk_coun... | c |
linux-3.16/drivers/staging/unisys/common-spar/include/vmcallinterface.h | jj1232727/system_call | 0 | 2906842 | /* Copyright (C) 2010 - 2013 UNISYS CORPORATION
* All rights reserved.
*
* 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 version 2 of the License, or (at
* your option) any later ve... | c |
nm/shared/adm/adm.h | bonedaddy/ion-dtn | 2 | 568787 | /******************************************************************************
** COPYRIGHT NOTICE
** (c) 2011 The Johns Hopkins University Applied Physics Laboratory
** All rights reserved.
*********************************************************************... | c |
platform/http2_platform_impl/http2_flag_utils_impl.h | MacroLau/quiche | 102 | 5153026 | #pragma once
#include "gquiche/common/platform/api/quiche_flag_utils.h"
#define HTTP2_RELOADABLE_FLAG_COUNT_IMPL
#define HTTP2_RELOADABLE_FLAG_COUNT_N_IMPL
#define HTTP2_RESTART_FLAG_COUNT_IMPL
#define HTTP2_RESTART_FLAG_COUNT_N_IMPL
#define HTTP2_CODE_COUNT_IMPL
#define HTTP2_CODE_COUNT_N_IMPL(x,y,z) | c |
Source/Classes/Network/xChainNetworkOperation.h | jinsikui/xAPI | 0 | 4678154 | #import "xNetworkAsyncOperation.h"
#import "xNetwork.h"
@protocol xChainRequestable <xRequestConvertable>
/**
收到了上一个网络请求的完成回调,在这里决定是否要继续进行下一个网络请求
*/
- (BOOL)shouldStartNextWithResponse:(xNetworkResponse *)response error:(NSError **)error;
@end
@interface xChainNetworkOperation : xNetworkAsyncOperation
/**
同一个... | c |
LhkhBaseProject/Lhkh_Base/Services/CacheManager/LhkhCacheManager.h | WeaponChan/LhkhiOSProject | 0 | 3184471 | //
// LhkhCacheManager.h
// Lhkh_Base
//
// Created by <NAME> on 2017/11/22.
// Copyright © 2017 LHKH. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void(^clearCacheBlock)(void);
NS_ASSUME_NONNULL_BEGIN
@interface LhkhCacheManager : NSObject
//计算单个文件大小
+ (CGFloat)fileSizeAtPath:(NSString *)pat... | c |
pyopencl/gesture_acc_weights.h | hishamelreedy/innovatefpga-GestureRecognitionAccelerator | 0 | 4252529 | //Layer1 Weights
float layer1_weight[] = {
-0.010940313f,0.059698507f,-0.058079444f,0.010673408f,-0.06716302f,
0.011943808f,-0.014513969f,-0.025932062f,0.016381063f,0.034043867f,
0.009506679f,0.12959068f,-0.0022887508f,-0.020175572f,0.08357144f,
-0.05651833f,-0.0044720164f,0.016115043f,-0.043555144f,-0.048870303f,
0.0... | c |
dataset/source/SARD/SARD-1/1889/path_basic_bad.c | kppw99/enVAS | 0 | 4864045 | /* This software was developed at the National Institute of Standards and
* Technology by employees of the Federal Government in the course of their
* official duties. Pursuant to title 17 Section 105 of the United States
* Code this software is not subject to copyright protection and is in the
* public domain. NIS... | c |
miredu-vamp/src/TemporalCentroid.h | jaouahbi/VampPlugins | 0 | 4571429 | /**
* @file TemporalCentroid.h
* @author <NAME> <<EMAIL>>
* @version 1.0
*
* @section LICENSE
*
* MIR.EDU
*
* A vamp plug-in library for teaching MIR.
* Copyright (C) 2013-2014 <NAME>.
*
* MIR.EDU is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | c |
src/rendering/nodes/RTDiffuseGINode.h | Shimmen/ArkoseRenderer | 7 | 7441819 | #pragma once
#include "rendering/RenderPipelineNode.h"
#include "RTData.h"
#include "rendering/scene/Model.h"
#include "rendering/scene/Scene.h"
class RTDiffuseGINode final : public RenderPipelineNode {
public:
explicit RTDiffuseGINode(Scene&);
~RTDiffuseGINode() override = default;
std::string name() co... | c |
TJCTM24024-SPI/ILI9341_fonts-master/font_LiberationMonoItalic.c | rzzzwilson/teensy | 0 | 3406352 | #include "font_LiberationMonoItalic.h"
static const unsigned char LiberationMono_8_Italic_data[] = {
0x00,0x00,0x70,0x09,0xD0,0x79,0x62,0x08,0x14,0xCA,
0xF8,0x4A,0x40,0x19,0xC0,0x70,0xA2,0x9F,0x9C,0x7E,
0x51,0x40,0x1E,0x47,0xF0,0x41,0xE2,0x52,0x81,0xC0,
0xA5,0x23,0xC1,0x00,0x1D,0xC0,0x72,0x15,0x22,0x40,
0x81,0x22,0x54... | c |
examples/side-effects/doWhile.c | MateusAraujoBorges/abc | 0 | 2492855 | int f(int i){
return i>0;
}
int main(){
int sum=0, i=10;
do{
sum += i--;
}while(f(i));
i=10;
sum=0;
do{
sum += i;
}while(--i);
i=10;
sum=0;
do{
sum += i;
}while(i--);
} | c |
deps/webrtc/include/third_party/WebKit/Source/core/animation/FontWeightConversion.h | QueenConch/quick_start_webrtc_native | 2 | 5180560 | // 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 FontWeightConversion_h
#define FontWeightConversion_h
#include "platform/fonts/FontSelectionTypes.h"
namespace blink {
FontSelectionValue Doubl... | c |
importer/chrome_importer_utils.h | wedataintelligence/vivaldi-source | 0 | 1773520 | // Copyright (c) 2013 Vivaldi Technologies AS. All rights reserved
#ifndef VIVALDI_IMPORTER_CHROME_IMPORTER_UTILS_H_
#define VIVALDI_IMPORTER_CHROME_IMPORTER_UTILS_H_
base::FilePath GetProfileDir(importer::ImporterType importerType);
#endif // VIVALDI_IMPORTER_CHROME_IMPORTER_UTILS_H_ | c |
src/protocol/admin/parse.c | wandaitzuchen/pelikan | 1,080 | 5938326 | #include "parse.h"
#include "request.h"
#include <buffer/cc_buf.h>
#include <cc_debug.h>
#include <ctype.h>
static inline bool
_is_crlf(struct buf *buf, char *p)
{
if (*p != CR || buf->wpos == p + 1) {
return false;
}
if (*(p + 1) == LF) {
return true;
}
return false;
}
static... | c |
firmware/rotary_encoder/RotaryEncOverMCP.h | klintan/ros2_rotary_encoder | 0 | 4803660 | /*
* RotaryEncOverMCP.h
*
* Created on: 21.05.2018
* Author: Maxi
*/
#ifndef SRC_ROTARYENCOVERMCP_H_
#define SRC_ROTARYENCOVERMCP_H_
/* Describes new objects based on the Rotary and Adafruit MCP23017 library */
#include <Adafruit_MCP23017.h>
#include <Rotary.h>
/* function pointer definition */
typedef vo... | c |
src/sensesp_base_app.h | gregsyoung/SensESP | 0 | 2807488 | #ifndef _sensesp_base_app_H_
#define _sensesp_base_app_H_
// Required for RemoteDebug
#define USE_LIB_WEBSOCKET true
#include "sensesp.h"
#include "sensesp/net/debug_output.h"
#include "sensesp/system/filesystem.h"
#include "sensesp/system/observablevalue.h"
namespace sensesp {
constexpr auto kDefaultHostname = "Se... | c |
include/summy/cfg/jd_manager.h | gdslang/summy | 0 | 278118 | /*
* jd_manager.h
*
* Created on: Apr 10, 2015
* Author: <NAME>
*/
/*
* Manage the diretion (forward or backward) of jumps
*/
#pragma once
#include <summy/analysis/addr_machine/addr_machine.h>
#include <summy/analysis/fixpoint.h>
#include <summy/cfg/edge/edge.h>
#include "cfg.h"
#include <summy/cfg/obser... | c |
src/lib/ewl_events.h | OpenInkpot/attic-ewl | 0 | 7280046 | /* vim: set sw=8 ts=8 sts=8 expandtab: */
#ifndef EWL_EVENTS_H
#define EWL_EVENTS_H
/**
* @addtogroup Ewl_Events Ewl_Events: Lower Level Event Handlers
* @brief Defines the routines that dispatch the lower level events to EWL.
*
* @{
*/
/**
* @def EWL_EVENT_WINDOW_EXPOSE(e)
* Typedcasts a pointer to an Ewl_Eve... | c |
Include/Asset/ImportOptions.h | MrFrenik/Enjon | 121 | 1048511 | // @file ImportOptions.h
// Copyright 2016-2018 <NAME>. All Rights Reserved.
#pragma once
#ifndef ENJON_IMPORT_OPTIONS_H
#define ENJON_IMPORT_OPTIONS_H
#include "Base/Object.h"
#include "System/Types.h"
#include "Defines.h"
namespace Enjon
{
class AssetLoader;
struct AssetStringInformation
{
String mQualified... | c |
lib/label/NoteGroup.h | GloomyGrave/Sinsy-NG | 2 | 1273373 | /* Created by <NAME> on 2018/11/8. */
#ifndef SINSY_NOTE_GROUP_H_
#define SINSY_NOTE_GROUP_H_
#include "util_types.h"
#include "LabelPosition.h"
namespace sinsy
{
class NoteGroup
{
public:
//! constructor
NoteGroup();
//! destructor
virtual ~NoteGroup();
//! add position
void addPosition(const L... | c |
src/service_stats.h | dgtlmoon/deepdetect | 914 | 2933997 | /**
* DeepDetect
* Copyright (c) 2020 Jolibrain
* Author: <NAME> <<EMAIL>>
*
* This file is part of deepdetect.
*
* deepdetect 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 3 o... | c |
examples/dsp/FilteringFunction_NLMSPart/main.c | HuakeZhBo/bl_mcu_sdk | 93 | 6251511 | //
// Created by lujun on 19-6-28.
//
// This contains fir, iir and lms filters
// each one has it's own function.
// All function can be found in main function.
// If you don't want to use it, then comment it.
//
// This part only tests result after 50 dots.If you want to test results' all
// dots, please define WITH... | c |
regression/ansi-c/Struct_Padding2/main.c | dan-blank/yogar-cbmc | 16 | 6816627 | #define STATIC_ASSERT(condition) \
int some_array##__LINE__[(condition) ? 1 : -1]
enum {
RTAX_UNSPEC,
RTAX_LOCK,
RTAX_MTU,
RTAX_WINDOW,
RTAX_RTT,
RTAX_RTTVAR,
RTAX_SSTHRESH,
RTAX_CWND,
RTAX_ADVMSS,
RTAX_REORDERING,
RTAX_HOPLIMIT,
RTAX_INITCWND,
RTAX_FEATURES,
RTAX_RTO_MIN,
RTAX_INITRWND,
__RTAX_MAX
}... | c |
src/tool/hpcrun/lush-agents/agent-cilk.c | ParCoreLab/HPCToolKit | 1 | 8039153 | // -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research an... | c |
bonus/init_bonus.c | haytham10/So_Long | 0 | 7202188 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* init_bonus.c :+: :+: :+: ... | c |
Tools/VisualStudioSDK/2013.RTM/VisualStudioIntegration/Common/Source/CPP/VSL/MockInterfaces/VSLMockIVsCanCoordinatorClipTextSpan.h | sarvex/StyleCop | 0 | 1264760 | /***************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
This code is licensed under the Visual Studio SDK license terms.
THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTIES... | c |
apps/playlist.h | Rockbox-Chinese-Community/Rockbox-RCC | 24 | 596716 | /***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... | c |
Silicon/TigerlakePchPkg/Library/BasePchPciBdfLib/PchPciBdfLib.c | kokweich/slimbootloader | 1 | 1760698 | /** @file
PCH PCIe Bus Device Function Library.
All functions from this library are available in PEI, DXE, and SMM,
But do not support UEFI RUNTIME environment call.
Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#inc... | c |
lesson8_3存储块的删除和状态查询/sourse/t_event.c | xupenghu/learning_tinyOS | 11 | 8156728 | #include "tinyOS.h"
/**********************************************************************************************************
** Function name : tEventInit
** Descriptions : 初始化事件控制块
** parameters : event 事件控制块
** parameters : type 事件控制块的类型
** Returned value : 无
*... | c |
src/opcodes.h | yorickdewid/Lavril | 0 | 5339167 | #ifndef _OPCODES_H_
#define _OPCODES_H_
#define MAX_FUNC_STACKSIZE 0xFF
#define MAX_LITERALS ((LVInteger)0x7FFFFFFF)
enum BitWiseOP {
BW_AND = 0,
BW_OR = 2,
BW_XOR = 3,
BW_SHIFTL = 4,
BW_SHIFTR = 5,
BW_USHIFTR = 6
};
enum CmpOP {
CMP_G = 0,
CMP_GE = 2,
CMP_L = 3,
CMP_LE = 4,
CMP_3W = 5
};
enum NewObjectT... | c |
Upper_1/Classes/Controller/UPRegisterSecondController.h | AmazingFM/UpperPS | 0 | 155106 | //
// UPRegisterSecondController.h
// Upper
//
// Created by 张永明 on 2017/10/31.
// Copyright © 2017年 <EMAIL>. All rights reserved.
//
#import "UPBaseViewController.h"
@interface UPRegisterSecondController : UPBaseViewController
@property (nonatomic, retain) NSString *cityId;
@property (nonatomic, retain) NSStrin... | c |
src/BL2SDK/BL2SDK.h | McSimp/Borderlands2SDK | 4 | 3122919 | #ifndef BL2SDK_H
#define BL2SDK_H
#include "GameSDK/GameSDK.h"
#include "BL2SDK/Settings.h"
#include "LuaInterface/CLuaInterface.h"
#include <string>
namespace BL2SDK
{
typedef void (__thiscall *tProcessEvent) (UObject*, UFunction*, void*, void*);
//typedef int (tUnrealEH) (unsigned int, struct _EXCEPTION_POINTERS... | c |
neural_network/shared_workspace_memory.h | BalderOdinson/Transprecision-Floating-Point | 0 | 3071503 | #pragma once
#include "layer.h"
namespace transprecision_floating_point
{
struct shared_workspace_memory
{
static size_t workspace_size;
static workspace_memory memory;
static void release();
};
size_t shared_workspace_memory::workspace_size = 0;
workspace_memory shared_workspace_memory::memory = nullptr;
... | c |
custom/common/kernel/accelerometer/lis3de/lis3de.h | touxiong88/92_mediatek | 1 | 8293202 | /* linux/drivers/hwmon/LIS3DH.c
*
* (C) Copyright 2008
* MediaTek <www.mediatek.com>
*
* LIS3DH driver for MT6516
*
* 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 version 2 of ... | c |
W03/in_lab/CRA_Account.h | ariaav/OOP244 | 0 | 6997450 | /**********************************************************
// Workshop 3: Classes and Privacy
// Date 2018-05-30
// Author <NAME>
//
// Revision History
**********************************************************/
#ifndef SICT_CRA_ACCOUNT_H
#define SICT_CRA_ACCOUNT_H
#include <iostream>
#include <cstring>
using nam... | c |
sresearch.h | maysincerity/Scientific-Research-Management-System | 0 | 7091308 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <windows.h>
#include <wincon.h>
#include <conio.h>
#include <ctype.h>
#include <time.h>
#include <fcntl.h>
#include <sys\stat.h>
#define SCR_ROW 25 /*屏幕行数*/
#define SCR_COL 80 /*屏幕列数*/
/* 信息节点结构 ... | c |
libtask/task_atomic_x86_64.c | zhuguangxiang/koala-lang-pre | 0 | 4266622 | int atomic_set(int *loc, int value)
{
int result = value;
__asm__ __volatile__ (
"lock xchg %1, %0"
:"+r" (result), "+m" (*loc)
: /* no input-only operands */
);
return result;
}
void *atomic_set_pointer(void **loc, void *ptr)
{
void* result = ptr;
__asm__ __volatile__ (
"lock xchg %1, %0"
... | c |
CreditSalesman/Classes/Main/Controller/UIView+CLKeyboardOffsetView.h | Cyynet/CreditSalesman | 0 | 215702 | //
// UIView+CLKeyboardOffsetView.h
// CLKeyboardOffsetView
//
// Created by 李辉 on 15/12/23.
// Copyright © 2015年 李辉. All rights reserved.
// https://github.com/changelee82/CLKeyboardOffsetView
//
#import <UIKit/UIKit.h>
/**
* 键盘补偿视图协议
*/
@protocol CLKeyboardOffsetViewDelegate <NSObject>
/**
* 弹出键盘时,自定义视图... | c |
libc/utils/FPUtil/FloatProperties.h | kastiglione/llvm-project | 1 | 6748031 | //===-- Properties of floating point numbers --------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | c |
MFC Demo/AliRTCSdk/include/AliVideoDataConvert.h | yhang/AliRtcAppSample_Windows | 0 | 6069661 | #ifndef _ALI_VIDEO_DATA_CONVERTH_
#define _ALI_VIDEO_DATA_CONVERTH_
#include "AliRtcEngine.h"
typedef enum {
AliRtcConvertVideoFormatUnknow,
AliRtcConvertVideoFormatI420,
AliRtcConvertVideoFormatABGR,
}AliRtcConvertVideoFormat;
typedef struct tagAliConvertVideoFrame {
AliRtcConvertVideoFormat format = AliRtcC... | c |
gtk/src/rbgdkwindow.c | pkorenev/ruby-gnome2 | 2 | 988181 | /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/************************************************
rbgdkwindow.c -
$Author: ggc $
$Date: 2007/07/13 16:07:31 $
Copyright (C) 2002-2006 Ruby-GNOME2 Project Team
Copyright (C) 1998-2000 <NAME>,
<NAME>,
... | c |
ui_userwindow.h | Tandaradei/haushalt | 0 | 464572 | /********************************************************************************
** Form generated from reading UI file 'userwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.4.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... | c |
include/couch/serviceinterface.h | jimmypoms/couch | 0 | 3626170 | #include "../../src/core/model/serviceinterface.h" | c |
c10/core/GradMode.h | deltabravozulu/pytorch | 1 | 5520857 | #pragma once
#include <c10/macros/Macros.h>
namespace c10 {
struct TORCH_API GradMode {
static bool is_enabled();
static void set_enabled(bool enabled);
};
// A RAII, thread local (!) guard that enables or disables grad mode upon
// construction, and sets it back to the original value upon destruction.
struct T... | c |
Source/FSD/Public/WeeklyTimerCampaignRequirement.h | Dr-Turtle/DRG_ModPresetManager | 8 | 1768452 | #pragma once
#include "CoreMinimal.h"
#include "CampaignRequirement.h"
#include "UObject/NoExportTypes.h"
#include "WeeklyTimerCampaignRequirement.generated.h"
class AFSDPlayerController;
class UCampaign;
UCLASS(EditInlineNew)
class UWeeklyTimerCampaignRequirement : public UCampaignRequirement {
GENERATED_BODY()
... | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.