text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (C) 2013 Synaptics Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
#pragma once
#include <stdint.h>
/**
* Based on C header generated from wasi_snapshot_preview1.witx
* See https://github.com/WebAssembly/wasi-libc/blob/main/libc-bottom-half/headers/public/wasi/api.h
*/
typedef uint8_t wasi_advice_t;
typedef uint32_t wasi_clockid_t;
/**
* Identifier for a device containing a fi... |
/*
This file is part of DepQBF.
DepQBF, a solver for quantified boolean formulae (QBF).
Copyright 2013, 2014, 2015, 2016, 2017 <NAME>,
Vienna University of Technology, Vienna, Austria.
Copyright 2010, 2011, 2012 <NAME>,
Johannes Kepler University, Linz, Austria.
Copyright 2012 <NAME>,
Johannes Ke... |
#include "GB_gameboy.h"
#include "GB_memory.h"
#include "GB_insn.h"
#include "GB_cpu.h"
const int insnClock[0x100] = {
1,3,2,2,1,1,2,1,5,2,2,2,1,1,2,1,
0,3,2,2,1,1,2,1,3,2,2,2,1,1,2,1,
2,3,2,2,1,1,2,1,2,2,2,2,1,1,2,1,
2,3,2,2,3,3,3,1,2,2,2,2,1,1,2,1,
1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
1,1,1,1,1,1,... |
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... |
/*
** Purpose: Implement ThreeAxisFsw Controller Table.
**
** Notes:
** None
**
** License:
** Written by <NAME>, licensed under the copyleft GNU General
** Public License (GPL).
**
** References:
** 1. OpenSatKit Object-based Application Developer's Guide.
** 2. cFS Application Developer's Guide.
**
*/
/*
*... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
/*
Copyright <2017> <Scaleable and Concurrent Systems Lab;
Thayer School of Engineering at Dartmouth College>
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 restr... |
// see text editor
// the gateway drug to vim. without colons. // <NAME>, 2019
/* Include */
#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE
#include <unistd.h> // read(), stdin fd,
#include <string.h> // memcpy()
#include <termios.h> // termios struct, tcget/set, tcflags
#include <stdlib.h> //... |
/*
* Lab17.c
Lab 17 solution, Distance to wall proportional control
* Created on: June 20, 2018
* Authors: <NAME> and <NAME>
* Modified: August 18, 2018
*/
/* This example accompanies the books
"Embedded Systems: Introduction to the MSP432 Microcontroller",
ISBN: 978-1512185676, <NAME>, copyrig... |
#include "memoria.h"
//#include "tp1.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
struct memoria{
int endBloco;
int palavras[4];
int nAcessos;
int atualizado; //0 é falso e 1 é verdadeiro
};
struct taxas{
int Miss_c1, Hit_c1;
int Miss_c2, Hit_c2;
int Miss_c3, Hit_c3;
int Mis... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "stageutils.h"
#include "global.h"
#include "util/glm.h"
#include "video.h"
#i... |
/* Integer <--> String
*
* Copyright (C) 2015 <NAME>
*/
#include <tt/tt.h>
#include <tt/apn/integer.h>
#include <common/lib.h>
#include "integer.h"
#include <string.h>
#include <math.h>
#include "str-dec9.c"
static char bin_to_ascii[] = "0123456789ABCDEF";
static char ascii_to_bin[] = {
-1, -1, -1, -1, -1, -1, ... |
/*****************************************************************************
* eit.c: EIT decoder/generator
*----------------------------------------------------------------------------
* Copyright (C) 2004-2010 VideoLAN
* $Id: eit.c 88 2004-02-24 14:31:18Z sam $
*
* Authors: <NAME> <<EMAIL>>
* <NAME>... |
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include "minHeap.h"
#include "stage_1_sort.h"
#include "structs.h"
/*
This program sorts large data sets. Stage 1 is the beginning of the sort.
It takes an input file, reads DEF_IO_BYTES bytes of it at a ti... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/* grjit.c -- run experiments for "just in time" synthesis and related work.
*
* Some core functions for working with strategy automata have changed
* recently, and sim_rhc(), which is invoked by grjit, has not yet
* been carefully checked following those changes. As such, grjit
* should be considered as possibly... |
#include "eps_impl.h"
#include "eps_logger.h"
#include "AcTypeConverter.h"
static EPS_IMPL_Class* EPSImpl = NULL;
void EPSAllocateAC(struct AcType *AC);
void EPSInitAC(struct AcType *AC);
int EPS_IMPL_ProcessSensorSb(void);
void EPS_IMPL_UpdateTlm(void);
void EPS_IMPL_SendSimStatusPkt(void);
int32_t EPS_IMPL_SetComp... |
/* pckfrm.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
static integer c__6 = 6;
/* $Procedure PCKFRM ( PCK, get reference frame class ID set ) */
/* S... |
#pragma once
#include <stdint.h>
typedef struct {
uint8_t type;
uint8_t flags;
uint16_t len;
uint16_t reserved;
uint16_t cmd;
} __attribute__((packed)) wmi_mbox_cmd_send_header_t;
typedef struct {
uint8_t type;
uint8_t flags;
uint16_t len;
uint16_t reserved;
uint16_t unknown;
... |
#include <fs/fat12.h>
typedef struct {
uint8_t OEMName[8];
uint16_t BytesPerSector;
uint8_t SectorsPerCluster;
uint16_t NumReservedSectors;
uint8_t NumFATs;
uint16_t NumRootDirectoryEntries;
uint16_t NumTotalSectors;
uint8_t MediaDescriptorType;
uint16_t NumSectorsPerFAT;
uint16_t NumSectorsP... |
/** \file
* \brief IupFileDlg pre-defined dialog
*
* See Copyright Notice in "iup.h"
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <stdio.h>
#include "iup.h"
#include "iupcbs.h"
#include "iup_object.h"
#include "iup_attrib.h"
#include "iup_str.h"
#include "iup_drvi... |
/*
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 following disclaimer.
2. Redistributions in binary form must ... |
/* swilk.f -- 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 ... |
/***************************************************************************
Copyright (c) 2013-2019, The OpenBLAS Project
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... |
#include <stdint.h>
#include "app_button.h"
#include "app_error.h"
#include "app_timer.h"
#include "ble.h"
#include "ble_err.h"
#include "ble_hci.h"
#include "ble_srv_common.h"
#include "ble_advdata.h"
#include "ble_conn_params.h"
#include "boards.h"
#include "nordic_common.h"
#include "nrf.h"
#include "nrf_sdh.h"
#in... |
/*
---------------------------------------------------------------------------
Copyright (c) 1998-2013, <NAME>, Worcester, UK. All rights reserved.
The redistribution and use of this software (with or without changes)
is allowed without the payment of fees or royalties provided that:
source code distribution... |
/*
* tramp-hppa.c: JIT trampoline code for hppa
*
* Copyright (c) 2007 <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... |
/* MIT License
*
* Copyright (c) 2016-2020 INRIA, CMU and Microsoft 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 restriction, including without limitation the r... |
/* Capstone Disassembler Engine */
/* M680X Backend by <NAME> <<EMAIL>> 2017 */
#include <stdio.h>
#include <string.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
#define ARR_SIZE(a) (sizeof(a)/sizeof(a[0]))
#define WITH_DETAILS
struct platform {
cs_arch arch;
cs_mode mode;
unsigned char *code... |
/*
****************************************************************************
* Copyright (C) 2014 - 2015 Bosch Sensortec GmbH
*
* bme280_support.c
* Date: 2015/03/27
* Revision: 1.0.5 $
*
* Usage: Sensor Driver support file for BME280 sensor
*
*************************************************************************... |
#include "kitty_win.h"
void logevent(void *frontend, const char *);
// Modifie la transparence
void SetTransparency( HWND hwnd, int value ) {
#ifndef NO_TRANSPARENCY
SetLayeredWindowAttributes( hwnd, 0, value, LWA_ALPHA ) ;
#endif
}
// Numéro de version de l'OS
void GetOSInfo( char * version ) {
OSVERSIONINFO os... |
/*
* Copyright 2008-2015 <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 a... |
/*
* -----------------------------------------------------------------
* $Revision: 4272 $
* $Date: 2014-12-02 11:19:41 -0800 (Tue, 02 Dec 2014) $
* -----------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* -----------------------------------------------------------------
... |
/******************************************************************************
*
* File: swcr.c
*
* Created: 19/03/2001
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Calculation of Schwarz-Christoffel transform
*
* Description: Calculates Schwarz-... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <getopt.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <vtcapture/vtCaptureApi_c.h>
#include <halgal.h>
#include "common.h"
... |
/*
* Copyright 1996-2018 Cyberbotics Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* ... |
/* $OpenBSD: ypxfr.c,v 1.39 2015/02/09 23:00:15 deraadt Exp $ */
/*
* Copyright (c) 1994 <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... |
/************************************************************************************
sdtoascii.c--SD card packet reader to file
06-20-2014
Read SD card from logger and output ascii/hex lines (which can be piped to a file)
*************************************************************************************/
/*
Hack of... |
/* $NetBSD: dd.c,v 1.49 2012/02/21 01:49:01 matt Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> of the University of California, San Diego and Lance
* Visser of Convex Co... |
/* zzholdd.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
static integer c__4 = 4;
/* $Procedure ZZHOLDD ( Private --- hold a scalar DP ) */
/* Subrouti... |
/* mac_lte_logger.c
*
* Example code for sending MAC LTE frames over UDP
* Written by <NAME>, with input from <NAME>
* This header file may also be distributed under
* the terms of the BSD Licence as follows:
*
* Copyright (C) 2009 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary fo... |
/* xPL-hub.c -- built-in xPL hub support */
/* Copyright (c) 2004, <NAME>. */
#include <stdio.h>
#include <time.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <fcn... |
/*
* byt_cr_dpcm_rt5640.c - ASoc Machine driver for Intel Byt CR platform
*
* Copyright (C) 2014 Intel Corp
* Author: <NAME> <<EMAIL>>
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is free software; you can redistribute it and/or modify
* it under the terms ... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "plz_glob.h"
/*Zeiger zum Lesen/Schreiben auf bzw. in die dateien*/
FILE *quell_File, *listing, *token;
int linenr = 1;
int symbol, nummer;
int zaehl = 0;
int x, b, d;
int lauf = 0, y;
int anzahl_chars;
int ist_kommentar = 0;
int ist_kommentarA = 0;
... |
#include "win32w.h"
VALUE mWin32;
extern VALUE mWin32;
// KeyBoard.down?( KeyBoard::VK_CODE )
VALUE isKeyPushed( VALUE self, VALUE VK_CODE ) {
if ( GetKeyState( NUM2INT( VK_CODE ) ) < 0 )
return Qtrue;
else
return Qfalse;
}
// KeyBoard.push( KeyBoard::VK_CODE )
void pushKey( VALUE self, VALUE VK_... |
/*
* QEMU Sun4u System Emulator
*
* 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 rights
* to use, ... |
/******************************************************************************/
/* NOT LOW*: implementing FStar.Bytes.bytes as leaky fat pointers with a */
/* length */
/****************************************************************************... |
/*
Index tree
Copyright (c) 2016, 2017. <NAME>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/sunos/sun_mouse.c,v 1.12 2005/02/06 23:48:15 dawes Exp $ */
/*
* Copyright 1999-2005 The XFree86 Project, Inc.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentati... |
//
// $Id$
//
//
// Copyright (c) 2001-2016, <NAME>
// Copyright (c) 2008-2016, Sphinx Technologies Inc
// All rights reserved
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License. You should
// have received a copy of the LGPL licen... |
/*******************************************************************************
* Program: detfeatures
* Purpose: This file contains the source code for computing some features
* for a detection site in a mammography image. The features are:
*
* 1) "radial" distance to the nipple position
* 2) FUM value for a range of... |
/******************************************************************************
Copyright (C), 2016, Hisilicon Tech. Co., Ltd.
******************************************************************************
File Name : sc2231_sensor_ctl.c
Version : Initial Draft
Author : Hisilicon multimedi... |
// SPDX-License-Identifier: GPL-2.0
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
******************************************************************************/
#include "odm_precomp.h"
#define READ_AND_CON... |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... |
/*s: init/arm/main.c */
/*s: kernel basic includes */
#include <u.h>
#include "../port/lib.h"
#include "../port/error.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
/*e: kernel basic includes */
#include "io.h"
// for mainmem and imagmem
#include <pool.h>
// initcode binary
#include "init.h"
// rebootcode bin... |
/*
* Square Enix SCD demuxer
* Copyright (C) 2021 <NAME> (<EMAIL>)
*
* Based off documentation:
* http://ffxivexplorer.fragmenterworks.com/research/scd%20files.txt
*
* 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 Gener... |
#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "argtable3.h"
#include "eaarlio/edb.h"
#include "eaarlio/error.h"
#include "eaarlio/file.h"
#include "eaarlio/flight.h"
#include "eaarlio/pulse.h"
#include "eaarlio/raster.h"
#include "eaa... |
// Copyright (C) 2015-2019 <NAME>, Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// (1) Redistributions of source code must retain the above copyright
// notice,... |
/* $OpenBSD: control.c,v 1.82 2015/12/05 18:28:04 benno Exp $ */
/*
* Copyright (c) 2003, 2004 <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
* copyright notice and this permission notice appear in... |
/**************************************************************************
* utils.c -- This file is part of GNU nano. *
* *
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, *
* 2008, 2009,... |
/*
* Copyright (c) 2016 Aalto 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 agre... |
/* $OpenBSD: sshreg.h,v 1.1 2001/02/18 17:41:09 deraadt Exp $ */
/*
* Copyright (c) 1995 <NAME>
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> of Lawrence Berkeley Laboratory.
*
* Redistribution... |
/*
* Copyright (C) 2011 <NAME> ( http://amarullz.com/ )
*
* 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 app... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bomb-funcs.h"
int current_offset = 0;
void gen_code_for_if_statement(struct if_statement_node *if_statement, int if_statement_number) {
gen_code(if_statement->boolean_expression);
CMP("AX", "0");
JE("ELSE_CLAUSE", if_statement_number);
... |
#include "twt_json.h"
#include "twt_time.h"
#include "log.h"
#include "stringex.h"
int json_object_get_nullbool(json_object* obj) {
//returns -1 for null, 0 for false and 1 for true.
if (json_object_get_type(obj) == 0) return -1;
return json_object_get_boolean(obj);
}
struct t_entity* get_entity(json_obje... |
/* $OpenBSD: add.c,v 1.112 2015/11/05 09:48:21 nicm Exp $ */
/*
* Copyright (c) 2006 <NAME> <<EMAIL>>
* Copyright (c) 2005, 2006 <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
* copyright notice an... |
//
// main.c
// sps30
//
// Created by <NAME> on 31.01.19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <time.h>
#include "arg_parser.h"
#include "sps30.h"
#include "http.h"
#define OUTPUT_BUFFER_SI... |
//-----------------------------------------------------------------------------
/*
Picox Math Functions.
*/
//-----------------------------------------------------------------------------
#define LOG_ENABLE
#include <math.h>
#include <float.h>
#include "ggm.h"
//---------------------------------------------------... |
/**
* @file vectors.c
* @brief STM32F334x8 vector table and __Default_Handler()
* @details STM32334x8 vector table and __Default_Handler()
* @author raiden00
* @date 2015-09-28
**/
/******************************************************************************
* chip: STM32F334x8
* compiler: arm-none... |
/* EXAMPLES\SYM\ssdrv6.f -- translated by f2c (version 20100827). */
#include <stdlib.h>
#include "arpack.h"
/**
* \BeginDoc
*
* Program to illustrate the idea of reverse communication
* in Cayley mode for a generalized symmetric eigenvalue
* problem. The following program uses the two LAPACK subrou... |
/****************************** HEADERS *****************************/
#include <stdlib.h>
#include <stdint.h>
#include <memory.h>
#include "spectral.h"
/****************************** MACROS ******************************/
#define ROR(x, r, b) ((x >> r) | (x << (b - r)))
#define ROL(x, r, b) ((x << r) | (x >> (b - r)... |
/* blipbuffer.c
Copyright (C) 2003-2006 <NAME>. This module 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. This
module is distribu... |
/*
** task_dotRT_LD.c
**
** dots RT task,
** Long Ding, modified from tgt_mgs_LD20071116.c 2-1-2007
** Long Ding 2009-07-14 added options to specify # of trials for each coherence level
** Long Ding, 2012-03-20 added option to change target colors to indicate reward size
*/
/*
task_dotRT_TD.c
Created by ... |
/**
* 対人オセロゲーム
*
* <操作方法>
* 矢印キー:移動
* Aボタン(PCの場合はデフォルトでX):コマをおく
* SELECTボタン(PCの場合はデフォルトでBackspace):強制的にパス(動作検証等で使用できます)
*
* <その他>
* コマが置けない場合は自動的にスキップされます
* 勝負がついた場合、勝ったプレイヤーの色に染まります(引き分けの場合はグレーになります)
*/
typedef volatile unsigned short hword;
#define VRAM 0x06000000
#define KEY_CTRL 0x04000... |
#include <stdio.h>
#include <mpi.h>
#include <unistd.h>
#include<stdlib.h>
#include <time.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
#define TERMINATION_TAG 123456789
#define MASTER_RANK 0
#define SUB_MASTER_RANK 8
#define SUB_SUB_MASTER_RANK 2
#define NUM_MACRO_MESO_ITER 5 // 3,5,11
#define START_MACRO_ME... |
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <math.h>
#include <float.h>
#include <ctype.h>
#include "engine/lexer.h"
#include "engine/processor_helper.h"
#include "borealis.h"
#include "state.h"
#include "error.h"
#include "stdlib/general.h"
#include "stdlib/os.h"
#include "s... |
#ifdef _M_ARM
#define UA32_WINARM
#endif
#ifdef _M_ARM64
#define UA32_WINARM64
#endif
#ifdef __linux
#define UA32_LINUX
#endif
#if defined(UA32_WINARM) || defined(UA32_WINARM64)
#ifndef UA32_WINDOWS
#define UA32_WINDOWS
#endif
#endif
#define UA32_CC_EQ 0x0
#define UA32_CC_NE 0x1
#define UA32_CC_CS 0x2
#define UA... |
/*
* medin.c
*
* Copyright (c) <NAME> 2004-8
*
* Program and source code released under the GPL
*
*/
#include <stdio.h>
#include <stdlib.h>
#include "is_ws.h"
#include "newstr.h"
#include "newstr_conv.h"
#include "fields.h"
#include "xml.h"
#include "xml_encoding.h"
#include "medin.h"
int
medin_readf( FILE *fp,... |
/*
Copyright 2019, 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 above copyright notice,
this l... |
/* packet-btsm.c
* Routines for Bluetooth Low Energy Security Manager dissection
* Copyright 2013, <NAME>, mikeryan /at/ isecpartners /dot/ com
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it un... |
/**
* VampirTrace
* http://www.tu-dresden.de/zih/vampirtrace
*
* Copyright (c) 2005-2008, ZIH, TU Dresden, Federal Republic of Germany
*
* Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
* Centre, Federal Republic of Germany
*
* See the file COPYING in the pa... |
/******************************************************************************/
/* mrtab : Miller-Rabin test iterations for a random, k-bit probable prime
* search, satisfying an upper bound for the error probability: p(k, t)
*
* Copyright (c) 2020 <NAME>.
*
* Redistribution and use in source and binary forms, w... |
#include "term.h"
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
#include <stdio.h>
int rl_gnu_readline_p = 0;
TermInfo* currentTerm = NULL;
enum KEYS{
KEY_CTRL_A = 1,
KEY_CTRL_C = 3,
KEY_CTRL_E = 5,
KEY_TAB = '\t',
KEY_ENTER = '\r',
KEY_ESCAPE = '\x1b',
KEY_BACKSPACE = 127
... |
/*******************************************************************************
* Copyright (c) 1991, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* or http://www.opensolar... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
/* dinvr.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
#define thisprog "xe-ldas5-readssp1"
#define TITLE_STRING thisprog" v 3: 15.March.2019 [JRH]"
#define MAXLINELEN 1000
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/stat.h> /* this and next header allow testing file exists using stat() function */
#include <errno.h>
/******... |
/*++
/* NAME
/* verify 8
/* SUMMARY
/* Postfix address verification server
/* SYNOPSIS
/* \fBverify\fR [generic Postfix daemon options]
/* DESCRIPTION
/* The Postfix address verification server maintains a record
/* of what recipient addresses are known to be deliverable or
/* undeliverable.
/*
/* Addresses are verifie... |
/*
* Copyright (c) 2015 Red Hat, Inc.
*
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are m... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <netinet/in.h>
#include <unistd.h>
#include <poll.h>
#include <string.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include "bftps_session.h"
#include "bftps_command.h"
#include "bftps_socket.h"
#include "bool.h"
#define POLL_UNKNO... |
#define _GNU_SOURCE /* for statx */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include "pe.h"
#include <assert.h>
#include <unistd.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/sendfile.h>
#include <sys/stat... |
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
* MSACM32 library
*
* Copyright 1998 <NAME>
* 1999 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
... |
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
#include <curses.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <pwd.h>
#include <time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <curl/curl.h>
#include <git2.h>
extern int errno;
i... |
/* readsecret.c -*- C -*-
**
** Securely read a password or text secret from a command line (tty device).
**
** by <NAME> <http://deron.meranda.us/>
**
** Free software:
** This code (including the files "readsecret.h" and
** "readsecret.c") is hereby released into the PUBLIC DOMAIN.
**
** A... |
/*
* Copyright 2015 <NAME> & Netherlands eScience Centre
* If you want to use this software, please contact me at <EMAIL>
*
* This program calculates Vertical Profiles of Birds (VPBs) as described in
*
* Bird migration flight altitudes studied by a network of operational weather radars
* <NAME>., <NAME>., <NAME>... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2013 Linux Test Project
*/
/*
* Test /dev/kmsg based on kernel doc: Documentation/ABI/testing/dev-kmsg
* - read() blocks
* - non-blocking read() fails with EAGAIN
* - partial read fails (buffer smaller than message)
* - can write to /dev/kmsg and me... |
// Copyright 2011-2021 <NAME> <<EMAIL>>
// SPDX-License-Identifier: ISC
#undef NDEBUG
#include "int_test_data.h"
#include "macros.h"
#include "num_test_utils.h"
#include "exess/exess.h"
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
static const ExessDuration ze... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.