text stringlengths 3.12k 18.7k |
|---|
/*
*
* Copyright 2017 Samsung Electronics 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 require... |
/* Utility functions for decimal floating point support via decNumber.
Copyright (C) 2005 Free Software Foundation, Inc.
Contributed by IBM Corporation. Author <NAME>.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public Lic... |
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
static ngx_int_t ngx_http_write_filter_init(ngx_conf_t *cf);
static ngx_http_module_t ngx_http_write_filter_module_ctx = {
NULL, /* preconfiguratio... |
/*
* histogram.c
*
* Copyright (c) 2011-2020 Aerospike, 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 restriction, including without limitation th... |
#pragma once
// Instructions
int nop(void);
int ld_bc_nn(void);
int ld_bc_a(void);
int inc_bc(void);
int inc_b(void);
int dec_b(void);
int ld_b_n(void);
int rlca(void);
int ld_nnp_sp(void);
int add_hl_bc(void);
int ld_a_bc(void);
int dec_bc(void);
int inc_c(void);
int dec_c(void);
int ld_c_n(void);
int rrca(void);
// ... |
/*
gc-common.h - common macro and type definitions for generic-cache (all
versions)
Copyright (C) 2003-2004 Virtutech AB, All Rights Reserved
This program is a component ("Component") of Virtutech Simics and is
being distributed under Section 1(a)(iv) of the Virtutech Simics
Software License Agreement (th... |
/*
* $Id: mp06c.c,v 1.4 2010-03-15 22:49:24 haley Exp $
*/
/***********************************************************************
* *
* Copyright (C) 1999 *
* University Corporation for... |
#include "common.h"
#include "bPlusTree.h"
#include "bbiFile.h"
#include "bigBed.h"
#include "hgFind.h"
#include "trix.h"
#include "trackHub.h"
#include "hubConnect.h"
#include "hdb.h"
#include "errCatch.h"
#include "bigBedLabel.h"
#include "bigBedFind.h"
static struct hgPos *bigBedIntervalListToHgPositions(struct car... |
/* $Id$ */
#define FTP_PRODUCT "lukemftp"
#define FTP_VERSION "1.6-beta2"
#include "config.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#inclu... |
/*
* Copyright (c) 2021 Actility. 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... |
#include "qspi_fun.h"
#include <stdio.h>
#include "py/obj.h"
#include "py/mperrno.h"
#include "irq.h"
#include "led.h"
#include "storage.h"
static void QSPI_FunRW(uint8_t rw)//send 8bit clk at switch to received
{
QSPI->GCTL &= ~0x18;
if(rw == 0)
{
QSPI->GCTL |= 1<<3; //使能发送
}
else
{
QSPI->GCTL ... |
#include <build/db.h>
#include <strings.h>
#include <logmsg.h>
#include <string.h>
#include "bdb_int.h"
#include <dbinc/db_swap.h>
#include "phys_rep_lsn.h"
#include "tranlog.h"
#include <cdb2api.h>
#include <parse_lsn.h>
#include "locks.h"
extern bdb_state_type *bdb_state;
int matchable_log_type(int rectype);
exte... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2010. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
* compliance with the License. You should have received a copy of the
* Erlang Public License alo... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
*
* 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; version 2 of the License.
*
* This ... |
/*-
* Copyright (c) 2010 <NAME>
* Copyright (c) 2008 Semihalf, <NAME>
* Copyright (c) 2006 <NAME>
*
* 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 copyr... |
#include <strings.h>
#include "output.h"
#include "log.h"
swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos) {
if (strcasecmp(name, "left") == 0) {
return swayc_adjacent_output(NULL, MOVE_LEFT, abs_pos, true);
} else if (strcasecmp(name, "right") == 0) {
return swayc_adjacent_output(NULL,... |
/*
*
* Copyright 2015, 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 condi... |
#ifdef __cplusplus
#include <cstdio>
#include <cstdlib>
#include <cstring>
#else
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#endif
typedef struct {
/* options without arguments */
int benchmark;
int help;
int verbose;
int version;
/* options with arguments *... |
/** \file widgethelpers.c
* \brief Helpers for creating Gtk3 widgets
*
* \author <NAME> <<EMAIL>>
*
* This file is supposed to contain some helper functions for boiler plate
* code, such as creating layout widgets, creating lists of radio or check
* boxes, etc.
*
* \todo turn the margin/padding values ... |
/*----------------------------------------------------------------------------*/
/* Xymon message daemon. */
/* */
/* Client backend module for z/VM ... |
//
// URL.h
// XMLForOSC_6_23_2
//
// Created by <NAME> on 16/6/23.
// Copyright © 2016年 hexiulian. All rights reserved.
//
#ifndef URL_h
#define URL_h
#endif /* URL_h */
#define DDLog(xx, ...) NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
//===================Mine========================... |
/*
* lib/hexdump.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. See README and COPYING for
* more details.
*/
#include <linux/types.h>
#include <linux/ctype.h>
#include <l... |
/* mpn_toom33_mul -- Multiply {ap,an} and {p,bn} where an and bn are close in
size. Or more accurately, bn <= an < (3/2)bn.
Contributed to the GNU project by <NAME>.
Additional improvements by <NAME>.
THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY
SAFE TO REACH IT THROUGH ... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
// Copyright (c) 2013, <NAME>
// For conditions of distribution and use, see the accompanying LICENSE and README files
// This file is a part of the Scattered Point Visualization application
// developed at the Norwegian University of Science and Technology
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef INTERNAL_PLUGIN_NFACCT
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <libmnl/libmnl.h>
#include <libn... |
/*
* Copyright (c) 2014, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of co... |
/* -----------------------------------------------------------------
* Programmer: <NAME> @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist University.
* All rights reserved... |
// The MIT License (MIT)
//
// Copyright (c) 2013 <NAME>, <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, ... |
/*
Variable data density WAV encoder/decoder
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
//Set debug to 1 to display additional information
int debug = 0;
//WAV subchunk struct
typedef struct wav_subchunk
{
char RIFF[4]; //Must contain "RIFF"
int32_t ... |
/* packet-packetlogger.c
* Routines for Apple's PacketLogger Types
*
* Copyright 2009, <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include <wiretap/wtap.... |
/*
* Copyright (c) 2008 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
* ... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Target board general functions implementation
License: Revised B... |
/*-
* Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
/* Add GCC-specific attributes to types and function declarations. */
#define WT_COMPILER_TYPE_ALIGN(x) __attribute__((aligned(x)))
#define WT... |
#pragma once
//
// Define the board name
//
#define BOARD_INFO_NAME "Melzi (3DP-Tech)"
//
// Alter timing for graphical display
//
#ifndef BOARD_ST7920_DELAY_1
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
#endif
#ifndef BOARD_ST7920_DELAY_2
#define BOARD_ST7920_DELAY_2 DELAY_NS(125)
#endif
#ifndef BOARD_ST7920_DELAY_... |
// Derived from bttrblls
// Draws particles with peculiar behavior
//
// Copyright (c) 2019, <NAME>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copie... |
#include <unistd.h>
#include "fvutils.h"
#include "largelist.h"
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/mem.h>
#include "histograms.h"
#include "edgedetect.h"
//#define MAX_MEMORY_USAGE ((uint32_t)(3 * 1024 * 1024 * 1024))
//always makes ... |
/**************************************************************************
*
* Copyright 2003 Tungsten Graphics, Inc., <NAME>, Texas.
* 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"... |
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "../utilities/array.h"
#include "../utilities/enums.h"
#include "struct_run_params.h"
#include "run_params.h"
void RunParams_Setup(struct RunParams **run_params_addr,
KERNEL kernel, int num_kernel_params, doub... |
//
// Copyright 2018 <NAME> (<EMAIL>). All rights reserved.
// License: https://github.com/septag/sx#license-bsd-2-clause
//
#include "sx/allocator.h"
#include <malloc.h>
#include <stdlib.h>
#include "sx/threads.h"
#include "sx/os.h"
#include "sx/string.h"
static void* sx__malloc_cb(void* ptr, size_t size, uint32_t ... |
/*
* AWS IoT Device SDK for Embedded C V202011.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 withou... |
/* errno.c
* String descriptions for errno values.
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/value_string.h>
/* Note: sorted in (unsigned) ascending order with no gaps to enable di... |
#include "mylib.h"
#include "pqueue.h"
#include "riscvdma.h"
#include "riscvnetif.h"
#include "lwip/tcp.h"
// #include "ping.h"
// #include "lwip/udp.h"
// int start_tcp_application();
// void tcp_fasttmr(void);
// void tcp_slowtmr(void);
// void lwip_init();
#if 0
static struct udp_pcb *udpecho_raw... |
// Amazon FPGA Hardware Development Kit
//
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Amazon Software License (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.co... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/lib/crypto/ecdsa_p256/ecdsa_p256.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/silicon_creator/lib/drivers/otbn.h"... |
/*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
/************************************************/
/* Inline file to be included in mtest_thread.c */
/************************************************/
/* Error handling */
static void MTest_abt_error(int err, const c... |
/*
* Written in 2009 by <NAME>
*
* License
*
* All the cruft you find here is public domain. You don't have to credit
* anyone to use this code, but my personal request is that you mention
* <NAME> for his hard, high quality work.
*/
#include "../easylzma/compress.h"
#include "lzma_header.h"
#include "lzip_h... |
#include <libvex.h>
#include <stddef.h>
#include <assert.h>
#include "pyvex.h"
void remove_noops(
IRSB* irsb
) {
Int noops = 0, i;
Int pos = 0;
for (i = 0; i < irsb->stmts_used; ++i) {
if (irsb->stmts[i]->tag != Ist_NoOp) {
if (i != pos) {
irsb->stmts[pos] = irsb->stmts[i];
}
pos++;
}
else {
... |
/* Copyright (C) 1988-2010 by <NAME> and the
Institute of Global Environment and Society (IGES).
See file COPYRIGHT for more information. */
/*
* Include ./configure's header file
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* Note that a GrADS metafile is composed of messages, which themselve... |
/*----------------------------------------------------------------------------
* CMSIS-RTOS - RTX
*----------------------------------------------------------------------------
* Name: RT_LIST.C
* Purpose: Functions for the management of different lists
* Rev.: V4.79
*------------------... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <mex.h>
#if !defined(MAX)
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#endif
#if !defined(MIN)
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif
#include "interpolation2.h"
unsigned int auditoryInterpIndex(const double... |
#pragma once
#include <stdint.h>
#include <stdarg.h>
#include "pkgi_dialog.h"
#define PKGI_UPDATE_URL "https://api.github.com/repos/bucanero/pkgi-ps3/releases/latest"
#define PKGI_VERSION "1.1.6"
#define PKGI_BUTTON_SELECT 0x00010000
#define PKGI_BUTTON_START 0x00080000
#define PKGI_BUTTON_UP 0x00100... |
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdlib.h>
#include <enclave_u.h> /* For sgx_enclave_id_t */
#include <openssl/bn.h>
#include <openssl/ec.h>
#include <openssl/obj_mac.h>
#include <openssl/pem.h>
#include "app.h"
bool enclave_generate_key() {
s... |
/* ldif-filter -- clean up LDIF testdata from stdin */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 2009-2019 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... |
/*
This file is for functions required for generating the condition bits of the Benes network w.r.t. a random permutation
see the Lev-Pippenger-Valiant paper https://www.computer.org/csdl/trans/tc/1981/02/06312171.pdf
*/
#include "controlbits.h"
#include "randombytes.h"
#include "params.h"
#include <stdint.h>
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/* intdy.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
#include <stdio.h>
#include <stdlib.h>
#include <byteswap.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
void xlate( char * inb, char * trb, unsigned len )
{
unsigned i;
for ( i=0; i<len; ++i )
{
char c = *inb++;
char c1 = c >> 4;
char c2 = c & 0xf;
if ( c1 > 9 )
c1 = c1 + 'A' - 10;... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
static FLA_Bool FLA_ini... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
//
// Created by jarno on 17/06/2020.
//
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "cluster.h"
#include "state.h"
#include "util.h"
#define MAX_CLUSTERS_PRINTED 100
#define MAX_STATES_PRINTED 200
state_t* init_state() {
//create empty state
state_t* state = malloc(sizeof(state_t));
... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 ... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... |
/*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#include "mpiimpl.h"
#include "dataloop_internal.h"
#include <stdlib.h>
static void indexed_array_copy(MPI_Aint count,
MPI_Aint contig_count,
const MPI_Aint... |
/**
*
* \file
*
* \brief WINC1500 locate IP address example
*
* Copyright (c) 2016-2021 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip p... |
/*----------------------------------------------------------------------------*/
/* Hobbit message daemon. */
/* */
/* Copyright (C) 2004-2005 <NAME> <<EMAIL>> */
/* ... |
/*-------------------------------------------------------------------------
*
* win32_latch.c
* Routines for inter-process latches
*
* See unix_latch.c for header comments for the exported functions;
* the API presented here is supposed to be the same as there.
*
* The Windows implementation uses Windows even... |
/*===============================================================
* Copyright (C) 2018 All rights reserved.
*
* Filename:dlog.c
* Author:julian
* Date:2018-08-05
* Discription:
*
* release notes:
*
================================================================*/
#include <stdio.h>
#include <stdlib.h>
#inc... |
/*
* Driver for Feature Integration Technology Inc. (aka Fintek) LPC CIR
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* Special thanks to Fintek for providing hardware and spec sheets.
* This driver is based upon the nuvoton, ite and ene drivers for
* similar hardware.
*
* This program is free software; you can r... |
/*
* Copyright 2020 u-blox 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 or agreed to in w... |
#include <assert.h>
#include <stdlib.h>
#include <wlr/util/log.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include "backend/drm/drm.h"
#include "backend/drm/iface.h"
#include "backend/drm/util.h"
static bool legacy_fb_props_match(struct wlr_drm_fb *fb1,
struct wlr_drm_fb *fb2) {
struct wlr_dmabuf_attributes d... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2008 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, 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/lice... |
/*
** Copyright (c) 1999, 2000, 2001, 2002, 2003
** <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,
*... |
#include <string.h>
#include "stm32f0xx_tim.h"
#include "stm32f0xx_pwr.h"
#include "stm32f0xx_usart.h"
#include "tripoint.h"
#include "led.h"
#include "host_interface.h"
#include "dw1000.h"
#include "oneway_common.h"
#include "oneway_tag.h"
#include "oneway_anchor.h"
#include "timer.h"
#include "delay.h"
#include "f... |
/* merge.c - Functions which actually combine and manipulate GIF image data.
Copyright (C) 1997-2014 <NAME>, <EMAIL>
This file is part of gifsicle.
Gifsicle is free software. It is distributed under the GNU Public License,
version 2; you can copy, distribute, or alter it at will, as long
as this notice ... |
/*
* Copyright (c) 2020 Doc.ai and/or its affiliates.
* Copyright (c) 2020 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/lic... |
#include <stdio.h>
#include <unistd.h>
#include "system.h"
#include "sys/alt_irq.h"
#include "basic_io.h"
#include "LCD.h"
#include "SD_Card.h"
#include "fat.h"
#include "wm8731.h"
#include "altera_avalon_timer_regs.h"
#include "altera_avalon_pio_regs.h"
//Global Variables
int bytePerCluster, cl... |
/*
* iptunnel.c "ip tuntap"
*
* 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.
*
* Authors: <NAME> <<E... |
#define _GNU_SOURCE
#include "configs_parser.h"
static void init_server_configs(server_configs *sc) {
sc->shutdown_keyword = NULL;
sc->log_file = NULL;
sc->server_root = NULL;
sc->standart = NULL;
sc->not_exist = NULL;
sc->forbidden = NULL;
sc->bad_request = NULL;
sc->not... |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#if !defined( _WIN32) && !defined( DOS)
#define USE_TERMIOS
#include <unistd.h>
#include <termios.h>
#include <sys/ioctl.h>
static struct termios orig_term;
#endif
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef MOUSE... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
* mm-naive.c - The fastest, least memory-efficient malloc package.
*
* In this naive approach, a block is allocated by simply incrementing
* the brk pointer. A block is pure payload. There are no headers or
* footers. Blocks are never coalesced or reused. Realloc is
* implemented directly using mm_malloc and... |
/*
Host name mgt and access
Copyright (c) 2016, 2017. <NAME>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
/*####COPYRIGHTBEGIN####
-------------------------------------------
Copyright (C) 2006 <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
of the License, or (at you... |
/*
* Copyright (c) 2009-2012, <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:
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "esp_heap_caps.h"
#include "gui.h"
#include "font.h"
#define CANVAS_ROW 320
#define CANVAS_ROL 320
#define FLUSH_MAX_LINES 30
#define CHECK_NULL(x) do {if (x == NULL) {\
printf("input null, line: %d\n", __LINE__);\
return -1;\
}} while (0... |
#include <stdio.h>
#include <omp.h>
#include "../utilities/check.h"
#include "../utilities/utilities.h"
// enable tests
#define CHECK 1
#define DEBUG 0
#define N (992)
#define INIT() INIT_LOOP(N, {A[i] = 0; C[i] = 1; D[i] = i; E[i] = -i;})
int main(void){
#if CHECK
check_offloading()... |
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "archrpcg.h"
/*
* board-specific support for the RPCG RXLite
*/
enum {
SYSMHZ = 66, /* target frequency */
/* sccr */
RTSEL = IBIT(8), /* =0, select main oscillator (OSCM); =1, select external crystal (E... |
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include "bcm2835.h"
#define ICE40_SS_B_1 RPI_BPLUS_GPIO_J8_24
#define ICE40_CRESET_B_1 RPI_BPLUS_GPIO_J8_11
#define ICE40_CDONE_1 RPI_BPLUS_GPIO_J8_07
#define ICE40_SS_B_2 RPI_BPLUS_GPIO_J8_26
#define ICE40_CRESET_B_2 R... |
/* popen.c
RunSilent() is by <NAME>,
and pt_popen()/pt_pclose() is by <NAME>
Modified and comments translated by <NAME>
Please note an extension; if your commmand contains '2>&1'
then any error output will be redirected as well to the pipe.
Put this file in scite\lua\src\lib and add to your project
to ... |
/*****************************************************************************
* Copyright (c) 2019, Nations Technologies Inc.
*
* All rights reserved.
* ****************************************************************************
*
* Redistribution and use in source and binary forms, with or without
* mo... |
/* Copyright (C) 1997-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1997.
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... |
#pragma once
#include <stdint.h>
enum sx127x_modifiers {
SX127x_READ = 0b00000000,
SX127x_WRITE = 0b10000000,
};
enum sx127x_registers {
SX127x_FIFO = 0x00,
SX127x_OP_MODE = 0x01,
SX127x_FRF_MSB = 0x06,
SX127x_FRF_MID = 0x07,
SX127x_FRF_LSB = 0x08,
SX127x_PA_CONFIG = 0x09,
SX127x_PA_RAMP = 0x0A,
... |
/*CCMATH mathematics library source code.
*
* Copyright (C) 2000 <NAME> All rights reserved.
* This code may be redistributed under the terms of the GNU library
* public license (LGPL). ( See the lgpl.license file for details.)
* ----------------------------------------------------------------------... |
/* ESTRUCT: Structure and preprocesser */
/* internal constants */
#define NFILEN 80 /* maximum # of bytes, file name */
#define NBUFN 16 /* maximum # of bytes, buffer name */
#define NLINE 512 /* maximum # of bytes, line */
#define NKBDM 256 /* maximum # of strokes, keyboard macro */
#define NPAT 80 /* maximum #... |
#include "set.h"
#include "string.h"
#include "../../utils/misc.h"
#include "../../gc.h"
pl_int_t pylt_obj_set_cmp(PyLiteInterpreter *I, PyLiteSetObject *self, PyLiteObject *other) {
if (other->ob_type == PYLT_OBJ_TYPE_SET) {
if (pylt_obj_set_eq(I, self, other)) return 0;
if (pylt_obj_set_contai... |
/* Routines for reading and writing clusters */
#include "cluster.h"
/* open the file corresponding to this name */
cluster* open_cluster_file(const char* const file)
{
cluster* cp = ckallocz(sizeof(cluster));
FILE* fp = strcmp(file,"/dev/stdin") == 0 ? stdin : ckopen(file,"r");
cp->fp = fp;
cp->n = 1;
cp->fp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.