text stringlengths 5.8k 28.2k |
|---|
// Derived from Inferno utils/6l/l.h and related files.
// http://code.google.com/p/inferno-os/source/browse/utils/6l/l.h
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 <NAME> (<EMAIL>)
// Portions Copyright © 1997-1999 Vita Nuova Limited
// Portions Copyrig... |
/***********************************************************************/
/* */
/* Objective Caml */
/* */
/* <NAME>, p... |
#include <nm_core.h>
#include <nm_string.h>
#include <nm_vector.h>
#include <nm_window.h>
#include <nm_ncurses.h>
#include <time.h>
#define NM_SI_ENEMIE_COUNT 60
#define NM_SI_ENEMIE_INROW 10
#define NM_SI_EMEMIE_ROTATE 10
#define NM_SI_DELAY 20000
#define NM_SI_BULLETS 200
#define NM_SI_BONIS_DELAY ... |
// Copyright 2020 <NAME>. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause
#include "avifjpeg.h"
#include "avifutil.h"
#include <assert.h>
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jpeglib.h"
#include "iccjpeg.h"
#define AVIF_MIN(a, b) (((a) < (b)) ? (a) ... |
/* The MIT License
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,
distribute, sub... |
/*
* Copyright 1997-2001 by <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission noti... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
/* Generated from ares_config.h.cmake*/
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* define this if ares is built for a big endian system */
#undef ARES_BIG_ENDIAN
/* when building as static part of libcurl */
#undef BUILDING_LIBCURL
/* Defined for build that exposes... |
/*
* shr-socket
*
* a pair of shr rings must be created before using this tool.
*
* one ring is the outgoing-message ring, and the other is the
* incoming-message ring. this tool opens a socket to a remote
* server. the server should accept, and generate, messages
* having u32 length prefixes. the rings are an ... |
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "server.h"
#include "corvus.h"
#include "event.h"
#include "logging.h"
#include "socket.h"
#include "slot.h"
/**********************************
*
* Corvus Server向redis发送请求的逻辑:
* 1. 当corvus client解析完command之后, 会与目标redis建立tcp连接, 并把这个连接注册
* 到epoll... |
/*! \file bcma_bcmbd_cmicd_symops.c
*
* Symbolic register/memory operations for CMICd devices.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <bsl/... |
#include "MSPd.h"
#include "fftease.h"
#define MEMPAD (1024)
#if MSP
void *disarray_class;
#endif
#if PD
static t_class *disarray_class;
#endif
#define OBJECT_NAME "disarray~"
typedef struct _disarray
{
#if MSP
t_pxobject x_obj;
#endif
#if PD
t_object x_obj;
float x_f;
#endif
... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
*
* 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... |
/* matrix1 - SGEMM example with verification.
Copyright (c) 2018 <NAME> / Tampere University of Technology
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, includi... |
/*
* Copyright (C) 2014 <NAME> <<EMAIL>>
* 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 rights to use,... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*-
* Copyright (c) 1998 <NAME> <<EMAIL>>
* Copyright (c) 2004, 2006 <NAME>
* Copyright (c) 2014 The FreeBSD Foundation
* 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. Redistributi... |
#include "common.h"
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <libtguy.h>
#include <stdlib.h>
#include <utf8c.h>
#include <vec.h>
typedef struct {
COMMON_CONTEXT_BODY;
TTF_Font *font;
SDL_Texture *trash_can_tex;
TrashGuyState *tguy_state;
int tguy_current_frame;
int tguy_in... |
/*----------------------------------------------------------------------------*/
/* Xymon CGI for generating the Xymon Critical Systems page */
/* */
/* Copyright (C) 2004-2011 <NAME> <<EMAIL>> */
/* ... |
/* cungtsqr_row.f -- translated by f2c (version 20160102). 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... |
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <gmp.h>
// modulus, encoded as big-endian bytes
#ifndef modulus_array
#define modulus_array {0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe... |
/* ncdc - NCurses Direct Connect client
Copyright (c) 2011-2019 <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 us... |
/***************************************************************************/
/* */
/* cf2font.c */
/* */
/* Ad... |
/*
Copyright 2018 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
/* multilarge_nlinear/fdf.c
*
* Copyright (C) 2015, 2016 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later versio... |
//
// This code was created by <NAME> '99 (ported to Linux/GLUT by <NAME> '99)
//
// If you've found this code useful, please let me know.
//
// Visit me at www.demonews.com/hosted/nehe
// (email <NAME> at <EMAIL>)
//
// It was modified heavily by <NAME> to get rid of Glut (Blah!) and the Tab characters (double Blah!)
... |
#include "effect.h"
#include "blitter.h"
#include "copper.h"
#include "color.h"
#include "interrupt.h"
#include "memory.h"
#include "pixmap.h"
#include "fx.h"
#define WIDTH 80
#define HEIGHT 64
#define DEPTH 4
static BitmapT *screen[2];
static u_short active = 0;
static u_short *lightmap;
static u_short *shademap;
st... |
/*****************************************************************************
FILE: espa_metadata.c
PURPOSE: Contains functions for reading/writing/appending the ESPA internal
metadata files along with inializing/freeing memory in the metadata structures.
PROJECT: Land Satellites Data System Science Researc... |
/*
* TI OMAP2 general purpose timers emulation.
*
* Copyright (C) 2007-2008 Nokia Corporation
* Written by <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; either versi... |
// Routines for finding:
// * MNT curves with embedding degree 6
// * Freeman curves (which have embedding degree 10)
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h> // for intptr_t
#include <gmp.h>
#include "pbc_mnt.h"
#include "pbc_memory.h"
#include "pbc_utils.h"
#include "misc/darray.h"
struct pell_sol... |
#include <string.h>
#include <fingera/hash/block_impl.h>
#include <fingera/hash/ripemd160.h>
static void ripemd160_transform(uint32_t *s, const void *chunk);
static uint32_t ripemd160_init_digest[5] = {
0x67452301UL, 0xEFCDAB89UL, 0x98BADCFEUL, 0x10325476UL, 0xC3D2E1F0UL};
#define write_size writele64
#define r... |
/**
* 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... |
/* aich.c - an implementation of EMule AICH Algorithm.
* Description: http://www.amule.org/wiki/index.php/AICH.
*
* Copyright: 2008-2012 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* t... |
/*
* Copyright (c) 2010 <NAME>
* Copyright (c) 2011 <NAME>
* Copyright (c) 2014 <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 l... |
/* dpsifn.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... |
// This file is part of Deark.
// Copyright (C) 2016 <NAME>
// See the file COPYING for terms of use.
// Inset .PIX
#include <deark-config.h>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_insetpix);
typedef struct localctx_struct {
i64 item_count;
u8 hmode;
u8 htype;
u8 graphics_type; // 0=character, 1=... |
/// Date: 05.14.2013
/// <NAME>
/// Modified the code to allow user to customize categories of mutation rates.
/// E.g. TpC or TpT or any XpX
//
/// Author: <NAME>
/// Date: 01.19.2011
/// Description: Counts bases with sufficient read-depth in regions of interest within two BAMs
//
/// Notes:
/// - If ROIs of t... |
/*
* Copyright (c) 2020 Bouffalolab.
*
* This file is part of
* *** Bouffalolab Software Dev Kit ***
* (see www.bouffalolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions ... |
/* MaplySharedAttributes.h
* WhirlyGlobe-MaplyComponent
*
* Created by <NAME> on 9/19/12.
* Copyright 2011-2022 mousebird consulting
*
* 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 Licens... |
/*
* Copyright 2000 by <NAME>, licensing governed by reiserfs/README
*/
#include "debugreiserfs.h"
#include <sys/resource.h>
#define print_usage_and_exit() die ("Usage: %s [-v] [-b filename] device\n\
-v prints blocks number of every block unpacked\n\
-b filename makes unpack to save bitmap of blocks unpacked\n... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <signal.h>
#include <syslog.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/... |
/* See LICENSE for license information. */
#pragma once
#define _GNU_SOURCE
#include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#define TERMCOLOR_RESET "\e[m"
#define TERMCOLOR_DEFAULT ... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2014 Imagination Technologies
*
* 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; version 2 of the License.
*
* This prog... |
/*
* Copyright (c) 2017, 2018, The MCUSim 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,... |
#include "mpu6050.h"
I2C_HandleTypeDef *hi2c_p;
#define MPU6050_I2C_ADDR 0xD0
#define MPU6050_I_AM 0x68
#define MPU6050_AUX_VDDIO 0x01
#define MPU6050_SMPLRT_DIV 0x19
#define MPU6050_CONFIG 0x1A
#define MPU6050_GYRO_CONFIG 0x1B
#define MPU6050_ACCEL_CONFIG 0x1C
#define MPU6050_MOTION_THRES... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct arvore{
struct arvore *le;
struct arvore *ld;
struct arvore *pai;
char palavra[20];
int idade;
char cor[6];
}arvore;
void inordem(arvore *p){
if(p!=NULL){
inordem(p->ld);
if(strcmp(p->cor,"black")){
printf("\33[31m%d\033[0m\n",p->... |
/* -- translated by f2c (version 20000121).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Common Block Declarations */
struct sccsrdcortab_1_ {
char sccsid[80];
};
#define sccsrdcortab_1 (*(struct sccsrdcortab_1_ *) &sccsrdcortab_)
static st... |
/*D***********************************************************
* Modul: DBINET - mpnet main()
* travelDB light server in C with own protocol
* or XML or WebServices
*
* Copyright: yafra.org, Switzerland, 2004
*
* PISO SCM: TAG $Name: $
* Author: $Author: mwn $
* Revision... |
/* Pango
* pango-gravity.c: Gravity routines
*
* Copyright (C) 2006, 2007 Red Hat Software
*
* 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... |
#define _XOPEN_SOURCE 700
#include "strm.h"
#include <time.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <math.h>
#include <string.h>
#ifdef _WIN32
char* strptime(const char *buf, char *fmt, struct tm *tm);
#endif
#ifndef timeradd
# define timeradd(a, b, res) \
... |
/*
* Copyright (c) 2021 hpmicro
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include "board.h"
#include "hpm_debug_console.h"
#include "hpm_adc16_drv.h"
#include "hpm_pwm_drv.h"
#include "hpm_trgm_drv.h"
#include "hpm_trgmmux_src.h"
#include "hpm_synt_drv.h"
#ifndef BOARD_APP_ADC_TRIG_PWM0
#define BOARD_APP_A... |
//This POC causes a kernel heap overflow in tcp_cache_set_cookie_common (see bsd/netinet/tcp_cache.c). A
//user-supplied length is passed to memcpy, which causes the destination struct tcp_cache allocation to be overflown.
//Unfortunately, the size of the source memory object is limited, so we cannot directly control ... |
/*
* mod_rayo for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2014-2015, Grasshopper
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
*... |
/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
/* See LICENSE file in the project root for full license information. */
/**
@file
m2m_tcp_test.c
@brief
The file contains the TCP utilities
@details
@version
1.0.3
@note
@author
@date
02/03/201... |
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* Handy references at http://v4l2spec.bytesex.org/
*
* <NAME> May 2012.
*/
#include "mex.h"
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <string.h>
#include <fcntl.h> ... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \___... |
#include "ch.h"
#include "hal.h"
#include "test.h"
#include "camera.h"
#include "config.h"
#include "compass.h"
#include "lines.h"
#include "motor.h"
#include "kicker.h"
#include "leds.h"
#include "dip_switch.h"
#include "jetson.h"
#include "chprintf.h"
#include "ultrasonic.h"
#include <math.h>
#define... |
/*
* iceprogduino -- simple programming tool for FTDI-based Lattice iCE programmers
* and Olimexino-32U4 based programmers for iCE40HX1K-EVB
*
* Copyright (C) 2015 <NAME> <<EMAIL>>
* Olimexino-32U4 edition by <NAME>. <<EMAIL>> @ Olimex Ltd. <c> 2016
*
* Permission to use, copy, modify, and/or dist... |
/*
* Copyright (c) 2018 IOTA Stiftung
* https:github.com/iotaledger/entangled
*
* MAM is based on an original implementation & specification by apmi.bsu.by
* [ITSec Lab]
*
* Refer to the LICENSE file for licensing information
*/
#include <string.h>
#include <unity/unity.h>
#include "mam/v2/mam/mam.h"
#include... |
/************************************************************************************
Filename : mpu6500.c
Content : Invensense MPU-6500 gyro/accel interface
Created :
Authors : <NAME>
Copyright : Copyright (c) 2013-present, Facebook, Inc.
All rights reserved.
This source cod... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any ... |
//内存管理
#include "memory.h"
#include "global.h"
#include "printk.h"
struct Memory memory = {{0},0,{0},{0}};
//初始化内核页表(线性地址<----->物理地址),即直接映射
void initKernelPage(unsigned long CR3PhyAddress){
unsigned long nowPhyAddress;
unsigned long CR3;
for(nowPhyAddress=0;nowPhyAddress<(memory.e820[memory.e820Length].a... |
/**
* cfs_event.c
*
* ABSTRACT:
* This S-function implements the CFS Target Event block.
* This block serves to purpose during simulation. Instead,
* DWork is used as persistent data that can be addressed
* in the CFS Event Table. This is so that this block can
* be used in reusabl... |
/**
* About vvlogic X1 firmware.
* This embedded project and main framework was create by ST
* STM32CUBE and build by IAR ARM 7.3.
* STM32CUBEMX version 4.1.1
* STM32CUBEL1 version 1.4.0
*
* This project is licensed under the
* terms of the MIT license.
*
* <EMAIL>, 2016.05.02
* ver 3 (Initialve... |
////////////////////////////////////////////////////////////////////////////////
// //
// MIT X11 license, Copyright (c) 2005-2006 by: //
// ... |
#include <fc_api.h>
int connected = 0;
struct SocketBuffer control;
struct SocketBuffer data;
const char EOL[3] = {13, 10, 0};
static char* hostname;
void ftpOpen();
void ftpQuit();
void ftpPwd();
void ftpCd();
void ftpDir();
void ftpGet();
int getFtpCode(struct SocketBuffer* socket_buf);
int sendFtpCommand(char*... |
/* FFTease for Pd */
#include "fftease.h"
#define THRESHOLD_MIN (.000001)
static t_class *reanimator_class;
#define OBJECT_NAME "reanimator~"
typedef struct _reanimator
{
t_object x_obj;
t_float x_f;
t_fftease *fft;
t_float **framebank;
t_float *normalized_frame;
t_float current_frame;
... |
/* Defines a recursive hash data structure, where at the top level,
* there is a list of elements indexed by string. Each
* of these elements in turn consists of a list of elements
* indexed by string, and so on. */
#include "kvtree.h"
#include "kvtree_io.h"
#include "kvtree_err.h"
#include "kvtree_helpers.h"
#inc... |
#include "logfsos.h"
#include "logfs.h"
#include "local.h"
struct LogfsBoot {
LogfsLowLevel *ll;
long bootblocks;
long blocksize;
long size;
long *map;
int trace;
int printbad;
// ulong bootpathmask;
// int bootgenshift;
};
typedef struct LogfsBootPath LogfsBootPath;
//#define LogfsBootGenBits 2
//#define Log... |
/*
* $Copyright Broadcom Corporation$
*
*/
/******************************************************************************
*
* Copyright 2007
* Broadcom Corporation
* 16215 <NAME>
* PO Box 57013
* Irvine CA 92619-7013
*
*****************************************************************************/
/*
*... |
//
// Created by <NAME> on 2019-07-07.
//
#include "ak_asn_codec_new.h"
// TODO: проверить необходимость в подключении файлов
#ifdef LIBAKRYPT_HAVE_STDLIB_H
#include <stdlib.h>
#else
#error Library cannot be compiled without stdlib.h header
#endif
#ifdef LIBAKRYPT_HAVE_STRING_H
#include <string.h>
#else
#error Libra... |
/*
* usb_id.c
*
* Identify an USB (block) device
*
* Copyright (c) 2005 SUSE Linux Products GmbH, Germany
*
* Author:
* <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 Foundat... |
/*
* fiwix/kernel/timer.c
*
* Copyright 2018-2021, <NAME>. All rights reserved.
* Distributed under the terms of the Fiwix License.
*/
#include <fiwix/asm.h>
#include <fiwix/kernel.h>
#include <fiwix/segments.h>
#include <fiwix/cmos.h>
#include <fiwix/pit.h>
#include <fiwix/timer.h>
#include <fiwix/time.h>
#inclu... |
#include "../c_header/mpe_lbm.h"
extern int right_nbr,
left_nbr,
up_nbr,
down_nbr,
lu_nbr,
ru_nbr,
ld_nbr,
rd_nbr;
//ori data
int X, Y, Z, Xst, Xed, Yst, Yed, x_sec, y_sec;
int STEPS;
realt *****ori_nodes;
int ***ori_flags, ****ori_walls;
Real ***right_recv;
Real ***left_recv;
Real ***down_recv;
Real ***up_recv;
Rea... |
/* RETRO -------------------------------------------------------------
A personal, minimalistic forth
Copyright (c) 2016 - 2019 <NAME>
This is the `repl`, a basic interactive interface for RETRO. It is
intended to be simple and very minimalistic, providing the minimal
I/O and additions needed to support a ba... |
/*
* Copyright (c) 2012 <NAME> <<EMAIL>>
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
#include "RTE_Components.h"
#include "MKL25Z4.h"
#include "cmsis_os2.h"
#include "driver.h"
#define RED_LED 18 // PortB Pin 18
#define GREEN_LED 19 // PortB Pin 19
#define BLUE_LED 1 // PortD Pin 1
#define REAR_LED 16 // PortC Pin 16
// PWM Pins
#define SPEAKER 0
#define PTD0_Pin 0
#define PTD1_Pin 1
#define PTD2_Pi... |
/*
* @brief USB Band Width test and WCID examples for USB ROM API.
*
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC p... |
/*
* Copyright (c) 2006-2007 University of Houston. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ADCL_internal.h"
/* History clustering verbosity */
//#define HC_V 1
/* Initialization for the history clustering */
static void ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/globals.h"
#include "include/global_errors.h"
#include "include/aht.h"
// Initialize the aht 'aht' to hold 'sz' leaves
void aht_init(struct aht* aht, int sz){
struct aht_node* ahtn;
aht->tree = calloc(sz * 2, sizeof(struct aht_node));
if (... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2016-2018 ARM Ltd.
* Author: <NAME> <<EMAIL>>
*
*/
#define DEBUG
#include <common.h>
#include <video.h>
#include <dm.h>
#ifdef CONFIG_DISPLAY
#include <display.h>
#endif
#include <fdtdec.h>
#include <asm/io.h>
#include <os.h>
#include <fdt_support.h>
#include ... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/* $NetBSD: if_iee_gsc.c,v 1.1 2004/03/12 11:41:39 jkunz Exp $ */
/*
* Copyright (c) 2003 <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... |
/*
Name: Zeta
Description: Experimental chess engine written in OpenCL.
Author: <NAME> <<EMAIL>>
Created at: 2018-03-25
Updated at: 2021-08-11
License: MIT
Copyright (c) 2011-2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this soft... |
/*
* xen_xl.c: Xen XL parsing functions
*
* Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
*
* 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... |
/*
* font.c
* FreeType font source.
*
* Author : <NAME> <<EMAIL>>
* Date created : 19/04/2021
*/
#include <stdlib.h>
#include <string.h>
#include "common/error.h"
#include "common/includes.h"
#include "common/types.h"
#include "math/math.h"
#include "memory/allocator.h"
#include "video/camera.h"
#include ... |
/*
* wipefs - utility to wipe filesystems from device
*
* Copyright (C) 2009 Red Hat, Inc. All rights reserved.
* Written by <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 Founda... |
/*
* Recurrent Torus.
*
* Torus is defined by its "big" and "little" radii R and r.
* Given a surface point parameterized by (u,v), we convert
* to cartesian coordinates as follows:
* x(u,v) = (R + r*cos(u))*cos(v), 0 <= u,v <= 2*pi
* y(u,v) = (R + r*cos(u))*sin(v)
* z(u,v) = r*sin(u)
*
* To create ou... |
#include "tJSON.h"
#include "jPath.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define TJSON_MALLOC malloc
#define TJSON_FREE free
static size_t StrAppend(char* *buf, size_t bufsize, const char* str, size_t strl ){
char* tmpbuf;
if(strl == 0 || str == NULL){
... |
#include <kos.h>
#include <mruby.h>
#include <mruby/data.h>
#include <mruby/string.h>
#include <mruby/error.h>
#include <mruby/array.h>
#include <stdio.h>
#include <inttypes.h>
#define PACK_PIXEL(r, g, b) ( ((r & 0xF8) << 8) | ((g & 0xFC) << 3) | (b >> 3) )
#define BUFSIZE 100
struct InputBuf {
uint16_t buffer[BU... |
//=============================================================================
// CRC-aided (CA) Polar SCL codec.
// Implements codec.h
// Needs channel sigma (define global DEC_NEEDS_SIGMA).
//
// Copyright 2019 and onwards <NAME>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not u... |
/*
* redirector.c
* potd is licensed under the BSD license:
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* 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 cop... |
/*
* read disk partition tables, intended for early use on systems
* that don't use 9load. borrowed from 9load.
*/
#include <u.h>
#include <libc.h>
#include <auth.h>
#include <fcall.h>
#include <bio.h>
#include "../boot/boot.h"
typedef struct Fs Fs;
#include "/sys/src/boot/pc/dosfs.h"
#define GSHORT(p) (((p)[1]<... |
/*
* upb - a minimalist implementation of protocol buffers.
*
* Copyright (c) 2008-2012 Google Inc. See LICENSE for details.
* Author: <NAME> <<EMAIL>>
*/
#include "upb/symtab.h"
#include <stdlib.h>
#include <string.h>
bool upb_symtab_isfrozen(const upb_symtab *s) {
return upb_refcounted_isfrozen(UPB_UPCAST(... |
#define DEBUG
#define shipb ship.body
#include"main.h"
int main(int argc,char*argv[]){
SDL_Init(SDL_INIT_EVERYTHING);
window = SDL_CreateWindow("Orbitoor",SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,width,720,0);
renderer = SDL_CreateRenderer(window,-1,SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSY... |
/*Daala video codec
Copyright (c) 2012 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... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/xgi/xgi_setup.c,v 1.5 2006/12/10 15:58:32 tsi Exp $ */
/*
* Basic hardware and memory detection
*
* Copyright (C) 2001-2004 by <NAME>, Vienna, Austria.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided ... |
/*
My Baby Cat
---------------
MIT License
Copyright (c) 2019 JUNO, <NAME>
My Baby Cat은 앞으로 달려가는 고양이를 조종해
최대한 오래 살아남아 많은 점수를 얻는 게임이다.
쿠키런에서 모티브를 얻었다.
고양이의 속도는 점점 빨라지고, 이와 동시에 체력 또한 점점 줄어든다.
스페이스 바를 눌러 점프할 수 있고, 방향키(아래)를 눌러 슬라이딩을 할 수 있으며,
이를 통해 장애물을 피할 수 있다.
만약 장애물에 충돌할 시 체력이 줄어들게 된다.
고양이가 생선에 닿으면 점수가 올라가며, 아이템에 닿을 시 ... |
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#include <zephyr.h>
#include <stdio.h>
#include <string.h>
#include <drivers/gps.h>
#include <drivers/sensor.h>
#include <console/console.h>
#include <net/nrf_cloud.h>
#include <dk_buttons_and_leds.h>
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.