text stringlengths 3.12k 18.7k |
|---|
/*
* (C) Copyright 2009 Samsung Electronics
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/arch/gpio.h>
#define S5P_GPIO_GET_PIN(x) (x % GPIO_PER_BANK)
#define CON_MASK(x) (0xf << ((x) << 2))
#define CON_SFR(x, v) ((v) <<... |
/*
Fuzzer.c
Automated test program for FSE
Copyright (C) <NAME> 2012-2013
GPL v2 License
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... |
#include "sprite.h"
#include "tinyframework.h"
typedef struct {
SDL_FPoint points[4];
} Collider;
typedef struct {
SDL_Rect frame;
Uint8 count; // quantidade de colliders
Collider* colliders;
} Frame;
typedef struct {
Uint32 duration;
Uint8 count; // quantidade de frames
Uint8 current; // ... |
/*
Madd Software Renderer
Copyright (c) 2014-2017, Madd Games.
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
l... |
#include "WinMain.h" // standard application includes
#include "Utility.h" // useful application independent routines
#include "Magnifier.h" // handles the magnifier window
#include "Resource.h" // resource identifiers
/*/
/ / ----------------------------------------------------------------------------------------... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include <pthread.h>
#ifdef HAVE_LIBCURL
#include <curl/curl.h>
#include <curl/easy.h>
#endif
#include "store.h"
#include "store_ro_http_proxy.h"
#include "render_config.h"
#in... |
/*
* Nemo programming language.
*
* Not really to be usefull in feature.
*
* Just learning by writing and being cool by
* saying "I've created a programming language".
*
* Copyright: (c) 2012-2013 by <NAME> <<EMAIL>>
*
* Started at:
* Sat Sep 15, 16:05:12 +0200 2012
*
* Checkpoints:
* Mon Apr 21, 00:1... |
#include "coordnum.h"
#include "chemmatrixaux.h"
#include "distance.h"
#include "pbc.h"
#include "utils.h"
#include <math.h>
#include <stdlib.h>
double n_ab_k(const double r_ab_k, const double r0, const double numer_pow)
{
return (1.0-pow((r_ab_k/r0), numer_pow));
}
double d_ab_k(const double r_ab_k, const doub... |
#include "types.h"
#include "x86.h"
#include "defs.h"
#include "date.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "svmm.h"
#define NULL ((void*)0)
#define SHARED_PAGE_LIMIT 1000
int
sys_fork(void)
{
return fork();
}
int
sys_exit(void)
{
exit();
return 0; // not reac... |
/*
* Sample showing how to use libssh2 to request agent forwarding
* on the remote host. The command executed will run with agent forwarded
* so you should be able to do things like clone out protected git
* repos and such.
*
* The example uses agent authentication to ensure an agent to forward
* is running.
*
... |
#include "src/globals.h"
#include "lib/neslib.h"
#include "src/sprites.h"
#pragma rodataseg ("ROM_01")
#pragma codeseg ("ROM_01")
static char sprite_directions[12];
static char sprite_direction_time[12];
const unsigned char sprite_data[] = {
// World
SPRITE_TYPE_WORLD_PIECE, SPRITE_SIZE_NORMAL | SPRITE_PALETTE_1 |... |
/*! \file
A non-linear 3d smoothing filter
The smoothing filter computes the most frequent value in a 6 (or 18)
neighbourhood and replaces the center pixel with this value.
The pixels within the neighbourhood are weighted.
\par Author:
<NAME>, MPI-CBS
*/
/* From the Vista library: */
#include <viaio/Vlib.h>
#inc... |
/************************** io_source_cmplx_fm.c ****************************/
/* MIMD version 7 */
/*
* Load the Fermilab format file for a 3D complex field.
*
*/
#include "generic_includes.h"
#include <string.h>
#include <assert.h>
#include <errno.h>
#define MAX_BUF_LENGTH 4096
#define ALL_T_SLICES -1
#define ... |
/**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyradio firmware
*
* Copyr... |
/*-
* Copyright (c) 2014,2016-2017 Microsoft Corp.
* 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 unmodif... |
/***********************************************************************
* Name(s) <NAME> *
* Box(s): 4507 *
* Supplemental Problem 4: A Daily Calendar Program *
* ... |
/* ******************************* c204.c *********************************** */
/* Předmět: Algoritmy (IAL) - FIT VUT v Brně */
/* Úkol: c204 - Převod infixového výrazu na postfixový (s využitím c202) */
/* Referenční implementace: <NAME>, listopad 1994 ... |
/**************************************************************************//**
* @file VerifyNuBL3x.c
* @version V3.00
* @brief This source file is used to authenticate the NuBL32 and NuBL33.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2020 Nuvoton Technology Corp. All r... |
/*
* iexecmd - The irods utility to execute user composed rules.
*/
#include "rodsClient.h"
#include "parseCommandLine.h"
#include "rodsPath.h"
void usage ();
int
main(int argc, char **argv) {
int status;
rodsEnv myEnv;
rErrMsg_t errMsg;
rcComm_t *conn;
rodsArguments_t myRodsArgs;
char *optS... |
/*
REPOP.C
Generalized arithmetic operators which implicity replicate their inputs when
they are not large enough for the input dimensions.
This file contains the generic type-independent c-code utility functions
which can be used stand-alone (i.e. w/o reference to matlab)
This should be compilied and linked ... |
/*
* untitled.c
*
* Code generation for model "untitled".
*
* Model version : 1.0
* Simulink Coder version : 8.12 (R2017a) 16-Feb-2017
* C source code generated on : Mon Jul 10 19:16:32 2017
*
* Target selection: sldrt.tlc
* Note: GRT includes extra infrastructure and instrumentation for prototyp... |
#include "../../defs.h"
#include "../../stub.c"
/*
PyFive Generic Test
*/
#include <stdint.h>
#include "ucode.h"
//static volatile uint32_t * const usb_regs = (void*)(0x30000000);
static volatile uint32_t * const midi_regs = (void*)(0x30100000);
static volatile uint32_t * const audio_regs = (void*)(0x30200000);... |
/* Copyright (C) 2017 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <utime.h>
#inc... |
/*==============================================================================*/
/** @file MeCRC16.c
@brief CRC Calculation Type CRC-CCITT (CRC-16)
@author Meerstetter Engineering GmbH: <NAME>
This File provides 2 possibilities to calculate the CRC-Checksum:
- Function with Table: Is f... |
/**
* Copyright (c) <NAME> <andreas[dot]fitzek[at]gmail[dot]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:
* Redistributions of source code must retain the above
* copyright no... |
/*
* make-cygwin-symlink.c Copyright (C) 2014-16 Codemist
*
* This program is intended to allow one to find a cygwin installation
* on the current machine. It makes fairly strong assumptions about where
* one might be!
*
* Usage:
*
*(a) make-cygwin-symlink name-for-cygwin
* Dele... |
#include <dirent.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#define LZ_BUF_SIZE 259
#define LZ_CAPACITY 24
#define LZ_MIN_MATCH 3
typedef struct{
uint16_t in;
uint16_t out;
} vocpntr;
uint8_t flags;
uint8_t... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* \file
* \brief ISO-8859-1 encoding / decoding
*
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <yaz/xmalloc.h>
#include "iconv-p... |
#include "proc.h"
#include "logging.h"
#include <drivers/timer.h>
#include <kernel/kmain.h>
#include <mmu/alloc.h>
#include <mmu/frame.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
dirent_t* proc_readdir(inode_t inode, uint64_t num);
inode_t proc_finddir(inode_t inode, const char* name);
uint64_t proc_... |
#include "iniparser.h"
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
/*
* Define the buffer so that it pads out the iniparser_state structure to
* 4096 bytes.
*/
#define BUFFER_SIZE 4096 - 2 * sizeof(... |
// ------------------------------------------------------------------
// profiler.c
// Copyright (C) 2019-2022 Black Paw Ventures Limited
// Please see terms and conditions in the file LICENSE.txt
#include "genozip.h"
#include "profiler.h"
#include "flags.h"
#include "vblock.h"
#include "file.h"
#inclu... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
//#include <sys/time.h>
#include <fcntl.h>
#ifdef __unix__
#include <unistd.h>
#endif
#include <time.h>
#include <string.h>
#include <stdint.h>
#include "time_functions.h"
#include "posmv.h"
#include <math.h>
#include "cmath.h"
#include "wbms_georef.h"
#if... |
//
// Created by svalov on 7/2/16.
//
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include "libraryLoader.h"
#include "configFiles.h"
#include "moarLibInterface.h" // MoarLayerStartupParams_T
#include "threadManager.h"
#include "moarLibrary.h"
#include "layerSocke... |
#define _GNU_SOURCE
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <mpd/client.h>
#include <gl... |
/******************************************************************************/
/* */
/* Copyright (c) 2013-2015, <NAME>, KAIST */
/* All rights reserved. */
/* ... |
///////////////////////////////////////////////////////////////////////////////
// NAME: scanner.c
//
// AUTHOR: <NAME> <<EMAIL>>
//
// DESCRIPTION: Implementation of the scanner.
//
// CREATED: 12/29/2021
//
// LAST EDITED: 01/07/2022
//
// Copyright 2021, <NAME>
//
// Permission is... |
/** @file struct_decoder.c
*
* Implementation of the protocol buffers struct decoder.
*
* Copyright 2009 <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://ww... |
/**
* @copyright Copyright 2021 Espressif Systems (Shanghai) 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/LI... |
/* Capstone Disassembler Engine */
/* By <NAME> <<EMAIL>>, 2013-2014 */
#include <stdio.h>
#include <assert.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
struct platform {
cs_arch arch;
cs_mode mode;
unsigned char* code;
size_t size;
const char* comment;
};
static csh handle;
static void pr... |
// IPC - Signal Mechanism
#include "types.h"
#include "riscv.h"
#include "defs.h"
#include "param.h"
#include "spinlock.h"
#include "proc.h"
#include "signal.h"
#include "signo.h"
static sigfunc_t default_func[SIGNAL_N] = {
[0 ... (SIGNAL_N - 1)] = SIGFN_KILL,
[SIGCHLD] = SIGFN_IGN,
[SIGCONT] = SIGFN_IGN
... |
/*
** -------------------------------------------------------------
** Copyright 2004-2008 Synopsys, Inc.
** All Rights Reserved Worldwide
**
** 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 o... |
/* mpc_fma -- Fused multiply-add of three complex numbers
Copyright (C) 2011, 2012 INRIA
This file is part of GNU MPC.
GNU MPC 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 3 of the Lice... |
/*
______ _
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2019 Semtech
Description:
Utility to get SX1302 c... |
/*
* shrink_streaming.c - streaming compression implementation
*
* Copyright (C) 2019 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted... |
// Buffer cache.
//
// The buffer cache is a linked list of buf structures holding
// cached copies of disk block contents. Caching disk blocks
// in memory reduces the number of disk reads and also provides
// a synchronization point for disk blocks used by multiple processes.
//
// Interface:
// * To get a buffer for... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "log.h"
#include "appconfig.h"
#include "procfile.h"
#include "rrd.h"
#include "plugin_proc.h"
#define RRD_TYPE_STAT "cpu"
#define RRD_TYPE_STAT_LEN strlen(RRD_TYPE_STAT)
int ... |
//
// client.c - Simple TCP/UDP client using Winsock 2.2
//
// This is a part of the Microsoft Source Code Samples.
// Copyright 1996 - 2000 Microsoft Corporation.
// All rights reserved.
// This source code is only intended as a supplement to
// Microsoft Development Tools and/or WinHe... |
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2020 Western Digital Corporation or its affiliates.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <sbi/riscv_asm.h>
#include <sbi/sbi_ecall.h>
#include <sbi/sbi_ecall_interface.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_hart... |
/* =================================================== */
/* Intelligent FRAC. (C) 2000 <NAME> */
/* --------------------------------------------------- */
/* See LICENSE regarding distribution policy and */
/* conditions of use. */
/* ===============================... |
/* drm_lists.h -- Buffer list handling routines -*- linux-c -*-
* Created: Mon Apr 19 20:54:22 1999 by <EMAIL>
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to... |
/*
* Copyright (C) 2000 - 2007 <NAME> (<EMAIL>)
* Licensed under the GPL
*/
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sched.h>
#include <signal.h>
#include <termios.h>
#include <sys/ioctl.h>
#include "chan_user.h"
#include "kern_constants.h"
#include "os.h"
#include "um_malloc.h"
#include... |
// *************************************************************************************************
//
// Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided t... |
/* $FreeBSD: src/sys/dev/iir/iir_ctrl.c,v 1.17 2005/05/06 02:32:34 cperciva Exp $ */
/*-
* Copyright (c) 2000-03 ICP vortex GmbH
* Copyright (c) 2002-03 Intel Corporation
* Copyright (c) 2003 Adaptec Inc.
* All Rights Reserved
*
* Redistribution and use in source and binary forms, with ... |
/*
Copyright 2010-2013 SourceGear, LLC
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 writing, softwar... |
#include "stdio.h"
#ifndef mips
#include "stdlib.h"
#endif
#include "xlisp.h"
#include "sound.h"
#include "falloc.h"
#include "cext.h"
#include "biquadfilt.h"
void biquadfilt_free(snd_susp_type a_susp);
typedef struct biquadfilt_susp_struct {
snd_susp_node susp;
long terminate_cnt;
bool... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static doublecomplex c_b1 = {0.,0.};
static doublecomplex c_b2 = {1.,0.};
static integer c__1 = 1;
/* Subroutine */ int zlaqps_(integer *m, integer *n, integer *offset, integer
*nb, integer *kb, doublecomplex *a, integer *lda, integer *jpvt,
d... |
/*-------------------------------------------------------------------------
*
* nodeDynamicSeqscan.c
* Support routines for scanning one or more relations that are
* determined at run time. The relations could be Heap, AppendOnly Row,
* AppendOnly Columnar.
*
* DynamicSeqScan node scans each relation one a... |
#include "ite/ite_mac.h"
static struct mii_ioctl_data phy_reg = { CFG_NET_ETHERNET_PHY_ADDR, 0, 0, 0 };
#define phy_set_page(page) do { phy_reg.reg_num=31; phy_reg.val_write=page; iteMacIoctl(&phy_reg, IOCSMIIREG); } while(0)
#define phy_reg_write(reg,val) do { phy_reg.reg_num=(reg); phy_reg.val_write=(val);... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) a... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... |
/*
* Copyright (C) 2012 Samsung Electronics
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 ... |
/* edwFakeBiosample - Fake up biosample table from meld of encode3 and encode2 sources.. */
/* Copyright (C) 2014 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#inclu... |
/* hgStanfordMicroarray - Load up from Stanford Microarray Database files. */
/* Copyright (C) 2013 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/* Mesh Manual Networking Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <... |
/*
* Unless explicitly stated otherwise all files in this repository are licensed
* under the Apache-2.0 License.
*
* This product includes software developed at Datadog
* (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
*/
#include "utf16_utf8.h"
#include "common.h"
#include "logging.h"
#include <stdb... |
/* Copyright (C) 2004 <NAME> <<EMAIL>> */
#include "sidl_hashtable.h"
#include "sidl_hashtable_private.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
/*
Credit for primes table: <NAME>
http://br.endernet.org/~akrowne/
http://planetmath.org/encyclopedia/GoodHashTablePrimes.html
*/
st... |
/*-
* Copyright (c) 2004 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 and the follo... |
/* repeatSelect - Grab x % more repeats in addition to what we already got. */
/* Copyright (C) 2006 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "bits.h"
#include "binRange.h"
#include "linefile.h"
#include "rmskOutE... |
#include <stdio.h>
#include <math.h>
#include "constants.h"
#include "vector.h"
#include "matrix.h"
#include "wannorb.h"
#include "wanndata.h"
#include "rotate_ham.h"
void init_vector(vector * v, double x, double y, double z) {
v->x=x;
v->y=y;
v->z=z;
}
int translate_match(vector * rv, vector x1, vector ... |
//////////////////////////////////////////////////////////////////////////
// Plog - portable and simple log for C++
// Documentation and sources: https://github.com/SergiusTheBest/plog
// License: MPL 2.0, http://mozilla.org/MPL/2.0/
#pragma once
#include <plog/Logger.h>
#include <plog/Init.h>
///////////////////... |
/*
* Copyright (c) 2012, <NAME>. All rights reserved.
*/
#include "usdt_internal.h"
#include <stdio.h>
#include <stdlib.h>
static uint8_t
dof_version(uint8_t header_version)
{
uint8_t dof_version;
/* DOF versioning: Apple always needs version 3, but Solaris can use
1 or 2 depending on wh... |
/*
* Simple IDCT
*
* Copyright (c) 2001 <NAME> <<EMAIL>>
*
* This file is part of Libav.
*
* Libav 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, or (at y... |
/* Copyright 2016 <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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARR... |
#include "http.h"
#include "logger.h"
#include "config.h"
#include "cache.h"
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
static const char *C_ENDLINE = "\r\n";
static const char *C_GET = "GET";
static const char *C_HEAD = "HEAD";
static const char *C_OPTIONS = "OPTIONS";
static cons... |
/*
* (C) Copyright 2011 Comelit Group SpA
* <NAME> <<EMAIL>>
*
* Based on board/ti/beagle/beagle.c:
* (C) Copyright 2004-2008
* Texas Instruments, <www.ti.com>
*
* Author :
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Derived from Beagle Board and 3430 SDP code by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
*
... |
#include <jo/jo.h>
#include "Entities/emit.h"
#include "linkedList.h"
#include "aabb.h"
#include "Entities/tank.h"
#include "Entities/bullet.h"
#include "map.h"
// Temporary quad
static jo_3d_quad solidWall;
static jo_vertice solidWallVertices[] = { {0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}};
static jo_3d_quad breaka... |
/*================================================================
* Copyright: 2020 <NAME>
* uniforms_advanced
Show how to construct multiple uniforms handles using sub-names
(useful for struct definitions) in shaders.
Can then upload block data for uniform binding.
Modified from: https://lea... |
/**********************************************************************
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.net
*
* PostGIS 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... |
/*
* Copyright 2015-2016 Dasudian.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://dsd.dasudian.com/apache2.0
*
* or in the "l... |
/**
* \file score.c
* \brief Highscore handling for Angband
*
* Copyright (c) 1997 <NAME>, <NAME>, <NAME>
*
* This work is free software; you can redistribute it and/or modify it
* under the terms of either:
*
* a) the GNU General Public License as published by the Free Software
* Foundation, version 2, or... |
/*-
* Copyright (c) 2011 <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... |
/* n_37.t: Translation limits. */
/* 37.1: Number of parameters in macro: at least 31. */
#define glue31(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E) \
a##b##c##d##e##f##g##h##i##j##k##l##m##n##o##p##q##r##s##t##u##v##w##x##y##z##A##B##C##D##E
/* 37.2: Number of arguments of macro call:... |
/*
* mace.h - definitions for the registers in the Am79C940 MACE
* (Medium Access Control for Ethernet) controller.
*
* Copyright (C) 1996 <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 F... |
/*
* SPEED - by <NAME>, 1999
*
* Hiscore table.
*/
#include <stdio.h>
#include <string.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_primitives.h>
#include "speed.h"
#define NUM_SCORES 8
#define MAX_NAME_LEN 24
/* the score ta... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the... |
#include <string.h>
#include "archiver.h"
#include "desarchiver.h"
#include "modification.h"
#include "creation.h"
int args = 0x0;
void cleanup(int args, char *mtr) {
//while(wait(NULL)!=1){}
char *tmp = NULL;
get_file_name(mtr, &tmp);
//printf("hey : %d\n",args);
if ((args & GZIP) && (args & (ADD... |
/*-
* SSLsplit - transparent SSL/TLS interception
* https://www.roe.ch/SSLsplit
*
* Copyright (c) 2009-2018, <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. Redistr... |
/*
* Copyright 2018 The Opentls Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.opentls.org/source/licens... |
/*
Copyright (c) 2019-2020 <NAME>, <NAME>, <NAME>, <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 condition... |
/* SPDX-License-Identifier: MIT */
#include "hv.h"
#include "assert.h"
#include "cpu_regs.h"
#include "gxf.h"
#include "memory.h"
#include "pcie.h"
#include "smp.h"
#include "string.h"
#include "usb.h"
#include "utils.h"
#define HV_TICK_RATE 1000
DECLARE_SPINLOCK(bhl);
void hv_enter_guest(u64 x0, u64 x1, u64 x2, u6... |
/*
* MIT License
*
* Copyright (c) 2009 <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, m... |
/*
** $Id: cpdelta.c,v 1.2 2003/11/28 14:15:48 joshi Exp $
*/
#include <math.h>
#include "mex.h"
/*
** some helpers
*/
#if !defined(max)
#define max(A, B) ((A) > (B) ? (A) : (B))
#endif
#if !defined(min)
#define min(A, B) ((A) < (B) ? (A) : (B))
#endif
/*
** C implementation of one epoch of the p-delta learning al... |
/* Copyright 2020 MelGeek <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distrib... |
/*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2021, <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 copyrig... |
/*
Bacula(R) - The Network Backup Solution
Copyright (C) 2000-2017 <NAME>
The original author of Bacula is <NAME>, with contributions
from many others, a complete list can be found in the file AUTHORS.
You may use this file and others of this release according to the
license defined in the LICENSE ... |
//\Ignore{
/*
The following additional features may be implemented:
-d x: specify chain depth (min number of fragments in a chain) with
value x (integer). EASY
-pc x: percentage coverage of the EST (0<x<1). Ask Mohamed
Ask which model of gap costs he implemented.
Ideas for improving th... |
/*
Copyright 2012-2016 <NAME> <http://drobilla.net>
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.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.