commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
dfd1a6192961f88408a34c21c3ab82d144ebc2ee | net.h | net.h | #ifndef NET_H
#define NET_H
typedef enum Command {GET_STATE = 'S',
SHOOT = 'F', GET_MAP = 'M', ERROR = 'E'} Command;
#define PORTNUM 7979 /* Port Number */
#define MAXRCVLEN 128 /* Maximal Length of Received Value */
#endif /* NET_H */
| #ifndef NET_H
#define NET_H
/*
* command args reply
*
* GET_MAP none map_seed map_length map_height
*/
typedef enum Command {GET_STATE = 'S',
SHOOT = 'F', GET_MAP = 'M', ERROR = 'E'} Command;
#define PORTNUM 7979 /* Port Number */
#define MAXRCVLEN 128 /* Maximal Length of Received... | Add documentation for GET_MAP command | Add documentation for GET_MAP command
| C | mit | AwesomePatrol/ncursed-tanks |
a6d291f001b40c83d5b88bc648c61524c66240b4 | src/Config.h | src/Config.h | #ifndef CTCONFIG_H
#define CTCONFIG_H
//#define ENABLE_ASSERT_CHECKS
//#define CT_NODE_DEBUG
//#define ENABLE_INTEGRITY_CHECK
//#define ENABLE_COUNTERS
//#define ENABLE_PAGING
//#define SNAPPY_COMPRESSION
#endif // CTCONFIG_H
| #ifndef CTCONFIG_H
#define CTCONFIG_H
//#define ENABLE_ASSERT_CHECKS
//#define CT_NODE_DEBUG
//#define ENABLE_INTEGRITY_CHECK
//#define ENABLE_COUNTERS
//#define ENABLE_PAGING
#define ENABLE_COMPRESSION
//#define SNAPPY_COMPRESSION
#endif // CTCONFIG_H
| Add new option to enable/disable compression | Add new option to enable/disable compression
| C | mit | sopwithcamel/cbt,sopwithcamel/cbt |
9ffe537cb523373b72f463b7fecac840589db264 | hardware/zpuino/zpu20/cores/zpuino/crt-c.c | hardware/zpuino/zpu20/cores/zpuino/crt-c.c |
extern unsigned int __bss_start__,__bss_end__;
extern unsigned int ___ctors, ___ctors_end;
extern char __end__;
static char *start_brk = &__end__;
extern void _Z4loopv();
extern void _Z5setupv();
void ___clear_bss()
{
unsigned int *ptr = &__bss_start__;
while (ptr!=&__bss_end__) {
*ptr = 0;
ptr++;
}
}
void ... |
extern unsigned int __bss_start__,__bss_end__;
extern unsigned int ___ctors, ___ctors_end;
extern char __end__;
static char *start_brk = &__end__;
extern void _Z4loopv();
extern void _Z5setupv();
void ___clear_bss()
{
unsigned int *ptr = &__bss_start__;
while (ptr!=&__bss_end__) {
*ptr = 0;
ptr++;
}
}
void ... | Add conditional for BSS cleanup | Add conditional for BSS cleanup
| C | lgpl-2.1 | rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab |
3fe765a96b95467327e9cc1cfcdabcdfea1d3818 | src/parser.h | src/parser.h | #ifndef _PARSER_H_
#define _PARSER_H_
#include <Python.h>
#include "circular_buffer.h"
typedef enum {
COMPLETE_DATA,
MISSING_DATA,
INVALID_DATA,
PARSE_FATAL_ERROR,
} parse_result;
typedef enum {
PART_CHOOSER,
PART_SINGLE_SIZED,
PART_COUNT,
PART_INLINE,
PART_SIZE,
PART_PYSTRING... | #ifndef _PARSER_H_
#define _PARSER_H_
#include <Python.h>
#include "circular_buffer.h"
typedef enum {
COMPLETE_DATA,
MISSING_DATA,
INVALID_DATA,
PARSE_FATAL_ERROR,
} parse_result;
typedef enum {
PART_CHOOSER,
PART_SINGLE_SIZED,
PART_COUNT,
PART_INLINE,
PART_SIZE,
PART_PYSTRING... | Replace empty arguments definition with void for compatibility | Replace empty arguments definition with void for compatibility
| C | mit | gviot/nadis,gviot/nadis,gviot/nadis |
0fc0754e655a0628c4b25da4fe2ddf261208deb3 | gio/tests/appinfo-test.c | gio/tests/appinfo-test.c | #include <stdlib.h>
#include <gio/gio.h>
int
main (int argc, char *argv[])
{
const gchar *envvar;
gint pid_from_env;
envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID");
g_assert (envvar != NULL);
pid_from_env = atoi (envvar);
g_assert_cmpint (pid_from_env, ==, getpid ());
envvar = g_getenv ("GIO_LAUNC... | #include <stdlib.h>
#include <gio/gio.h>
int
main (int argc, char *argv[])
{
const gchar *envvar;
g_test_init (&argc, &argv, NULL);
envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE");
if (envvar != NULL)
{
gchar *expected;
gint pid_from_env;
expected = g_test_build_filename (G_TEST_DIST, ... | Fix up the appinfo test | Fix up the appinfo test
One testcase was launching appinfo-test from a GAppInfo that
does not have a filename. In this case, the G_LAUNCHED_DESKTOP_FILE
envvar is not exported. Make appinfo-test deal with that, without
spewing warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=711178
| C | lgpl-2.1 | endlessm/glib,mzabaluev/glib,tamaskenez/glib,cention-sany/glib,gale320/glib,lukasz-skalski/glib,krichter722/glib,endlessm/glib,endlessm/glib,ieei/glib,gale320/glib,ieei/glib,tamaskenez/glib,MathieuDuponchelle/glib,tamaskenez/glib,tchakabam/glib,krichter722/glib,mzabaluev/glib,ieei/glib,Distrotech/glib,johne53/MB3Glib,M... |
df5d139a828fbac2f919c7278163f12e0d4b01c7 | include/inputeventdata.h | include/inputeventdata.h | /*
-----------------------------------------------------------------------------
Copyright (c) 2010 Nigel Atkinson
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 w... | /*
-----------------------------------------------------------------------------
Copyright (c) 2010 Nigel Atkinson
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 w... | Use a more suitable type for mouse co-ordinates. | Use a more suitable type for mouse co-ordinates.
| C | mit | merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed |
98b8a0eb22fbc4012f9c9ac0a793a4822822f208 | Sources/MCKNetworkMock.h | Sources/MCKNetworkMock.h | //
// MCKNetworkMock.h
// mocka
//
// Created by Markus Gasser on 26.10.2013.
// Copyright (c) 2013 konoma GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@class MCKNetworkMock;
@class MCKNetworkRequestMatcher;
@class MCKMockingContext;
typedef MCKNetworkRequestMatcher*(^MCKNetworkActivity)(id u... | //
// MCKNetworkMock.h
// mocka
//
// Created by Markus Gasser on 26.10.2013.
// Copyright (c) 2013 konoma GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@class MCKNetworkMock;
@class MCKNetworkRequestMatcher;
@class MCKMockingContext;
typedef MCKNetworkRequestMatcher*(^MCKNetworkActivity)(id u... | Make the network mock play nice with stubCall (…) | Make the network mock play nice with stubCall (…)
| C | mit | frenetisch-applaudierend/mocka,frenetisch-applaudierend/mocka |
a733a2ecfb267aa5e35b2b98d4baf7aefc0fecbe | test/test-common/QuietCommandlineTest.h | test/test-common/QuietCommandlineTest.h | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd 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
... | Add quiet fixture for commandline tests | Add quiet fixture for commandline tests
This patch introduces fixture which suppresses printing output to
std::cout or std::cerr. Data is redirected to temporary buffers and
accessible from there.
Change-Id: Ia1b8b240be95d1d672a56cd9eaf6e13320bb375b
| C | apache-2.0 | Samsung/cynara,Samsung/cynara,pohly/cynara,pohly/cynara,pohly/cynara,Samsung/cynara | |
54562ec9471222010cded42de16bc23286d873cd | test/CodeGen/2008-01-04-WideBitfield.c | test/CodeGen/2008-01-04-WideBitfield.c | // RUN: %clang_cc1 -emit-llvm -o - %s
// PR1386
typedef unsigned long uint64_t;
struct X {
unsigned char pad : 4;
uint64_t a : 64;
} __attribute__((packed)) x;
uint64_t f(void)
{
return x.a;
}
| // RUN: %clang_cc1 -emit-llvm -o - %s
// PR1386
typedef unsigned long long uint64_t;
struct X {
unsigned char pad : 4;
uint64_t a : 64;
} __attribute__((packed)) x;
uint64_t f(void)
{
return x.a;
}
| Use unsigned long long for uint64_t. Fixes part of the windows buildbot. | Use unsigned long long for uint64_t. Fixes part of the windows buildbot.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136160 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
00fa5d47e3900f290b1673ce99a899713c011300 | bandit/reporters/colored_reporter.h | bandit/reporters/colored_reporter.h | #ifndef BANDIT_COLORED_REPORTER_H
#define BANDIT_COLORED_REPORTER_H
#include <ostream>
#include <bandit/reporters/colorizer.h>
#include <bandit/reporters/progress_reporter.h>
namespace bandit { namespace detail {
struct colored_reporter : public progress_reporter
{
colored_reporter(std::ostream& stm,
... | #ifndef BANDIT_COLORED_REPORTER_H
#define BANDIT_COLORED_REPORTER_H
#include <ostream>
#include <bandit/reporters/colorizer.h>
#include <bandit/reporters/progress_reporter.h>
namespace bandit { namespace detail {
struct colored_reporter : public progress_reporter
{
colored_reporter(std::ostream& stm,
... | Make sure the colorizer is reset | Make sure the colorizer is reset
This is done using the colored_reporter destructor.
This should fix the part of #90, i.e., that colors are changed when the
code exits unexpectedly, or in case the reporter simply does not reset
the colorizer.
| C | mit | ogdf/bandit,ogdf/bandit,joakimkarlsson/bandit,joakimkarlsson/bandit,joakimkarlsson/bandit |
a66f471fe91dbfcf659762565185e6ba903210f0 | src/os/emscripten/open.c | src/os/emscripten/open.c | #include "os_common.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
FILE *os_fopen(const char *path, const char *mode)
{
FILE *f = NULL;
if (path[0] == '/' && strncmp(path, "/dev", 4)) {
// absolute path, needs to be construed relative to mountpoint
size_t need = 1 + snprintf(NU... | #include "os_common.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
FILE *os_fopen(const char *path, const char *mode)
{
FILE *f = NULL;
if (path[0] == '/' && strncmp(path, "/dev", 4)) {
// absolute path, needs to be construed relative to mountpoint
int need = 1 + snprintf(NULL,... | Address -Wsign-conversion in emscripten build | Address -Wsign-conversion in emscripten build
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
25ac6c78271d734772ed59058b9d29b5c6b08ddf | src/compat/posix/include/posix_errno.h | src/compat/posix/include/posix_errno.h | /**
* @file
* @brief
*
* @author Anton Kozlov
* @date 25.06.2012
*/
#ifndef COMPAT_POSIX_POSIX_ERRNO_H_
#define COMPAT_POSIX_POSIX_ERRNO_H_
#include <kernel/task/resource/errno.h>
#define errno (*task_self_resource_errno())
#define SET_ERRNO(e) \
({ errno = e; -1; /* to let 'return SET_ERRNO(...)' */ })
... | /**
* @file
* @brief
*
* @author Anton Kozlov
* @date 25.06.2012
*/
#ifndef COMPAT_POSIX_POSIX_ERRNO_H_
#define COMPAT_POSIX_POSIX_ERRNO_H_
#include <kernel/task/resource/errno.h>
#include <compiler.h>
#define errno (*task_self_resource_errno())
static inline int SET_ERRNO(int err) {
errno = err;
return... | Change SET_ERRNO to be inline function | Change SET_ERRNO to be inline function
| C | bsd-2-clause | mike2390/embox,mike2390/embox,Kefir0192/embox,gzoom13/embox,Kakadu/embox,embox/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,Kefir0192/embox,embox/embox,Kefir0192/embox,mike2390/embox,Kefir0192/embox,gzoom13/embox,mike2390/embox,Kakadu/embox,embox/embox,Kefir0192/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,Kakadu/... |
5753352c3f560801c975cea7df03956833d3303f | tardis/montecarlo/src/io.h | tardis/montecarlo/src/io.h | #define _POSIX_C_SOURCE 1
#include <unistd.h>
#include <inttypes.h>
#include <stdio.h>
#define STATUS_FORMAT "\r\033[2K\t[%" PRId64 "%%] Packets(finished/total): %" PRId64 "/%" PRId64
#define STATUS_FORMAT_FI "\r\033[2K\t[%" PRId64 "%%] Rays(finished/total): %" PRId64 "/%" PRId64
static inline void
print_progress (c... | #define _POSIX_C_SOURCE 1
#include <unistd.h>
#include <inttypes.h>
#include <stdio.h>
#define STATUS_FORMAT "\r\033[2K\t[%" PRId64 "%%] Packets(finished/total): %" PRId64 "/%" PRId64
#define STATUS_FORMAT_FI "\r\033[2K\t[%" PRId64 "%%] Bins(finished/total): %" PRId64 "/%" PRId64
static inline void
print_progress (c... | Correct status printout for FI | Correct status printout for FI
| C | bsd-3-clause | kaushik94/tardis,kaushik94/tardis,kaushik94/tardis,kaushik94/tardis |
462e57739769909d72cda50355e2ccc055386816 | include/dg/PointerAnalysis/PointsToSet.h | include/dg/PointerAnalysis/PointsToSet.h | #ifndef DG_POINTS_TO_SET_H_
#define DG_POINTS_TO_SET_H_
#include "dg/PointerAnalysis/PointsToSets/OffsetsSetPointsToSet.h"
#include "dg/PointerAnalysis/PointsToSets/SimplePointsToSet.h"
#include "dg/PointerAnalysis/PointsToSets/SeparateOffsetsPointsToSet.h"
#include "dg/PointerAnalysis/PointsToSets/PointerIdPointsToSe... | #ifndef DG_POINTS_TO_SET_H_
#define DG_POINTS_TO_SET_H_
#include "dg/PointerAnalysis/PointsToSets/OffsetsSetPointsToSet.h"
#include "dg/PointerAnalysis/PointsToSets/SimplePointsToSet.h"
#include "dg/PointerAnalysis/PointsToSets/SeparateOffsetsPointsToSet.h"
#include "dg/PointerAnalysis/PointsToSets/PointerIdPointsToSe... | Revert "PTA: use bitvector-based points-to set representation" | Revert "PTA: use bitvector-based points-to set representation"
This reverts commit 74f5d133452018f5e933ab864446bdb720fa84b9.
| C | mit | mchalupa/dg,mchalupa/dg,mchalupa/dg,mchalupa/dg |
7a2e8ee731e707612983c6f1dd85651077d92052 | include/OgreHeadlessApi.h | include/OgreHeadlessApi.h |
/* Copyright 2013 Jonne Nauha / jonne@adminotech.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 applica... |
/* Copyright 2013 Jonne Nauha / jonne@adminotech.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 applica... | Fix compilation on non-windows, had not tested this before and was missinga platform include. | Fix compilation on non-windows, had not tested this before and was missinga platform include.
| C | apache-2.0 | jonnenauha/ogre-headless-renderer |
491451e9a3437f068fc9d7a3692a584673030f99 | tree/treeplayer/inc/DataFrameLinkDef.h | tree/treeplayer/inc/DataFrameLinkDef.h | /*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing... | /*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing... | Solve undefined symbol issue spelling the right class name in the linkdef. | [TDF] Solve undefined symbol issue spelling the right class name in the linkdef.
| C | lgpl-2.1 | agarciamontoro/root,mhuwiler/rootauto,simonpf/root,olifre/root,zzxuanyuan/root,karies/root,agarciamontoro/root,zzxuanyuan/root,agarciamontoro/root,karies/root,zzxuanyuan/root,karies/root,simonpf/root,karies/root,simonpf/root,karies/root,simonpf/root,zzxuanyuan/root,mhuwiler/rootauto,karies/root,olifre/root,root-mirror/... |
ac9bbd3283e587ba309e9eec84ff76fb19fa7f94 | lib/fdpgen/clusteredges.h | lib/fdpgen/clusteredges.h | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | Fix the sep and esep attributes to allow additive margins in addition to scaled margins. | Fix the sep and esep attributes to allow additive margins in addition
to scaled margins.
| C | epl-1.0 | tkelman/graphviz,ellson/graphviz,tkelman/graphviz,BMJHayward/graphviz,ellson/graphviz,kbrock/graphviz,pixelglow/graphviz,BMJHayward/graphviz,jho1965us/graphviz,tkelman/graphviz,BMJHayward/graphviz,ellson/graphviz,tkelman/graphviz,MjAbuz/graphviz,tkelman/graphviz,ellson/graphviz,kbrock/graphviz,pixelglow/graphviz,MjAbuz... |
6a51f3d903433eb69bef145fa8fd4d30b762ee01 | new/lidar.h | new/lidar.h | #ifndef _LIDAR_H_
#define _LIDAR_H_
#ifdef __cplusplus
extern "C" {
#endif
const int LIDAR_DATA_PORT = 2368;
const int LIDAR_SYNC_PORT = 8308;
const int LIDAR_TIME_PORT = 10110;
typedef void (* LidarDataProcessor)(char *p, int start, int len);
typedef void * LIDAR;
LIDAR lidar_send_init(int port);
LIDAR lidar_rece... | #ifndef _LIDAR_H_
#define _LIDAR_H_
#ifdef __cplusplus
extern "C" {
#endif
#define LIDAR_DATA_PORT 2368
#define LIDAR_SYNC_PORT 8308
#define LIDAR_TIME_PORT 10110
typedef void (* LidarDataProcessor)(char *p, int start, int len);
typedef void * LIDAR;
LIDAR lidar_send_init(int port);
LIDAR lidar_receive_init(int po... | Update LIDAR const to preprocessor macros | Update LIDAR const to preprocessor macros
| C | apache-2.0 | yystju/lidar,yystju/lidar,yystju/lidar,yystju/lidar,yystju/lidar,yystju/lidar |
b591e8ce438094b3f2af77621fcfaf77eaccbcd8 | src/main.c | src/main.c | #include <stdio.h>
int main(void)
{
printf("Hello world!");
return 0;
} | #include <stdio.h>
int main(void)
{
printf("Hello world!\n");
return 0;
} | Add missing new line character | Add missing new line character
| C | mit | rafaltrzop/NoughtsAndCrosses |
72a29a96d123990adef08b392d0efccb6c5ecd69 | src/util.h | src/util.h | #ifndef PL_ZERO_UTIL_H
#define PL_ZERO_UTIL_H
#include <sstream>
namespace pl0 {
#if defined(_MSC_VER) || defined(__GNUC__)
namespace polyfill {
template <typename T, typename... Args>
void fold_write_stream(std::ostringstream &oss, T value, Args... args) {
oss << value;
fold_write_stream(oss, args...);
}
... | #ifndef PL_ZERO_UTIL_H
#define PL_ZERO_UTIL_H
#include <sstream>
namespace pl0 {
#if defined(_MSC_VER) || defined(__GNUC__)
namespace polyfill {
template <typename T>
void fold_write_stream(std::ostringstream &oss, T value) {
oss << value;
}
template <typename T, typename... Args>
void fold_write_stream(std::o... | Swap two overloads to make g++ happy. | Swap two overloads to make g++ happy.
Hmmmm.
| C | mit | chengluyu/PL0 |
8bcf51be4fa4dfa6654c92ba7ba2482a8a945235 | include/mega/version.h | include/mega/version.h |
#ifndef MEGA_MAJOR_VERSION
#define MEGA_MAJOR_VERSION 4
#endif
#ifndef MEGA_MINOR_VERSION
#define MEGA_MINOR_VERSION 4
#endif
#ifndef MEGA_MICRO_VERSION
#define MEGA_MICRO_VERSION 0
#endif
| #ifndef MEGA_MAJOR_VERSION
#define MEGA_MAJOR_VERSION 4
#endif
#ifndef MEGA_MINOR_VERSION
#define MEGA_MINOR_VERSION 4
#endif
#ifndef MEGA_MICRO_VERSION
#define MEGA_MICRO_VERSION 0
#endif
| Apply 1 suggestion(s) to 1 file(s) | Apply 1 suggestion(s) to 1 file(s) | C | bsd-2-clause | meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk |
5ca20b9b28839fca55cc1c7b0b8ee78abb45696d | mud/home/Geometry/lwo/coordinates/lla.c | mud/home/Geometry/lwo/coordinates/lla.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2021 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add stub for LLA coordinates. | Add stub for LLA coordinates.
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
24acb5ee218e20c7e7af477bcbe8d3b339ab63fe | std/stack.c | std/stack.c | #include "std/list.h"
#include "std/memory.h"
#include "std/stack.h"
struct Stack {
NodeT *list;
AtomPoolT *pool;
};
StackT *NewStack(AtomPoolT *pool) {
StackT *stack = NEW_S(StackT);
stack->list = NewList();
stack->pool = pool;
StackPushNew(stack);
return stack;
}
void DeleteStack(StackT *stack) {
... | #include "std/list.h"
#include "std/memory.h"
#include "std/stack.h"
struct Stack {
ListT *list;
AtomPoolT *pool;
};
StackT *NewStack(AtomPoolT *pool) {
StackT *stack = NEW_S(StackT);
stack->list = NewList();
stack->pool = pool;
StackPushNew(stack);
return stack;
}
void DeleteStack(StackT *stack) {
... | Correct after list API changes. | Correct after list API changes.
| C | artistic-2.0 | cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene |
7f57422d19d088d4bb8d96ed202c27383ae760cb | DigitalSynthVRA8M/synth.h | DigitalSynthVRA8M/synth.h | #pragma once
// #define private public // for tests
#include "common.h"
// associations of units
#define IVCO VCO
#define IVCF VCF
#define IVCA VCA
#define IEG EG
#define ILFO LFO
#define ISlewRateLimiter SlewRateLimiter
#define IVoice Voice
#de... | #pragma once
// #define private public // for tests
#include "common.h"
// associations of units
#define IVCO VCO
#define IVCF VCF
#define IVCA VCA
#define IEG EG
#define ILFO LFO
#define ISlewRateLimiter SlewRateLimiter
#define IVoice Voice
#de... | Fix a type of return value | Fix a type of return value
| C | cc0-1.0 | risgk/digital-synth-vra8-m,risgk/digital-synth-vra8-m,risgk/digital-synth-vra8-m,risgk/digital-synth-vra8-m |
2965d004d35d8541bc48f761cf554fc643465462 | proctor/include/pcl/proctor/proposer.h | proctor/include/pcl/proctor/proposer.h | #ifndef PROPOSER_H
#define PROPOSER_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <map>
#include "proctor/detector.h"
#include "proctor/database_entry.h"
namespace pcl
{
namespace proctor
{
struct Candidate {
std::string id;
float votes;
};
class Proposer {
public:
... | #ifndef PROPOSER_H
#define PROPOSER_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <map>
#include "proctor/detector.h"
#include "proctor/database_entry.h"
namespace pcl
{
namespace proctor
{
struct Candidate {
std::string id;
double votes;
};
class Proposer {
public:... | Change votes to use double. | Change votes to use double.
git-svn-id: e7ea667a1d39a4453c4efcc4ba7bca3d620c3f19@4320 a9d63959-f2ad-4865-b262-bf0e56cfafb6
| C | bsd-3-clause | daviddoria/PCLMirror,otherlab/pcl,otherlab/pcl,daviddoria/PCLMirror,patmarion/PCL,otherlab/pcl,otherlab/pcl,patmarion/PCL,daviddoria/PCLMirror,daviddoria/PCLMirror,patmarion/PCL,daviddoria/PCLMirror,otherlab/pcl,patmarion/PCL,patmarion/PCL |
9488a6285b44d32645b44327d1582a0a607581dc | Fleet/ObjC/FleetSwizzle.h | Fleet/ObjC/FleetSwizzle.h | #import <Foundation/Foundation.h>
void memorySafeExecuteSelector(Class klass, SEL selector);
| #import <Foundation/Foundation.h>
/**
Internal Fleet use only
*/
void memorySafeExecuteSelector(Class klass, SEL selector);
| Mark ObjC magic as "internal use only" | Mark ObjC magic as "internal use only"
| C | apache-2.0 | jwfriese/Fleet,jwfriese/Fleet,jwfriese/Fleet,jwfriese/Fleet |
37d85d86ce4cba0cf80f36b6f6e0cdacd7c472e9 | hw/bsp/stm32f429discovery/include/bsp/cmsis_nvic.h | hw/bsp/stm32f429discovery/include/bsp/cmsis_nvic.h | /* mbed Microcontroller Library - cmsis_nvic
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*
* CMSIS-style functionality to support dynamic vectors
*/
#ifndef MBED_CMSIS_NVIC_H
#define MBED_CMSIS_NVIC_H
#include <stdint.h>
#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
#define ... | /* mbed Microcontroller Library - cmsis_nvic
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*
* CMSIS-style functionality to support dynamic vectors
*/
#ifndef MBED_CMSIS_NVIC_H
#define MBED_CMSIS_NVIC_H
#include <stdint.h>
#define NVIC_NUM_VECTORS (16 + 91) // CORE + MCU Peripherals
#define ... | Fix nvic vectors number to 16 + 91 | bsp/stm32f429: Fix nvic vectors number to 16 + 91
From st datasheet page 24:
The devices embed a nested vectored interrupt controller
able to manage 16 priority levels, and handle up to 91
maskable interrupt channels plus the 16 interrupt lines
of the Cortex®-M4 with FPU core.
| C | apache-2.0 | andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/apache-mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core,IMGJulian/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,andrzej-kaczmarek/incubator-mynewt-c... |
b40fdbd9d35757b0a5d0b4e69033d8daa9c15d0e | inputGen/include/types.h | inputGen/include/types.h | #ifndef TYPES_H
#define TYPES_H
#include "primitive.h"
#include <vector>
#include "eigen3/Eigen/StdVector"
namespace InputGen{
namespace Application{
typedef double Scalar;
typedef typename InputGen::LinearPrimitive<InputGen::Application::Scalar> Primitive;
//! \brief sample storing a position and its assignment
s... | #ifndef TYPES_H
#define TYPES_H
#include "primitive.h"
#include <vector>
#include "eigen3/Eigen/StdVector"
namespace InputGen{
namespace Application{
typedef double Scalar;
typedef typename InputGen::LinearPrimitive<InputGen::Application::Scalar> Primitive;
//! \brief sample storing a position and its assignment
s... | Add new optionnal constructor parameter to set Sample::primitiveId at construction time | Add new optionnal constructor parameter to set Sample::primitiveId at construction time
| C | apache-2.0 | amonszpart/globOpt,NUAAXXY/globOpt,NUAAXXY/globOpt,NUAAXXY/globOpt,amonszpart/globOpt,amonszpart/globOpt,amonszpart/globOpt,amonszpart/globOpt,NUAAXXY/globOpt,NUAAXXY/globOpt,amonszpart/globOpt,NUAAXXY/globOpt |
2ffb003a00726ad2bdd0a666f08fb6ed743f5b08 | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class Transaction;
class DataStore {
friend cl... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class Transaction;
class DataStore {
friend cl... | Update reference to IOperation to include Internal namespace | Update reference to IOperation to include Internal namespace
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
62936e61678612ea163ba012e05700552aa07124 | src/exercise204.c | src/exercise204.c | /*
* A solution to Exercise 2-4 in The C Programming Language (Second Edition).
*
* This file was written by Damien Dart <damiendart@pobox.com>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <stdbo... | Add solution to Exercise 2-4. | Add solution to Exercise 2-4.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions | |
e341885c0d4b93b95f446ab4440459125404e75d | src/virtual_secondary/virtualsecondary.h | src/virtual_secondary/virtualsecondary.h | #ifndef PRIMARY_VIRTUALSECONDARY_H_
#define PRIMARY_VIRTUALSECONDARY_H_
#include <string>
#include "libaktualizr/types.h"
#include "managedsecondary.h"
namespace Primary {
class VirtualSecondaryConfig : public ManagedSecondaryConfig {
public:
VirtualSecondaryConfig() : ManagedSecondaryConfig(Type) {}
VirtualSe... | #ifndef PRIMARY_VIRTUALSECONDARY_H_
#define PRIMARY_VIRTUALSECONDARY_H_
#include <string>
#include "libaktualizr/types.h"
#include "managedsecondary.h"
namespace Primary {
class VirtualSecondaryConfig : public ManagedSecondaryConfig {
public:
VirtualSecondaryConfig() : ManagedSecondaryConfig(Type) {}
explicit ... | Add 'explicit' keyword to single argument ctor | Add 'explicit' keyword to single argument ctor
Avoid a potential implicit Json::Value -> VirtualSecondaryConfig conversion.
Signed-off-by: Phil Wise <e888d2bd6f13f82caa51a37c03d034c76f661ba3@phil-wise.com>
| C | mpl-2.0 | advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr |
a796fa547fc85f48d761cf3181887c5188ebe148 | test/FrontendC/2011-03-18-StructReturn.c | test/FrontendC/2011-03-18-StructReturn.c | // RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
// REQUIRES: disabled
// Radar 9156771
typedef struct RGBColor {
unsigned short red;
unsigned short green;
unsigned short blue;
} RGBColor;
RGBColor func();
RGBColor X;
void foo() {
//CHECK: store i48
X = func();
}
| // RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
// XTARGET: x86_64-apple-darwin
// Radar 9156771
typedef struct RGBColor {
unsigned short red;
unsigned short green;
unsigned short blue;
} RGBColor;
RGBColor func();
RGBColor X;
void foo() {
//CHECK: store i48
X = func();
}
| Enable this test only for Darwin. | Enable this test only for Darwin.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@128017 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,ap... |
b1e64a75d7a0738230326d4e4f0cd5c43be8dd81 | c/show_stored_address.c | c/show_stored_address.c | /**
* How to run
* $ gcc -o show_stored_address show_stored_address.c
* $ ./show_stored_address
*/
#include <stdio.h>
#include <stdlib.h>
char global_str[] = "global string";
static char static_global_str[] = "static global string";
void show_stored_address()
{
char local_str[] = "local string";
static cha... | Test where the variables are stored in memory | Test where the variables are stored in memory
| C | mit | forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world,forte916/hello_world | |
193b0544566e6d3e123bf7e303c9d0c87bdd83cb | HTMLAttributedString/HTMLAttributedString.h | HTMLAttributedString/HTMLAttributedString.h | //
// HTMLAttributedString.h
// HTMLAttributedStringExample
//
// Created by Mohammed Islam on 3/31/14.
// Copyright (c) 2014 KSI Technology. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HTMLAttributedString : NSObject
{
NSMutableArray *_cssAttributes;
NSString *_bodyFontCss;
}
- (id)in... | //
// HTMLAttributedString.h
// HTMLAttributedStringExample
//
// Created by Mohammed Islam on 3/31/14.
// Copyright (c) 2014 KSI Technology. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HTMLAttributedString : NSObject
{
NSMutableArray *_cssAttributes;
NSString *_bodyFontCss;
}
- (id)in... | Allow text to be edited | Allow text to be edited
| C | unlicense | mmislam101/HTMLAttributedString,yichizhang/HTMLAttributedString |
5fd855c6987b30989bb07c455708c4b6cb90cf02 | doc/examples/08_segv/mytest.c | doc/examples/08_segv/mytest.c | /*
* Copyright 2011-2013 Gregory Banks
*
* 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... | /*
* Copyright 2011-2013 Gregory Banks
*
* 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... | Fix grammar bug in example | Fix grammar bug in example
| C | apache-2.0 | loom-project/novaprova,loom-project/novaprova,gnb/novaprova,greig-hamilton/novaprova,greig-hamilton/novaprova,loom-project/novaprova,novaprova/novaprova,loom-project/novaprova,greig-hamilton/novaprova,greig-hamilton/novaprova,gnb/novaprova,gnb/novaprova,greig-hamilton/novaprova,gnb/novaprova,novaprova/novaprova,novapro... |
9d15a19c5fdc4c3c9c341d7bfa506e34c36d2236 | tests/regression/36-octapron/21-traces-cluster-based.c | tests/regression/36-octapron/21-traces-cluster-based.c | // SKIP PARAM: --sets ana.activated[+] octApron --sets exp.solver.td3.side_widen cycle_self
// requires cycle_self to pass
#include <pthread.h>
#include <assert.h>
int g = 42;
int h = 42;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int x; //... | Add relational traces cluster-based example | Add relational traces cluster-based example
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
e72748b18f797c9474178f11bb3d5783fa39cde2 | Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/EMAC_ISR.c | Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/EMAC_ISR.c | #include "FreeRTOS.h"
#include "Semphr.h"
#include "task.h"
/* The interrupt entry point. */
void vEMAC_ISR_Wrapper( void ) __attribute__((naked));
/* The handler that does the actual work. */
void vEMAC_ISR_Handler( void );
extern xSemaphoreHandle xEMACSemaphore;
void vEMAC_ISR_Handler( void )
{
po... | #include "FreeRTOS.h"
#include "semphr.h"
#include "task.h"
/* The interrupt entry point. */
void vEMAC_ISR_Wrapper( void ) __attribute__((naked));
/* The handler that does the actual work. */
void vEMAC_ISR_Handler( void );
extern xSemaphoreHandle xEMACSemaphore;
void vEMAC_ISR_Handler( void )
{
po... | Correct case of include file to build on Linux. | Correct case of include file to build on Linux.
| C | mit | FreeRTOS/FreeRTOS-Kernel,FreeRTOS/FreeRTOS-Kernel |
6d0c9b749aad4a1801783d4a170542139792ebdd | src/alloc.h | src/alloc.h | #ifndef MCLISP_ALLOC_H_
#define MCLISP_ALLOC_H_
#include <array>
#include <cstddef>
#include <list>
#include "cons.h"
namespace mclisp
{
class ConsAllocator
{
public:
typedef std::size_t size_type;
ConsAllocator();
ConsCell* Allocate();
std::list<ConsCell*> Allocate(size_type n);
void Deallocate(ConsCell... | #ifndef MCLISP_ALLOC_H_
#define MCLISP_ALLOC_H_
#include <array>
#include <cstddef>
#include <list>
#include "cons.h"
namespace mclisp
{
class ConsAllocator
{
public:
typedef std::size_t size_type;
ConsAllocator();
ConsCell* Allocate();
std::list<ConsCell*> Allocate(size_type n);
void Deallocate(ConsCell... | Increase max heap size to 15,000 ConsCells. | Increase max heap size to 15,000 ConsCells.
Unit tests were running out of heap, due to GC not being implemented
yet. Also, 15,000 is the value mentioned by McCarthy in the paper.
| C | mit | appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp |
c567c3de9d697c332bdb934204cd2bbd79810312 | c/anagram.c | c/anagram.c | #include <stdio.h>
#include <stdlib.h>
#include "list.h"
typedef struct _hash_t {
int sum;
int len;
} hash_t;
hash_t hash(char word[]) {
hash_t ret = {0,0};
int i;
for (i = 0; word[i] != '\0'; i++) {
ret.sum += word[i];
}
ret.len = i;
return ret;
}
int eq(hash_t h1, hash_t h2) {
return (h1.s... | #include <stdio.h>
#include <stdlib.h>
#include "list.h"
typedef struct _hash_t {
int sum;
int len;
} hash_t;
hash_t hash(char word[]) {
hash_t ret = {0,0};
int i;
for (i = 0; word[i] != '\0'; i++) {
ret.sum += word[i];
}
ret.len = i;
return ret;
}
int eq(hash_t h1, hash_t h2) {
return (h1.s... | Check it out with two items! | Check it out with two items!
| C | unlicense | OniOni/anagram,OniOni/anagram,OniOni/anagram |
b3c45e8ff7d75f4094b6c5ca69b8fd252e6502c8 | LinkedList/insert_node_at_nth_position.c | LinkedList/insert_node_at_nth_position.c | /*
Input Format
You have to complete the Node* Insert(Node* head, int data, int position) method which takes three arguments - the head of the linked list, the integer to insert and the position at which the integer must be inserted. You should NOT read any input from stdin/console. position will always be between 0 a... | Add insert node at nth position | Add insert node at nth position
| C | mit | anaghajoshi/HackerRank | |
83b72ec023f2c1f1f0cdd4b000e5f084d913fb7f | t/my_cons.h | t/my_cons.h | /*
SMAL
Copyright (c) 2011 Kurt A. Stephens
*/
#include "smal/smal.h"
#include "smal/thread.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h> /* memset() */
#include <unistd.h> /* getpid() */
#include <assert.h>
typedef void *my_oop;
typedef struct my_cons {
my_oop car, cdr;
} my_cons;
static smal... | /*
SMAL
Copyright (c) 2011 Kurt A. Stephens
*/
#include "smal/smal.h"
#include "smal/thread.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h> /* memset() */
#include <unistd.h> /* getpid() */
#include <assert.h>
typedef void *my_oop;
typedef struct my_cons {
my_oop car, cdr;
} my_cons;
static smal... | Return cdr for mark continuation. | Return cdr for mark continuation.
| C | mit | kstephens/smal,kstephens/smal,kstephens/smal |
409c411a09aae60b6011da0c2fca025f76a5d19f | csrc/uname.c | csrc/uname.c | #include <sys/utsname.h>
#include <wchar.h>
#include <stdlib.h>
#define OS_VERSION_MAX_SIZE 128
wchar_t* getOS() {
struct utsname system_info;
if (uname(&system_info) != 0) return NULL;
wchar_t* os = malloc(sizeof(os) * OS_VERSION_MAX_SIZE);
#ifdef __APPLE__
int version = atoi(system_info.release);
// Si... | #include <sys/utsname.h>
#include <wchar.h>
#include <stdlib.h>
#define OS_VERSION_MAX_SIZE 128
wchar_t* getOS() {
struct utsname system_info;
if (uname(&system_info) != 0) return NULL;
wchar_t* os = malloc(sizeof(os) * OS_VERSION_MAX_SIZE);
#ifdef __APPLE__
int major_version = atoi(system_info.release);
... | Update the versioning for macOS Big Sur | Update the versioning for macOS Big Sur
| C | mit | ChaosGroup/system-info |
1f45c183f1eb11cb6496d5deb89a2d05d314e754 | src/cpu/register.h | src/cpu/register.h | #ifndef EMULATOR_REGISTER_H
#define EMULATOR_REGISTER_H
#include <cstdint>
template <typename T>
class Register {
public:
Register() {};
void set(const T new_value) { val = new_value; };
T value() const { return val; };
void increment() { val += 1; };
void decrement() { val -= 1; };
private:
... | #ifndef EMULATOR_REGISTER_H
#define EMULATOR_REGISTER_H
#include <cstdint>
template <typename T>
class Register {
public:
Register() {};
void set(const T new_value) { val = new_value; };
T value() const { return val; };
void increment() { val += 1; };
void decrement() { val -= 1; };
private:
... | Convert to 'using' syntax for type aliases | Convert to 'using' syntax for type aliases
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
1e77c60bc8374947012a73eab0fdfb90df804184 | src/byteswap.c | src/byteswap.c | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#if !defined(HAVE_HTONLL) && !defined(WORDS_BIGENDIAN)
uint64_t couchstore_byteswap64(uint64_t val)
{
size_t ii;
uint64_t ret = 0;
for (ii = 0; ii < sizeof(uint64_t); ii++) {
ret <<= 8;
ret |= ... | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#if !defined(HAVE_HTONLL) && !defined(WORDS_BIGENDIAN)
uint64_t couchstore_byteswap64(uint64_t val)
{
size_t ii;
uint64_t ret = 0;
for (ii = 0; ii < sizeof(uint64_t); ii++) {
ret <<= 8;
ret |= ... | Add a small hack to satisfy build with gcc on smartos64 | Add a small hack to satisfy build with gcc on smartos64
Solaris boxes contains a ntohll/htonll method, but
it seems like the gnu linker doesn't like to use
an archive without _any_ symbols in it ;)
Change-Id: Id3b3ae5ad055ed50a10e8e514b8266f659fb92c3
Reviewed-on: http://review.couchbase.org/15737
Reviewed-by: Jens Al... | C | apache-2.0 | vmx/couchstore,couchbaselabs/couchstore-specials,couchbaselabs/couchstore,jimwwalker/couchstore,couchbaselabs/couchstore-specials,hsharsha/couchstore,abhinavdangeti/couchstore,t3rm1n4l/couchstore,couchbaselabs/couchstore-specials,couchbaselabs/couchstore,jimwwalker/couchstore,couchbaselabs/couchstore-specials,abhinavda... |
d0593d880573052e6ae2790328a336a6a9865cc3 | src/CPlusPlusMangle.h | src/CPlusPlusMangle.h | #ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target par... | #ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target par... | Add some EXPORT qualifiers for msvc | Add some EXPORT qualifiers for msvc
| C | mit | kgnk/Halide,psuriana/Halide,ronen/Halide,ronen/Halide,tdenniston/Halide,tdenniston/Halide,ronen/Halide,ronen/Halide,kgnk/Halide,jiawen/Halide,jiawen/Halide,jiawen/Halide,psuriana/Halide,jiawen/Halide,ronen/Halide,jiawen/Halide,psuriana/Halide,ronen/Halide,psuriana/Halide,psuriana/Halide,psuriana/Halide,ronen/Halide,jia... |
edabbb718abb7539a05b9eebc453feec695746c0 | schedule/schedule_stop.c | schedule/schedule_stop.c | /* *
* This file is part of Feng
*
* Copyright (C) 2007 by LScube team <team@streaming.polito.it>
* See AUTHORS for more details
*
* Feng 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 ... | /* *
* This file is part of Feng
*
* Copyright (C) 2007 by LScube team <team@streaming.polito.it>
* See AUTHORS for more details
*
* Feng 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 ... | Make sure the rtcp BYE gets sent | Make sure the rtcp BYE gets sent
| C | lgpl-2.1 | winlinvip/feng,lscube/feng,lscube/feng,winlinvip/feng,winlinvip/feng,lscube/feng |
1a8f66919b91e6892ed446276e601ce9efac08e7 | AsyncDisplayKitTests/ASSnapshotTestCase.h | AsyncDisplayKitTests/ASSnapshotTestCase.h | /* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <FBSna... | /* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <FBSna... | Add tests for enabling / disabling shouldRasterize | Add tests for enabling / disabling shouldRasterize
| C | bsd-3-clause | rcancro/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,jellenbogen/AsyncDisplayKit,rmls/AsyncDisplayKit,rcancro/AsyncDisplayKit,RuiAAPeres/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,george-gw/AsyncDisplayKit,rcancro/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,samhsiung/AsyncDisplayKit,Teino... |
9a167c3bfc57ef0b486584377adfc68a98021706 | hw/drivers/flash/at45db/include/at45db/at45db.h | hw/drivers/flash/at45db/include/at45db/at45db.h | /*
* 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 ... | Add missing include for the AT45DB flash driver | Add missing include for the AT45DB flash driver
PR #162 which added the driver for AT45DB was missing the include
file.
| C | apache-2.0 | andrzej-kaczmarek/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core,IMGJulian/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,wes3/incubator-mynewt-core,IMGJulian/incubator-mynewt... | |
1b09b8a72d68109ec842581aeba2bc9cd7cbb87a | 3RVX/Error.h | 3RVX/Error.h | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <string>
#include <unordered_map>
#define GENERR 0x100
#define SKINERR 0x200
#define SYSERR 0x400
#define GENERR_NOTFOUND GENERR + 1
#define GENERR_SETTINGSFILE ... | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <string>
#include <unordered_map>
class Error {
public:
static void ErrorMessage(unsigned int error, std::wstring detail = L"");
static void ErrorMessageDie(unsigned int ... | Redefine error codes as consts | Redefine error codes as consts
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
a76075d352b4f48bb53f8d8c9accee841394d47c | rgmanager/src/clulib/gettid.c | rgmanager/src/clulib/gettid.c | #include <sys/types.h>
#include <linux/unistd.h>
#include <gettid.h>
_syscall0(pid_t,gettid)
| #include <sys/types.h>
#include <linux/unistd.h>
#include <gettid.h>
#include <errno.h>
_syscall0(pid_t,gettid)
| Fix build bug on slackware | Fix build bug on slackware
| C | lgpl-2.1 | stevenraspudic/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,asp24/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents |
6a88bb91e0cd4b3ee0c31b6b01ed956a060ec029 | include/polar/util/pack.h | include/polar/util/pack.h | #pragma once
#ifdef _MSC_VER
#define PACK(DECL) __pragma(pack(push, 1)) DECL __pragma(pack(pop))
#else
#define PACK(DECL) DECL __attribute__((__packed__))
#endif
| Define PACK macro for structs and etc | Define PACK macro for structs and etc
| C | mpl-2.0 | shockkolate/polar4,shockkolate/polar4,shockkolate/polar4,polar-engine/polar,shockkolate/polar4,polar-engine/polar | |
20d1f97bcd048cf544e0313241a60f4001d8d51b | include/atomic/gcc_libatomic.h | include/atomic/gcc_libatomic.h | #ifndef ATOMIC_GCC_BUILTINS_INCLUDED
#define ATOMIC_GCC_BUILTINS_INCLUDED
/*Modified by David Lowes 2015 - Zend Technologies LTD. LICENSE??*/
#define make_atomic_add_body(S) \
v= __atomic_fetch_add(a, v, __ATOMIC_RELAXED);
#define make_atomic_fas_body(S) \
v= __sync_lock_tes... | Add implementation of atomic ops with libatomic instead of gcc builtins | Add implementation of atomic ops with libatomic instead of gcc builtins
| C | lgpl-2.1 | davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi,davidl-zend/zenddbi | |
7803ef3d413f336e40f8b20e256e02902fb9f395 | SwiftColors/SwiftColors.h | SwiftColors/SwiftColors.h | #import <UIKit/UIKit.h>
//! Project version number for SwiftColors.
FOUNDATION_EXPORT double SwiftColorsVersionNumber;
//! Project version string for SwiftColors.
FOUNDATION_EXPORT const unsigned char SwiftColorsVersionString[];
| #import <Foundation/Foundation.h>
//! Project version number for SwiftColors.
FOUNDATION_EXPORT double SwiftColorsVersionNumber;
//! Project version string for SwiftColors.
FOUNDATION_EXPORT const unsigned char SwiftColorsVersionString[];
| Fix build error for OSX | Fix build error for OSX
| C | mit | thii/SwiftHEXColors,thii/SwiftColors,thii/SwiftColors,thii/SwiftHEXColors |
02815ad97a1a9cac9e580452c9dd24580f277062 | lib/fuzzer/FuzzerRandom.h | lib/fuzzer/FuzzerRandom.h | //===- FuzzerRandom.h - Internal header for the Fuzzer ----------*- C++ -* ===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | //===- FuzzerRandom.h - Internal header for the Fuzzer ----------*- C++ -* ===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | Revert r352732: [libFuzzer] replace slow std::mt19937 with a much faster std::minstd_rand | Revert r352732: [libFuzzer] replace slow std::mt19937 with a much faster std::minstd_rand
This causes a failure on the following bot as well as our internal ones:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/23103
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@352747 91177308-0d34-04... | C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
2a422dcba1302b65a4a69bf70aa8e6f8ac6e8d71 | src/hooks.h | src/hooks.h | /*
* hooks.h
* StatusSpec project
*
* Copyright (c) 2014 thesupremecommander
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#pragma once
#include "stdafx.h"
#include <map>
#define CLIENT_DLL
#define GLOWS_ENABLE
#include "cdll_int.h"
#include "KeyValues.h"
#include "igamer... | /*
* hooks.h
* StatusSpec project
*
* Copyright (c) 2014 thesupremecommander
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#pragma once
#include "stdafx.h"
#include <map>
#define CLIENT_DLL
#define GLOWS_ENABLE
#include "cdll_int.h"
#include "KeyValues.h"
#include "igamer... | Update vtable offsets for 2014-06-11 TF2 update. | Update vtable offsets for 2014-06-11 TF2 update.
| C | bsd-2-clause | fwdcp/StatusSpec,fwdcp/StatusSpec |
8a8e7bb8f5de8c86d4e06ba934253bd355fa98dc | libc/sysdeps/linux/m68k/ptrace.c | libc/sysdeps/linux/m68k/ptrace.c |
#include <errno.h>
#include <asm/ptrace.h>
#include <sys/syscall.h>
int
ptrace(int request, int pid, int addr, int data)
{
long ret;
long res;
if (request > 0 && request < 4) (long *)data = &ret;
__asm__ volatile ("movel %1,%/d0\n\t"
"movel %2,%/d1\n\t"
"movel %3,%/d2\n\t"
"movel %4,%/d3\n\t"
... |
#include <errno.h>
#include <asm/ptrace.h>
#include <sys/syscall.h>
int
ptrace(int request, int pid, int addr, int data)
{
long ret;
long res;
if (request > 0 && request < 4) data = (int)&ret;
__asm__ volatile ("movel %1,%/d0\n\t"
"movel %2,%/d1\n\t"
"movel %3,%/d2\n\t"
"movel %4,%/d3\n\t"
"... | Patch from Bernardo Innocenti: Remove use of cast-as-l-value extension, removed in GCC 3.5. | Patch from Bernardo Innocenti:
Remove use of cast-as-l-value extension, removed in GCC 3.5.
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
46f09018af4d5f935a4a7d12f6a62ed7f55b3e5c | inc/libutils/type/rect_utils.h | inc/libutils/type/rect_utils.h | /*
* rect_utils.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include <cstdint>
#include "libutils/type/coord.h"
#include "libutils/type/rect.h"
namespace utils
{
namespace type
{
class RectUtils
{
public:
/**
* Return whether @a point is rested i... | Add utility to check whether a point is inside a rect | Add utility to check whether a point is inside a rect | C | mit | nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils | |
d0436f27fd7bc254715e1b3b9cc6aae5ff9d4783 | src/shims.c | src/shims.c | /*
* Copyright (c) 2013-2016 Apple Inc. All rights reserved.
*
* @APPLE_APACHE_LICENSE_HEADER_START@
*
* 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/lic... | /*
* Copyright (c) 2013-2016 Apple Inc. All rights reserved.
*
* @APPLE_APACHE_LICENSE_HEADER_START@
*
* 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/lic... | Fix formatting to match libdispatch coding style. | Fix formatting to match libdispatch coding style.
Signed-off-by: Daniel A. Steffen <bc823475b60dbcbd7be1bbdfe095b5f1939d5bd2@apple.com>
| C | apache-2.0 | apple/swift-corelibs-libdispatch,apple/swift-corelibs-libdispatch,apple/swift-corelibs-libdispatch,apple/swift-corelibs-libdispatch |
952c546f11ca06f572a25b6b85a8b49523a580f9 | src/lib/lib.h | src/lib/lib.h | #ifndef __LIB_H
#define __LIB_H
/* default lib includes */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
/* default system includes - keep these at minimum.. */
#include <string.h> /* strcmp() etc. */
#ifdef HAVE_STRINGS_H
# include <strings.h> /* strcasecmp() etc. */
#endif
#include <stdarg.h> /* va_list is use... | #ifndef __LIB_H
#define __LIB_H
/* default lib includes */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
/* default system includes - keep these at minimum.. */
#include <stddef.h> /* Solaris defines NULL wrong unless this is used */
#include <string.h> /* strcmp() etc. */
#ifdef HAVE_STRINGS_H
# include <string... | Include stddef.h always to make NULL expand correctly in Solaris. | Include stddef.h always to make NULL expand correctly in Solaris.
| C | mit | LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot |
d6f1a139af99a84b70db7aa21f19b355a7743c1c | java/include/pstore-jni.h | java/include/pstore-jni.h | #ifndef PSTOREJNI_H
#define PSTOREJNI_H
#include <inttypes.h>
#ifdef __i386__
#define LONG_TO_PTR(ptr) (void *) (uint32_t) ptr
#elif __X86_64__
#define LONG_TO_PTR(ptr) (void *) ptr
#endif
#define PTR_TO_LONG(ptr) (long) ptr
#endif
| #ifndef PSTOREJNI_H
#define PSTOREJNI_H
#include <inttypes.h>
#ifdef __i386__
#define LONG_TO_PTR(ptr) (void *) (uint32_t) ptr
#elif __x86_64__
#define LONG_TO_PTR(ptr) (void *) ptr
#endif
#define PTR_TO_LONG(ptr) (long) ptr
#endif
| Use '__x86_64__' instead of '__X86_64__' | java: Use '__x86_64__' instead of '__X86_64__'
This fixes compilation error on Mac OS X.
Signed-off-by: Kare Nuorteva <9ddc85c347529f7b35a7cd6b44bef03c7222a8be@reaktor.fi>
Signed-off-by: Karim Osman <94396faf6cc817be76165477038b3cfa832e89a4@reaktor.fi>
Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316d... | C | lgpl-2.1 | penberg/pstore,penberg/pstore,penberg/pstore,penberg/pstore |
34ea5331f8e05dacf356096dfc1b63682fa78654 | Wikipedia/Code/BITHockeyManager+WMFExtensions.h | Wikipedia/Code/BITHockeyManager+WMFExtensions.h | #import <HockeySDK/HockeySDK.h>
@interface BITHockeyManager (WMFExtensions) <BITHockeyManagerDelegate>
/**
* Configure and startup in one line.
* This will call the methods below as part of the configuration process.
* This method will use the current bundle id of the app
*/
- (void)wmf_setupAndStart;
/**
* ... | @import HockeySDK;
@interface BITHockeyManager (WMFExtensions) <BITHockeyManagerDelegate>
/**
* Configure and startup in one line.
* This will call the methods below as part of the configuration process.
* This method will use the current bundle id of the app
*/
- (void)wmf_setupAndStart;
/**
* Configure th... | Revert "use old import syntax for HockeySDK" | Revert "use old import syntax for HockeySDK"
This reverts commit 0babdd70b3ab330f032790521002f2e171fcf3e6.
| C | mit | wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,j... |
70961ee3265e37813c4fb89dfd7a5660ae4b189a | src/include/sys/interrupt.h | src/include/sys/interrupt.h | // IBM_PROLOG_BEGIN_TAG
// This is an automatically generated prolog.
//
// $Source: src/include/sys/interrupt.h $
//
// IBM CONFIDENTIAL
//
// COPYRIGHT International Business Machines Corp. 2011
//
// p1
//
// Object Code Only (OCO) source materials
// Licensed Internal Code Source Materials
// IBM HostBoot ... | // IBM_PROLOG_BEGIN_TAG
// This is an automatically generated prolog.
//
// $Source: src/include/sys/interrupt.h $
//
// IBM CONFIDENTIAL
//
// COPYRIGHT International Business Machines Corp. 2011
//
// p1
//
// Object Code Only (OCO) source materials
// Licensed Internal Code Source Materials
// IBM HostBoot ... | Fix IPC BAR scom address | Fix IPC BAR scom address
Change-Id: Ib3e13d892e58faa12082d6a09a1f6b504af44ae5
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1058
Reviewed-by: Thi N. Tran <25a2bca7ae5a8ea03be09ca8d282480c08c13052@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Mark W. Wenning <32e1305d9513301b64a3e92b63a7c80399d0fb59@us.ibm... | C | apache-2.0 | Over-enthusiastic/hostboot,csmart/hostboot,Over-enthusiastic/hostboot,csmart/hostboot,alvintpwang/hostboot,Over-enthusiastic/hostboot,open-power/hostboot,alvintpwang/hostboot,open-power/hostboot,alvintpwang/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,alvintpwang/hostboot,open-power/hostboot,open-powe... |
b514f3dcd09f8fb5396061cf0e04e49d41065300 | tests/regression/01-cpa/47-earlyglobs_precious.c | tests/regression/01-cpa/47-earlyglobs_precious.c | // PARAM: --set exp.earlyglobs true --set exp.precious_globs[+] "'g'"
int g = 10;
int main(void){
g = 100;
assert(g==100);
return 0;
} | Add regression test for exp.precious_globs | Add regression test for exp.precious_globs
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
5f1468573ec04cbfda21e8994f05b120ad955fb4 | tests/regression/34-congruence/02-constants.c | tests/regression/34-congruence/02-constants.c | // PARAM: --enable ana.int.congruence --disable ana.int.def_exc
// This test ensures that operations on constant congr. classes (i.e. classes of the form {k} : arbitrary integer k) yield concrete vals
int main() {
// basic arithmetic operators
int a = 1;
int b = 2;
int c = -1;
int d = -2;
asse... | Add constant test for congruence domain | Add constant test for congruence domain
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
077a4fb5a3055d6d681bdd885bc58a3b3c0830aa | Classes/Model/VKVotable.h | Classes/Model/VKVotable.h | //
// VKVotable.h
// VoatKit
//
// Created by Amar Ramachandran on 6/26/15.
// Copyright © 2015 AmarJayR. All rights reserved.
//
#import "VKCreated.h"
typedef NS_ENUM(NSUInteger, VKVoteStatus) {
VKVoteStatusUpvoted,
VKVoteStatusDownvoted,
VKVoteStatusNone
};
@interface VKVotable : VKCreated
/**
Th... | //
// VKVotable.h
// VoatKit
//
// Created by Amar Ramachandran on 6/26/15.
// Copyright © 2015 AmarJayR. All rights reserved.
//
#import "VKCreated.h"
typedef NS_ENUM(NSUInteger, VKVoteStatus) {
VKVoteStatusNone,
VKVoteStatusUpvoted,
VKVoteStatusDownvoted
};
@interface VKVotable : VKCreated
/**
Th... | Change the default VKVoteStatus value to VKVoteStatusNone This is necessary because unvoted items don't send a "voteValue" field so the voteStatusJSONTransformer is never called | Change the default VKVoteStatus value to VKVoteStatusNone
This is necessary because unvoted items don't send a "voteValue" field so the voteStatusJSONTransformer is never called
| C | mit | nuudles/VoatKit,AmarJayR/VoatKit |
1c996d94ec09d367d45c4a37ec1485ea7ff724f4 | src/ingredientpropertylist.h | src/ingredientpropertylist.h | /***************************************************************************
* Copyright (C) 2003 by Unai Garro *
* ugarro@users.sourceforge.net *
* *... | /***************************************************************************
* Copyright (C) 2003 by Unai Garro *
* ugarro@users.sourceforge.net *
* *... | Fix comparison between properties (compare the ID) | Fix comparison between properties (compare the ID)
svn path=/trunk/kdeextragear-3/krecipes/; revision=237720
| C | lgpl-2.1 | eliovir/krecipes,eliovir/krecipes,eliovir/krecipes,eliovir/krecipes |
72d08adcc89f72f2243c063b4ec3f7202574807f | 3RVX/Controllers/Volume/VolumeTransformation.h | 3RVX/Controllers/Volume/VolumeTransformation.h | #pragma once
class VolumeTransformation {
public:
virtual float Transform(float vol) = 0;
}; | #pragma once
class VolumeTransformation {
public:
/// <summary>
/// Transforms a given volume level to a new ("virtual") level based on a
/// formula or set of rules (e.g., a volume curve transformation).
/// </summary>
virtual float ToVirtual(float vol) = 0;
/// <summary>
/// Given a tran... | Split transform methods into to/from | Split transform methods into to/from
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
2954136a1da999c3a5b6662e96368c073643509b | libraries/FreeIMU/calibration.h | libraries/FreeIMU/calibration.h |
/**
* FreeIMU calibration header. Automatically generated by octave AccMagnCalib.m.
* Do not edit manually unless you know what you are doing.
*/
/* // following example of calibration.h
#define CALIBRATION_H
const int acc_off_x = 205;
const int acc_off_y = -39;
const int acc_off_z = 1063;
const float acc_scale_x... |
/**
* FreeIMU calibration header. Automatically generated by FreeIMU_GUI.
* Do not edit manually unless you know what you are doing.
*/
#define CALIBRATION_H
const int acc_off_x = 163;
const int acc_off_y = 119;
const int acc_off_z = -622;
const float acc_scale_x = 16387.035965;
const float acc_scale_y = 16493.17... | Update for Arduino Due and refresh of files to make sure they are the latest | Update for Arduino Due and refresh of files to make sure they are the latest
| C | mit | tokk250/FreeIMU-Updates,mjs513/FreeIMU-Updates,bmweller/FreeIMU-Updates,tokk250/FreeIMU-Updates,bmweller/FreeIMU-Updates,tokk250/FreeIMU-Updates,bmweller/FreeIMU-Updates,bmweller/FreeIMU-Updates,mjs513/FreeIMU-Updates,bmweller/FreeIMU-Updates,mjs513/FreeIMU-Updates,tokk250/FreeIMU-Updates,tokk250/FreeIMU-Updates,tokk25... |
a39bade0af5ec329970865cd016175441c0d4a8e | src/imap/cmd-create.c | src/imap/cmd-create.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(Client *client)
{
const char *mailbox;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
if (!client_verify_mailbox_name(client, mailbox, FALSE, TRUE))
return TRUE;
if (mailbox[st... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(Client *client)
{
const char *mailbox;
int ignore;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
ignore = mailbox[strlen(mailbox)-1] == client->storage->hierarchy_sep;
if (ignor... | CREATE mailbox<hierarchy separator> failed always. | CREATE mailbox<hierarchy separator> failed always.
| C | mit | Distrotech/dovecot,Distrotech/dovecot,damoxc/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,LTD-Beget/dovecot,damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot,LTD-Beget/dovecot |
c9daf5425f148933b02ddd56d9301505e6dc901b | Wangscape/codecs/TileCodec.h | Wangscape/codecs/TileCodec.h | #pragma once
#include <spotify/json.hpp>
#include "Tile.h"
using namespace spotify::json::codec;
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<Tile>
{
static object_t<Tile> codec()
{
auto codec = object<Tile>();
codec.required("corners", &Tile::corners);
cod... | Add a codec for Tile struct | Add a codec for Tile struct
| C | mit | serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape | |
9e61dcaafe0e4d33b2ed9fc1023cbffefccfbb18 | plat_include/exynos4/platsupport/plat/irq_combiner.h | plat_include/exynos4/platsupport/plat/irq_combiner.h | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _PLATSUPPORT_PLAT_IRQ_COMBINER_H_
#define _PLATSUPPORT_PLAT_IRQ_COMBINER_H_
... | Add missing plat header for IRQ combiner | Exynos4: Add missing plat header for IRQ combiner
| C | bsd-2-clause | seL4/libplatsupport,agacek/util_libs,agacek/libplatsupport,agacek/util_libs,agacek/util_libs,winksaville/libplatsupport,agacek/libplatsupport,agacek/util_libs,seL4/libplatsupport,winksaville/libplatsupport | |
388d4312a910f9dc1af9c2ae95b0811a9ec07dd9 | src/xenpong/xenpong.h | src/xenpong/xenpong.h | #if !defined(_XENIFACE_H_)
#define _XENIFACE_H_
#include <ntddk.h>
#pragma warning(disable:4100 4057)
typedef struct _DEVICE_EXTENSION {
PDEVICE_OBJECT DeviceObject;
PDEVICE_OBJECT LowerDeviceObject;
PDEVICE_OBJECT Pdo;
UNICODE_STRING ifname;
IO_REMOVE_LOCK RemoveLock;
} DEVICE_EXTENSION, *PDEVIC... | #if !defined(_XENIFACE_H_)
#define _XENIFACE_H_
#include <ntddk.h>
#pragma warning(disable:4100 4057)
typedef struct _DEVICE_EXTENSION {
PDEVICE_OBJECT DeviceObject;
PDEVICE_OBJECT LowerDeviceObject;
PDEVICE_OBJECT Pdo;
UNICODE_STRING ifname;
IO_REMOVE_LOCK RemoveLock;
} DEVICE_EXTENSION, *PDEVIC... | Add declarations for StartDevice and StopDevice | Add declarations for StartDevice and StopDevice
| C | bsd-2-clause | perf101/xenpong,perf101/xenpong,perf101/xenpong,perf101/xenpong |
69c3f107e2c8a2eef56249a87c8e192d8f6abe5c | sys/sparc64/include/ieeefp.h | sys/sparc64/include/ieeefp.h | /*
* Written by J.T. Conklin, Apr 6, 1995
* Public domain.
* $FreeBSD$
*/
#ifndef _MACHINE_IEEEFP_H_
#define _MACHINE_IEEEFP_H_
typedef int fp_except_t;
#define FP_X_IMP 0x01 /* imprecise (loss of precision) */
#define FP_X_DZ 0x02 /* divide-by-zero exception */
#define FP_X_UFL 0x04 /* underflow exception */
#d... | /*
* Written by J.T. Conklin, Apr 6, 1995
* Public domain.
* $FreeBSD$
*/
#ifndef _MACHINE_IEEEFP_H_
#define _MACHINE_IEEEFP_H_
#include <machine/fsr.h>
typedef int fp_except_t;
#define FP_X_IMP FSR_NX /* imprecise (loss of precision) */
#define FP_X_DZ FSR_DZ /* divide-by-zero exception */
#define FP_X_UFL FSR... | Use the definitions in machine/fsr.h instead of duplicating these magic numbers here (the values need to correspond to the %fsr ones for some libc functions to work right). | Use the definitions in machine/fsr.h instead of duplicating these magic
numbers here (the values need to correspond to the %fsr ones for some
libc functions to work right).
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
219a72a578ac9ddfed1a96d5395940cc1a1d1514 | Wangscape/codecs/RectCodec.h | Wangscape/codecs/RectCodec.h | #pragma once
#include <spotify/json.hpp>
#include <SFML/Graphics/Rect.hpp>
namespace spotify
{
namespace json
{
// See Vector2Codec.h for issues with making this generic.
template<>
struct default_codec_t<sf::Rect<double>>
{
typedef std::pair<double, double> DoublePair;
typedef std::pair<DoublePair, DoubleP... | Add spotify-json codec for sf::Rect<double> | Add spotify-json codec for sf::Rect<double>
Not templated for the same reason as the sf::Vector2u codec.
| C | mit | Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape | |
cbca462157dde6080fb77b611fbb8877834d07be | Source/Tests/Collection/FakeWithoutCount.h | Source/Tests/Collection/FakeWithoutCount.h | // OCHamcrest by Jon Reid, https://qualitycoding.org/
// Copyright 2018 hamcrest.org. See LICENSE.txt
@import Foundation;
NS_ASSUME_NONNULL_BEGIN
@interface FakeWithoutCount : NSObject
+ (id)fake;
@end
NS_ASSUME_NONNULL_END
| // OCHamcrest by Jon Reid, https://qualitycoding.org/
// Copyright 2018 hamcrest.org. See LICENSE.txt
@import Foundation;
NS_ASSUME_NONNULL_BEGIN
@interface FakeWithoutCount : NSObject
+ (instancetype)fake;
@end
NS_ASSUME_NONNULL_END
| Test only: Correct id to instancetype | Test only: Correct id to instancetype
| C | bsd-2-clause | hamcrest/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest |
e8f4eed954eaa0c5020d61250b8222c41511f413 | test/CodeGen/pr9614.c | test/CodeGen/pr9614.c | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
extern int foo_alias (void) __asm ("foo");
inline int foo (void) {
return foo_alias ();
}
int f(void) {
return foo();
}
// CHECK-NOT: define
// CHECK: define i32 @f()
// CHECK: %call = call i32 @foo()
// CHECK: ret i32 %call
// CHECK-NOT: define
| // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
extern int foo_alias (void) __asm ("foo");
inline int foo (void) {
return foo_alias ();
}
int f(void) {
return foo();
}
// CHECK-NOT: define
// CHECK: define i32 @f()
// CHECK: call i32 @foo()
// CHECK-NEXT: ret i32
// CHECK-NOT: define
| Fix this tests on the bots. | Fix this tests on the bots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143052 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
9710c394fb7c54d91aa9929f9530a9fa78cab8de | tree/treeplayer/inc/TFriendProxy.h | tree/treeplayer/inc/TFriendProxy.h | // @(#)root/treeplayer:$Id$
// Author: Philippe Canal 01/06/2004
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. *
* All rights reserved. *
* ... | // @(#)root/treeplayer:$Id$
// Author: Philippe Canal 01/06/2004
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. *
* All rights reserved. *
* ... | Add accessor to Director of a FriendProxy | Add accessor to Director of a FriendProxy
| C | lgpl-2.1 | root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,karies/root,olifre/root,karies/root,karies/root,root-mirror/root,root-mirror/root,olifre/ro... |
ddf88fda672bf43c057eca80334d04be837ad336 | src/commands.c | src/commands.c | #include "commands.h"
#include <stdio.h>
#include <string.h>
#include "util.h"
static void print_commands_help() {
puts(" Commands available:\n");
puts(" :quit \tExit laco");
puts(" :help \tDisplay this list of commands");
}
void handle_command(struct LacoState* laco, char* line) {
if(laco != NUL... | #include "commands.h"
#include <stdbool.h>
#include <stdio.h>
#include "util.h"
static const char* quit_matches[] = {"quit"};
static const char* help_matches[] = {"help"};
static void print_commands_help() {
puts(" Commands available:\n");
puts(" :quit \tExit laco");
puts(" :help \tDisplay this lis... | Use laco_is_match for command handling | Use laco_is_match for command handling
| C | bsd-2-clause | sourrust/laco |
431357bc5ced7c1ffd6616f681c195ce45c61462 | scriptobject.h | scriptobject.h | #ifndef INCLUDED_SCRIPT_OBJECT_H_
#define INCLUDED_SCRIPT_OBJECT_H_
#include "browser.h"
#include "npapi-headers/npruntime.h"
class EmacsInstance;
class ScriptObject : public NPObject {
public:
static ScriptObject* create(NPP npp);
void invalidate();
bool hasMethod(NPIdentifier name);
bool invoke(NP... | #ifndef INCLUDED_SCRIPT_OBJECT_H_
#define INCLUDED_SCRIPT_OBJECT_H_
#include "browser.h"
#include "npapi-headers/npruntime.h"
#include "util.h"
class EmacsInstance;
class ScriptObject : public NPObject {
public:
static ScriptObject* create(NPP npp);
void invalidate();
bool hasMethod(NPIdentifier name);
... | Disable copy and assign on ScriptObject | Disable copy and assign on ScriptObject
| C | mit | davidben/embedded-emacs,davidben/embedded-emacs,davidben/embedded-emacs |
3cb53ef14172a14cf05f2777847538d492ec8421 | RFKeyboardToolbar/RFToolbarButton.h | RFKeyboardToolbar/RFToolbarButton.h | //
// RFToolbarButton.h
//
// Created by Rudd Fawcett on 12/3/13.
// Copyright (c) 2013 Rudd Fawcett. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* The block used for each button.
*/
typedef void (^eventHandlerBlock)();
@interface RFToolbarButton : UIButton
/**
* Creates a new RFToolbarButton.
*
*... | //
// RFToolbarButton.h
//
// Created by Rudd Fawcett on 12/3/13.
// Copyright (c) 2013 Rudd Fawcett. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* The block used for each button.
*/
typedef void (^eventHandlerBlock)(void);
@interface RFToolbarButton : UIButton
/**
* Creates a new RFToolbarButton.
... | Fix warning about block declaration semantics | Fix warning about block declaration semantics
| C | mit | ruddfawcett/RFKeyboardToolbar |
fb2a0e23314d7abf9ab91bda09cc335aed9b1865 | config.h | config.h | #ifndef CONFIG_H
#define CONFIG_H
#define YLE_DOWNLOADER_GUI_VERSION "2.0"
#define WINDOWS_YLE_DL_DIR "yle-dl-windows-1.99.7"
#endif // CONFIG_H
| #ifndef CONFIG_H
#define CONFIG_H
#define YLE_DOWNLOADER_GUI_VERSION "2.0"
#define WINDOWS_YLE_DL_DIR "yle-dl-windows"
#endif // CONFIG_H
| Change WINDOWS_YLE_DL_DIR to not have a version number. | Change WINDOWS_YLE_DL_DIR to not have a version number.
| C | unlicense | hekkup/qyledl,hekkup/qyledl,hekkup/qyledl |
001af213199c25b457df50bebb664570285a1ca8 | Pod/Classes/CMHActivityList.h | Pod/Classes/CMHActivityList.h | #import <CloudMine/CloudMine.h>
#import <CareKit/CareKit.h>
@interface CMHActivityList : CMObject
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithObjectId:(NSString *)theObjectId NS_UNAVAILABLE;
@property (nonatomic, nonnull, readonly) NSArray <OCKCarePlanActivity *> * activities;
- (_Nonnull instancety... | #import <CloudMine/CloudMine.h>
#import <CareKit/CareKit.h>
@interface CMHActivityList : CMObject
- (_Null_unspecified instancetype)init NS_UNAVAILABLE;
- (_Null_unspecified instancetype)initWithObjectId:(NSString *_Null_unspecified)theObjectId NS_UNAVAILABLE;
@property (nonatomic, nonnull, readonly) NSArray <OCKCar... | Add placeholder nullability annotations to unavailable declarations to prevent warning while building activity list | Add placeholder nullability annotations to unavailable declarations to prevent warning while building activity list
| C | mit | cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK |
f04e0dcb4e372731557990ba034745824260a37b | mudlib/mud/home/Http/initd.c | mudlib/mud/home/Http/initd.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2014 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add http subsystem for later usage and expansion | Add http subsystem for later usage and expansion
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
4ec6dde3a662778f898375bdda879904509ad33d | src/NavRouting/SdkModel/NavRoutingLocationFinder.h | src/NavRouting/SdkModel/NavRoutingLocationFinder.h | #pragma once
#include "ISingleOptionAlertBoxDismissedHandler.h"
#include "INavRoutingLocationFinder.h"
#include "NavRoutingLocationModel.h"
#include "SearchResultModel.h"
#include "ILocationService.h"
#include "IAlertBoxFactory.h"
namespace ExampleApp
{
namespace NavRouting
{
namespace SdkModel
... | #pragma once
#include "Types.h"
#include "ISingleOptionAlertBoxDismissedHandler.h"
#include "INavRoutingLocationFinder.h"
#include "NavRoutingLocationModel.h"
#include "SearchResultModel.h"
#include "ILocationService.h"
#include "IAlertBoxFactory.h"
namespace ExampleApp
{
namespace NavRouting
{
namesp... | Fix missing virtual dtor on new type Buddy Michael Chan | Fix missing virtual dtor on new type
Buddy Michael Chan
| C | bsd-2-clause | eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee... |
b8ccf5a8022a002571a40900e6f725a0c8b0d860 | src/udon2xml.c | src/udon2xml.c | #include <stdio.h>
#include <stdlib.h>
#include "udon.h"
int main (int argc, char *argv[]) {
int i;
int found = 0;
pstate *state = init_from_file("../sjson-examples/big.txt");
for(i=0; i<10000; i++) {
found += parse(state);
reset_state(state);
}
free_state(state);
printf("%d... | #include <stdio.h>
#include <stdlib.h>
#include "udon.h"
int main (int argc, char *argv[]) {
int i;
int found = 0;
if(argc < 2) return 1;
pstate *state = init_from_file(argv[1]);
for(i=0; i<10000; i++) {
found += parse(state);
reset_state(state);
}
free_state(state);
pri... | Remove hardcoded file path. Still awkward and not generally usable, but _more_ general. | Remove hardcoded file path. Still awkward and not generally usable, but _more_
general.
| C | mit | josephwecker/udon-c,josephwecker/udon-c,josephwecker/udon-c,josephwecker/udon-c |
562f2b7069f12d7558bccf72d49a13007e090947 | crypto/isrcrypto.h | crypto/isrcrypto.h | #ifndef LIBISRCRYPTO_H
#define LIBISRCRYPTO_H
struct isrcry_aes_key {
ulong32 eK[60], dK[60];
int Nr;
};
struct isrcry_blowfish_key {
ulong32 S[4][256];
ulong32 K[18];
};
/** A block cipher CBC structure */
typedef struct {
/** The index of the cipher chosen */
int cipher,
/** T... | Add initial exported header file | crypto: Add initial exported header file
- Add initial exported header file with relevant structs from
tomcrypt_cipher.h
| C | epl-1.0 | cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr | |
052b3fc55ae2ee20e2ab6d9e29fde8a4fee7a68b | src/pomodoro.h | src/pomodoro.h | // ----------------------------------------------------------------------------
// pomodoro - Defines a model to track progress through the Pomodoro Technique
// Copyright (c) 2013 Jonathan Speicher (jon.speicher@gmail.com)
// Licensed under the MIT license: http://opensource.org/licenses/MIT
// -----------------------... | // ----------------------------------------------------------------------------
// pomodoro - Defines a model to track progress through the Pomodoro Technique
// Copyright (c) 2013 Jonathan Speicher (jon.speicher@gmail.com)
// Licensed under the MIT license: http://opensource.org/licenses/MIT
// -----------------------... | Fix some comments and type names | Fix some comments and type names
| C | mit | jonspeicher/Pomade,jonspeicher/Pomade,elliots/simple-demo-pebble |
35e0ab1f6591592e10dea911cacbd649de4f8da3 | MouseEvent.h | MouseEvent.h | #pragma once
#include <cstdint>
namespace ni {
struct MouseEvent {
int32_t deltaX;
int32_t deltaY;
int32_t deltaWheel;
uint8_t leftButtonDown;
uint8_t rightButtonDown;
uint8_t middleButtonDown;
};
} | #pragma once
#include <cstdint>
namespace ni {
struct MouseEvent {
int32_t deltaX;
int32_t deltaY;
int8_t deltaWheel;
uint8_t leftButtonDown;
uint8_t rightButtonDown;
uint8_t middleButtonDown;
};
static_assert(sizeof(MouseEvent) == 12, "Improper mouse event size");
} | Change MouseWheel deltaWheel field size to one byte. Add compile time size check to Mouse Event. | Change MouseWheel deltaWheel field size to one byte. Add compile time size check to Mouse Event.
| C | mit | jack-karamanian/NetInput |
9e82bcb019f476a4f025f63b101f8a250033ca9d | win32_compat.h | win32_compat.h | /*
Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com>
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 D... | /*
Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com>
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 D... | Fix major bug in definition of greatest negative float value | Fix major bug in definition of greatest negative float value
The minimum float value was actually defined as a very small
negative value close to zero, as opposed to a very large negative
value in the direction of minus infinity. This error may have
caused multiple, sometimes hard to pinpoint, bugs.
Also convert the ... | C | isc | hglm/sre,hglm/sre,hglm/sre |
e87f79e573ba951dad55b81433b3a1839dd85332 | extensions/ringopengl/opengl11/ring_opengl11.c | extensions/ringopengl/opengl11/ring_opengl11.c | #include "ring.h"
/*
OpenGL 1.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_FUNC(ring_get_gl_zero)
{
RING_API_RETNUMBER(GL_ZERO);
}
RING_FUNC(ring_get_gl_false)
{
RING_API_RETNUMBER(GL_FALSE);
}
RING_FUNC(ring_get_gl_logic_op)
{
RING_AP... | #include "ring.h"
/*
OpenGL 1.1 Extension
Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com>
*/
#include <GL/glew.h>
#include <GL/glut.h>
RING_FUNC(ring_get_gl_zero)
{
RING_API_RETNUMBER(GL_ZERO);
}
RING_FUNC(ring_get_gl_false)
{
RING_API_RETNUMBER(GL_FALSE);
}
RING_FUNC(ring_get_gl_logic_op)
{
RING_AP... | Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_NONE | Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_NONE
| C | mit | ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring |
005729668570026852429b644002a5785cbbfd39 | interface/include/quaternion_bind.h | interface/include/quaternion_bind.h | /* __ __ _
* / // /_____ ____ (_)
* / // // ___// __ \ / /
* / // // /__ / /_/ // /
* /_//_/ \___/ \____//_/
* https://bitbucket.org/galaktor/llcoi
* copyright (c) 2014, llcoi Team
* MIT license applies - see file "LICENSE" for details.
*/
#pragma once
#include "ogre_interface.h... | /* __ __ _
* / // /_____ ____ (_)
* / // // ___// __ \ / /
* / // // /__ / /_/ // /
* /_//_/ \___/ \____//_/
* https://bitbucket.org/galaktor/llcoi
* copyright (c) 2014, llcoi Team
* MIT license applies - see file "LICENSE" for details.
*/
#pragma once
#include "ogre_interface.h... | Update signature of quaternion unit inverse. | Update signature of quaternion unit inverse.
| C | mit | fire/llcoi,fire/llcoi |
340b3dbdf1142a12278ae902b9081ed9e55679f3 | exemplos/primeiro-trimestre/02-somando-dois-numeros.c | exemplos/primeiro-trimestre/02-somando-dois-numeros.c | /**
* Exemplo 02 - Somando dois números
*
* Nesse exemplo, vemos como podemos somar dois números.
* Além disso, vemos como é possível mostrar um número na tela
*/
#include <stdio.h>
int main(void)
{
/**
* Para realizar a soma em si, utilizamos o operador +
* Para imprimir o resultado, utilizamos a função ... | Add another example! (somando dois números) | Add another example! (somando dois números)
| C | unlicense | atropelando/terceiro-ano-programacao | |
f44be40fe1d9be9535a4819d7ef468cbba34ea74 | scheduler.h | scheduler.h | /*
* scheduler.h
*
* Created on: Jun 8, 2016
* Author: riley
*/
#ifndef SCHEDULER_H
#define SCHEDULER_H
#include <stdint.h>
#include "scheduler_private.h"
typedef void (*task_func_t)( void ) ;
typedef volatile struct task_private_s {
const char * name;
volatile void * task_sp; //Task stack pointe... | /*
* scheduler.h
*
* Created on: Jun 8, 2016
* Author: riley
*/
#ifndef SCHEDULER_H
#define SCHEDULER_H
#include <stdint.h>
#include "scheduler_private.h"
typedef void (*task_func_t)( void ) ;
typedef volatile struct task_private_s {
const char * name;
volatile void * task_sp; //Task stack pointe... | Remove implementation details from API comment | Remove implementation details from API comment
| C | mit | rjw245/rileyOS |
72a770c94deb158fbb1b804c7d0395623c568272 | drivers/media/radio/lm7000.h | drivers/media/radio/lm7000.h | #ifndef __LM7000_H
#define __LM7000_H
/* Sanyo LM7000 tuner chip control
*
* Copyright 2012 Ondrej Zary <linux@rainbow-software.org>
* based on radio-aimslab.c by M. Kirkwood
* and radio-sf16fmi.c by M. Kirkwood and Petr Vandrovec
*/
#define LM7000_DATA (1 << 0)
#define LM7000_CLK (1 << 1)
#define LM7000_CE (1 <... | Add Sanyo LM7000 tuner driver | [media] radio: Add Sanyo LM7000 tuner driver
Add very simple driver for Sanyo LM7000 AM/FM tuner chip. Only FM is supported
as there is no known HW with AM implemented.
This will be used by radio-aimslab and radio-sf16fmi.
Signed-off-by: Ondrej Zary <ba324ca7b1c77fc20bb970d5aff6eea9377918a5@rainbow-software.org>
Ack... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... | |
d61e95344b2052b6dfa8a96a61fff6b99f08e008 | ext/libx11_ruby/libx11_ruby.c | ext/libx11_ruby/libx11_ruby.c | #include "libx11_ruby.h"
VALUE rb_mLibX11;
void
Init_libx11_ruby(void)
{
rb_mLibX11 = rb_define_module("LibX11");
}
| #include <X11/Xlib.h>
#include "libx11_ruby.h"
VALUE rb_mLibX11, rb_cDisplay;
static size_t display_memsize(const void *);
static const rb_data_type_t display_type = {
.wrap_struct_name = "libx11_display",
.function = {
.dmark = NULL,
.dfree = NULL,
.dsize = display_memsize,
.reserved = { NULL, N... | Add bindings for XOpenDisplay and XCloseDisplay | Add bindings for XOpenDisplay and XCloseDisplay
| C | mit | k0kubun/libx11-ruby,k0kubun/libx11-ruby |
e5ef49ad2ccaf5319b2476f8c8b866dbdee3f187 | src/nbody.h | src/nbody.h | #ifndef _nbody_h
#define _nbody_h
#include <stdbool.h>
#include "window.h"
#include "star.h"
#define NUM_STARS 64
typedef struct {
Window* window;
bool running;
Star stars[NUM_STARS];
} NBody;
NBody* NBody_new();
void NBody_run(NBody* self);
void NBody_destroy(NBody* self);
#endif
| #ifndef _nbody_h
#define _nbody_h
#include <stdbool.h>
#include "window.h"
#include "star.h"
#define NUM_STARS 512
typedef struct {
Window* window;
bool running;
Star stars[NUM_STARS];
} NBody;
NBody* NBody_new();
void NBody_run(NBody* self);
void NBody_destroy(NBody* self);
#endif
| Increase number of stars to 512. | Increase number of stars to 512.
| C | mit | wtolson/nbody-opengl,wtolson/nbody-opengl |
d3a6ecc4f70e7614cc8b5016617aee79f5960710 | include/cpp-sort/utility/functional.h | include/cpp-sort/utility/functional.h | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Morwenn
*
* 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... | Add somewhat useful function objects. | Add somewhat useful function objects.
| C | mit | Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort | |
f18766e3a0dec67141ab2e1564023af04789cd7d | Projects/Project1/src/order.h | Projects/Project1/src/order.h | #ifndef ORDER_H_
#define ORDER_H_
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
Order oper... | #ifndef ORDER_H_
#define ORDER_H_
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volu... | Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird. | Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird.
| C | mit | DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal |
98c5148a59368feae0aecf56f87d64e74787768c | Engine/Sprite.h | Engine/Sprite.h | #pragma once
#include "Point.h"
#include <SDL/include/SDL.h>
struct Sprite
{
SDL_Rect Rect;
iPoint Pivot;
};
| #ifndef __SPRITE_H__
#define __SPRITE_H__
#include "Point.h"
#include <SDL/include/SDL.h>
struct Sprite
{
SDL_Rect Rect;
iPoint Pivot;
};
#endif // __SPRITE_H__
| Substitute pragma once for ifndef guards | Substitute pragma once for ifndef guards
| C | mit | jowie94/The-Simpsons-Arcade,jowie94/The-Simpsons-Arcade |
71f77664fed316a2714c91b2828934f6a4d10211 | examples/memory.c | examples/memory.c | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int x, y, *p, **q;
p = &x;
q = &p;
*q = &y;
/* int *ptr; */
/* ptr = malloc(sizeof(int)); */
/* x = 5; */
/* *ptr = x; */
/* int y = *ptr; */
/* if (y != x) */
/* return EXIT_FAILURE; */
... | Add a simple example for Andersen's analysis. | Add a simple example for Andersen's analysis.
| C | mit | plast-lab/llvm-datalog,plast-lab/cclyzer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.