text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
/** ****************************************************************************** * @file fdcan.c * @brief This file provides code for the configuration * of the FDCAN instances. ****************************************************************************** * @attention * * <h2><center>&c...
code_c
code
1,200
null
/* vi: set ts=4: */ /* TODO: LICENSE */ #pragma once #include <stdbool.h> #include <stdint.h> /* ----- constants ----- */ #define STR_UNKNOWN "?" #define STR_WAV "WAV" #define STR_AU "AU" #define STR_PSGPCM "PSGPCM" #define STR_U8 "U8" #define STR_PCM1 "PCM1" #define STR_PCM2 "PCM2" #define STR_PCM3 "PCM...
code_c
code
552
null
// Copyright (c) 2020 <NAME> // // Use of this source code is governed by an MIT-style License that can be found // in the LICENSE file or at https://opensource.org/licenses/MIT. #ifndef GB_RENDER_SHADER_CODE_H_ #define GB_RENDER_SHADER_CODE_H_ #include "gb/render/render_types.h" #include "gb/resource/resource.h" na...
code_c
code
370
null
<reponame>Anim-101/CourseHub #include<stdio.h> #include<stdlib.h> struct Node { int data; struct Node *next; } *first = NULL; void Create(int array[], int number) { struct Node *temp, *last; first = (struct Node *) malloc(sizeof(struct Node)); first->data = array[0]; first->next = NULL; ...
code_c
code
415
null
<reponame>markpetersen01/Cocos2D-game<gh_stars>10-100 /* Copyright (C) 2012-2014 Soomla 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...
code_c
code
588
null
/** * Copyright (c) 2013 - 2017, Nordic Semiconductor ASA * * 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...
code_c
code
1,080
null
/********************************************************************** enc/encdb.c - $Author: nobu $ created at: Mon Apr 7 15:51:31 2008 Copyright (C) 2008 <NAME> **********************************************************************/ int rb_encdb_replicate(const char *alias, const char *orig); int rb_en...
code_c
code
202
null
<filename>include/freerdp/codec/h264.h<gh_stars>10-100 /** * FreeRDP: A Remote Desktop Protocol Implementation * H.264 Bitmap Compression * * Copyright 2014 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
code_c
code
1,169
null
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static complex c_b1 = {0.f,0.f}; static complex c_b2 = {1.f,0.f}; static integer c__3 = 3; static integer c__1 = 1; /* Subroutine */ int claghe_(integer *n, integer *k, real *d__, complex *a, integer *lda, integer *iseed, complex *work, integer ...
code_c
code
2,662
null
// // MPSCNNNeuron.h // MPS // // Created by <NAME> on 10/27/17. // Copyright © 2017 Apple. All rights reserved. // #ifndef MPSCNNNeuron_h #define MPSCNNNeuron_h #import <MPSNeuralNetwork/MPSCNNKernel.h> #import <MPSNeuralNetwork/MPSCNNNeuronType.h> #ifdef __cplusplus extern "C" { #endif #pragma mark - #pr...
code_c
code
9,891
null
#ifndef ODFAEG_MODEL_2D_HPP #define ODFAEG_MODEL_2D_HPP #include "entity.h" /** *\namespace odfaeg * the namespace of the Opensource Development Framework Adapted for Every Games. */ namespace odfaeg { namespace graphic { /** * \file model.h * \class Model * \author Duroisin.L * \version 1.0 * \dat...
code_c
code
516
null
<filename>SmartPush/AppDelegate.h // // AppDelegate.h // SmartPush // // Created by Jakey on 15/3/15. // Copyright (c) 2015年 www.skyfox.org. All rights reserved. // #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate> @end
code_c
code
74
null
// // SCStackLayouterProtocol.h // SCStackViewController // // Created by <NAME> on 16/08/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "SCStackViewController.h" /** An object adopting the SCStackLayouter protocol is responsible for returning * the itermediate and final frames for the Stack...
code_c
code
1,298
null
<reponame>electroduck/SDL2mod /* Simple DirectMedia Layer Copyright (C) 1997-2021 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone...
code_c
code
1,047
null
<reponame>glshort/MapReady #define ASF_NAME_STRING "dumpLineHeader" #define ASF_USAGE_STRING \ " "ASF_NAME_STRING" [-line <number>] <in_name> <template>\n" #define ASF_DESCRIPTION_STRING \ " This program dumps the line header of a CEOS data file.\n\n" #define ASF_INPUT_STRING \ " The input file is required...
code_c
code
2,181
null
<filename>ios/Pods/Headers/Public/ABI38_0_0ExpoKit/ABI38_0_0RNSVGLine.h<gh_stars>1-10 /** * Copyright (c) 2015-present, Horcrux. * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Founda...
code_c
code
184
null
<gh_stars>0 /* * interp1.c * * Code generation for function 'interp1' * * C source code generated on: Fri Aug 31 09:23:48 2012 * */ /* Include files */ #include "rt_nonfinite.h" #include "epu_n_unit_accumulator.h" #include "interp1.h" #include "epu_n_unit_accumulator_emxutil.h" #include "epu_n_unit_accumulator_...
code_c
code
5,249
null
<reponame>christianchabot/xv6-small #ifndef _UNISTD_H_ #define _UNISTD_H_ /* typedef unsigned long int size_t; typedef long int ssize_t; typedef int uid_t; typedef int gid_t; typedef int pid_t; #ifndef C89 typedef long long int off_t; typedef long long int intptr_t; #else typedef long int off_t; typedef long int intp...
code_c
code
241
null
<reponame>simonbeaudoin0935/embeddedsw /****************************************************************************** * Copyright (C) 2017 - 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /**************************...
code_c
code
13,010
null
<filename>d/player_houses/lusell/rooms/wall22.c //Coded by Diego// #include <std.h> #include "../lusell.h" inherit LWALL; void create(){ ::create(); set_name("wall20"); set_exits(([ "east" : LROOMS+"wall21", "west" : LROOMS+"tower2" ])); set_door("door",LROOMS+"tower2","west","ruby key"); set_d...
code_c
code
171
null
/* * Copyright 2020 OmniSci, 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 t...
code_c
code
1,795
null
/** @file honey_termlist.h * @brief A TermList in a honey database. */ /* Copyright (C) 2007,2008,2009,2010,2011 <NAME> * * 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 o...
code_c
code
1,494
null
/* * Copyright 1993-2002 <NAME> and Perforce Software, Inc. * * This file is part of Jam - see jam.c for Copyright information. */ /* This file is ALSO: * Copyright 2001-2004 <NAME>. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or http://www.boost.org...
code_c
code
14,412
null
<reponame>TheComet/wavesim /* * Copyright (c) 2003, 2007-14 <NAME> * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology * * 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; eit...
code_c
code
14,829
null
<filename>src/heap/cppgc-js/unified-heap-marking-visitor.h<gh_stars>0 // Copyright 2020 the V8 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. #ifndef V8_HEAP_CPPGC_JS_UNIFIED_HEAP_MARKING_VISITOR_H_ #define V8_HEAP_CPPGC_JS_...
code_c
code
983
null
<reponame>NateBoi4/F20-GPR-200-03 /* Credit to <NAME> and his book "Ray Tracing in One Weekend" <NAME> edited by <NAME> and <NAME> Version 3.2.0, 2020-07-18 Copyright 2018-2020 <NAME>. All rights reserved. Link to book: https://raytracing.github.io/books/RayTracingInOneWeekend.html Work references Chapter 1: Overvi...
code_c
code
621
null
<gh_stars>10-100 #ifndef _3D_MARKER_LOCALIZER_CAMERA_H #define _3D_MARKER_LOCALIZER_CAMERA_H #include <string> #include <vector> #include <memory> #include <Eigen/Core> #include <Eigen/Geometry> #include <opencv2/opencv.hpp> namespace camera { struct image_bounds { //! Default constructor image_bounds() = d...
code_c
code
956
null
<filename>s2e/source/s2e-linux-kernel/decree-cgc-cfe/fs/xfs/xfs_inode_fork.c<gh_stars>10-100 /* * Copyright (c) 2000-2006 Silicon Graphics, Inc. * 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 ...
code_c
code
16,174
null
<filename>samples/sensor/mcp9808/src/main.c /* * Copyright (c) 2019 <NAME>, LLC * Copyright (c) 2016 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/zephyr.h> #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> #include <stdio.h> #define UCEL_PER_CEL 1000000 #define UCEL_...
code_c
code
989
null
// Room: /d/city/wenshu.h void init() { call_out("dest", 1800); add_action("do_guankan", ({"guankan","kan"})); add_action("do_wancheng", ({"wancheng"})); } int do_guankan(string arg) { int now_time, time; object me; me = this_player(); now_time = me->query_condition("guanfu_tas...
code_c
code
951
null
/* * libunbound/context.c - validating context for unbound internal use * * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
code_c
code
3,398
null
<reponame>martmists-gh/BDSP #pragma once #include "il2cpp.h" void System_Predicate_UICharInfo____ctor (System_Predicate_UICharInfo__o* __this, Il2CppObject* object, intptr_t method, const MethodInfo* method_info); bool System_Predicate_UICharInfo___Invoke (System_Predicate_UICharInfo__o* __this, UnityEngine_UICharInf...
code_c
code
209
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <EMotionFX/Source/Allocators.h> #include <EMotionFX/Source/EMotionFXConfig.h>...
code_c
code
515
null
<filename>third_party/gecko-15/win32/include/nsIAppShell.h /* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr-w32-bld/build/widget/nsIAppShell.idl */ #ifndef __gen_nsIAppShell_h__ #define __gen_nsIAppShell_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL f...
code_c
code
1,717
null
/* * Copyright (c) 2009 Hypertriton, Inc. <http://hypertriton.com/> * 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 * ...
code_c
code
1,313
null
/* * Allegro A8293 SEC driver * * Copyright (C) 2011 <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 of the License, or * (at your option)...
code_c
code
1,045
null
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1998 - 1999 // // File: dinputdeviceobj.h // //-------------------------------------------------------------------------- // ddPaletteObj.h : Declaration o...
code_c
code
2,249
null
<reponame>rashedmyt/turtlecoin_crypto #pragma once #include "CryptoTypes.h" #include <string> #include <optional> struct KeyOutput { Crypto::PublicKey key; uint64_t amount; /* Global index of the transaction in the DB. Will be -1 if not gained from the daemon */ int64_t globalIndex; }; /* ...
code_c
code
474
null
/******************************************************************************** ** Form generated from reading UI file 'QtDND.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************...
code_c
code
663
null
#pragma once #include "json.hpp" #include <map> #include <string> #include "Game.Cell.h" #include "Game.Descriptors.h" #include "Game.Room.h" #include "Game.Avatar.h" #include <vector> namespace game { class Scenario { private: nlohmann::json& model; public: Scenario(nlohmann::json&); std::vector<std::string>...
code_c
code
136
null
/** @file pinmux.c * @brief PINMUX Driver Implementation File * @date 07-July-2017 * @version 04.07.00 * */ /* * Copyright (C) 2009-2016 Texas Instruments Incorporated - www.ti.com * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
code_c
code
5,102
null
/** * Copyright (c) 2018-2022, BookOS Development Team * SPDX-License-Identifier: Apache-2.0 * * Contains: Direct uart driver * low-level driver routines for 16550a UART. * * Change Logs: * Date Author Notes * 2021-10-1 JasonHu Init */ #include <xbook.h> #include <io/de...
code_c
code
1,000
null
<filename>cxx/src/iot_client/src/generate_messages.h #ifndef GENERATE_MESSAGES_H #define GENERATE_MESSAGES_H /* Copyright (c) 2009-2010 Tyrell Corporation & <NAME>. The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance ...
code_c
code
607
null
#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <libgen.h> #include <archive.h> #include <archive_entry.h> #include <stdnoreturn.h> #include "common.h" static void usage(const char *prog) { fprintf(stderr, "usage: %s [fspec]\n", prog); exit(1); } int main(int argc, char **argv) { const char *prog; st...
code_c
code
209
null
<reponame>jsupancic/libhand-public<gh_stars>10-100 /****************************************************************************** * Code generated with sympy 0.7.6 * * * * See http://ww...
code_c
code
222
null
<reponame>zsiothsu/AVSI /* * @Author: <NAME> * @Date: 2020-05-01 * @LastEditTime: 2020-06-02 15:48:01 * @Description: "AVSI::any" is a data type which can store variable of basic * type */ #ifndef ___ANY_H___ #define ___ANY_H___ #include <cmath> #include <iostream> #include <map> #include <regex> #include <stri...
code_c
code
1,190
null
<reponame>bitPanG98/SillyOS #pragma once //Primitive types #include <Types.h> //Memory manipulation(TYPO) #include <BaseMemory.h> //String related #include <String.h>
code_c
code
48
null
<reponame>hackerlank/SourceCode<gh_stars>1-10 #pragma once #include "afxwin.h" #include "ResizableDialog.h" // CDlg_Control_SceneInfo dialog struct EVENT; class CDlg_Control_SceneInfo : // public CDialog public CResizableDialog { DECLARE_DYNAMIC(CDlg_Control_SceneInfo) public: static VOID WINAPI _OnSceneTransed(...
code_c
code
218
null
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #ifndef _TESTS_CRYPTO_TESTS_H #define _TESTS_CRYPTO_TESTS_H void TestASN1(void); void TestCRL(void); #if defined(OE_BUILD_ENCLAVE) void TestCert(void); #endif void TestEC(void); void TestKDF(void); void TestRandom(void); void TestCpuEn...
code_c
code
127
null
// C++/WinRT v2.0.190620.2 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef WINRT_Windows_Media_Core_2_H #define WINRT_Windows_Media_Core_2_H #include "winrt/impl/Windows.ApplicationModel.AppService.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winr...
code_c
code
10,223
null
#ifndef SHOWIMAGEWIDGET_H #define SHOWIMAGEWIDGET_H #include <QWidget> #include <QPainter> #include "DarknetDetector.h" namespace Ui { class ShowImageWidget; } class ShowImageWidget : public QWidget { Q_OBJECT public: explicit ShowImageWidget(QWidget *parent = nullptr); ~ShowImageWidg...
code_c
code
180
null
<filename>src/chiabls/contrib/relic/include/relic_rand.h /* * RELIC is an Efficient LIbrary for Cryptography * Copyright (c) 2009 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information...
code_c
code
1,016
null
<reponame>doc-ai/react-native-tensorio // // RNTensirIO.h // RNTensorIO // // Created by <NAME> on 2/1/19. // Copyright © 2019 doc.ai. All rights reserved. // #import <Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> #import <UIKit/UIKit.h> #if __has_include("RCTBridgeModule.h") #import "RCTBridgeMo...
code_c
code
152
null
/* * Copyright (C) 2019 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef MISC_CFG_H #define MISC_CFG_H #define MAX_PCPU_NUM 4U #define MAX_PLATFORM_CLOS_NUM 0U #define ROOTFS_0 "root=/dev/sda3 " #define ROOTFS_1 "root=/dev/mmcblk1p1 " #define SOS_ROOTFS ROOTFS_1 #d...
code_c
code
308
null
// Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // 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, in...
code_c
code
758
null
<reponame>path64/assembler #ifndef YASM_RDFSECTION_H #define YASM_RDFSECTION_H // // Relocatable Dynamic Object (RDOFF) format section // // Copyright (C) 2006-2007 <NAME> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // ...
code_c
code
826
null
//------------------------------------------------------------------------------ // shadows-sapp.c // Render to an offscreen rendertarget texture, and use this texture // for rendering shadows to the screen. //------------------------------------------------------------------------------ #include "sokol_app.h" #incl...
code_c
code
3,065
null
#if !defined(PREDICATE_) #define PREDICATE_ /****************************************** * @file Predicate.h * * @brief Brief file description * * * * @author <NAME> * * @version 1.0 * * @date ...
code_c
code
242
null
<filename>Device/UGFX_SAMD21_ILI9488/UGFX_SAMD21_ILI9488/src/ugfx/drivers/gdisp/KS0108/gdisp_lld_KS0108.c /* * This file is subject to the terms of the GFX License. If a copy of * the license was not distributed with this file, you can obtain one at: * * http://ugfx.io/license.html */ #include "gfx.h...
code_c
code
2,378
null
<gh_stars>0 /* * PWM_NEW.h * * Created on: Mar 13, 2019 * Author: crouman */ #ifndef PWM_NEW_H_ #define PWM_NEW_H_ #include "tm_stm32f4_gpio.h" #include "tm_stm32f4_pwm.h" #include "tm_stm32f4_timer_properties.h" void PWM_INIT(void); void PWM_SET_DUCY(int channel,int percentage); #endi...
code_c
code
97
null
/* clparse.c Parser for dhclient config and lease files... */ /* * Copyright (c) 2004-2014 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-2003 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby gr...
code_c
code
15,860
null
<reponame>maluoi/FerrGraphNet ///////////////////////////////////////////////////////////// /// Ferr GraphNet by <NAME> - Twitter @koujaku /// ///////////////////////////////////////////////////////////// // // // __|INCLUDING|__ ...
code_c
code
10,682
null
#ifndef DATA_STRUCTURES_QUEUE_ARRAY_H_INCLUDED #define DATA_STRUCTURES_QUEUE_ARRAY_H_INCLUDED #include <memory> #include <stdexcept> /* std::out_of_range */ #include <stdlib.h> /* abs */ namespace datastructures { template <typename T> class QueueArray { private: T *array_; int capacity_; int front_;...
code_c
code
565
null
/* Copyright (c) 2017 mbed.org, MIT License * * 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, publish...
code_c
code
600
null
<reponame>FruitsBerriesMelons123/CommonLibSSE #pragma once #include "RE/BSScript/TypeInfo.h" #include "RE/BSFixedString.h" #include "RE/BSTSmartPointer.h" namespace RE { namespace BSScript { class IFunction; struct PropertyTypeInfo { enum class Permissions : UInt32 {}; // members BSFixedStrin...
code_c
code
214
null
<reponame>Samhaydarr/holbertonschool-c<filename>0x02-functions_nested_loops/6-abs.c #include <stdlib.h> #include "holberton.h" /** * _abs - computes the absolute value of an integer. * * @n: int to be evaluated * * Return: absolute value of an int **/ int _abs(int n) { int result; result = abs(n); return (result)...
code_c
code
92
null
/*- * Copyright (c) 2008-2011 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * * 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 ...
code_c
code
3,307
null
#ifndef ANTLR3TREEPARSER_H #define ANTLR3TREEPARSER_H // [The "BSD licence"] // Copyright (c) 2005-2009 <NAME>, Temporal Wave LLC // http://www.temporal-wave.com // http://www.linkedin.com/in/jimidle // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, ar...
code_c
code
948
null
// Copyright (c) 2011, 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 conditi...
code_c
code
2,762
null
//===-- llvm/ADT/Statistic.h - Easy way to expose stats ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
code_c
code
1,299
null
#include <stdio.h> #include <conio.h> #include <math.h> void main() { int a,b,c,x,y,z; printf("Enter three sides of a triangle:"); scanf("%d%d%d",&a,&b,&c); x=pow(a,2); y=pow(b,2); z=pow(c,2)+1; printf("%d %d %d\n",x,y,z); if(x==(y+z) || y==(x+z) || z==(x+y)) { printf("These...
code_c
code
136
null
<reponame>karbovskiydmitriy/Direct3D_smoothing_demo #ifndef __TYPES_H__ #define __TYPES_H__ #pragma once #define Pointer void * #define null ((Pointer)0) #define CUSTOMFVF_VERTEX (D3DFVF_XYZ | D3DFVF_DIFFUSE) struct Vertex { float x, y, z; DWORD color; }; struct Triangle { byte vertices[3]; ...
code_c
code
99
null
<filename>core/include/dt-bindings/mfd/st,stpmic1.h /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) STMicroelectronics 2018 - All Rights Reserved * Author: <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> for STMicroelectronics. */ #ifndef __DT_BINDINGS_STPMIC1_H__ #define __DT_BINDINGS_STPMIC1_H__ /* IRQ definitio...
code_c
code
338
null
<filename>Vertex.h #pragma once #include "Basics.h" struct Vertex { float posX, posY, posZ; float normalX, normalY, normalZ; float u, v; uint32_t matID = 0; //needed for unordnered map bool operator==(const Vertex& other) const { return posX == other.posX && posY == other.posY && posZ == other.posZ && no...
code_c
code
249
null
#ifndef _LIB_H_INCLUDED_ #define _LIB_H_INCLUDED_ void* memset(void *begin, int charactor, long len); void* memcpy(void* dst, const void* src, long len); int memcmp(const void* begin1, const void* begin2, long len); int strlen(const char* s); char* strcpy(char* dst, const char* src); int strcmp(const...
code_c
code
170
null
<gh_stars>0 //////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this...
code_c
code
728
null
<filename>scene/gui/split_container.h<gh_stars>100-1000 /*************************************************************************/ /* split_container.h */ /*************************************************************************/ /* This file i...
code_c
code
1,056
null
/* * The MIT License * * Copyright (c) 1997-2021 The University of Utah * * 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 * right...
code_c
code
967
null
#include <std.h> #include <dirs.h> #include <daemons.h> inherit DAEMON; void create() { ::create(); } object base_class_ob(object ob) { object class_ob; if (!objectp(ob) || !ob->query("base_class")) { class_ob = find_object_or_load(DIR_CLASSES + "/mage.c"); } else { class_ob = find...
code_c
code
1,769
null
/* IntelCPUID.h */ //---------------------------------------------------------------------------------------- // // Project: CCore 2.00 // // Tag: Target/LIN64utf8 // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // //...
code_c
code
288
null
/** * @page DocTag_Tutorial_Serializable Serializable * * to make an object serializable is easy: * @code * // extends from any ZFObject type, and implements from ZFSerializable * zfclass MyObject : zfextends MyParent, zfimplements ZFSerializable * { * ZFOBJECT_DECLARE(MyObject, MyParent) * Z...
code_c
code
836
null
// Copyright 2017 the V8 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. #ifndef V8_HEAP_FACTORY_INL_H_ #define V8_HEAP_FACTORY_INL_H_ #include "src/heap/factory.h" // Clients of this interface shouldn't depend on lots of h...
code_c
code
1,374
null
<gh_stars>1-10 #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { int opcao, sair; float raio, perimetro, area; printf(" Escolha uma opcao abaixo: "); printf("\n\n1- Calculo da area da circunferencia; \n"); printf("2- Calculo do volume da circunferencia; \n"); printf("0- Na...
code_c
code
268
null
#include <stdio.h> #define MILE 1.609 #define GALLON 3.785 int main(void) { float distance, consumed, mpg; printf("Enter miles traveled and gallons of gasoline consumed: "); scanf("%f %f", &distance, &consumed); mpg = distance/consumed; printf("%.1f miles per gallon\n", mpg); printf("%.1f lite...
code_c
code
106
null
<reponame>uvbs/FullSource class KG3DTerrainHeightMap { public: KG3DTerrainHeightMap(void); virtual ~KG3DTerrainHeightMap(void); };
code_c
code
40
null
<filename>Application/BootHelper/DisplayVars.h /** @file Declaration of NVRAM var list and display methods. Copyright (c) 2020, <NAME>. All rights reserved.<BR> SPDX-License-Identifier: BSD-3-Clause **/ #ifndef __BH__LIST_VARS__ #define __BH__LIST_VARS__ // // Basic UEFI Libraries // #include <Uefi.h> #includ...
code_c
code
369
null
<filename>dev/Code/Tools/SphericalHarmonics/PRT/AlphaTextureMaterial.h /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software i...
code_c
code
1,297
null
#ifndef _FS_UNZIP_EXT_H_ #define _FS_UNZIP_EXT_H_ #ifdef __cplusplus extern "C" { #endif extern unsigned int ZEXPORT unzextGetFileOffset OF((unzFile file)); #ifdef __cplusplus } #endif #endif /*_FS_UNZIP_EXT_H_*/
code_c
code
64
null
// // Copyright 2008-2017 OSR Open Systems Resources, 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, // ...
code_c
code
1,964
null
<filename>Example/Pods/Target Support Files/RadialLayer/RadialLayer-umbrella.h #import <UIKit/UIKit.h> //#import "RadialLayer-Swift.h" FOUNDATION_EXPORT double RadialLayerVersionNumber; FOUNDATION_EXPORT const unsigned char RadialLayerVersionString[];
code_c
code
72
null
<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DISPATCH_CALLBACK_H_ #define UI_EVENTS_OZONE_EVDEV_EVENT_DISPATCH_CALLBACK_H_ #include "base/callback...
code_c
code
144
null
<reponame>xqdzn/linux-bpi-p2z-dev // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. */ #include "xfs.h" #include "xfs_fs.h" #include "xfs_shared.h" #include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_trans_resv.h" #include "xfs_bit.h" #includ...
code_c
code
10,305
null
<filename>ThirdParty/mono/repo/tools/sgen/sgen-grep-binprot.c /* * sgen-grep-binprot.c: Platform specific binary protocol entries reader * * Copyright (C) 2016 Xamarin Inc * * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include <stdio.h> #include <stdlib...
code_c
code
6,379
null
// // UIView+MDRExtension.h // NeteaseLottery // // Created by 刘春牢 on 16/1/8. // Copyright © 2016年 M.D.R. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (MDRExtension) @property (nonatomic, assign) CGFloat x; @property (nonatomic, assign) CGFloat y; @property (nonatomic, assign) CGFloat wi...
code_c
code
108
null
/* seekdir -- reposition a directory stream last edit: 25-Apr-1987 <NAME> An unsuccessful seekdir() will in general alter the current directory position; beware. NOTE: 4.nBSD directory compaction makes seekdir() & telldir() practically impossible to do right. Avoid using them! */ #ifdef COHERENT #include <er...
code_c
code
864
null
#pragma once namespace MOGSLib { /** * @brief An enumerate of all the supported runtime systems for MOGSLib schedulers. */ enum RuntimeSystemEnum { NoRTS, Custom, Charm, OpenMP }; /** * @brief An enumerate of all the schedulers that MOGSLib can expose. */ enum SchedulerEnum { round_robin, compact, ...
code_c
code
101
null
<gh_stars>1000+ /** * @copyright Copyright (c) 2022, Alibaba Group Holding Limited */ #include <stdio.h> #include <string.h> #include <CUnit/Basic.h> #include <CUnit/CUnit.h> #include "xqc_random_test.h" #include "xqc_timer_test.h" #include "xqc_pq_test.h" #include "xqc_conn_test.h" #include "xqc_engine_test.h" #in...
code_c
code
1,368
null
#pragma once #include <Shared/Core/SizeAlign.h> #define kMaxAllocatorNameLength 64 namespace mem { class LinearAllocator { enum { kDefaultMemoryAlignment = 4, }; public: LinearAllocator(void* memory, size_t memorySize, const char* name); void* Allocate(const SizeAlign& sizeAlign); void* Allocate(c...
code_c
code
344
null
//----------------------------------------------------------------------------- // File : asuraApp.h // Desc : Application Module. // Copyright(c) Project Asura. All right reserved. //----------------------------------------------------------------------------- #pragma once //-----------------------------------------...
code_c
code
6,699
null
<gh_stars>1000+ /* * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "ompi_config.h" #include "pml_exam...
code_c
code
168
null