text stringlengths 3.12k 18.7k |
|---|
// This file is free software, distributed under the BSD license.
#include "hack.h"
#include "extern.h"
#include "mkroom.h"
enum { FCSIZ = ROWNO+COLNO };
struct fakecorridor {
int8_t fx;
int8_t fy;
int8_t ftyp;
};
struct egd {
int fcbeg;
int fcend; // fcend: first unused pos
int8_t gdx;
... |
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <xnnpa... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <pthread.h>
#include "proto.h"
#include "server.h"
#define FILEHISTORY "history.txt"
typedef struct
{
char player... |
class Socket_Reciever
{
tag = "SOCK";
class SQL_Socket
{
file = "core\session";
class requestReceived {};
class dataQuery {};
class insertPlayerInfo {};
class updateRequest {};
class syncData {};
class updatePartial {};
};
};
class Life_Client_Core
{
tag = "life";
class Master_... |
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU G... |
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2018-2020 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a cop... |
/*****************************************************************************\
** **
** FILE: zip.c **
** AUTHORS: <NAME> (<EMAIL>) **
** Alexios (portin... |
/*!
\file gd32f4xx_misc.c
\brief MISC driver
\version 2016-08-15, V1.0.0, firmware for GD32F4xx
\version 2018-12-12, V2.0.0, firmware for GD32F4xx
\version 2020-09-30, V2.1.0, firmware for GD32F4xx
\version 2021-12-09, V2.1.1, firmware for GD32F4xx
*/
/*
Copyright (c) 2... |
/* tac from a pipe.
Copyright (C) 1997-1998, 2002, 2004, 2009-2011 Free Software Foundation,
Inc.
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
... |
/*
Copyright (c) 2013, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer... |
#pragma warning (disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <conio.h>
#include <math.h>
#include <windows.h>
#define ESC 27
#define SCREEN_SIZE 120
#define ROTATE 0.1
#define CAMERAPOINT 1.5
typedef struct _3DCOORD {
double x;
double y;
double z;
}XYZ;
typedef struct _CUB... |
/**
* @date 2019 12/24 - 2020 02/14
* @author <NAME> <<EMAIL>>
* @brief self register
* @repository https://github.com/Takana-Norimasa/selfregi
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
#include<time.h>
#include<stdio.h>
#include<stdlib.h>
#include"struct_data.h"
void welc... |
#include "configuration.h"
#include "recovid_revB.h"
#include "lowlevel.h"
#include "sensing.h"
typedef enum {
STOPPED,
STOPPING,
REQ_SDP_MEASUREMENT,
READ_SDP_MEASUREMENT,
READ_NPA_MEASUREMENT
} sensors_state_t;
static I2C_HandleTypeDef* _i2c= NULL;
static const uint8_t _sdp_reset_req[1] = { 0xFE };
static ... |
/**************************************************************
* Copyright (C) 2001 <NAME>, Optical Access
*
* All Rights Reserved
*
* Permission to use, copy, modify and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the ... |
/*
* PCG Random Number Generation for C.
*
* Copyright 2014-2017 <NAME> <<EMAIL>>,
* and the PCG Project contributors.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
* Licensed under the Apache License, Version 2.0 (provided in
* LICENSE-APACHE.txt and at http://www.apache.org/licenses/... |
/* awlutth.c: THREADING UNIT TEST USING POOL CLASS AWL
*
* $Id$
* Copyright (c) 2001-2020 Ravenbrook Limited. See end of file for license.
*
* DESIGN
*
* .design: see <design/poolawl#.test>
*/
#include "mpscawl.h"
#include "mpsclo.h"
#include "mpsavm.h"
#include "fmtdy.h"
#include "testlib.h"
#include "testth... |
/*
* Copyright (C) 2020 Open Mobile Platform LLC.
*
* You may use this file under the terms of BSD license as follows:
*
* 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 m... |
/*
* Copyright (c) 2015, Zolertia <http://www.zolertia.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
/* $NetBSD: kgdb_machdep.c,v 1.11 2005/12/24 22:45:35 perry Exp $ */
/*-
* 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 cod... |
/*
*
* Author: emadflash
* License: GPL-v3
* Date: Thursday 04 November 2021
*
*/
#include "config.h"
#include "string.h"
#include <stdlib.h>
#include <assert.h>
const char*
ConfigResult_toString(const ConfigResult result) {
#define to_string(X, Y)\
case (X): \
return (Y)
switch (result... |
/**
* \file drm_stub.h
* Stub support
*
* \author <NAME>. (Rik) Faith <<EMAIL>>
*/
/*
* Created: Fri Jan 19 10:48:35 2001 by <EMAIL>
*
* Copyright 2001 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of... |
#include <stdio.h>
#include <stdlib.h>
#include "../src/internal.h"
#include "../src/zigzag.h"
#define HEADER \
"<html>\n" \
" <head>\n" \
" <style type=\"text/css\">\n" \
" svg {\n" \
" width: %i;\n" \
" height: %i;\n" \
" }\n" \
" polygon {\n" \
" stroke: grey;\n" \
... |
/*
Copyright (C) 2015-2020 IoT.bzh
author: <NAME> <<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... |
/*
** Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved.
** Copyright (C) 1998-2013 Sourcefire, 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. You m... |
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any... |
/*
* Copyright (c) 2004, <NAME>.. All rights reserved.
* Created by: <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 the Free Software Foundation.
*
* This program is distributed in the hope that... |
/* -*- coding: utf-8 -*-
* ----------------------------------------------------------------------
* Copyright © 2010, RedJack, LLC.
* All rights reserved.
*
* Please see the LICENSE.txt file in this distribution for license
* details.
* ----------------------------------------------------------------------
*/
... |
/*
* Copyright (c) 1995 - 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 code must retain the above copyright
* notice, this list of conditi... |
/**
* @file parent.c
* @author <NAME>
* @date 27 jun 2016.
* @version 1.0
*/
#include "../headers/parent.h"
#include "../headers/mylib.h"
#include "../headers/utils.h"
#include <sys/wait.h>
#include <sys/msg.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#define RESET "\e[0m"
#define ORANGE "\033[38;5;208m"
#define PAR... |
/*
* Copyright © 2015 Samsung Electronics 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 rights to use, copy, modify,... |
/* cpu.c --- CPU for RL78 simulator.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
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
... |
/* Copyright (c) 2011, BohuTANG <overred.shuttler at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright not... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2011
* egnite GmbH <<EMAIL>>
*/
/*
* Ethernut 5 power management support
*
* This board may be supplied via USB, IEEE 802.3af PoE or an
* auxiliary DC input. An on-board ATmega168 microcontroller,
* the so called power management controller or PMC, is use... |
/* Copyright (c) 2016 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-transferab... |
/*
* XWD image format
*
* Copyright (c) 2012 <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... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <arm_neon.h>
void encodeYUV420SP(unsigned char * yuv420sp, unsigned char * argb, int width, int height)
{
int frameSize = width * height;
int yIndex = 0;
int uvIndex = frameSize;
int index = 0;
int i, j;
for (j = 0; j < height;... |
/* $Id: jbuf_test.c 3841 2011-10-24 09:28:13Z ming $ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the F... |
/*
* ti816x_emif4.c
*
* TI816x emif4 configuration file
*
* Copyright (C) 2017, <NAME>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/ddr_defs.h>
#include <asm/arch/hardware.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
#include <asm/i... |
/*****************************************************************************
* Copyright (c) 2019, Nations Technologies Inc.
*
* All rights reserved.
* ****************************************************************************
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
// <NAME>, 6/11/2019, Spaceman Engine Level Loading
#include "./tokenizer.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static FILE* map_file = NULL;
static int open_file_for_tokenizing(const char* file_path);
static int close_token_file();
static int read_next_token(struct token* t);
static stru... |
/*
* Copyright © 2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISC... |
/*
* Copyright (C) 2012 <NAME>
* Released as open-source under The MIT Licence.
*
* This simple utility converts XML to TML and vice versa.
*
* Use it from the commandline by typing "tml-convert <source> <destination>"
* where source is a tml or xml file you want to convert and destination is
* a filename of ... |
/*
* Swamp - cooperative multitasking operating system
* Copyright (c) 2016 rksdna
*
* 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 th... |
/*****************************************************************************
* Copyright (c) 2019 FrontISTR Commons
* This software is released under the MIT License, see LICENSE.txt
*****************************************************************************/
#include "hecmw_vis_calc_attr.h"
#include <math.h>
... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tls.h>
#include <unistd.h>
// Kramer: Adding the TLS Library on line 13.
// Alph... |
//
// Copyright 2017 <NAME> <<EMAIL>>
// Copyright 2017 Capitar IT Group BV <<EMAIL>>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://... |
/*-
* Copyright (c) 2006,2009,2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
* ptrace.c - process tracing subsystem using ptrace(2)
*
* NOTE: I tried putting these routines into a separate process, but this didn't work correctly, presumably because of the child relationship.
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ptrace.h>
#include ... |
/* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* Jonson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "stream.h"
static double precision_table[17] = {
[1] = 1e-1, [2] = 1e-... |
#include "tickit.h"
#include "taplib.h"
#include <string.h>
#define RECT(t,l,li,co) (TickitRect){ .top = t, .left = l, .lines = li, .cols = co }
void output(TickitTerm *tt, const char *bytes, size_t len, void *user)
{
char *buffer = user;
strncat(buffer, bytes, len);
}
int main(int argc, char *argv[])
{
Tick... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1989, 1993, 1994
* 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. Redistr... |
/**
Copyright (c) 2013-2020, http://github.com/luikore/ccut
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condit... |
/*
* Copyright (c) 2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* 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... |
//
// HtmlElement.c
// yimediter
//
// Created by ybz on 2017/12/11.
// Copyright © 2017年 ybz. All rights reserved.
//
#include "HtmlElement.h"
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
void HtmlElementRelease(struct HtmlElement *elements,int len){
for (int i = 0; i < len; i++) {
fr... |
/*!
\file enet_link_check.c
\brief plug code of network cable state auto check
\version 2018-7-11, V1.0.0, plug for
GD32F107C/GD32F207C/GD32F207I/GD32F307C/GD32F450Z EVAL board
*/
/*
Copyright (c) 2020, GigaDevice Semiconductor Inc.
Redistribution and use in source and ... |
/*
Copyright (c) 2006 by <NAME>.
Copyright (c) 2006 by <NAME>.
Copyright (c) 2017-2021 by <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation t... |
/*****************************************************************************/
/* */
/* span.c */
/* */
... |
/*
* gcc BarnesHut.c -o barnes -lm
* ./barnes filename
*/
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
#define THRESHOLD 0.2
const double G = 6.67408 ;
double space_x1, space_x2, space_y1, space_y2 ;
stru... |
/*
* Implementation of the Microsoft Installer (msi.dll)
*
* Copyright 2005 <NAME> for CodeWeavers
*
* 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
* version 2.1 of the Li... |
/*
* Copyright (C) 2006-2009 <NAME> <<EMAIL>>
*
* 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 fol... |
// PARAM: --enable ana.int.interval --enable ana.int.wrap_on_signed_overflow
// With enabled wrap_on_signed_overflow to assume two's complement representation for signed ints and don't go to top on every signed overflow.
#include <assert.h>
#define RANGE(x, l, u) x >= l && x <= u
int main() {
main2();
int x, y;... |
/*
* Copyright 2015 <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, distrib... |
/**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie control firmware
*
* Copyright (C) 2012-2021 Bi... |
#include <include/debug.h>
#include <include/string.h>
#include <kernel/include/mem.h>
#include "stdbool.h"
#include "stddef.h"
// free pages in a linked list
static struct page page;
// end of kernel, defined in linker.ld
extern char end;
static uint64_t total_free_mem = 0;
vaddr_t mem_end;
static void init_free_re... |
/* Computer Graphics, Assignment, Texture Mapping
*
* Filename ........ geometry.c
* Description .....
* Date ............ 22.11.2007
* Created by ...... <NAME>
*
* Student name ....
* Student email ...
* Collegekaart ....
* Date ............
* Comments ........
*
* (always fill in these fields before subm... |
/*############################################################################
# Copyright 2016-2019 Intel Corporation
#
# 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.apach... |
/*
*
* Copyright (c) 2017-2018 Cisco Systems, 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:
*
* Redistributions of source code must retain the above copyright
* notice, this... |
//
// Copyright (C) 2020 by The Board of Trustees of Stanford University
// This program is free software: you can redistribute it and/or modify it under
// the terms of the Modified BSD-3 License as published by the Open Source
// Initiative.
// If you use this program in your research, we request that you reference ... |
#include "search.h"
#define MY_STACK_SIZE 500
#define MY_PRIORITY 7
#define MAX_READINGS 270
#define AZIMUTH_DEGREES 180
#define ELEVATION_DEGREES 90
extern struct k_sem my_sem;
matrix_x3 readings[MAX_READINGS];
matrix_x3 azimuth_readings[AZIMUTH_DEGREES];
matrix_x3 elevation_readings[ELEVATION_DEGREES];
uint32_t *... |
/*
* A driver for the I2C members of the Abracon AB x8xx RTC family,
* and compatible: AB 1805 and AB 0805
*
* Copyright 2014-2015 Macq S.A.
*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General ... |
/*****************************************************************************
* avcodec.h: decoder and encoder using libavcodec
*****************************************************************************
* Copyright (C) 2001-2008 VLC authors and VideoLAN
* $Id: 52e522dc32198754dd45d21e2f0a5479b4ae1df0 $
*
* Au... |
// --------------- MONITOR INFRASTRUCTURE - USERSPACE DAEMON -----------------
/*
*
* Author: <NAME>
*
* Modified by : <NAME>
* email : <EMAIL>
*
* If using this code for research purposes, include
* references to the following publications
*
* 1) P.Mercati, <NAME>, <NAME>, <NAME> and <NAME>; A Linux... |
#include "gravityBSSN.h"
//Define BSSN eqns for our system and applying simper RK4 here
unsigned time_stamp;
void solBSSNeqns(coll_point_t *pfunc, const double t, const double dt, const int gen) {
void(*rk4_helpers[4])(coll_point_t *, const double) = {rk4_helper1, rk4_helper2, rk4_helper3, rk4_helper4};
/... |
#include "usb_keyboard.h"
// asciimap
#define SHIFT 0x80
const uint8_t _asciimap[128] =
{
0x00, // NUL
0x00, // SOH
0x00, // STX
0x00, // ETX
0x00, // EOT
0x00, // ENQ
0x00, // ACK
0x00, // BEL
0x2a, // BS Backsp... |
/*
* ISC License
*
* Copyright (C) 1990-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appea... |
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software developed by the Computer Systems
* Engineering group at Lawrence Berkeley Laboratory under DARPA contract
* BG 91-66 and contributed to Berkeley.
*
* Redistribution and use... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... |
/*
* Copyright (C) 2008-2020 Advanced Micro Devices, 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,
* this ... |
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ... |
#include <sugar.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <model_gap.h>
#include <affine.h>
#include <mesh.h>
#include <vars.h>
#include <assemble.h>
#include <netdraw.h>
#include <netout.h>
typedef struct gap_t {
element_t eleme... |
/*
* TDT/TOT table parser and generator
* Copyright (C) 2010-2011 Unix Solutions Ltd.
*
* Released under MIT license.
* See LICENSE-MIT.txt for license terms.
*/
#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "tsfuncs.h"
struct ts_tdt... |
//
// Created by Sakura on 3/8/2021.
//
#include "ui.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "../service/offer_service.h"
char *read_string(FILE* fp, size_t size){
//The size is extended by the input with the value of the provisional (dynamic array)
//star before n... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define thisprog "xe-energyvec2"
#define TITLE_STRING thisprog" v 2: 15.February.2014 [JRH]"
#define MAXLINELEN 1000
#define MAXLABELS 1000
/*
<TAGS>signal_processing</TAGS>
v 2: 15.February.2014 [JRH]
- change -ws option to -c (number of c... |
/*
* endin.c
*
* Copyright (c) <NAME> 2003-8
*
* Program and source code released under the GPL
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "is_ws.h"
#include "newstr.h"
#include "newstr_conv.h"
#include "lists.h"
#include "fields.h"
#include "name.h"
#include "title.h"
#include "ser... |
#include "classloader.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util/debug.h"
ByteStream *readClass(const char *path) {
FILE *file = fopen(path, "rb");
if (!file) {
ERROR("[Error] The class file %s does not exist.\n", path);
exit(2);
}
ByteStream *reade... |
/*
* Copyright (c) 2016 <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, ... |
/*********************** clover_info.c *************************/
/* MIMD version 7 */
/* For clover_invert */
/* Application-dependent routine for writing gauge info file
called from one of the output routines in io_prop_w.c */
/* This file is an ASCII companion to the gauge configuration file
and contains in... |
/*
*
* glm.c -- implementation of glm functions
*
* 08-Dec-2005 -- created (RFM)
* 11-Nov-2006 -- Minimal fixes for IntelMac Matlab beta: Replace mxGetPr by mxGetData where appropriate.
*/
#include "mogltypes.h"
// device information
AGLDevice device;
AGLContext context;
CGDirectDisplayID displayID;
int screenw... |
/*-
* Copyright (c) 1998 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#import "game.h"
// Game constants
#define GAME_PLAYER_COUNT 2
#define GAME_CARDS_DRAW_COUNT 4
#define GAME_YEAR_ZERO 1431
// Function declarations for the game functions
void gameUpdate(Scene* scene, int frame);
void gameEventHandler(Scene* scene, SDL_Event* e);
int playCard(int card_type, void* game_data_payload);
... |
#define FUNCTION_CALL 200
#define FUNCTION_PROTO 205
#define LINES 100
#define STAKE_SIZE 1024
#include "lexer.h"
#include "symboltable.h"
#include "tokens.h"
#include "core.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void advance();
Token* eat(int type);
char *parseExprList();... |
/*
** Zabbix
** Copyright (C) 2001-2015 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This pro... |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
// This file is part of Deark.
// Copyright (C) 2016 <NAME>
// See the file COPYING for terms of use.
// Psion PIC
#include <deark-config.h>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_psionpic);
struct plane_info_struct {
i64 width, height;
i64 image_pos; // absolute position in file
i64 rowspan;
};
... |
/*
* Automatically Tuned Linear Algebra Software v3.10.0
* (C) Copyright 1999 <NAME>
*
* 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 ret... |
/*-
* Copyright (c) 2005 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/* ----------------------------------
* CONTROL DEVICE
* ------------------------------- */
int set_tty() {
int speed;
struct termios tios;
if (tcgetattr(sys.dev_descr, &tios) < 0) {
sys.error = ERR_SETUPTTY;
return FALSE;
}
tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL);
tios.c_cflag |= C... |
/*-
* Copyright (c) 2017-2019 The DragonFly Project
* Copyright (c) 2017-2019 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must re... |
/* ========================================================================== */
/* === metis_graph_mex ====================================================== */
/* ========================================================================== */
/*
METIS_GRAPH_MEX: reads a graph in METIS format. This function is not nor... |
/*-
* Copyright (c) 2009 Yahoo! 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, this list of conditi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.