text stringlengths 9 948k |
|---|
/* OpenGL gfx driver */
#include "../fb_gfx.h"
#include "fb_gfx_x11.h"
#include "../fb_gfx_gl.h"
#if !defined DISABLE_X11 && !defined DISABLE_OPENGL
#include <GL/glx.h>
/* For compatibility with old Mesa headers */
#ifndef GLX_SAMPLE_BUFFERS_ARB
# define GLX_SAMPLE_BUFFERS_ARB 100000
#endif
#ifndef GLX_... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h> /* isprint() */
static int read_file(uint8_t **buf, size_t *size, const char *path)
{
FILE *fp;
fp = fopen(path, "rb");
if (fp == NULL)
return -1;
fseek(fp, 0, SEEK_END);
*size = ftell(fp);
*buf = malloc(*size)... |
/*
* Copyright (c) 2016 Intel Corporation.
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_FS_FS_H_
#define ZEPHYR_INCLUDE_FS_FS_H_
#ifdef CONFIG_ARCH_POSIX
#ifndef __ssize_t_defined
typedef __SIZE_TYPE__ ssize_t;
#define __ssize_t_defined
#endif
#... |
/* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
/*
* normal.c: Contains the main routine fo... |
#include <scheduler.h>
#include <pmm.h>
#include <gdt.h>
#include <bootloader.h>
#include <serial.h>
#include <heap.h>
void *kernelStack;
struct vt_terminal *firstTerminal; // first usable terminal
struct sched_task rootTask; // root of the tasks list
struct sched_task *currentTask; // current task in the ta... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
*********************************************************************************************************
* uC/Common
* Common Features for Micrium Stacks
*
* Copyright 2013-2020 Silicon Laboratories Inc. www.silabs.com
*... |
/*
* Copyright(c) 2019 Intel Corporation
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
#ifndef EBMCP_H
#define EBMCP_H
#ifdef __cplusplus
extern "C" {
#endif
#define USE_PRE_COMPUTE 0
typedef struct MotionCompensationPredictionContext {
EbDctor dctor;
EbByte avc_style_mcp_intermediate_result_... |
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/
// Copyright 2014 hamcrest.org. See LICENSE.txt
#import "HCBaseMatcher.h"
@interface HCStringContainsInOrder : HCBaseMatcher
{
NSArray *substrings;
}
+ (instancetype)containsInOrder:(NSArray *)substringList;
- (instancetype)initWithSubstrings:(NSArray... |
/* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/HomeKit.framework/HomeKit
*/
@interface HMClientConnection : NSObject <HMFMessageReceiver> {
NSObject<OS_dispatch_queue> * _clientQueue;
HMFMessageDispatcher * _msgDispatcher;
NSUUID * _uuid;
HMXpcClient * _xpcClient;
}
@property (no... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_REGISTRY_H_
#define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_REGISTRY_H... |
#include <tommath_private.h>
#ifdef BN_MP_N_ROOT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
* LibTomMath is a library that provides multiple-precision
* integer arithmetic as well as number theoretic functionality.
*
* The library was designed directly after the MPI library by
* Michael... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 version.
*
* This program is d... |
#pragma once
#include <TGUI/TGUI.hpp>
#include "MineSweeper.h"
#include "Tiles.h"
// ReSharper disable once CppInconsistentNaming
using TGui = tgui::Gui;
using tgui::Panel;
using tgui::Label;
using tgui::Button;
using tgui::ChildWindow;
using tgui::ComboBox;
using tgui::TextBox;
class Gui {
private:
MineSweeper* st... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The DASH Core developers
// Copyright (c) 2017-2018 The Aywa Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard.
#import <Foundation/Foundation.h>
@class CDType;
@interface CDMethodType : NSObject
{
CDType *type;
NSString *offset;
}
... |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#pragma once
#include "BsPrerequisites.h"
/** @addtogroup Plugins
*... |
/************************************************************************************
* WrightEagle (Soccer Simulation League 2D) *
* BASE SOURCE CODE RELEASE 2016 *
* Copyright (c) 1998-2016 WrightEagle 2D Soccer Simulation Te... |
/* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
#define RENDCOMMON_PRIVATE
#define GEOIP_PRIVATE
#define CONNECTION_PRIVATE
#define CONFIG_PRIVATE
#define RENDCAC... |
/*
* Copyright (c) 2019 Interay Solutions B.V.
* Copyright (c) 2019 Oane Kingma
*
* SPDX-License-Identifier: Apache-2.0
*/
/* SoC level DTS fixup file */
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define DT_FLASH_DEV_BASE_ADDRESS DT_SILABS_GECKO_FLASH_CONTROLLER_40000000_B... |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
*/
@interface _NSFlowLayoutItem : NSObject {
struct {
unsigned int positionEstimated : 1;
} _itemFlags;
struct CGRect {
struct CGPoint {
double x;
... |
/*
* Copyright © 2012-2015 VMware, Inc. 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 applica... |
/*
* Copyright (C) 2009-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#ifndef RAISE_EXCEPTION_ADDRS_H
#define RAISE_EXCEPTION_ADDRS_H
/*
* Labels for various instructions that raise exceptions.
*/
typedef struct
{
char* _unmappedRead;
char* _unmappedReadAddr;
char* _unmappedWrite;
cha... |
/*-
* Copyright (c) 2016 Solarflare Communications Inc.
* All rights reserved.
*
* This software was jointly developed between OKTET Labs (under contract
* for Solarflare) and Solarflare Communications, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... |
// Copyright (c) 2013, NetEase Inc. All rights reserved.
//
//
// 2013/8/30
//
// This file defines DB_EXPORT macro
#ifndef DB_DB_EXPORT_H_
#define DB_DB_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(DB_IMPLEMENTATION)
#define DB_EXPORT __declspec(dllexport)
#else
#define DB_EXPORT __declspec(... |
#include <iostream>
#include <map>
#include <string>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <libim/Protocol.h>
#include <libim/Constants.h>
#include <Messenger.h>
#include <OS.h>
#include <File.h>
#include "OSCARHandler.h"
using namespace IM;
class OSCARManager;
class AIMProtoco... |
/**
* \file
*/
#ifndef __MONO_COOP_SEMAPHORE_H__
#define __MONO_COOP_SEMAPHORE_H__
#include <config.h>
#include <glib.h>
#include "mono-os-semaphore.h"
#include "mono-threads-api.h"
/* We put the OS sync primitives in struct, so the compiler will warn us if
* we use mono_os_(mutex|cond|sem)_... on MonoCoop(Mutex... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@interface XSDefinitions : NSObject
{
}
+ (id)definitionForType:(Class)arg1;
@end |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/*
Copyright (c) 1994-2003, Jason W. Bacon, Acadix Software Systems
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... |
/*****************************************************************************
* @file osal.h
* @author MCD Application Team
* @brief This header file defines the OS abstraction layer used by
* the BLE stack. OSAL defines the set of functions which needs to be
* ported to target operating s... |
/****************************************************************************
Copyright (C) 2002-2006 Gilles Debunne (Gilles.Debunne@imag.fr)
This file is part of the QGLViewer library.
Version 2.2.6-1, released on July 4, 2007.
http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer
libQGLViewer is free software... |
//
// Board.h
// ADVENT OF CODE 2021: Day 4 - Giant Squid (Part 1)
//
// Created by diff-arch on 04/12/2021.
//
#ifndef Board_h
#define Board_h
#include <iostream>
#include <vector>
#include "Utils.h"
struct Cell {
Cell();
Cell(int _value);
~Cell();
friend std::ostream& operator <<(std::ostream& os, c... |
enum redditApps {
safari = 0,
apollo,
reddit,
narwhal,
};
@interface SPUISearchHeader : UIView
@property (nonatomic, readonly) NSString *currentQuery;
@end |
/*
* GDevelop Core
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#ifndef GDCORE_EVENTSREFACTORER_H
#define GDCORE_EVENTSREFACTORER_H
#include <memory>
#include <vector>
#include "GDCore/Events/Instruction.h"
#include "GDCore/... |
#ifndef QUEUE_H
#define QUEUE_H
#include "LinkedList.h"
typedef LinkedList Queue;
Queue *newQueue(size_t sizeofEach);
void freeQueue(Queue *q, void (*freeValue)(void *value));
void addToQueue(Queue *q, void *e);
void *shift(Queue *q);
#endif |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SYNC_SESSIONS_MOCK_SYNC_SESSIONS_CLIENT_H_
#define COMPONENTS_SYNC_SESSIONS_MOCK_SYNC_SESSIONS_CLIENT_H_
#include <string>
#include "... |
#pragma once
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <pthread.h>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include "linux-htonl.h"
#include <nlohmann/json.hpp>
#include "eluvio/dasher.h"
#include "eluvio/utils.h"
#include "eluvio/el... |
//
// Dog.h
// KCObjcTest
//
// Created by song.meng on 2020/11/30.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface Dog : NSObject
@property (nonatomic, copy) NSString *idd;
@end
NS_ASSUME_NONNULL_END |
/* Generated automatically. DO NOT EDIT! */
#define SIMD_HEADER "simd-avx2.h"
#include "../common/n1fv_9.c" |
/*
* Copyright (C) 2019 SAMSUNG SDS <Team.SAIDA@gmail.com>
*
* This code is distribued under the terms and conditions from the MIT License (MIT).
*
* Authors : Iljoo Yoon, Daehun Jun, Hyunjae Lee, Uk Jo
*/
#pragma once
#include "../InformationManager.h"
#include "SharedMemory.h"
#include "GymFactory.h"
namespa... |
/* Copyright (c) 2007 Scott Lembcke
*
* 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,... |
/*
* Wireless network adapter utilities (linux-specific)
*
* Copyright 2005, Broadcom Corporation
* All Rights Reserved.
*
* THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
* KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
* SPECIFICALLY DISCLAIMS ANY IMPLI... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:16:48 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/ATFoundat... |
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/dom/interfaces/stylesheets/nsIDOMNSDocumentStyle.idl
*/
#ifndef __gen_nsIDOMNSDocumentStyle_h__
#define __gen_nsIDOMNSDocumentStyle_h__
#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif
#ifndef __gen_nsIDOMDocumentS... |
#ifndef OPENMM_FORCEIMPL_H_
#define OPENMM_FORCEIMPL_H_
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the ... |
/*
* USB CDC EEM network interface driver
* Copyright (C) 2009 Oberthur Technologies
* by Omar Laazimani, Olivier Condemine
*
* 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 versio... |
/*
Copyright (c) 2019, Ameer Haj Ali (UC Berkeley), and Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... |
/*
ValueFile.h ValueFile头文件
*/
////////////////////////////////////////////////////////
/*
异步set版本,双缓冲区,一个存储IO线程负责在后台pwrite
*/
#ifndef Value_FILE_H_
#define Value_FILE_H_
//#define
#include <sys/mman.h>
#include <malloc.h>
#include <set>
#include <map>
#include <mutex>
#include <thread>
#include <condition_... |
//************************************************************************************************************
//
// © 2016-2019 Regents of the University of California on behalf of the University of California at Berkeley
// with rights granted for USDOT OSADP distribution with the ECL-2.0 open source license.
/... |
//
// Created by dan on 5/16/16.
//
#ifndef DBMILTER_H
#define DBMILTER_H
#include <mongoc-matcher.h>
#include "libmilter/mfapi.h"
#include "libmilter/mfdef.h"
/*
sfsistat
mlfi_connect(SMFICTX *ctx,
char *hostname,
_SOCK_ADDR *hostaddr);
sfsistat
mlfi_helo(SMFICTX *ctx,
... |
/************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
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 copie... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
int n_c;//numero generato casualmento dal pc
int indovinato;
int t;//variabile contenente i tentativi
int n_u;//numero inserito dall'utente
printf("\n Indovina il numero ");
n_c=rand();
indovinato=0;
... |
/* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2018, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file control.c
* \brief Implementation for Tor's control-socket interface.
*
* A "controller" is an external program that monitors and controls a Tor... |
#include "nsvoxel-buffer.h"
#include "nsvoxel-buffer.inl"
/* IMPORTANT: This macro will only work for pixels that
have >= 8 bits and dont cross byte boundaries. */
#define __VOXEL( type, voxel_buffer, x, y, z )\
NS_OFFSET_POINTER(\
type,\
(voxel_buffer)->mem_block,\
((nssize)(z))*(voxel_buffer)->bytes_per_sli... |
/*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "S1AP-CommonDataTypes"
* found in "/home/lixh/v0.1.0/openair-cn/src/s1ap/messages/asn1/r10.5/S1AP-CommonDataTypes.asn"
* `asn1c -gen-PER`
*/
#ifndef _S1ap_Criticality_H_
#define _S1ap_Criticality_H_
#include <asn_application.h>
/* ... |
#include "list.h"
#include <stdlib.h>
#include <src/util/dbg.h>
struct list *list_create()
{
return calloc(1, sizeof(struct list));
}
void list_destroy(struct list *list)
{
struct listelem *cur = NULL;
for(cur = list->first; cur != NULL; cur = cur->next) {
if(cur->prev) {
free(cur->prev);
}
}
free(list->... |
#define SA_SOCKET_PATH_FMT "/tmp/yabai-sa_%s.socket"
#define SOCKET_PATH_FMT "/tmp/yabai_%s.socket"
#define LCFILE_PATH_FMT "/tmp/yabai_%s.lock"
#define CLIENT_OPT_LONG "--message"
#define CLIENT_OPT_SHRT "-m"
#define DEBUG_VERBOSE_OPT_LONG "--verbose"
#define DEBUG_VERBOSE_OPT_... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
#pragma once
// @generated by tools/codegen/gen.py from DispatchKeyFunction.h
// NB: The implementing C++ file is RegisterDispatchKey.cpp
// The only #includes we need are for custom classes that have defaults in the C++ API
#include <c10/core/MemoryFormat.h>
#include <c10/core/Scalar.h>
#include <ATen/core/Reduction... |
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2006-2007 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... |
/*
* This implementation is extracted from Eigen:
* Repo: bitbucket.org/eigen/eigen
* File: Eigen/src/Core/arch/CUDA/Half.h
* Commit ID: 96e0f73a35de54f675d825bef5339b2f08e77eb4
*
* Removed a lot of redundant and cuda-specific code.
*/
#define EIGEN_STRONG_INLINE static inline
#define EIGEN_DEVICE_FUNC
/... |
//------------------------------------------------------------------------------
// GB_mex_rdiv2: compute C=A*B with the rdiv2 operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Identi... |
#pragma once
namespace Crowny
{
enum class CommandBufferState
{
Empty,
Recording,
Executing,
Done
};
class CommandBuffer
{
public:
CommandBuffer(GpuQueueType queueType, uint32_t queueIdx, bool secondary);
virtual ~CommandBuffer() = default;
... |
/** @file
* Copyright (c) 2018-2020, Arm Limited or its affiliates. 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... |
/*
* Copyright (C) 2012 Regents of the University of California
* Copyright (C) 2014 Darius Rad <darius@bluespec.com>
* Copyright (C) 2017 SiFive
*
* 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 Softwa... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
/****************************************************************************
* @file main.c
* @version V3.00
* @brief
* Transmit and receive data in UART IrDA mode.
* This sample code needs to work with UART_IrDA_Master.
* @note
* Copyright (C) 2019 Nuvoton Technology Corp. All rights r... |
#pragma once
#include <ast/StatementNode.h>
#include <ast/ExpressionNode.h>
#include <Token.h>
#include <memory>
#include <vector>
namespace PythonCoreNative::RunTime::Parser::AST
{
class TestListStarExprListStatementNode : public StatementNode
{
public:
TestListStarExprListStatementNode(... |
/**
* Copyright 2021 Huawei Technologies 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... |
/* mbed Microcontroller Library
*******************************************************************************
* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2018, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
/*******************************************************************************
*
* DO NOT EDIT THIS FILE!
* This file is auto-generated by fltg from Logical Table mapping files.
*
* Tool: $SDK/INTERNAL/fltg/bin/fltg
*
* Edits to this file will be lost when it is regenerated.
*
* This license is set out in ht... |
/* $XFree86$ */
/* $XdotOrg$ */
/*
* Data and prototypes for init.c
*
* Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria
*
* If distributed as part of the Linux kernel, the following license terms
* apply:
*
* * This program is free software; you can redistribute it and/or modify
* * it under th... |
/****************************************************************************
****************************************************************************
* *
* Copyright (C) 2020 Genome Research Ltd. *
* ... |
/******************************************************************************/
/*!
\file Matrix3.h
\author Low Jin Liang Aaron
\par Project: BPEngine
\brief This is the interface file for Matrix3.
\copyright All content (C) 2019 DigiPen Institute of Technology Singapore. All Rights
\ ... |
#include <stdio.h>
#include <string.h>
#include "common.h"
#include "../mask.h"
#include "../qrspec.h"
#include "decoder.h"
char dot[2] = {'_', '#'};
static char *maskPatterns[8] = {
/* (i + j) mod 2 = 0 */
"#_#_#_"
"_#_#_#"
"#_#_#_"
"_#_#_#"
"#_#_#_"
"_#_#_#",
/* i mod 2 = 0 */
"######"
"______"
"######"
... |
/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file MaterialWizard.h
* @brief Utitility tool for choosing right material script for your purpose from
* the material script template library.
*/
#pragma once
#include <QWidget>
#include <QString>
class Framew... |
/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... |
// Copyright (C) 2007-2021 Yaxin Liu, Patrick Beeson, Jack O'Quin, Joshua Whitley, Martin Valgur
// All rights reserved.
//
// Software License Agreement (BSD License 2.0)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// ar... |
#ifndef AMODELER_INC_PLANE_H
#define AMODELER_INC_PLANE_H
///////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright 2002 by Autodesk, Inc.
//
// The information contained herein is confidential, proprietary
// to Autodesk, Inc., and considered a trade secret as defined
// i... |
/* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
//
// MHMomentContentItemViewModel.h
// MHDevelopExample
//
// Created by senba on 2017/7/16.
// Copyright © 2017年 CoderMikeHe. All rights reserved.
// 朋友圈 评论+点赞的基类
#import "MHObject.h"
@interface MHMomentContentItemViewModel : MHObject
/// 正文布局
@property (nonatomic, readwrite, strong) YYTextLayout *contentLable... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:16:55 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/CloudKi... |
//
// Copyright 2017 The ANGLE 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.
//
// getProcAddress loader table:
// Mapping from a string entry point name to function address.
//
#ifndef LIBGLESV2_PROC_TABLE_H_
#define LIB... |
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
int beers = 2000000;
pthread_mutex_t a_lock = PTHREAD_MUTEX_INITIALIZER;
void* drink_lots(void* a)
{
int i;
for (i = 0; i < 100000; i++)
{
pthread_mutex_lock(&a_lock);
beers--;
pthread_mutex_unlock(&a_lock);
}
re... |
#include <Rinternals.h>
// helper to determine if external c++ pointer is valid
SEXP isnull(SEXP pointer) {
return Rf_ScalarLogical(!R_ExternalPtrAddr(pointer));
} |
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: CC0-1.0
*/
/*
The image used for the effect on the LCD in the SPI master example is stored in flash
as a jpeg file. This file contains the decode_image routine, which uses the tiny JPEG
decoder library to decode this... |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
#include "soc.h"
#include "drv/wdt.h"
#include "aos/hal/wdg.h"
/**
* This function will initialize the on board CPU hardware watch dog
*
* @param[in] wdg the watch dog device
*
* @return 0 : on success, EIO : if an error occurred with any step
*... |
#region Local Var
var uLocal_0 = 0;
var uLocal_1 = 0;
int iLocal_2 = 0;
int iLocal_3 = 0;
int iLocal_4 = 0;
int iLocal_5 = 0;
int iLocal_6 = 0;
int iLocal_7 = 0;
int iLocal_8 = 0;
int iLocal_9 = 0;
int iLocal_10 = 0;
int iLocal_11 = 0;
var uLocal_12 = 0;
var uLocal_13 = 0;
float fLocal_14 = 0f;
var uLoc... |
#ifndef MEMBER_H__27B359F0_34FE_4295_93FB_CA03539885E9
#define MEMBER_H__27B359F0_34FE_4295_93FB_CA03539885E9
// -*- tab-width: 4; indent-tabs-mode: nil; -*-
// vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4
//
// $Id: member.h 24625 2009-07-31 01:05:55Z unknown $
//
// Method, Field
//
// Copyright (c) 2008, 200... |
/*
* Copyright 2020 ElectroOptical Innovations, LLC
* */
#pragma once
#ifndef IODEVICE_IODEVICE_H_
#define IODEVICE_IODEVICE_H_
#include <RingBuffer/RingBuffer.h>
#include <cstdint>
#if 0
class IODevice{
public:
virtual int read(uint8_t* buff, const std::size_t len) = 0;
virtual std::size_t rxPop(uint8_t&... |
#include <stdio.h>
#include <stdlib.h>
#include "hexin.h"
static unsigned int hex1(int c) {
int v = 0;
if ('0' <= c && c <= '9') v = c - '0';
else if ('a' <= c && c <= 'f') v = c - 'a' + 10;
else if ('A' <= c && c <= 'F') v = c - 'A' + 10;
else printf("Bad hex: %c\n", c);
return v;
}
ssize_t get_from_hex(unsign... |
/**************************************************************************
*
* Copyright (C) 2009 Steve Karg <skarg@users.sourceforge.net>
*
* 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 w... |
//
// NSString+MK_Conversion.h
// MKFoundation
//
// Copyright (c) 2013 Michal Konturek
//
// 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 limi... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:41:29 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/MetalTools.framework/MetalTools
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias... |
/* libunwind - a platform-independent unwind library
Copyright (C) 2001-2004 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
Copyright (C) 2013 Linaro Limited
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this s... |
/**
* @file lv_demo_stress.h
*
*/
#ifndef LV_DEMO_STRESS_H
#define LV_DEMO_STRESS_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_demos.h"
/*********************
* DEFINES
*********************/
#define LV_DEMO_STRESS_TIME_STEP 5... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_TEST_SUPPORT_H_
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_TEST_SUPPORT_H_
#... |
// 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.
#ifndef SRC_STORAGE_BIN_DISK_PAVE_PAYLOAD_STREAMER_H_
#define SRC_STORAGE_BIN_DISK_PAVE_PAYLOAD_STREAMER_H_
#include <fuchsia/paver/llcpp/fidl.h>
#include... |
/****************************************************************************
* config/nucleo-l432kc/src/stm32_timer.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Copied from nucleo-f303 by Sebastien Lorquet
*
* Redistribution and use in source an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.