max_stars_repo_path
stringlengths
3
173
max_stars_repo_name
stringlengths
5
75
max_stars_count
float64
0
191k
id
stringlengths
5
7
text
stringlengths
19
518k
lang
stringclasses
1 value
ios/chrome/browser/crash_report/crash_report_helper.h
sarang-apps/darshan_browser
5
6072657
// Copyright 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 IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_HELPER_H_ #define IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_REPORT_HELPER_H_ @class NSString; class Bre...
c
base/deps/mimalloc/mimalloc-new-delete.h
dimhotepus/whitebox
1
3145226
// Copyright (c) 2021 The WhiteBox Authors. All rights reserved. // Use of this source code is governed by a 3-Clause BSD license that can be // found in the LICENSE file. // // Mimalloc new/delete overrides. #ifndef WB_BASE_DEPS_MIMALLOC_MIMALLOC_NEW_DELETE_H_ #define WB_BASE_DEPS_MIMALLOC_MIMALLOC_NEW_DELETE_H_ #i...
c
drivers/misc/mediatek/imgsensor/src/mt6735/ar1335_mipi_raw/ar1335_otp.c
sumit44840/kernel_3.18_coolpad_CP8298_I00_CP8676_I02
0
7450083
/* * Driver for CAM_CAL * * */ #include <linux/module.h> #include <linux/videodev2.h> #include <linux/i2c.h> #include <linux/platform_device.h> #include <linux/delay.h> #include <linux/cdev.h> #include <linux/uaccess.h> #include <linux/fs.h> #include <asm/atomic.h> #include <linux/slab.h> #include "kd_camera_hw.h...
c
iPhoneClient/TMQuiltView.h
fielddaylab/sifter-ios
1
6078581
// // TMQuiltView.h // TMQuiltView // // Created by <NAME> on 7/20/12. // // Copyright (c) 2012 1000memories // 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, includ...
c
linux-2.6.0/drivers/acpi/executer/exoparg1.c
dnhua/Linux_study
1
8211687
/****************************************************************************** * * Module Name: exoparg1 - AML execution - opcodes with 1 argument * *****************************************************************************/ /* * Copyright (C) 2000 - 2003, <NAME> * All rights reserved. * * Redistribution a...
c
examples/HelloFusePP.h
vuanhduy/libfusepp
0
4841587
// MIT License // // Copyright (c) 2020 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merg...
c
include/gb_timer.h
connnnor/GBcon
1
4753118
#pragma once #include <iostream> #include <iomanip> #include <unistd.h> #include "gbcon.h" using namespace std; class Timer { public: unsigned char div = 0; // increments at 16.384kHz unsigned char tima = 0; // increments at TAC rate unsigned char tma = 0; // tma->tima when (tima++) > 0xFF unsigned char tac...
c
nitan/kungfu/class/tangmen/tangfang.c
cantona/NT6
1
7494940
// tangfang.c 唐方 #include <ansi.h> #include "tangmen.h" string ask_me(); int carry_qian(); inherit NPC; inherit F_MASTER; void create() { set_name("唐方", ({ "<NAME>", "tang" })); set("long", "唐方身材嬌小,長的極為清秀,又帶幾分英氣,清勁多於柔弱。\n" "她是唐門長房宗主唐堯舜之女,唐大之妹,後又得唐老太太親授衣缽,在唐門地位頗高。\n" "她面容蒼白,神情憔悴,清麗的面龐彷彿還帶着淚痕。\n"); ...
c
src/OSSupport/WinStackWalker.h
wbrbr/MCServer
4,126
39706
// WinStackWalker.h // Declares the stack walking for Windows binaries /* LICENSE (https://www.opensource.org/licenses/bsd-license.php) Copyright (c) 2005-2010, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following cond...
c
libunix/find-ttyusb.c
shanekadish/cs140e-21spr
0
7505400
// engler, cs140e: your code to find the tty-usb device on your laptop. #include <assert.h> #include <fcntl.h> #include <string.h> #include "libunix.h" #define _SVID_SOURCE #include <dirent.h> static const char *ttyusb_prefixes[] = { "ttyUSB", // linux "cu.usbserial", // mac os // if your system uses another na...
c
src/mono_touch_system.h
ibhelmer/TcpServerSocket
0
6972080
// This software is part of OpenMono, see http://developer.openmono.com // Released under the MIT license, see LICENSE.txt #ifndef mono_touch_system_h #define mono_touch_system_h #include <touch_system_interface.h> #include "power_aware_interface.h" extern "C" { #include <project.h> } namespace mono { clas...
c
vtkm/cont/cuda/internal/ThrustExceptionHandler.h
yisyuanliou/VTK-m
14
8050349
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
c
cprojectwidget.h
Timohan/prjeditor
0
1523735
#ifndef CPROJECTWIDGET_H #define CPROJECTWIDGET_H #include <QWidget> class CButton; class QLabel; class CProjectListWidget; class CMainWindow; class CDialogRunPrgram; class QSettings; class CProjectWidget : public QWidget { Q_OBJECT public: /** * @brief CProjectWidget * @param parent * @param s...
c
SimVascular-master/Code/Source/sv4gui/Modules/Model/Common/sv4gui_ModelElement.h
mccsssk2/SimVascularPM3_March2020
0
4843374
/* Copyright (c) Stanford University, The Regents of the University of * California, and others. * * All Rights Reserved. * * See Copyright-SimVascular.txt for additional details. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated doc...
c
src/serialization/avro_generic_deserializer_fwd.h
raytheonbbn/tc-ta3-api-bindings-cpp
0
6412567
// Copyright (c) 2020 <NAME>. // See LICENSE.txt for details. #ifndef TC_SERIALIZAION_AVRO_GENERIC_DESERIALIZER_FWD_H_ #define TC_SERIALIZAION_AVRO_GENERIC_DESERIALIZER_FWD_H_ namespace tc_serialization { template<class T> class AvroGenericDeserializer; } // namespace tc_serialization #endif // TC_SERIALIZAION_A...
c
enclave-driver/penglai-enclave-elfloader.c
Penglai-Enclave/Penglai-sdk-TVM
1
6816250
#include "penglai-enclave-elfloader.h" #include "penglai-enclave-driver.h" int penglai_enclave_load_NOBITS_section(enclave_mem_t* enclave_mem, void * elf_sect_addr, int elf_sect_size) { vaddr_t addr, enclave_new_page; int size; for(addr = (vaddr_t)elf_sect_addr; addr < (vaddr_t)elf_sect_addr + elf_sect_size; ad...
c
src/rio.c
emilpetkov/redis
1
6345518
#include <string.h> #include "rio.h" #include "util.h" /* Returns 1 or 0 for success/failure. */ static size_t rioBufferWrite(rio *r, const void *buf, size_t len) { r->io.buffer.ptr = sdscatlen(r->io.buffer.ptr,(char*)buf,len); r->io.buffer.pos += len; return 1; } /* Returns 1 or 0 for success/failure. */...
c
include/mlk/time/timer.h
Malekblubb/mlk
0
5227548
// // Copyright (c) 2013-2017 <NAME> // See LICENSE for more information. // #ifndef MLK_TIME_TIMER_H #define MLK_TIME_TIMER_H #include "time_utl.h" #include <mlk/signals_slots/signals_slots.h> #include <mlk/types/types.h> #include <future> #include <iostream> namespace mlk { namespace tm { class timer { u...
c
fmivisbase/ParamVisualizer2D.h
fmidev/smartmet-workstation-vtk
0
302394
#ifndef PARAMVISUALIZER2D_H #define PARAMVISUALIZER2D_H #include <memory> #include <vtkSmartPointer.h> #include "ParamVisualizerBase.h" class vtkPolyDataMapper; class vtkProbeFilter; class vtkContourFilter; class vtkColorTransferFunction; class vtkStripper; class vtkActor; class vtkAlgorithmOutput; namespace fmiVis...
c
mem.c
bianwenhui/hash_pool
0
7505349
#include <sys/types.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "sysy_lib.h" #include "hash_table.h" int ymalloc(void **_ptr, size_t size) { int ret, i; void *ptr; if (size == 0) { *_ptr = NULL; return 0; }...
c
src/Network/StdAfx.h
vitek-karas/WarPlusPlus
4
4677921
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(_STDAFX__HEADER_INCLUDED_) #define _STDAFX__HEADER_INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALE...
c
frameworks/core/components/tool_bar/tool_bar_item_component.h
openharmony-gitee-mirror/ace_ace_engine
0
7495672
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
c
everyPay-ios/UtilitySDK/PaymentAPI.h
UnifiedPaymentSolutions/everypay-ios3
0
4107366
// // PaymentAPI.h // everyPay_v3 // #import <Foundation/Foundation.h> #import "StringUtils.h" NS_ASSUME_NONNULL_BEGIN @interface PaymentAPI : NSObject + (PaymentAPI *)sharedInstance; - (void)callAPIPayment:(NSString *)cardNumber andName:(NSString *)name andMonth:(NSString *)month andYear:(NSString *)year andCVC...
c
list/linked-storage/single-linked-list/test/test.c
XuhuiShen/play-with-data-structure
0
2367082
#include <stdio.h> #include <unit_test.h> #include <../list.c> link_list_t l; void print_list() { list_node_t *p; p = l->next; while (p) { printf("%d\n", p->data); p = p->next; } } void create_test_list(int n) { list_node_t *p; int i; l = (link_list_t)malloc(sizeof(list_node_t)); l->next = NULL; for (i ...
c
DearPyGui/src/Core/AppItems/mvTimePicker.h
mmorandi/DearPyGui
1
8157552
#pragma once #include "mvApp.h" #include "Core/AppItems/mvTypeBases.h" #include <implot.h> #include <implot_internal.h> #include <misc/cpp/imgui_stdlib.h> #include "mvPythonTranslator.h" //----------------------------------------------------------------------------- // Widget Index // // * mvTimePicker // //----...
c
Inc/i2c_detect.h
ferenc-nemeth/stm32-i2cdetect
11
3294003
/** * @file i2c_detect.h * @author <NAME> * @date 6 Oct 2018 * @brief This file contains the functions to detect and print the I2C devices. * * Copyright (c) 2018 <NAME> - https://github.com/ferenc-nemeth */ #ifndef I2C_DETECT_H_ #define I2C_DETECT_H_ #include "stm32l4xx_hal.h" void i2c_dete...
c
libraries/ui/src/QmlWindowClass.h
Penguin-Guru/vircadia
272
7828907
// // Created by <NAME> on 2015-12-15 // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_ui_QmlWindowClass_h #define hifi_ui_QmlWindowClass_h #include <QtCore/QObject...
c
Cprogramming/intermediate/challenge_add_dim_arr.c
caramelmelmel/C_language_algorithms
0
750663
#include<stdio.h> int main(){ char names[5][15]={ "Ant", "Bee", "Cat", "Duck", "Elephant" }; int x; for(x=0;x<5;x++){ printf("%s\n",names[x]); } return 0; }
c
scrabble/src/gtkgui.c
SimpleAlgorithm/Scrabble
0
3828914
/* MIT License Copyright (c) 2016 Ravf, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
c
manager_nodes/GManager.h
ItalianApkDownloader/gdh
4
6395172
#ifndef __GMANAGER_H__ #define __GMANAGER_H__ #include <gd.h> class DS_Dictionary; class GManager : public cocos2d::CCNode { protected: std::string m_sFileName; bool m_bSetup; bool m_bSaved; public: std::string getSaveString(); void save(); virtual void setup() ; virtual void encodeDataTo(DS_Dicti...
c
RobotMain/UltraColor.h
david-yd-hao/Vision-RB-Robotics
0
8226498
// Define Trig and Echo pin: #define trigPin 9 #define echoPin 8 #define red_Sensor_Port 3 #define blue_Sensor_Port 2 #define red_LED_Port 6 #define blue_LED_Port 5 // Define variables: long duration; float distance; void ultraSetup() { // Define inputs and outputs: pinMode(trigPin, OUTPUT); pinMode(echoPin, I...
c
Src/Programs/mmtf.c
lidl/xtank
14
7334387
/*- * Copyright (c) 1994 <NAME> * 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...
c
ALUtility/Classes/Categories/NSUserDefaults+ALExtension.h
jinbo0122/ALUtility
1
4212107
// // NSUserDefaults+Utility.h // pandora // // Created by <NAME> on 1/24/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSUserDefaults (ALExtension) - (void)setSafeStringObject:(id)value forKey:(NSString *)defaultName; - (void)setSafeNumberObject:(id)value ...
c
LTHUDView/Classes/LTAnimationView.h
yelon21/LTHUDView
0
5150501
// // LTAnimationView.h // LoadingDemo // // Created by yelon on 16/9/16. // Copyright © 2016年 yelon. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, LTLoadingViewType) { LTLoadingViewTypeCirclePoint = 0, LTLoadingViewTypeCircleLine }; @interface LTAnimationView : UIView ...
c
src/foundation_library/EventHandler.h
Bhaskers-Blu-Org2/pmod
19
2716616
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:EventHandler.h ****/ #pragma once #include <foundation/library/event_handler_container.h> #include <foundation/library/fire_event_support.h> #include ...
c
MBBiPhone6/BabyDemo/SelDoctorViewController.h
yanalucky/MBB
0
7530106
// // SelDoctorViewController.h // BabyDemo // // Created by 陈彦 on 16/5/6. // Copyright © 2016年 elsa. All rights reserved. // #import <UIKit/UIKit.h> @interface SelDoctorViewController : UIViewController @end
c
Worker.h
fakeNetflix/facebook-repo-treadmill
0
5304959
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma onc...
c
plugins/community/repos/RJModules/src/tuner.c
guillaume-plantevin/VeeSeeVSTRack
233
4371613
/* main.c - chromatic guitar tuner * * Copyright (C) 2012 by <NAME> * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided * that the above copyright notice appear in all copies and that both that * copyright notice an...
c
ui/ozone/platform/wayland/xdg_surface_wrapper.h
zipated/src
2,151
1048651
// 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 UI_OZONE_PLATFORM_WAYLAND_XDG_SURFACE_WRAPPER_H_ #define UI_OZONE_PLATFORM_WAYLAND_XDG_SURFACE_WRAPPER_H_ #include "base/strings/string16.h" #inc...
c
source/res/helpslide2map.h
joyrider3774/waternet_gamboy
2
1093665
/* HELPSLIDE2MAP.H Map Include File. Info: Section : Bank : 0 Map size : 20 x 18 Tile set : ..\gbr\blocksfatcheckered.gbr Plane count : 1 plane (8 bits) Plane order : Tiles are continues Tile offset : 0 Split data : No This file was generated by GBMB v1...
c
ruby/ext/-test-/struct/duplicate.c
bkmgit/ruby-packer
2,793
154503
#include "ruby.h" static VALUE bug_struct_new_duplicate(VALUE obj, VALUE name, VALUE mem) { const char *n = NIL_P(name) ? 0 : StringValueCStr(name); const char *m = StringValueCStr(mem); return rb_struct_define(n, m, m, NULL); } static VALUE bug_struct_new_duplicate_under(VALUE obj, VALUE name, VALUE mem)...
c
FtsTriggers/Source/FtsTriggers/Public/FtsTriggerListenerComponent.h
FreetimeStudio/FtsTriggers
1
2217509
// Copyright 2017-2020 FreetimeStudio #pragma once #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "FtsTriggerListenerComponent.generated.h" class UFtsTriggerListenerComponent; class UFtsTriggerComponent; DECLARE_LOG_CATEGORY_EXTERN(LogFtsTriggerListener, Log, All); DECLARE_DYNAMIC_MULTICA...
c
clients/cpp-restbed-server/generated/api/RemoteAccessApi.h
PankTrue/swaggy-jenkins
23
4863983
/** * <NAME> * Jenkins API clients generated from Swagger / Open API specification * * OpenAPI spec version: 1.1.1 * Contact: <EMAIL> * * NOTE: This class is auto generated by OpenAPI-Generator 3.2.1-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ /* * RemoteAccessApi.h * *...
c
PWGLF/RESONANCES/extra/AliXiStarEventCollection.h
maroozm/AliPhysics
114
7810254
#ifndef ALIXISTAREVENTCOLLECTION_H #define ALIXISTAREVENTCOLLECTION_H // // Class AliXiStarEventCollection, AliXiStarTrackStruct, AliXiStarEventStruct // // AliXiStarEventCollection, AliXiStarTrackStruct, AliXiStarEventStruct // author: // <NAME> (<EMAIL>) // #include <iostream> #include <string> #include "TH1...
c
src/Gdv/GdvInspector.h
mdk/diva
2
7488268
//////////////////////////////////////////////////////////////////////////////// // // // MIT X11 license, Copyright (c) 2005-2006 by: // // ...
c
QRayEngine/src/actorposition.h
t7taar00/q-ray-engine
0
3693222
#ifndef ACTORPOSITION_H #define ACTORPOSITION_H #include <QtGlobal> class ActorPosition { public: ActorPosition(); qreal getPosX() const; void setPosX(qreal value); qreal getPosY() const; void setPosY(qreal value); qreal getDirX() const; void setDirX(qreal value); qreal getDirY() c...
c
tests/dispatch_context_for_key.c
Devolutions/libdispatch
427
5899901
/* * Copyright (c) 2010-2011 Apple Inc. All rights reserved. * * @APPLE_APACHE_LICENSE_HEADER_START@ * * 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/lic...
c
Spiky_Client/Source/Spiky_Client/Public/UI/GameRoomUserUnit.h
VadimDev/Spiky-Project
71
8341719
// Copyright (c) 2017, <NAME> - MIT License #pragma once #include "Runtime/UMG/Public/Components/Button.h" #include <vector> #include "GameRoomUserUnit.generated.h" DECLARE_DYNAMIC_MULTICAST_DELEGATE(FClickDelegateGameRoom); UCLASS() class SPIKY_CLIENT_API UGameRoomUserUnit: public UButton { GENERATED_BODY() publ...
c
be/src/exec/hdfs-scanner.h
wangxnhit/impala
1
3550338
// Copyright 2012 Cloudera Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
c
kernel_dvfs/linux-linaro-tracking-gem5/drivers/staging/media/as102/as10x_cmd_stream.c
lokeshjindal15/pd-gem5_transformer
0
5938441
/* * Abilis Systems Single DVB-T Receiver * Copyright (C) 2008 <NAME> <<EMAIL>> * * 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, or (at your option) * any later version...
c
src/gallium/drivers/svga/svga_pipe_vs.c
SoftReaper/Mesa-Renoir-deb
0
5520525
/********************************************************** * Copyright 2008-2009 VMware, Inc. All rights reserved. * * 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 * restrict...
c
daemon/enginemap.h
trondn/kv_engine
0
381171
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 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 * * htt...
c
include/gui/GuiPanel.h
ppeiwang/opengl_show_case
0
4523578
#pragma once #include "CameraPanel.h"
c
NaviControllerTransition/NaviPresentation.h
AirChen/ACTransition
6
1295620
// // NaviPresentation.h // 视图控制器转场 // // Created by Air_chen on 16/7/25. // Copyright © 2016年 Air_chen. All rights reserved. // #import <UIKit/UIKit.h> @interface NaviPresentation : UIPresentationController @property(nonatomic,strong) UIPercentDrivenInteractiveTransition *intersection; @end
c
volt_distr/include/volt_distr/volt_distr_viz.h
uml-robotics/manus_arm
0
47494
/* * volt_distr_viz.h * Copyright 2013 University of Massachusetts Lowell * Author: <NAME> */ // ============================================================================= // Name : volt_distr_viz.h // Author : <NAME> // Date : 2012 // // Voltage distribution visualizer class for the ROS node "volt_distr". ...
c
src/transport/transport.h
jcaw/draconity
22
4463333
#pragma once #include "cpptoml.h" extern "C" { #include <bson.h> #include <stdint.h> #define PUBLISH_TID 0 typedef struct __attribute__((packed)) { uint32_t tid, length; } MessageHeader; typedef bson_t *(*transport_msg_fn)(const uint64_t client_id, const uint32_t tid, const std::vector<uint8_t> &msg); extern v...
c
src/utils/controller.h
apache8080/rubiks_cube
0
3919902
#ifndef _CONTROLLER_H_ #define _CONTROLLER_H_ namespace utils { class Controller { public: static unsigned char ZOOM_IN_KEY; static unsigned char ZOOM_OUT_KEY; static unsigned char RIGHT_ARROW_KEY; static unsigned char LEFT_ARROW_KEY; static unsigned char UP_ARROW_KEY; static unsigned char DOWN_ARROW_KEY...
c
src/utils/nacm.c
irfanHaslanded/sysrepo
0
5279384
/** * @file netconf_acm.c * @author <NAME> <<EMAIL>> * @brief NACM and ietf-netconf-acm callbacks * * @copyright * Copyright (c) 2019 - 2021 Deutsche Telekom AG. * Copyright (c) 2017 - 2021 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this fil...
c
src/audio/stream/mixer.c
Kinoli7/taisei
573
1787659
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "mixer.h" #include "util.h" #include "../backend.h" // BEGIN UTIL #define GPL...
c
src/utf8/runelen.c
Dream-Imperium/vanilla
0
8226742
#include <vanilla/cpu.h> #include <vanilla/std.h> int c_utf8_runelen(ctype_rune r) { if (c_utf8_checkrune(r) < 0) return 0; else if (r <= 0x00007F) return 1; else if (r <= 0x0007FF) return 2; else if (r <= 0x00FFFF) return 3; else if (r <= 0x1FFFFF) return 4; else if (r <= 0x3FFFFF) return 5; else ...
c
mbr_partition_table/src/cpp_stl_98/mbr_partition_table.h
kaitai-io/formats-kaitai-io.github.io
4
4575063
#ifndef MBR_PARTITION_TABLE_H_ #define MBR_PARTITION_TABLE_H_ // This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild #include "kaitai/kaitaistruct.h" #include <stdint.h> #include <vector> #if KAITAI_STRUCT_VERSION < 9000L #error "Incompatible Kaitai Struct C++/STL API: ve...
c
frameworks/HueSDK_iOS.framework/Versions/A/Headers/PHSimpleRuleCondition.h
ItHertzSoGood/DragonBuild
295
4851946
/******************************************************************************* Copyright (c) 2013-2014 <NAME>. All Rights Reserved. ********************************************************************************/ #import <Foundation/Foundation.h> #import "PHRuleCondition.h" typedef enum { // Config ATTR...
c
Kernel/src/kernel/ssi_handlers/ssi_handlers.h
silberbauer/avr32webboot
4
1435725
/************************************************************************************************** * * @file ssi_handlers.h * * @brief Handlers for ssi-tags * * @author <NAME> (<EMAIL>) * * Copyright (c) 2015 taurob GmbH. All rights reserved. See LICENSE.txt. * Perfektastrasse 57/7, 1230 Wien, Austria. * ...
c
templates/sysmodule/source/main.c
leo60228/switch-cmake
18
2891133
// Include the most common headers from the C standard library #include <stdio.h> #include <stdlib.h> #include <string.h> // Include the main libnx system header, for Switch development #include <switch.h> // Sysmodules should not use applet*. u32 __nx_applet_type = AppletType_None; // Adjust size as needed. #define...
c
tests/common/malloc_wrappers.h
otopetrik/nanopb
2,921
7986333
#include <stdlib.h> void* malloc_with_check(size_t size); void free_with_check(void *mem); void* realloc_with_check(void *ptr, size_t size); size_t get_alloc_count(); size_t get_allocation_size(const void *mem); size_t get_alloc_bytes(); void set_max_alloc_bytes(size_t max_bytes); size_t get_max_alloc_bytes();
c
3.benchmark/main.c
configithub/learn-opencl
1
688903
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #endif #define MAX_SOURCE_SIZE (0x100000) //#define LIST_SIZE 4096 #define LIST_SIZE 4194304 #define LOCAL_ITEM_SIZE 1024 #define MAX_VALUE 128 #define NB_TEST 10 // res...
c
modules/congestion_controller/goog_cc/trendline_estimator.h
wyshen2020/webrtc
2
7825677
/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
c
src/unit-test-coverage/ut-stubs/inc/OCS_fcntl.h
matzipan/osal
0
4267206
/* OSAL coverage stub replacement for fcntl.h */ #ifndef _OSAL_STUB_FCNTL_H_ #define _OSAL_STUB_FCNTL_H_ #include <OCS_basetypes.h> /* ----------------------------------------- */ /* constants normally defined in fcntl.h */ /* ----------------------------------------- */ /* * note these constants are used as bitma...
c
DIR819_v1.06/src/kernel/linux-2.6.36.x/drivers/net/eip93_drivers/quickSec/src/lib/sshapputil/ssh1encode.h
Sirherobrine23/Dir819gpl_code
1
8129636
/* ssh1encode.h Author: <NAME> <<EMAIL>> Copyright: Copyright (c) 2002, 2003 SFNT Finland Oy. All rights reserved. Decode ssh1 type stuff from buffer. */ #ifndef SSH1ENCODE_H #define SSH1ENCODE_H 1 #include "sshbuffer.h" #include "sshmp.h" /* Decode ssh1 style encoded 8 bit byte. Re...
c
src/SimpleAmqpClient/MessageRejectedException.h
lyuzinmaxim/SimpleAmqpClient
295
2746860
#ifndef SIMPLEAMQPCLIENT_MESSAGEREJECTEDEXCEPTION_H #define SIMPLEAMQPCLIENT_MESSAGEREJECTEDEXCEPTION_H /* * ***** BEGIN LICENSE BLOCK ***** * Version: MIT * * Copyright (c) 2010-2013 <NAME> * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documen...
c
mvm-reversed/server/tf/bot/behavior/engineer/tf_bot_engineer_building.h
fugueinheels/sigsegv-mvm
7
3024548
/* reverse engineering by sigsegv * based on TF2 version 20151007a * server/tf/bot/behavior/engineer/tf_bot_engineer_building.h * used in MvM: TODO */ // sizeof: 0x4870 class CTFBotEngineerBuilding : public Action<CTFBot> { public: CTFBotEngineerBuilding(); CTFBotEngineerBuilding(CTFBotHintSentrygun *hint); vi...
c
TheMostBeautiful/Pods/TOPageView/TOPageView/TOPageView.h
TonyJR/textLayouter
3
965708
// // TOPageView.h // TOPageView // // Created by Tony on 17/6/19. // Copyright © 2017年 Tony. All rights reserved. // #ifndef TOPageView_h #define TOPageView_h #endif /* TOPageView_h */
c
ASLR Smack and Laugh reference - Tilo Mueller/ret2eax.c
florianhofhammer/stack-buffer-overflow-internship
0
7391314
#include <string.h> void function(char *s) { char buf[256]; strcpy(buf, s); } int main(int argc, char *argv[]) { function(argv[1]); return 0; }
c
ds/security/services/scerpc/client/smartptr.h
npocmaka/Windows-Server-2003
17
2219305
//************************************************************* // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1998 // // File: smartptr.h // // Contents: Classes for smart pointers // // History: 7-Jun-99 SitaramR Created // // 2-Dec-99 LeonardM Major revis...
c
pebble/TenTwentyThirty/src/c/utils.c
bschau/Portfolio
0
6742992
#include "include.h" Window *window_new(void (*click_config_provider)(void *context), void (*load)(Window *window), void (*unload)(Window *window), void (*appear)(Window *window)) { Window *window = window_create(); if (click_config_provider != NULL) { window_set_click_config_provider(window, click_config_provide...
c
Framework/ZXLUpload/ZXLUploadManager.h
ZXLBoaConstrictor/ZXLUpload
10
7622457
// // ZXLUploadManager.h // ZXLUpload // // Created by 张小龙 on 2018/5/11. // Copyright © 2018年 张小龙. All rights reserved. // #import <Foundation/Foundation.h> @interface ZXLUploadManager : NSObject @property (nonatomic,copy)NSString * fileServerAddress; +(instancetype)manager; /** 文件上传 @param objectKey 文件唯一Key...
c
Libraries/C++/CommonHelpers/v1.0/CommonHelpers/TypeTraits.h
davidbrownell/Common_cpp_Helpers
0
891526
///////////////////////////////////////////////////////////////////////// /// /// \file TypeTraits.h /// \brief Contains the TypeTraits namespace /// /// \author <NAME> <<EMAIL>> /// \date 2019-03-17 19:10:14 /// /// \note /// /// \bug /// /////////////////////////////////////////...
c
Modules/Loadable/VolumeRendering/MRML/vtkMRMLGPURayCastVolumeRenderingDisplayNode.h
forfullstack/slicersources-src
0
8162728
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License...
c
src/main.c
bobliu0909/appleC
0
597077
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include "AppleWrapper.h" //#include "types.h" //#include "list.h" int main(int argc, char **argv) { printf("argc: %d\n", argc); for(int i = 0; i < argc; i++) { printf("argv: %s\n", argv[i]); } struct tagApp...
c
Other Sources/Constants and Keys/PXNotifications.h
desoulter/Pixen
1
1265355
// // PXNotifications.h // Pixen // // Copyright 2011-2012 Pixen Project. All rights reserved. // extern NSString *PXCanvasLayerSelectionDidChangeNotificationName; extern NSString *PXCanvasAddedLayerNotificationName; extern NSString *PXCanvasRemovedLayerNotificationName; extern NSString *PXCanvasMovedLayerNotificat...
c
firmware/uvc_controller/mbed-os/features/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/attestation/psa_initial_attestation_api.c
davewhiiite/uvc
1
3683780
/* * Copyright (c) 2018-2019 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
c
OpenGL/src/Shader.h
ilkeraktug/OpenGL
0
8226810
#pragma once #include <unordered_map> #include "glm\gtc\matrix_transform.hpp" #include <glm/gtc/type_ptr.hpp> struct ShaderSource { std::string VertexShader; std::string FragmentShader; std::string GeometryShader; }; class Shader { private: std::string m_Filepath; unsigned int m_RendererID; std::unordered_map...
c
base16-st/build/base16-atelier-seaside-light-theme.h
djorborn/st
93
3869897
/* * base16-atelier-seaside-light-theme.h * * Base16: (https://github.com/chriskempson/base16) * * Authors: * * Scheme: <NAME> Haan (http://atelierbramdehaan.nl) * Template: <NAME> <<EMAIL>> * */ static const char *colorname[] = { "#f4fbf4", /* base00 */ "#e6193c", /* base08 */ "#29a329", /* base0B */ "#98981...
c
src/tritonsort/mapreduce/functions/partition/UniformPartitionFunction.h
anku94/themis_tritonsort
11
5179761
#ifndef THEMIS_UNIFORM_PARTITION_FUNCTION_H #define THEMIS_UNIFORM_PARTITION_FUNCTION_H #include "core/constants.h" #include "core/TritonSortAssert.h" #include "mapreduce/common/PartitionFunctionInterface.h" class Params; /** UniformPartitionFunction is a partition function that partitions keys uniformly acros...
c
util/BigMPI/test/test_rsend_recv_x.c
wh5a/intel-qs
94
4659687
#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <string.h> #include <strings.h> #include <mpi.h> #include "bigmpi.h" #include "verify_buffer.h" /* Yes, it is technically unsafe to cast MPI_Count to MPI_Aint or size_t without checking, * given that MPI_Count might be 128b and MPI_Aint and size_t m...
c
src/r_rastr_ast_function_definition_expression_r_node.h
aviralg/rastr
1
569023
#include "RIncludes.hpp" extern "C" { SEXP r_rastr_ast_function_definition_expression_r_node_create( SEXP r_keyword, SEXP r_opening_delimiter, SEXP r_parameters, SEXP r_closing_delimiter, SEXP r_body); SEXP r_rastr_ast_function_definition_expression_r_node_get_parameters( SEXP r_node); SEXP r_r...
c
libsrc/allegro/src/win/wfile.c
ericoporto/ags-old
0
6448696
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ *...
c
chapter5/wheat.c
JackWang0107/c_learning
1
1486445
#include <stdio.h> #define I_SQUARES 64 int main(void){ const double D_CROP = 2e16; double current, total; int count = 1; printf("Square Grains Total Fractions of\n"); printf(" added grains world total\n"); total = current = 1.0; printf("%6d %13...
c
uboot/arch/blackfin/include/asm/mach-bf527/BF524_cdef.h
bingchunjin/1806_SDK
35
2518824
/* DO NOT EDIT THIS FILE * Automatically generated by generate-cdef-headers.xsl * DO NOT EDIT THIS FILE */ #ifndef __BFIN_CDEF_ADSP_BF524_proc__ #define __BFIN_CDEF_ADSP_BF524_proc__ #include "BF522_cdef.h" #define bfin_read_USB_FADDR() bfin_read16(USB_FADDR) #define bfin_write_USB_FADDR(val) bfin_w...
c
versao code::blocks/testes.h
Castorzaum/Sistema-ingressos
0
5242700
#ifndef TESTES_H_INCLUDED #define TESTES_H_INCLUDED #include "dominios.h" #include "entidades.h" using namespace std; // ----------------------------------------------------------------------------- // DOMINIOS // -----------------------------------------------------------------------...
c
examples/omp/benchmarks/kastors-1.1/plasma/src/pdpltmg.c
tianyi93/hpxMP_mirror
22
4236533
/** * * @file pdpltmg.c * * PLASMA auxiliary routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author <NAME> * @date 2010-11-15 * @generated d Tue Jan 7 11:45:12 2014 * **/ #include "common.h" #defi...
c
src/frontend/SageIII/ompAstConstruction.h
ouankou/rose
488
4211460
#ifndef _OMP_AST_CONSTRUCTION #define _OMP_AST_CONSTRUCTION #include "AstSimpleProcessing.h" namespace OmpSupport { class SgVarRefExpVisitor : public AstSimpleProcessing { private: std::vector<SgExpression*> expressions; public: SgVarRefExpVisitor( ); ...
c
pheroes/MapEditor/TextResDlg.h
TripleMOMO/pocketheroes
3
8358717
/* * This file is a part of Pocket Heroes Game project * http://www.pocketheroes.net * https://code.google.com/p/pocketheroes/ * * Copyright 2004-2010 by <NAME> and <NAME> (iO UPG) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice...
c
Pod/Classes/DAO/GroupDAO.h
yuduo999/SLBaseChat
0
5363274
// // GroupDAO.h // BaseChat // // Created by song.zhang on 16/3/15. // Copyright © 2016年 song.zhang. All rights reserved. // #import <CoreData/CoreData.h> @interface GroupDAO : NSObject +(instancetype) defaultInstance; -(void) update:(NSString *) groupId withName:(NSString *) groupName withHead:(NSString *)grou...
c
Aula 05 - Trabalhando com arquivos/Aula5exemplo12.c
eliascastrosousa/EstruturaDeDadosExercicios
0
3412069
#include <stdio.h> #include <stdlib.h> int main(){ FILE *f; int i; f = fopen("vetor.txt", "rb"); // if (f = NULL){ printf("Erro na Leitura!\n"); system("pause"); exit(1); } int total_lido, v[10]; // = {0,1,2,3,4,5,6,7,8,9}; total_lido = fread(v,sizeof(int),10,f); if (total_lido != 10){ printf("Er...
c
solutions/c/spreadsheet/regex.c
matthewvilhauer/code-problems
1,461
5946813
#include "regex.h" pcre2_code * getCellReferencePattern(void) { int errorcode = 0; PCRE2_SIZE erroroffset; pcre2_code *re = pcre2_compile((PCRE2_SPTR8) CELL_REFERENCE_PATTERN, -1, 0, &errorcode, &erroroffset, NULL); if (re == NULL) { return 0; } return re; ...
c
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaStatics.h
AbdulHoffmann/carla_carissma
4
387050
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #pragma once #include "Carla/Game/CarlaEpisode.h" #include "Carla/Game/CarlaGameInstance.h" #i...
c
cours9/semaphore.c
Menelau/LOG645-Course-examples
0
154465
#include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <semaphore.h> long thread_count; sem_t semaphore; void* Semaphore_Function(void* args) { long rank = (long) args; sem_wait(&semaphore); printf("Hello from thread %ld.\n", rank); sleep(10); //...
c
Descending Europa/Temp/StagingArea/Data/il2cppOutput/mscorlib_System_Runtime_Serialization_Formatters_B4003669736.h
screwylightbulb/europa
11
2518863
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> // System.Byte[] struct ByteU5BU5D_t4260760469; // System.Type[] struct TypeU5BU5D_t3339007067; #include "mscorlib_System_Object4170816371.h" #ifdef __clang__ #pragma clang diagnosti...
c
d/deku/keep/rooms/jail3.c
Dbevan/SunderingShadows
13
735891
#include <std.h> #include "../keep.h" inherit JAIL; void create() { ::create(); set_long(TO->query_long() + "%^YELLOW%^ Inset into the eastern and "+ "western walls of this corridor are doors with barred windows. "+ "It continues into darkness to the south and meets a sandstone "+ "wall to the north.%^RESE...
c