text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright 1993-2002 <NAME> and Perforce Software, Inc.
*
* This file is part of Jam - see jam.c for Copyright information.
*/
/* This file is ALSO:
* Copyright 2001-2004 <NAME>.
* Copyright 2005 <NAME>.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt o... |
/**************************************************************************
Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved.
The Weather Channel (TM) funded Tungsten Graphics to develop the
initial release of the Radeon 8500 driver under the XFree86 license.
This notice must be preserved.
Permiss... |
/*
* This file is part of the MIPS filterer for the Supercard DSTwo.
*
* Copyright 2017 <NAME> <<EMAIL>>
*
* It 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... |
/* partition 1.12 - Make a partition table Author: <NAME>
* 27 Apr 1992
*/
#define nil 0
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/partition.h>
#include <minix/u64.h>
#include <ibm/par... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include "yunit/yunit.h"
#include "yunit/yts.h"
#include "iot_import.h"
#include "iot_export.h"
#include... |
/*
* Copyright (c) 2013 OmniTI Computer Consulting, Inc.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <mysql/mysql.h>
#include "connection.h"
#define STRING_SIZE 500
#define SELECT_SAMPLE "SELECT sender,destination,message_type,route_id FROM routes WHERE sender = ? AND message_type = ? AND destination= ? and is_active=1"
void finish_with_error5(MYS... |
/******************************************************************************
* @file main.c
* @version V3.00
* $Revision: 3 $
* $Date: 16/10/17 2:06p $
* @brief
* Demonstrate how to set I2C in slave mode to receive the data from a Master.
* This sample code is EEPROM like, only suppo... |
/*
File lookup rate test.
Copyright (C) <NAME> 2006
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 3 of the License, or
(at your option) any later version.
This... |
/*
* Copyright 2005-2018 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/* To compile cc -o winflat_with_beta winflat_with_beta.c -lm */
/* Copyright <NAME> 2003 */
/* With code included from Numerical Recipes in C */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define MAXIT 500
#define EPS 3.0e-30
#define FPMIN 1.0e-30
double betacf(double a, double b, double x);
dou... |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LG... |
/* $Id: tbl_layout.c,v 1.26 2014/04/20 16:46:05 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 <NAME> <<EMAIL>>
* Copyright (c) 2012, 2014 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* co... |
/* netSyntenic - Add synteny info to net. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "localmem.h"
#include "options.h"
#include "chainNet.h"
#include "rbTree.h"
static char const rcsid[] = "$Id: netSyntenic.c,v 1.10 2006/10/10 23:00:17 angie Exp $";
struct lm *lm;
struct rbTreeNode **rbSt... |
/*
$ gcc -c lmdb_trans.c
$ gcc -lm -pthread lmdb_trans.o liblmdb.a -o lmdb_trans.out
$ mkdir testdb
$ ./lmdb_trans.out
*/
int g_display = 0;
#define g_largestKey 50000
#define g_keyValuesCount 4
unsigned long g_mapSize = 2 * g_largestKey * (g_keyValuesCount + 1) * 16;
// sizeof(MDB_val) returns 16
char g_d... |
/*
* Copyright (c) 2016-2017, Texas Instruments Incorporated
* 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
* n... |
/*
* ssd1306.c
*
* Created on: May 23, 2019
* Author: samper
*/
#include "ssd1306.h"
#include <msp430.h>
#include <stdint.h>
#include "font_5x7.h"
#include "i2c.h"
/* ====================================================================
* Horizontal Centering Number Array
* ===============================... |
/*
* Author: <NAME> (<EMAIL>)
* Copyright (c) 2017 Seeed Technology Co., Ltd.
*
* 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 ... |
/*
* Printing utilities for CUPS.
*
* Copyright © 2021 by OpenPrinting.
* Copyright © 2007-2018 by Apple Inc.
* Copyright © 1997-2006 by Easy Software Products.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
*/
/*
* Include necessary headers...
*/
#include "cups-pri... |
/*
* espresso7420_dummy.c
*
* 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.
*/
#include <linux/module... |
/* S N A P . C
* BRL-CAD
*
* Copyright (c) 2008-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as pub... |
#define _LARGEFILE64_SOURCE /* required for GLIBC to enable stat64 and friends */
#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ctype.h>
#include <unistd.h>
#incl... |
/**
* @author : faraz
* @file : console.c
* @created : Fri 17 Dec 2021 07:23:56 PM EST
*/
/*
* Copyright (c) 2022 <NAME> <EMAIL>.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "picon/utils.h"
#include "picon/console.h"
#include... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ucvm_utils.h"
#include "ucvm_model_japan.h"
#include "japan.h"
/* Init flag */
int ucvm_japan_init_flag = 0;
/* Maximum number of points to query */
#define JAPAN_MAX_POINTS 1000000
/* Buffers initialized flag */
int japan_buf_init = 0;
/* Query b... |
#ifndef lint
static char SccSID[] = "@(#)distsq.c 1.2 7/27/88";
#endif
/*
Copyright 1988 <NAME> and <NAME>.
No part of this software may be distributed or sold without the prior
agreement of Prof. <NAME>, Dept. of Psychiatry, NYU School of
Medicine, 550 1st Ave., New York, New York, 10016.
*/
#include <stdio.h>
#i... |
/*
Copyright (C) 2018 <NAME>
http://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Example program showing how to operate with compressed buffers.
To compile this program for synthetic data (default):
$ gcc -fopenmp -O3 sum_openmp.c -o sum_openmp -lblosc2
To run:
$ OMP_PROC_BIND=spread OMP_NUM_... |
#include <Common.h>
#include <game/item/ItemDirector.h>
#include <game/system/Console.h>
#include <game/system/RaceConfig.h>
#include <game/system/SaveManager.h>
#include <game/ui/SectionManager.h>
#include <revolution.h> // OSReport
#include <sp/Host.h>
#include <sp/IOSDolphin.h>
#include <sp/keyboard/Keyboard.h>
#in... |
/*
* File: AR_Drone_Mission_Height.c
*
* Code generated for Simulink model 'AR_Drone_Mission_Height'.
*
* Model version : 1.1120
* Simulink Coder version : 8.6 (R2014a) 27-Dec-2013
* C/C++ source code generated on : Tue Nov 17 10:17:25 2015
*
* Target selection: ert.tlc
* Embedded har... |
////////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 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 So... |
/**
* @file main.c
* @author <NAME>
* @brief Get graphite metrics in a usable csv format
* @version 0.1
* @date 2022-02-20
*
* https://en.wikipedia.org/wiki/Box-drawing_character
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <curl/curl.h>
#include <regex.h>
#incl... |
/* ------------------------------------------------------------------------- */
/* board_lcd.c */
/* */
/* Copyright (c) 2001, 2002 <NAME> <<EMAIL>> */
/* All rights re... |
#line 2 "../src/kernel/gmp/gcdext.c"
/* Copyright (C) 2000-2003 The PARI group.
This file is part of the PARI/GP package.
PARI/GP 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. It is distributed in the hope th... |
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
#include <arm_neon.h>
// CHECK-LABEL: test_vdups_lane_f32
float32_t test_vdups_lane_f32(float32x2_t a) {
return vdups_lane_f32(a, 1);
// CHECK: r... |
/*
* Copyright (C) 2003 <NAME> <<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 the GNU General Public License as
* published by the Free Software Foundation; either version 2 o... |
/*
* This file is part of LibCSS.
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 <NAME> <<EMAIL>>
*/
#include <assert.h>
#include "bytecode/bytecode.h"
#include "bytecode/opcodes.h"
#include "parse/important.h"
/**
* Parse !important
*
*... |
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <cdb2api.h>
#include <sqlite3.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
/* Global argv0 */
static char *argv0=NULL;
/* Global dbname */
static char *dbname=NULL;
/* Global iter */
static int iterations=100;
/* Global verbose */... |
/* pcrResult -- support for internal track of hgPcr results. */
/* Copyright (C) 2014 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "hdb.h"
#include "hui.h"
#include "obscure.h"
#include "targetDb.h"
#include "pcrResul... |
/* Copyright (c) 2019-2022 <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, d... |
/*
* Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
*
* 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 noti... |
/*
* Copyright 2022 <NAME>/KSS Technologies (Pty) Ltd.
*/
#include "ltr329als.h"
#include <string.h>
#include "hal_variables.h"
#include "endpoints.h"
#include "options.h"
#include "printfx.h"
#include "syslog.h"
#include "systiming.h"
#include "x_errors_events.h"
#define debugFLAG 0xF001
#define debugCONFIG ... |
/* crypto/sm2/sm2_err.c */
/* ====================================================================
* Copyright (c) 1999-2016 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
/* -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define this to enable debug messages and assert warnings. */
/* #undef DEBUG */
/* Define this to disable the built-in file browser. */
/* Define this to disable syntax highlighting. */
/* D... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "randomlib.h"
#include "matmul2.h"
#include "pso.h"
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
//#define MAX 5000
/* global variable */
#define numofgeom... |
/*****************************************************************************
* File Name : spi2rw.c
* Date First Issued : 06/12/2011
* Board : Discovery F4
* Description : SPI2 routine for simultaneous read/write
***************************************************************************... |
/**
******************************************************************************
* @file lora_app.c
* @author MCD Application Team
* @brief Application of the LRWAN Middleware
******************************************************************************
* @attention
*
* <h2><center>© Copyr... |
/******************************Module*Header*******************************\
*
* *******************
* * GDI SAMPLE CODE *
* *******************
*
* Module Name: Brush.c
*
* Handles all brush/pattern initialization and realization.
*... |
/*
Copyright 2016 Vanderbilt University
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 agr... |
/*
* vdc-color.c - Colors for the VDC emulation.
*
* Written by
* groepaz <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lic... |
/*
* TAP-Win32/TAP-Win64 -- A kernel driver to provide virtual tap
* device functionality on Windows.
*
* This code was inspired by the CIPE-Win32 driver by <NAME>.
*
* This source code is Copyright (C) 2002-2010 OpenVPN Technologies, Inc.,
* and is released under the GPL version 2 (s... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "exeptions.h"
#include "globals.h"
#include "utils.h"
#include "binary.h"
#include "second_pass.h"
/*
get the adress from the data image.
return the adress
*/
long get_current_adress(DI_ptr head_data_image, char *curr_line);
/*
update the immed ... |
//*******************************************************************
//Author: <NAME>
//Description: PRC MEM Testing
//*******************************************************************
#include "PRCv17.h"
#include "mbus.h"
// PRC->MEM
#define MEM_ADDR 0x4
// PARAMETERS
#define NUM_PARALLEL 32
//******************... |
/**
* A very simple packet router.
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <limits.h>
#define MAX... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define GLEW_STATIC
#include <GL/glew.h>
#define GL_GLEXT_PROTOTYPES
#include <GLFW/glfw3.h>
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
// Stolen from http://www.opengl-tutorial.org/beginners-tutorials/tutorial-4-a-colored-cube/#draw-a-cube
static con... |
/*!@addtogroup HiTechnic
* @{
* @defgroup htmc Compass Sensor
* HiTechnic Compass Sensor
* @{
*/
/** \file hitechnic-compass.h
* \brief HiTechnic Magnetic Compass Sensor Driver
*
* hitechnic-compass.h provides an API for the HiTechnic Magnetic Compass Sensor.
*
* Changelog:
* - 0.1: Initial release
* - 0.2... |
/*////////////////////////////////////////////////////////////////////////
Copyright (c) 1992-2000 <NAME> and ETL,AIST,MITI
Copyright (c) 2001-2006 National Institute of Advanced Industrial Science and Technology (AIST)
AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
Permission to use this mate... |
/* splatTestSet - Create test set for splat. */
/* This file is copyright 2008 <NAME>, but license is hereby
* granted for all use - public, private or commercial. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "sqlNum.h"
#include "dnautil.h"
#include "dnaseq.h"
#include ... |
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#include <ngx_iocp_module.h>
static ngx_int_t ngx_iocp_init(ngx_cycle_t *cycle, ngx_msec_t timer);
static ngx_thread_value_t __stdcall ngx_iocp_timer(void *data);
static void ngx_iocp_do... |
/*
* InterfaceRx.c
*
*Copyright (C) 2010 Beceem Communications, Inc.
*
*This program is free software: you can redistribute it and/or modify
*it under the terms of the GNU General Public License version 2 as
*published by the Free Software Foundation.
*
*This program is distributed in the hope that it will ... |
/*
* Copyright (c) 1991
*
* <NAME>
* <NAME>
* IMSOR/TUD
* The Institute of Mathematical Statististics and Operations Research
* The Technical University of Denmark
*
* Disclaimer: No guarantees of performance accompany this software,
* nor is any responsibility assumed on the part of the authors. All the
... |
/*
* This software was developed at the National Institute of Standards and
* Technology (NIST) by employees of the Federal Government in the course
* of their official duties. Pursuant to title 17 Section 105 of the
* United States Code, this software is not subject to copyright protection
* and is in the public domai... |
/**
* @file power.c
* @brief
*
* DAPLink Interface Firmware
* Copyright 2020 NXP
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:... |
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <librdkafka/rdkafka.h>
#include <json-c/json.h>
#include <open62541/plugin/pubsub.h>
#include <open62541/plugin/log_stdout.h>
#include <time.h>
static volatile sig_atomic_t run = 1;
#define TIME_SENT "time_sent"
#define TIME_RECV "time_recv"
#define T... |
#include "MSPd.h"
/* pointless comment */
#define F_LEN 65536
static t_class *flanjah_class;
#define OBJECT_NAME "flanjah~"
typedef struct _flanjah
{
t_object x_obj;
float x_f;
//
float *sinetab;
float si_factor;
float osc1_phs;
float osc1_si;
float si1;
float osc2_phs;
float osc2_si;
floa... |
/***************************/
/* Algorithmique du texte */
/*************************/
/* Fichier : ac-matrice */
/***********************/
/**********************/
/* <NAME> */
/********************/
/*******************/
/*________________*/
#include "all.h"
/* Définition du type de trie a utiliser */
typedef ... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2010,2011 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
* the Free Software Foundation, either version 3 of the License, or
* (at... |
/*-
* Copyright (c) 1999-2001, <NAME>, <NAME>.
* 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 copy... |
#define PDP11 4
#define BIGGEST_SHORT 0x7fff /* Assumes 32-bit arithmetic */
#define BIGGEST_LONG 0x7fffffff /* Assumes 32-bit arithmetic */
#define M(x) (1<<x) /* Mask (x) returns 2^x */
#define ALLOC(x) (struct x *) ckalloc(sizeof(struct x))
#define ALLEXPR (expptr) ckalloc( sizeof(union Expression) )
typedef in... |
#include <os.h>
#include "interrupt.h"
#include "threading.h"
#include "atomic.h"
#define XSTRING(a) #a
#define STRING(a) XSTRING(a)
#define save_state( s, reglist, c ) do { \
memcpy((s)->state.reg, reglist, 64); \
(s)->state.cpsr = *(c); \
} while (0)
#define bk(a) asm("bkpt #" STRING(a))
typedef struc... |
/*
* Copyright (C) 2014 The Regents of the University of California.
*
* 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... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <string.h>
#include <errno.h>
#include <portscan.h>
#include <syslog.h>
#include <time.h>
#include <assert.h>
#include <stdbool.h>
#define BIT(x) (1UL << x)
struct cli_options {
uint8_t show_filter;
uint8_t ... |
/*Daala video codec
Copyright (c) 2014 Daala project contributors. 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 o... |
/* GStreamer QTtext subtitle parser
* Copyright (c) 2009 <NAME> <thiago.sousa.santos collabora co uk>>
*
* 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 L... |
/*
* Copyright (c) 2021, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <common/debug.h>
#include <lib/mmio.h>
#include "../qos_common.h"
#include "qos_init_g2m_v10.h"
#include "qos_init_g2m_v10_mstat.h"
#include "qos_reg.h"
#defin... |
/*
issue-188-common-cos-syntax/dotest.c: Tests common class-of-service.
*/
#include <bp.h>
#include "check.h"
#include "testutil.h"
static void run_cos_case(const char *token, BpExtendedCOS desiredExtendedCOS,
BpCustodySwitch desiredCustodySwitch, int desiredPriority)
{
BpExtendedCOS extendedCOS = { ... |
/*
* MIT License
* Copyright 2005-2016 Buaabyl
*
* (http://opensource.org/licenses/MIT)
*
* 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 ... |
/*
* At runtime, ym64.c supports streaming directly from a YM5/YM6
* "interleaved" file, that is a file where frames are laid out linearly in the
* file. We also support streaming from LHA-compressed files (using algorithm
* -lh5-, which is the standard ones for YM files).
*
* The goal of this pre-processing is:
... |
/**
* test_eval.c
* Lake Scheme
*
* Copyright 2011 <NAME>
* MIT License
*
*/
#include "env.h"
#include "eval.h"
#include "lake.h"
#include "laketest.h"
#include "parse.h"
void setup(void);
static char *test_eval(void);
static char *test_eval_exprs(void);
static char *test_eval_exprs1(void);
static char *test_a... |
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include<string.h>
#include<math.h>
#include "esp_lib.h"
void showNextExamSchedule();
void showSyllabus();
struct ssc_marks{
//All marks out of 100
int math;
int sci;
int lang;
int sst;
};
struct hsc_marks{
//All marks out of 100
i... |
/*
* Copyright (C) 2003 <NAME>
*
* NEVERBALL 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 distribu... |
#include "isr.h"
#include "idt.h"
#include "tty.h"
#include "hardware.h"
#include "../libc/stdio.h"
// SEND THESE TO .H
#define REG_MPIC_CTRL 0x20 // master PIC command
#define REG_MPIC_DATA 0x21 // master PIC data
#define REG_SPIC_CTRL 0xA0 // slave PIC command
#define REG_SPIC_DATA 0xA1 // slave PIC data... |
/* Extended Module Player
* Copyright (C) 1996-2010 <NAME> and <NAME>
*
* This file is part of the Extended Module Player and is distributed
* under the terms of the GNU General Public License. See doc/COPYING
* for more information.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unist... |
/*
* Copyright (c) 2001-2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it... |
#define _GNU_SOURCE
#define BUF_LEN 32
#define SLED_LEN 2
//https://github.com/lattera/glibc/blob/master/include/dlfcn.h#L8
#define __RTLD_DLOPEN 0x80000000
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <stdint.h>
#include <sys/syscall.h>
#include "mlog.h"
#include "libptrace_do.h"
#include "in... |
/*
* ndd.c - main source file
* Copyright (C) 2015 <EMAIL>
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdarg.h>
#include <syslog.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <sig... |
/*
* sched_tests.c
* xnu_quick_test
*
* Copyright 2011 Apple Inc. All rights reserved.
*
*/
#include "tests.h"
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <mach/semaphore.h>
#include <unistd.h>
#include <err.h>
#include <sys/param.h>
#include <pthread.h>
#define DEBUG 0
#if DEBUG
#define dpr... |
/*
* SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <memory.h>
#include <objspace.h>
#include <page.h>
#include <stdatomic.h>
#include <tmpmap.h>
#include <vmm.h>
/* TODO: percpu? finer locking? */
static struct page *page_list = NULL;
static struct page *page... |
/* $Id: mode.c,v 1.42 2008/11/06 20:45:13 pekberg Exp $
******************************************************************************
Display memory : mode management
Copyright (C) 1997 <NAME> [<EMAIL>]
Copyright (C) 1998 <NAME> [<EMAIL>]
Copyright (C) 1998 <NAME> [<EMAIL>]
Copyright (C) 2000 <NAME> [... |
/**
*\file execute.c
*\brief execute the command in the tree
*\author <NAME>.
*\version 1.0
*\date January 26, 2018
*
*Execute all the command in the node tree
*/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/wait.h>
#i... |
#include "analyse.h"
#include <stdio.h>
#include <stdlib.h>
#include "syntax.h"
#include <string.h>
void Symbole_Suiv(){
head=head->next ;
}
void Erreur(enum ERREURS erreur){
printf("%s\n ",head->data->nom);
switch(erreur){
case 0: printf("ERREUR----->PROGRAM\n");break;
case 1: printf("ERREUR----->CONST_E... |
#include <dirent.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <termio.h>
#include <unistd.h>
#include "../include/archiver.h"
void pack(char* dir_path, char* archive_path) {
int archive; // Archive descriptor
... |
#include <libzfs.h>
#include <memory.h>
#include <string.h>
#include <stdio.h>
#include "common.h"
libzfs_handle_t *g_zfs;
libzfs_handle_t *libzfs_get_handle() {
return g_zfs;
}
int go_libzfs_init() {
g_zfs = libzfs_init();
return 0;
}
int libzfs_last_error() {
return libzfs_errno(libzfs_get_handle());
}
const... |
// SPDX-License-Identifier: GPL-2.0
#include <linux/err.h>
#include <linux/bug.h>
#include <linux/atomic.h>
#include <linux/errseq.h>
/*
* An errseq_t is a way of recording errors in one place, and allowing any
* number of "subscribers" to tell whether it has changed since a previous
* point where it was sampled.
... |
#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... |
#include "ac_schedule.h"
size_t num_inputs = 0;
ac_io_file_info_t *inputs = NULL;
//#define USE_CHAIN
/* By defining the filenames, it is easier to change them as needed. Also,
if .lz4 or .gz file extensions are used, the files will be compressed as
such! lz4 is often faster than uncompressed and takes less ... |
#include <default.h>
#include <minimize.h>
#include <network.h>
#include <ran2.h>
#include <simAnnealing.h>
#include <time.h>
long idum = -2;
//struct to be fed to the adam minimizer
typedef struct
{
int nX;
double *x;
multilayerD *net;
} minim_par;
// specified the potential to be used
#include <harmonic_poten... |
//
// Created by dvilaspe on 07/11/2017.
//
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <jansson.h>
#include <errno.h>
#include <zookeeper/zookeeper.h>
#include "kafka.h"
#define BROKER_PATH "/brokers/ids"
const int debug=0;
static rd_kafka_t *rk;
int kafka_init(pClient ... |
//motor configuration
// ^N
// M3 ^ M1 v
// M4 v M2 ^
int M3_PIN = 5;
int M1_PIN = 2;
int M4_PIN = 6;
int M2_PIN = 3;
float M1,M2,M3,M4;
float Mout1,Mout2,Mout3,Mout4;
//lag filter motor/
float M3f = 1000;
float M3old = 1000;
float M3old2 = 1000;
float M1f = 1000;
float M1... |
/*
* Contar cuerpos celestes
*
* Asignatura Computación Paralela (Grado Ingeniería Informática)
* Código secuencial base
*
* @author <NAME>
* @author <NAME>
* @version v1.3
*
* (c) 2017, Grupo Trasgo, Universidad de Valladolid
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include "cp... |
#include <SDL2/SDL.h>
#include <stdbool.h>
#include <math.h>
#include "game.h"
#include "window.h"
#include "map.h"
#include "score.h"
#include "sound.h"
#define RAD(deg) ((deg) * (M_PI) / (180))
void game_loop(SDL_Window **window, SDL_Renderer **renderer, screen_size *size)
{
const int FPS = 60;
const int frameDe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.