text stringlengths 7.55k 41.9k |
|---|
// ------------------------------------------------------------------
// dict_id.c
// Copyright (C) 2020 <NAME> <<EMAIL>>
// Please see terms and conditions in the files LICENSE.non-commercial.txt and LICENSE.commercial.txt
#include "genozip.h"
#include "dict_id.h"
#include "data_types.h"
#include "file.h"
#incl... |
// Automatically typing terminal.
//
// Copyright (c) 2019/2020, Sebastian "basxto" Riedel <<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 copie... |
/* $OpenBSD: rarpd.c,v 1.52 2010/08/29 12:33:25 chl Exp $ */
/* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... |
/*
* 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... |
/*
EmbeddedGUI Library version 0.5.4
Copyright (C) 2009 WangChao
This program 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 License, or
(at your option) a... |
// VirtualXT - Portable IBM PC/XT emulator written in C.
// Copyright (c) 2019-2020 <NAME> (<EMAIL>)
//
// This work is licensed under the MIT License. See included LICENSE file.
#include "vxt.h"
#include "kb.h"
#include "version.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#inclu... |
/*
* Copyright 2012 <NAME> (<EMAIL>, <EMAIL>)
*
* 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 o... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include "timer.h"
#include "generate.h"
static void print_help() {
fprintf(stderr,"usage: bench [OPTIONS]\n");
fprintf(stderr,"options:\n");
fprintf(stderr, "-b 200\n");
fprintf(stderr, "\tbench size in... |
/*
* hidutils.c
*
* Platform-specific USB module for *BSD ugen USB driver.
*
* Based on linux-usb.c by <NAME>.
*/
/*
* Copyright (C) 2004-2005 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General
* Public License as published by... |
/**
* Copyright (C) 2020 Tristan <<EMAIL>>
*
* All Rights Reserved.
*
* Permission to use, copy, modify, and 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... |
#include <Python.h>
#include <numpy/ndarrayobject.h>
void
weights_gauss_legendre005003 (const double *restrict sigma, int n, int ssi, int ssr,
double *restrict omega, int wsi, int wsl, int wsr)
{
int i;
double acc, sigma0, sigma1, sigma2, sigma3, sigma4, omega1, omega6p, omega0, omega9p, omega7m,
omeg... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/*
* Copyright 2017 Advanced Micro Devices, Inc.
*
* 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
* on the rights to use, copy, modify... |
/* $OpenBSD: schizoreg.h,v 1.21 2008/12/16 22:27:34 kettenis Exp $ */
/*
* Copyright (c) 2002 <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 sou... |
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <cairo.h>
#include <stdatomic.h>
#include "common/fmplayer_file.h"
#include "fmdriver/fmdriver_fmp.h"
#include "fmdriver/fmdriver_pmd.h"
#include "fmdriver/ppz8.h"
#include "libopna/opna.h"
#include "libopna/... |
#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... |
/* module.c - Managing modules
Copyright (c) 2010-2011 <NAME>
Alore is licensed under the terms of the MIT license. See the file
LICENSE.txt in the distribution.
*/
#include "module.h"
#include "parse.h"
#include "class.h"
#include "ident.h"
#include "memberid.h"
#include "mem.h"
#include "gc.h"
#include "... |
/**********************************************************************************************/
/* The MIT License */
/* */
/* Copyright 2016-2017 Twitch... |
/*
* Copyright (c) 2008-2009 <NAME>, <NAME>
* Copyright (c) 2008 Atheros Communications, Inc.
*
* 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.
*... |
/**
* poisson.c
*/
/* Include libraries */
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <mpi.h>
/* Set level of verbosity */
/* 0 = No messages */
/* 1 = Print parameters */
/* 2 = Print debug information */
#define VERBOSE 1
/* Set style of fil... |
#include <spacetime.h>
#include "../../include/utils/concur_ctrl.h"
#include <time.h>
#include "util.h"
#include "inline-util.h"
///
#include "../../include/hades/hades.h"
#include "../../include/wings/wings.h"
///
int
inv_skip_or_get_sender_id(uint8_t *req)
{
spacetime_op_t* op_req = (spacetime_op_t *) req;
if(EN... |
/******************************************************************
*
* Copyright 2018 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
*
* ... |
/*
* 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... |
/*
* SH7750 device
*
* Copyright (c) 2007 <NAME>
* Copyright (c) 2005 <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 ri... |
#include "object.c"
#include "code.h"
#include "degrade.h"
/*
* Header
*/
static int test_symbol(void)
{
#if defined(LISP_ARCH_32BIT)
test((SYMBOL_INDEX_SIZE % 2) == 0, "symbol.1");
RETURN;
#else
return 0;
#endif
}
/*
* object
*/
static int test_nil(void)
{
addr left;
Nil = Unbound;
nil_heap();
test(Ge... |
/**
* @file suite_biobj_utilities.c
* @brief Implementation of some functions (mostly handling instances) used by the bi-objective suites.
*
* @note Because some bi-objective problems constructed from two single-objective ones have a single optimal
* value, some care must be taken when selecting the instances. The... |
#define __DBL_MIN_EXP__ (-125)
#define __HQ_FBIT__ 15
#define __UINT_LEAST16_MAX__ 65535U
#define __ATOMIC_ACQUIRE 2
#define __SFRACT_IBIT__ 0
#define __FLT_MIN__ 1.17549435e-38F
#define __BUILTIN_AVR_SLEEP 1
#define __BUILTIN_AVR_COUNTLSULLK 1
#define __BUILTIN_AVR_COUNTLSULLR 1
#define __UFRACT_MAX__ 0XFFFFP-16UR
#de... |
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"
#inc... |
/*
* See LICENSE for licensing information
*/
#include <string.h>
#include <arpa/inet.h>
#include <glib/gstdio.h>
#include "shd-tgen.h"
#define MAX_EVENTS_PER_IO_LOOP 100
struct _TGenDriver {
/* our graphml dependency graph */
TGenGraph* actionGraph;
/* the starting action parsed from the action grap... |
#include "LISAinference_common.h"
#include "LISAinference.h"
/******************************************** getphysparams routine ****************************************************/
/* Order of the parameters (fixed): m1, m2, tRef, dist, phase, inc, lambda, beta, pol */
void getphysparams(double *Cube, int *ndim) /*... |
/******************************************************************************
*
* Copyright(c) 2009-2012 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundati... |
/*
* Create a blob with a Multiboot2 image for the ARMv8 platform
*
* This tool reads menu.lst, loads a boot driver, a CPU kernel and modules,
* and assemble them into a Multiboot2 image. Adds also relocation info for
* the driver and the kernel.
*
* Copyright (c) 2016, ETH Zurich.
* All rights reserved.
*
* ... |
/*************************************************************************************************************
Copyright 2021-2022, Skyworks Solutions, 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 Lice... |
#include "graph_defs.h"
#ifndef DIMACS
typedef uncompressed_vertex_t uncompressed_vertex_type;
#else
typedef uncompressed_dimacs_vertex_t uncompressed_vertex_type;
#endif
typedef struct dfs_metadata_st {
char touched;
unsigned long parent;
unsigned long children;
unsigned long child_next;
unsigned long stac... |
// SPDX-License-Identifier: MIT
/*
* Copyright © 2020 Intel Corporation
*/
#include "intel_de.h"
#include "intel_display_types.h"
#include "skl_scaler.h"
#include "skl_universal_plane.h"
/*
* The hardware phase 0.0 refers to the center of the pixel.
* We want to start from the top/left edge which is phase
* -0.5.... |
/**********
STAG version 2.7
Copyright 2000 owned by the United Kingdom Secretary of State for Defence
acting through the Defence Evaluation and Research Agency.
Developed by : <NAME>,
Department of Electronics and Computer Science,
University of Southampton,
... |
/*
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 Publi... |
/*
* Copyright (c) 2011 <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 law or agreed to... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <netdb.h>
#include <string.h>
#include <sys/types.h>
#... |
#include<epi.h>
void
epi_init_disease()
{
FILE *f = NULL;
epi_disease *d;
epi_ic_stage *s;
unsigned int i;
unsigned int j;
double multiplier;
char line[255];
char fname[255];
printf("EPI Disease Stage Initialization: %s\n\n", g_epi_ic_fn);
if(NULL == (f = fopen(g_epi_ic_fn, "r")))
tw_error(T... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*/
static char Version_ID[] = "bruker.c v2.71 STM 3/13/98";
/* This modu... |
/*********************************************************************
* Copyright (c) 2010 Massachusetts Institute of Technology *
* *
* Permission is hereby granted, free of charge, to any person *
* obtaining a copy of this software... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2014-2020 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2019 Research Organization for Information Science
* ... |
/*
* debug stuff
* (C) notaz, 2006-2009
*
* This work is licensed under the terms of MAME license.
* See COPYING file in the top-level directory.
*/
#include "pico_int.h"
#include "sound/ym2612.h"
#include "memory.h"
#include "debug.h"
#define bit(r, x) ((r>>x)&1)
#define MVP dstrp+=strlen(dstrp)
void z80_debug... |
// Font atlas and string geometry generator
// Based on <NAME>'s stb_truetype.h library
// <NAME> - 3 May 2018 <<EMAIL>>
// C99
// Licence: GNU GPL v3
#include "font.h"
#define STB_RECT_PACK_IMPLEMENTATION
#include "stb_rect_pack.h"
#define STB_TRUETYPE_IMPLEMENTATION
#include "stb_truetype.h"
#include <GL/glew.h>
#in... |
/*****************************************************************************
Copyright (c) 2012 <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 with... |
// spirv_module.c - <NAME> - BSD-3-Clause (see LICENSE)
#include "spirv_module.h"
#include "spirv_binary.h"
#include "spirv/spirv.h"
#include "spirv_text.h"
#include "dyn_array.h"
#include <assert.h>
#include <stdlib.h>
/* allocation / initialization functions */
static inline Type *new_type(SPIRV_module *module, u... |
/*
* 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... |
/*********************************************************************
* openNetVM
* https://sdnfv.github.io
*
* BSD LICENSE
*
* Copyright(c)
* 2015-2019 George Washington University
* 2015-2019 University of California Riverside
* 2010-2019... |
#include "types.h"
#include "tetrimino_helper.h"
#include "game_window.h"
void gw_render_game_over_screen() {
color text_color = th_random_color();
// G
position g_pos1 = { 2, GB_ROWS - 7 };
position g_pos2 = { 2, GB_ROWS - 8 };
position g_pos3 = { 2, GB_ROWS - 9 };
position g_pos4 = { 2, GB_ROWS - 10 };
posi... |
/**
* Copyright (c) 2016-2021 <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, publis... |
//
// Created by palulukan on 12/11/21.
//
#include "mmu.h"
#include "log.h"
#include "cpu.h"
#include <assert.h>
#include <string.h>
#define MMU_MMR0_MMU_EN (1 << 0) // Enable Relocation
#define MMU_MMR0_PAGE_NO_MASK 0x000E // Page Number
#define MMU_MMR0_SET_PAGE_NO(mmr, page) ((mmr) = ((mmr) &... |
/****************************************************************/
/* library.c - Gphoto2 library for cameras with sunplus spca50x */
/* chips */
/* Copyright (C) 2002, 2003 <NAME> */
/* ... |
#include "system_common.h"
#include "nrc_ps_api.h"
#include "nrc_wifi.h"
#include "driver_nrc.h"
#include "driver_nrc_scan.h"
#include "driver_nrc_debug.h"
#include "driver_nrc_ps.h"
#include "umac_info.h"
#include "umac_s1g_channel.h"
#include "lmac_util.h"
#include "lmac_ps_common.h"
#include "lwip/etharp.h"
#inc... |
/*
* copyright (c) 2009 <NAME>
* This file is part of FFmpeg.
*
* FFmpeg 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 your option) any later version... |
/*
* uitsMP4Manager.c
* UITS_Tool
*
* Created by <NAME> on 4/2/10.
* Copyright 2010 Universal Music Group. All rights reserved.
*
* $Date$
* $Revision$
*
*/
#include "uits.h"
char *mp4ModuleName = "uitsMP4Manager.c";
char *uitsUUIDString = "99454E27-963A-4B56-8E76-1DB68C899CD4";
/*
*
* Function: ... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
/* $NetBSD: netbsd32_ioctl.c,v 1.14 2002/01/03 02:29:39 mrg Exp $ */
/*
* Copyright (c) 1998, 2001 <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 c... |
//include "video/tms9918/all.h"
static const uint64_t HSC_OFFS = (47-17);
static const uint64_t LINT_OFFS = (47-17);
static const uint64_t SLATCH_OFFS = (47-15);
static const uint64_t VINT_OFFS = (47-18);
void VDPNAME(estimate_line_irq)(struct VDP *vdp, struct EmuGlobal *G, struct EmuState *state, uint64_t timestamp)... |
// c4.c - C in four functions
// char, int, and pointer types
// if, while, return, and expression statements
// just enough features to allow self-compilation and a bit more
// Written by <NAME>
//#include <stdio.h>
//#include <stdlib.h>
//#include <memory.h>
//#include <unistd.h>
//#include <fcntl.h>
//#define int... |
/*
* pg.c - Toplevel extension
* $Id: pg.c,v d0c5d5f7f1e8 2012/12/26 21:09:28 kanis $
*
* Author/s:
*
* - <NAME> <<EMAIL>>
* - <NAME> (ts) <<EMAIL>>
* - <NAME> <<EMAIL>>
* - <NAME>
* - <NAME> <<EMAIL>>
* - <NAME> <<EMAIL>>
* - <NAME> <<EMAIL>>
*
* See Contributors.rdoc for the many additional fine people ... |
/*-------------------------------------------------------------------------
*
* nbtsort.c
* Build a btree from sorted input by loading leaf pages sequentially.
*
* NOTES
*
* We use tuplesort.c to sort the given index tuples into order.
* Then we scan the index tuples in order and build the btree pages
* for e... |
/**
* @file src/video.c Video stream
*
* Copyright (C) 2010 Creytiv.com
*
* \ref GenericVideoStream
*/
#include <string.h>
#include <stdlib.h>
#include <re/re.h>
#include <baresip.h>
#include "core.h"
/** Internal video-encoder format */
#ifndef VIDENC_INTERNAL_FMT
#define VIDENC_INTERNAL_FMT (VID_FMT_YUV420P)... |
/*
* Copyright (c) 1997-1999, 2003 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any ... |
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>) at
* Carlstedt Research & Technology.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... |
/*
* \file libpefile.c
* \brief Manages disassembly and reassembly of the PE COFF File Format
*/
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include "libpefile.h"
#include "../../common/common.h"
/* Min/Max Macros */
#define MIN(_a, _b) ((_a) < (_b) ? (_a) : (_b))
#define MAX(_a, _b) ((_a) > (_... |
/*
* (C) Copyright 2000
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* Adapted from FADS and other board config files to GTH by <EMAIL>
*
* 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... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "osboot.h"
#include <cmdline.h>
#include <device_id.h>
#include <fastboot.h>
#include <framebuffer.h>
#include <inet6.h>
#include <inttypes.h>
#i... |
/*
* Copyright © 2014 Broadcom
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* 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... |
extern int __VERIFIER_nondet_int();
extern void __VERIFIER_assume(int);
int nondet_signed_int() {
int r = __VERIFIER_nondet_int();
__VERIFIER_assume ((-0x7fffffff - 1) <= r && r <= 0x7fffffff);
return r;
}
typedef long unsigned int size_t;
typedef int wchar_t;
typedef enum
{
P_ALL,
P_PID,
P_PGID
} idtype_t... |
/* Shared library support for IRIX.
Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2004,
2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
This file was created using portions of irix5-nat.c originally
contributed to GDB by <NAME>.
This file is part of GDB.
This progr... |
#include"sc_camera_ov7725.h"
#include"FreeRTOS.h"
#include"task.h"
#include"fsl_debug_console.h"
#ifndef _OV7725CFG_H
#define _OV7725CFG_H
//////////////////////////////////////////////////////////////////////////////////
//ALIENTEK MiniSTM32开发板
//OV7725 驱动代码
//正点原子@ALIENTEK
//技术论坛:www.openedv.com
//修改日期:2017/11/1
... |
/* The config header is always included first. */
#include "iot_config.h"
/* Standard includes. */
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
/* Set up logging for this demo. */
#include "iot_demo_logging.h"
/* Platform layer includes. */
#include "platform/i... |
/*
* QEMU G364 framebuffer Emulator.
*
* Copyright (c) 2007-2009 <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) a... |
/*
Unix SMB/CIFS implementation.
test suite for netlogon ndr operations
Copyright (C) <NAME> 2007
Copyright (C) <NAME> 2011
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; e... |
/*-
* Copyright (c) 1980, 1989, 1993
* The Regents of the University of California. 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 abov... |
/*
* cmdlintf.c (Command Line Interface)
*
* Copyright (c) 2004, <NAME>
*/
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <stdarg.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdlib.h>
#include <... |
/*
** Copyright (c) 2014 <NAME>
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the Simplified BSD License (also
** known as the "2-Clause License" or "FreeBSD License".)
** This program is distributed in the hope that it will be useful,
** but without any warranty; ... |
/* Copyright (c) 2017-2019 Snowflake Computing Inc. All right reserved. */
#ifdef HAVE_CONFIG_H
#endif
#include "php.h"
#include "pdo/php_pdo_driver.h"
#include "php_pdo_snowflake_int.h"
/**
* Mapping event enum to name
*/
static const char *const pdo_param_event_names[] =
{
"PDO_PARAM_EVT_ALLOC",
"PDO_... |
/*
* AX.25.c
*
* Created on: Sep 2, 2020
* Author: Kobe
*/
#include "AX.25.h"
//*************** variables for detecting and validating AX.25 ******************************************************
bool AX25_flag = false; //indicates whether the TNC started reading for packets
int rxBit_count = 0; ... |
/*
* 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... |
/*
Surface Ratio
by <NAME>
http://brainfolding.sourceforge.net
1 October 2009, v5 (support for meshes with vertices outside the 256^3 cube)
1 October 2008, v4 (adds support to BrainVisa meshes)
9 September 2008, v3 (solves bug: ValsPerVertex was still not swapped!)
1 September 2008, v2 (solves bug: swap ints... |
#include "modes/normal/custom.h"
#define inactive_slot_r 5
#define inactive_slot_g 5
#define inactive_slot_b 5
#define active_slot_r 21
#define active_slot_g 63
#define active_slot_b 27
#define invalid_slot_r 63
#define invalid_slot_g 0
#define invalid_slot_b 0
u8 custom_valid = 0;
u8 custom_prev_active_slot = 255,... |
/* $OpenBSD: spifreg.h,v 1.10 2003/06/02 18:40:59 jason Exp $ */
/*
* Copyright (c) 1999 <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 c... |
/*
* mkdlinkfw
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This tool is based on mktplinkfw.
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2008,2009 <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 publi... |
/************** tie_open_meson.c ***********************/
/* MIMD version 7 */
/* Print contents of an open meson correlator file */
/* <NAME> 8 June 2008 */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#define PRECISION 2
typedef struct {
float real;
float imag;
} fcompl... |
/* -*- C -*- */
/* sqlcli.h Header File for SQL CLI.
* The actual header file must contain at least the information
* specified here, except that the comments may vary.
*
* This file is adapted for PostgreSQL
* from the SQL98 August 1994 draft standard.
* <NAME> 1999-06-16
*
* Updated from Date and Darwen, 199... |
/*============================================================================
WCSLIB 4.24 - an implementation of the FITS WCS standard.
Copyright (C) 1995-2014, <NAME>
This file is part of WCSLIB.
WCSLIB is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser General P... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Slabs memory allocation, based on powers-of-N. Slabs are up to 1MB in size
* and are divided into chunks. The chunk sizes start off at the size of the
* "item" structure plus space for a small key and value. They increase by
* a mult... |
/*
* FCP adapter trace utility
*
* I/O monitor based on block queue trace data
*
* Copyright IBM Corp. 2008, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <errno.h>
#include <getopt.h>
#include <limits.... |
#define FUSE_USE_VERSION 26
#include <fuse.h>
#include <assert.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <libsocket/libinetsocket.h>
#include "cache.h"
#include "../common/headers.h"
#include "../third_party/log... |
#include "sheet.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
Cell cells[SIZE][SIZE]; // this stores all cells' data
int curX = 0, curY = 0; // cursor coordinates (cell selection)
char language = LANG_EN;
// this is needed to allow the user to force types for cells
char ty... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/*===========================================================================
Copyright (c) 1998-2000, The Santa Cruz Operation
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... |
/*
* Copyright (C) 2013-2015 <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 notice, t... |
/* $XConsortium: mejpeg.c,v 1.5 94/04/17 20:34:21 rws Exp $ */
/* $XFree86: xc/programs/Xserver/XIE/mixie/export/mejpeg.c,v 3.1 1996/08/20 13:16:17 dawes Exp $ */
/**** module mejpeg.c ****/
/******************************************************************************
Copyright (c) 1993, 1994 X Consortium
Permissi... |
/*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
/* define structures and data for keyword processing: */
typedef struct {
const char *keytext; /* keywor... |
/*
* SHA-1 -- US Secure Hash Algorithm 1 (SHA1).
*
* Implementation of SHA1 specification RFC 3147.
*
* <NAME>, 2011 (c)
* <<EMAIL>>
*
*/
/*
* This implemenation is not the fastest one but I hope that this code will be
* easy to understand and maintain during it's lifetime.
*
* G.S.
*/
#include <stdio.h>... |
/****************************************************************************
**
** Copyright (C) 2017 Intel Corporation
**
** 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 restrict... |
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include <math.h>
#include <mathc/mathc.h>
#include <SDL2/SDL.h>
#include "compiler/main.h"
#include "filesys.h"
#include "luamem.h"
#include "meshes.h"
#include "render3d.h"
#include "scriptcore.h"
#include "scriptcoreaudio.h"
#include "scriptcoreerror.h"
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.