text stringlengths 5.8k 28.2k |
|---|
#include "cshiori.h"
bool cshiori_load(const char* dirpath, bool (*load)(const char*)){
return load(dirpath);
}
char* cshiori_request(char** const lines, const size_t lines_length, struct cshiori_response_message* (*request)(struct cshiori_request_message*, struct cshiori_response_message*)){
struct cshiori_... |
/*
* ISC License
*
* Copyright (C) 1988-2018 by
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 no... |
/****************************************************************\
* ESTate - Expressed sequence tag analysis tools etc. *
* Copyright (C) 1996-1999. <NAME>. *
* All Rights Reserved. *
* ... |
/**********************************************************************
*
* This file is part of the AWeb-II distribution
*
* Copyright (C) 2002 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the AWeb Public License as included in this
* distribution.
*... |
/*
** mouse:~ppr/src/pprdrv/pprdrv_res.c
** Copyright 1995--2005, Trinity College Computing Center.
** Written by <NAME>.
**
** 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 r... |
/*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#if defined __linux__ && defined __GNUC__ && !defined __clang... |
/**
******************************************************************************
* @file usb_desc.c
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Descriptors for Custom HID Demo
**************************************************************************... |
/**
* This software is subject to the ANT+ Shared Source License
* www.thisisant.com/swlicenses
* Copyright (c) Dynastream Innovations, Inc. 2012
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions ... |
/*======================================================================
*
* Logging facility
*
*====================================================================*/
#include "isi330.h"
#define MY_MOD_ID ISI330_MOD_LOG
static LOGIO lp;
static int level = LOG_INFO;
void LogCommandLine(int argc, char **argv)
{
... |
/*
* Copyright (c) 2010, Sangoma Technologies
* <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:
*
* * Redistributions of source code must retain the above copyright
... |
/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION ... |
/*
(c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<NAME> <<EMAIL>> and
... |
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/* vim: et ts=2 sw=2 tw=80: */
/*
* This file is part of the Nice GLib ICE library.
*
* (C) 2010, 2014 Collabora Ltd.
* Contact: <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 with
* the License. You m... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdbool.h>
#include <netdb.h>
#include <unistd.h>
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <ctype.h>
#include <sys/select.h>
#define MAX_LEN 4096
//createing client queue:
typedef struct Cli... |
/**************************************************************************
*
* Copyright 2009 VMware, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software witho... |
/*
libipfix - a library which provides an implementation of the IPFIX protocol
for flexible flow data support. IPFIX is the successor of NetFlow v9
(see http://www.ietf.org/dyn/wg/charter/ipfix-charter.html and
RFC5101 and RFC5102 for details)
Copyright (c) 2005-2011, <NAME>
... |
#include "sock.h"
#include "requestlib.h"
#include "boilerplate.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "thread.h"
#include "pthread.h"
pthread_mutex_t net_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t time_mutex = PTHREAD_MUTEX_INITIALIZER;
#ifdef WIN32
double ... |
/****************************************************************************
*
* Copyright (c) 2012-2017 PX4 Development Team. 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. Red... |
/*
* File: linunx.c
* CVS: $Id$
* Author: <NAME>
* <EMAIL>
* Mods: <NAME>
* <EMAIL>
* <NAME>
* <EMAIL>
*/
#include "papi.h"
#include "papi_internal.h"
#include "papi_vector.h"
#include "papi_memory.h"
#include "papi_protos.h"
/* Prototypes */
int mdi_init();
/* This s... |
/*****************************************************************************
* Copyright 2001 - 2007 Broadcom Corporation. All rights reserved.
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of... |
/******************************************************************************
* File Name : ad7799_filter_ten.c
* Date First Issued : 07/03/2015
* Board : STM32F103VxT6_pod_mm
* Description : ad7799 filtering
*******************************************************************************... |
/* gcbench.c -- "GC" Benchmark on ANSI C library
*
* $Id$
* Copyright (c) 2014-2020 Ravenbrook Limited. See end of file for license.
*
* This is an allocation stress benchmark test for gc pools
*/
#include "mps.c"
#include "testlib.h"
#include "testthr.h"
#include "fmtdy.h"
#include "fmtdytst.h"
#include "mpm.h... |
/*
Copyright (c) 1995-2019 by Arkkra Enterprises.
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 condition... |
/*
* linux/drivers/video/fbcvt.c - VESA(TM) Coordinated Video Timings
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* Based from the VESA(TM) Coordinated Video Timing Generator by
* <NAME> April 9, 2003 available at
* http://www.vesa.org/public/CVT/CVTd6r1.xls
*
* This file is subject to the terms a... |
/****************************************************************************
* arch/arm/src/samv7/sam_lowputc.c
*
* Copyright (C) 2015-2016 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
/**************************************************************************//**
* @file hal_dma.c
* @brief PDMA driver implementation.
*
* @note
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
********************************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
//should be unsigned 32bit int
typedef unsigned long int uint;
const uint INITIAL_STACK_SIZE = 50;
const uint INITIAL_HARBOR_SIZE = 10;
const double GROWTH_FACTOR = 1.2;
/********************************************************************... |
/******************************************************************************
* *
* Copyright (c) 2004, Geophysical Institute, University of Alaska Fairbanks *
* All rights reserved. *
... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the \"License\ you may not use this file except in compliance with
* the ... |
/* ====================================================================
*
*
* BSD LICENSE
*
* Copyright(c) 2021 Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
// WM8371 Codec support.
#include "dev_codec_wm8731.h"
#include "util_hal_map.h"
typedef struct {
uint8_t mcu_is_master, bitdepth;
int32_t sample_rate;
size_t block_size;
size_t stride;
I2C_HandleTypeDef *i2c;
}dsy_wm8731_handle_t;
#define W8731_ADDR_0 0x1A
#define W8731_ADDR_1 0x1B
#define W8... |
/* $Id: shoot_optim3d.c 7684 2019-10-30 14:21:34Z john $ */
/* (c) <NAME> (2011) */
#include<math.h>
extern double log(double x);
#include "spm_mex.h"
#include "shoot_optim3d.h"
#include "shoot_multiscale.h"
#include "shoot_regularisers.h"
static double dotprod(mwSize m, float a[], float b[])
{
mwSize i;
doub... |
/*
* Copyright 2010-2018 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 "lice... |
// Visualisation on the Raspberry PI
#include <math.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <rtl-sdr.h>
#include "bcm_host.h"
#include "GLES2/gl2.h"
#include "EGL/egl.h"
#include "EGL/eglext.h"
#include <fcntl.h>
#include <... |
#include "RTL/Host/tilek-rtl.h"
#include "KLT/RTL/kernel.h"
#include "KLT/RTL/loop.h"
#include "KLT/RTL/tile.h"
#include "KLT/RTL/data.h"
#include "KLT/RTL/context.h"
#include <CL/opencl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifndef COMPILE_OPENCL_KERNEL_WITH_DEBUG
#def... |
//#define NEW_NT
#define LIST
// NEW_NT works only with LIST, not with a callback function
/**
* trace.c
* Core that sends and receives traces from netrace
*
* MacSim project
*
*/
#include "trace.h"
#include "../../netrace/netrace.h"
// ugly but useful
extern node_t *nodes[];
uint_fast64_t packets_on_the_fly... |
/*
The VDRIVER - A Classic Video Game Engine
By <NAME> and Divine Entertainment (1997-2000)
Support:
If you find problems with this code, send mail to:
<EMAIL>
For additional information and updates, see our website:
http://www.divent.org
Distribution/Rights:
I could put things here that would mak... |
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "chashids.h"
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* some utils */
static size_t size_min_(size_t a, size_t b) {
return a > b ? b : a;
}
static size_t size_max_(size_t a, size_t b) {
return... |
#include "stm32f10x.h" // Device header
//#include "ADC_DMA.h"
#include "pinout.h"
#include "USART1_F103C8.h"
#include "INDICATOR_LED_TIM2.h"
#include "PWM_4CH_TIM3.h"
#include "SPI.h"
#include "stdio.h"
#include "misc.h"
#include "string.h"
#define UP '0'
#define DOWN '1'
#define LEFT '2'
#de... |
/*
* Copyright (c) 2006-2009 Red Hat Inc
*
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... |
#include <windows.h>
#define XUSER_NAME_SIZE 16
#define XUSER_INFO_FLAG_LIVE_ENABLED 0x00000001
#define XUSER_INFO_FLAG_GUEST 0x00000002
#define XUSER_GET_SIGNIN_INFO_ONLINE_XUID_ONLY 0x00000001
#define XUSER_GET_SIGNIN_INFO_OFFLINE_XUID_ONLY 0x00000002
#define INVALID_XUID ... |
#include "verity.h"
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include "vic.h"
#include "uuid.h"
#include "hexdump.h"
#include "hash.h"
#include "raise.h"
#include "crypto.h"
#include "round.h"
#in... |
/* -----------------------------------------------------------------------------
The netgrok() function takes input passed in from pxy_conn_ctx_new(),
pxy_bev_readcb(), and pxy_conn_ctx_free() in pxyconn.c. It then outputs info
about connection sessions in JSON format to an inter-process socket when an
SSLsplit connect... |
/*
# <<BEGIN-copyright>>
# Copyright 2021, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
*/
#include <limits.h>
#include <math.h>
#include "coulfg2.h"
#define ACCUR 1.0e-16
static int JWKB( double XX, double ... |
/*
* Copyright (c) 2008, Google Inc.
* All rights reserved.
*
* Copyright (c) 2009-2016, The Linux Foundation. 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 sour... |
//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Handling of the chip-to-host events (aka indications) of the hardware API.
*
* Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson
*/
#include <linux/skbuff.h>
#include <linux/etherdevice.h>
#include "hif_rx.h"
#include "wfx.h"
#inclu... |
/* Copyright 2007-2009,2011 ENSEIRB, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free software. You can
**... |
/*
Part of S3TConv, a library for converting S3TC textures to other formats.
https://github.com/Triang3l/S3TConv
Copyright (c) 2017 Triang3l.
Contains portions of Compressonator:
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
Copyright (c) 2004-2006 ATI Technologies Inc.
Permission is h... |
/**
* Licensed to JumpMind Inc under one or more contributor
* license agreements. See the NOTICE file distributed
* with this work for additional information regarding
* copyright ownership. JumpMind Inc licenses this file
* to you under the GNU General Public License, version 3.0 (GPLv3)
* (the "License"); yo... |
/*
Copyright (C) 2003-2005 <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 your option) any later version.
This program is distributed in t... |
// MAH: start
/* Port table actions. */
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include "compat.h"
#include <linux/if_ether.h>
#include <linux/if_vlan.h>
#include <net/llc_pdu.h>
#include <linux/ip.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/llc.h>
#include <linux/modul... |
#include "fqCoDel.h"
#include "plugin.h"
#include "memory.h"
#include "picoquic_internal.h"
//value common bdp --> 50 mbit/s * 26 ms
#define STATIC_BDP 162500
//#define QUEUE_SIZE 375000
#define QUEUE_SIZE 10000000
#define DBG false
#ifndef NUM_FLOWS
#define SHIFT 9 //1024 queues
#define NUM_FLOWS 2 << SHIFT
#endif
... |
/**
* Driver for ST7735 LCD
*
* Copyright Thinnect Inc. 2020
* @license MIT
*/
#include "st7735.h"
#include "st7735_config.h"
#include "font8x8_basic.h"
#define ST7735_NOP 0x00
#define ST7735_SWRESET 0x01
#define ST7735_RDDID 0x04
#define ST7735_RDDST 0x09
#define ST7735_SLPIN 0x10
#define ST7735_SLPO... |
#include "wasmer.h"
#include "svm_wasmer.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
// Credits:
// wasmer related code has been copied and modified from:
// https://sourcegraph.com/github.com/wasmerio/wasmer/-/blob/lib/runtime-c-api/tests/test-imports.c
typedef struct {
uin... |
/* Parse genbank metadata from RA files. */
#include "gbMDParse.h"
#include "common.h"
#include "hash.h"
#include "portable.h"
#include "linefile.h"
#include "dystring.h"
#include "jksql.h"
#include "dbLoadOptions.h"
#include "gbDefs.h"
#include "gbVerb.h"
#include "gbFileOps.h"
#include "gbMiscDiff.h"
#include "gbWarn... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/* @source restover application
**
** Reports restriction enzyme that produce specific overhangs
** @author Copyright (C) <NAME>
** @@ modified source from Alan
**
** 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 t... |
/* Copyright (C) 2011,2014 by <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... |
/*
Arduino Library for RV-1805-C3
Copyright (c) 2018 <NAME>
https://github.com/MacroYau/RV-1805-C3-Arduino-Library
*/
#include "RV1805C3.h"
#include "i2c_simple_master.h"
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
bool RV1805C3_init() {
// Wire.begin(... |
/*
* Copyright 2015 Rockchip Electronics 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... |
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2000-2004, <NAME> <<EMAIL>,
* <NAME> <<EMAIL>>,
* oddsock <<EMAIL>>,
* <NAME> <<EMAIL>>... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <time.h>
#include <sys/shm.h>
#include <sys/wait.h>
#include "errExit.h"
#include "myfifo.... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2019 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 ... |
#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... |
/*
###################################################
# MILESTONE: 5
# PROGRAM: 1
# PROJECT: Final Project
# GROUP: B02
# NAME 1: <NAME>, V00873928
# NAME 2: <NAME>, V00870654
# DESC: Sort objects quickly and accurately
# DATA:
# REVISED:
#####################################################
*/
// INCLUDES
#include <... |
#include "main.h"
#include "sprites.h"
#include "graphics/world_0_sprites.h"
#include "title.h"
#include "helper.h"
#include <gb/gb.h>
#include <rand.h>
UBYTE playerX, playerY, playerXVel, playerYVel, playerWorldPos;
enum PLAYER_DIRECTION playerDirection;
UBYTE* currentMap;
UBYTE* * * currentMapSprites;
UBYTE* tempP... |
#include "../headers/fpout.h"
/*
* Copyright <2012> <<NAME>,<NAME>, <NAME>>
* Copyright <2013-2018> <<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, includi... |
/**
* @file
*/
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the acco... |
/*
Copyright 2017 <NAME> <<EMAIL>> @drashna
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 distributed in the... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <malloc.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <libaio.h>
#include <assert.h>
#include <math.h>
#include <time.h>
#include "utils.h"
#include "logSpeed.h"
#include "aioRequests.h"
extern volatile int keepRunning;
#define DISPLAYEVERY ... |
/* Copyright (c)2008 <NAME>.
* Licensed under the Ruby License. See LICENSE for details.
*
*/
#include "ffmpeg.h"
#include "ffmpeg_utils.h"
#include <unistd.h>
VALUE rb_cFFMPEGStream;
int audio_count = 0;
int video_count = 0;
static int
next_packet(AVFormatContext * format_context, AVPacket * packet)
{
if(pack... |
/* Small compiler - Staging buffer and optimizer
*
* The staging buffer
* ------------------
* The staging buffer allows buffered output of generated code, deletion
* of redundant code, optimization by a tinkering process and reversing
* the ouput of evaluated expressions (which is used for the reversed
* ... |
/******************************************************************************
Curse of War -- Real Time Strategy Game for Linux.
Copyright (C) 2013 <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 Sof... |
#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <fcntl.h>
#include <termios.h>
#include "vie.h"
#define VIE_VERS... |
/******************************************************************************
* Copyright (c) 2016, NXP Semiconductors
* 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. Redistributio... |
#include "options.h"
#include "path.h"
#include "app.h"
#include "mruby.h"
#include "mruby/irep.h"
#include "mruby/string.h"
#include "mruby/array.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
#include <stdio.h>
#include <stdlib.h>
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Event event;
SDL_Tex... |
/*
* Copyright (c) 2012 Qualcomm Atheros, Inc.
* Copyright (c) 2013,2016-2020 <NAME> <<EMAIL>>
*
* 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 copies.
... |
/* vim:set noet ts=8 sw=8 : */
#define GREENLET_MODULE
#include "greenlet.h"
#include <assert.h>
#include <limits.h>
#include <memory.h>
#include <stdlib.h>
#define PyThreadState gr_thread
#define PyTypeObject void*
#define PyObject void
#define PyThreadState_GetDict() _thread.dict
#define PyThreadState_GET() (&_... |
/*
* Copyright (c) 2012-2013 <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.
*
* This program is distributed in the hope that it would be useful,
* but WITHOUT ANY WAR... |
#include <stdlib.h>
#include "mutexes.h"
#include "semas.h"
#include "queues.h"
//@ #include "ghost_counters.gh"
//@ #include "splittable_counting.gh"
#include "channels.h"
/*
Deadlock-preventing specification approach based on [<NAME>, <NAME>, <NAME>. Deadlock-free channels and locks. ESOP 2010].
This is not the mo... |
#include "asm.h"
#include "util.h"
#include "errors.h"
#include "crust.h"
#include "parser.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#define MAX_INT_LEN 10
#define MEMORY_REF(x) (isdigit(x[0]) || x[0] == '-')
struct Asm *asm_alloc(struct Args *args, bool main)... |
/*-----------------------------------------------------------------------------
* $RCSfile: CalcAsyncApp.c,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*-----------------------------------------------------------------------------
*/
#include "CalcAsyncC... |
/*
* Copyright (c) 2012-2013 Etnaviv Project
*
* 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... |
/*
* (C) Copyright 2018-2020
* SPDX-License-Identifier: GPL-2.0+
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* wangwei <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <arch/pmic_bus.h>
#include <arch/axp2202_reg.h>
#include <private_boot0.h>
static int pmu_set_vol(ch... |
////////////////////////////////////////////////////////////////////////////////
//
// @file element_command.c
//
// @brief Implements client/request side of commands
//
// @copy 2018 Elementary Robotics. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
#includ... |
/*
*
* Xilinx, Inc.
* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
* COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
* ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
* STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
* IS FREE FROM ... |
/*
* refclock_shm - clock driver for utc via shared memory
* - under construction -
* To add new modes: Extend or union the shmTime-struct. Do not
* extend/shrink size, because otherwise existing implementations
* will specify wrong size of shared memory-segment
* PB 18.3.97
*/
#include "config.h"
#include "ntp... |
#include <stdio.h>
//#include <stdint.h>
#include <x86intrin.h>
#include "sm4_ref.h"
//#define SM4_ROUND 32
#define ROTL32(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
#define rotl32(t,num) (_mm_or_si128(_mm_slli_epi32(t,num),_mm_srli_epi32(t,32-num)))
static const uint32_t sm4_ck[32] = {
0x00070E15, 0x... |
/* grub-mount.c - FUSE driver for filesystems that GRUB understands */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008,2009,2010 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*... |
/*
* ***** 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include "LinkList.h"
#include "Stack.h"
#include "Queue.h"
#include "Grid.h"
int counter;
void assert_i(int program, int ideal, char* msg){
counter++;
if(program == ideal)
printf("%4d - Correct - %s\n", counter, msg);
else
printf("%4d - Wrong - %... |
/**
* Copyright 2014 Google 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 applic... |
#include <c89stringutils_string_extras.h>
#include <google_cloud_c/compute/compute_common.h>
#include <google_cloud_c/compute/instance.h>
struct InstanceContext INSTANCE_CONTEXT = {NULL, NULL, NULL};
const struct Instances instancesNull = {NULL, 0};
bool instance_exists(const char *const instance_name) {
/* CHECK... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* If the C compiler is GCC 4.7 or later, define to the return value of
__atomic_always_lock_fr... |
#pragma once
#include <stddef.h>
#include <stdint.h>
// General Weft usage and object lifetime:
//
// 1) create a weft_Builder with weft_builder();
// 2) define your program using the weft_V{8,16,32,64} types and the many weft_Builder functions;
// 3) pass ownership of your weft_Builder to weft_compile() to crea... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2020-2022. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "ec_cuda.h"
#include "utils/ucc_malloc.h"
#include "utils/arch/cpu.h"
#include <cuda_runtime.h>
#include <cuda.h>
static const char *stream_task_modes[] = {
[UCC_EC_CUDA_TASK_KERNEL] = ... |
#include "touch.h"
#include "gui.h"
#include "lcd_engine.h"
#include <stdlib.h>
#include "macros.h"
#include "buttons.h"
//Declare function
int Buttons_meny_private(LCD_engine *lcd, TouchCalibration *TC,
ButtonsMeny *BM);
//Return length of the string
int length(char str[]) {
int l = 0;
if (!str)
... |
/*-
* Copyright (c) 2018 Microsemi 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 list... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.