repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | test/main-static-dep.h | null | null | null | null | null | null | C | 2026-05-04T18:47:13.181126 | #pragma once
typedef void (__stdcall * TestFun)(void);
#if __cplusplus
extern "C"
#endif
__declspec(dllexport) void __cdecl Test(void);
|
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | test/main-override.c | null | null | null | null | null | null | C | 2026-05-04T18:47:13.255003 | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <mimalloc.h>
// #include <mimalloc-override.h>
int main() {
mi_version(); // ensure mimalloc library is linked
void* p1 = malloc(78);
_expand(p1, 100);
if (!mi_is_in_heap_region(p1)) {
printf("p1: malloc failed t... |
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | src/static.c | null | null | null | null | null | null | C | 2026-05-04T18:47:13.492862 | /* ----------------------------------------------------------------------------
Copyright (c) 2018-2020, Microsoft Research, Daan Leijen
This is free software; you can redistribute it and/or modify it under the
terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distri... |
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | test/test-wrong.c | null | null | null | null | null | null | C | 2026-05-04T18:47:13.586430 | /* ----------------------------------------------------------------------------
Copyright (c) 2018-2020, Microsoft Research, Daan Leijen
This is free software; you can redistribute it and/or modify it under the
terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distri... |
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | test/testhelper.h | null | null | null | null | null | null | C | 2026-05-04T18:47:13.809148 | /* ----------------------------------------------------------------------------
Copyright (c) 2018-2020, Microsoft Research, Daan Leijen
This is free software; you can redistribute it and/or modify it under the
terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distri... |
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | test/test-stress.c | null | null | null | null | null | null | C | 2026-05-04T18:47:22.437265 | /* ----------------------------------------------------------------------------
Copyright (c) 2018-2020 Microsoft Research, Daan Leijen
This is free software; you can redistribute it and/or modify it under the
terms of the MIT license.
-----------------------------------------------------------------------------*/
/* ... |
microsoft/mimalloc | https://github.com/microsoft/mimalloc | null | null | null | null | 12,763 | null | null | mit | null | null | null | null | null | null | null | test/test-api.c | null | null | null | null | null | null | C | 2026-05-04T18:47:22.622011 | /* ----------------------------------------------------------------------------
Copyright (c) 2018-2020, Microsoft Research, Daan Leijen
This is free software; you can redistribute it and/or modify it under the
terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distri... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/base64.h | null | null | null | null | null | null | C | 2026-05-04T18:47:24.967568 | #pragma once
#ifndef BASE64_H
#define BASE64_H
#include <stddef.h>
#if defined(_MSC_VER)
#include "ms_stdint.h"
#else
#include <stdint.h>
#endif
/* Decode a base64 encoded string discarding line breaks and noise.
*
* Returns a new string to be free()'d by caller, or NULL on error.
* Returned string is guarantee... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/base64.c | null | null | null | null | null | null | C | 2026-05-04T18:47:25.081881 | #include "base64.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
/* Encoding table as described in RFC1113. */
const static uint8_t b64_encode_table[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz0123456789+/";
/* Decoding table. */
const static int8_t b64_decode_table... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/alert.c | null | null | null | null | null | null | C | 2026-05-04T18:47:25.083844 | #include "alert.h"
#include "os.h"
#include <assert.h>
#if defined(IS_MACOSX)
#include <CoreFoundation/CoreFoundation.h>
#elif defined(USE_X11)
#include <stdio.h> /* For fputs() */
#include <stdlib.h> /* For exit() */
#include <sys/wait.h> /* For wait() */
#include <unistd.h> /* For fork() */
#include <sys/types... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/MMBitmap.c | null | null | null | null | null | null | C | 2026-05-04T18:47:25.085076 | #include "MMBitmap.h"
#include <assert.h>
#include <string.h>
MMBitmapRef createMMBitmap(uint8_t *buffer,
size_t width,
size_t height,
size_t bytewidth,
uint8_t bitsPerPixel,
uint8_t b... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/UTHashTable.c | null | null | null | null | null | null | C | 2026-05-04T18:47:25.150943 | #include "UTHashTable.h"
#include <stdlib.h>
#include <assert.h>
/* Base struct class (all nodes must contain at least the elements in
* this struct). */
struct _UTHashNode {
UTHashNode_HEAD
};
typedef struct _UTHashNode UTHashNode;
void initHashTable(UTHashTable *table, size_t initialCount, size_t nodeSize)
{
as... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/MMPointArray.c | null | null | null | null | null | null | C | 2026-05-04T18:47:25.151658 | #include "MMPointArray.h"
#include <stdlib.h>
MMPointArrayRef createMMPointArray(size_t initialCount)
{
MMPointArrayRef pointArray = calloc(1, sizeof(MMPointArray));
if (initialCount == 0) initialCount = 1;
pointArray->_allocedCount = initialCount;
pointArray->array = malloc(pointArray->_allocedCount * sizeof(MM... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/alert.h | null | null | null | null | null | null | C | 2026-05-04T18:47:25.154146 | #pragma once
#ifndef ALERT_H
#define ALERT_H
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#else
#include <stdbool.h>
#endif
/* Displays alert with given attributes, and blocks execution until the user
* responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was
* pressed, or -1 if an error occurred.... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/MMBitmap.h | null | null | null | null | null | null | C | 2026-05-04T18:47:25.155624 | #pragma once
#ifndef MMBITMAP_H
#define MMBITMAP_H
#include "types.h"
#include "rgb.h"
#include <assert.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
struct _MMBitmap {
uint8_t *imageBuffer; /* Pixels stored in Quad I format; i.e., origin is in
* top left. Length should be... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/UTHashTable.h | null | null | null | null | null | null | C | 2026-05-04T18:47:25.156592 | #pragma once
#ifndef UTHASHTABLE_H
#define UTHASHTABLE_H
#include <stddef.h>
#include "uthash.h"
/* All node structs must begin with this (note that there is NO semicolon). */
#define UTHashNode_HEAD UT_hash_handle hh;
/* This file contains convenience macros and a standard struct for working with
* uthash hash tab... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/MMPointArray.h | null | null | null | null | null | null | C | 2026-05-04T18:47:25.157473 | #pragma once
#ifndef MMARRAY_H
#define MMARRAY_H
#include "types.h"
struct _MMPointArray {
MMPoint *array; /* Pointer to actual data. */
size_t count; /* Number of elements in array. */
size_t _allocedCount; /* Private; do not use outside of MMPointArray.c. */
};
typedef struct _MMPointArray MMPointArray;
typed... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/bitmap_find.c | null | null | null | null | null | null | C | 2026-05-04T18:47:26.471649 | #include "bitmap_find.h"
#include "UTHashTable.h"
#include <assert.h>
/* Node to be used in hash table. */
struct shiftNode {
UTHashNode_HEAD /* Make structure hashable */
MMRGBHex color; /* Key */
MMPoint offset; /* Value */
};
/* --- Hash table helper functions --- */
/* Adds hex-color/offset pair to jump table... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/bmp_io.h | null | null | null | null | null | null | C | 2026-05-04T18:47:27.063763 | #pragma once
#ifndef BMP_IO_H
#define BMP_IO_H
#include "MMBitmap.h"
#include "io.h"
#ifdef __cplusplus
extern "C"
{
#endif
enum _BMPReadError {
kBMPGenericError = 0,
kBMPAccessError,
kBMPInvalidKeyError,
kBMPUnsupportedHeaderError,
kBMPInvalidColorPanesError,
kBMPUnsupportedColorDepthError,
kBMPUnsupportedC... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/color_find.h | null | null | null | null | null | null | C | 2026-05-04T18:47:27.064712 | #pragma once
#ifndef COLOR_FIND_H
#define COLOR_FIND_H
#include "MMBitmap.h"
#include "MMPointArray.h"
/* Convenience wrapper around findColorInRect(), where |rect| is the bounds of
* the image. */
#define findColorInImage(image, color, pointPtr, tolerance) \
findColorInRect(image, color, pointPtr, MMBitmapGetBound... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/color_find.c | null | null | null | null | null | null | C | 2026-05-04T18:47:27.066452 | #include "color_find.h"
#include "screen.h"
#include <stdlib.h>
/* Abstracted, general function to avoid repeated code. */
static int findColorInRectAt(MMBitmapRef image, MMRGBHex color, MMPoint *point,
MMRect rect, float tolerance, MMPoint startPoint)
{
MMPoint scan = startPoint;
if (!M... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/endian.h | null | null | null | null | null | null | C | 2026-05-04T18:47:27.067003 | #pragma once
#ifndef ENDIAN_H
#define ENDIAN_H
#include "os.h"
/*
* (Mostly) cross-platform endian definitions and bit swapping macros.
* Unfortunately, there is no standard C header for this, so we just
* include the most common ones and fallback to our own custom macros.
*/
#if defined(__linux__) /* Linux */
... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/inline_keywords.h | null | null | null | null | null | null | C | 2026-05-04T18:47:27.068549 | #pragma once
/* A complicated, portable model for declaring inline functions in
* header files. */
#if !defined(H_INLINE)
#if defined(__GNUC__)
#define H_INLINE static __inline__ __attribute__((always_inline))
#elif defined(__MWERKS__) || defined(__cplusplus)
#define H_INLINE static inline
... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/deadbeef_rand.c | null | null | null | null | null | null | C | 2026-05-04T18:47:27.069868 | #include "deadbeef_rand.h"
#include <time.h>
static uint32_t deadbeef_seed;
static uint32_t deadbeef_beef = 0xdeadbeef;
uint32_t deadbeef_rand(void)
{
deadbeef_seed = (deadbeef_seed << 7) ^ ((deadbeef_seed >> 25) + deadbeef_beef);
deadbeef_beef = (deadbeef_beef << 7) ^ ((deadbeef_beef >> 25) + 0xdeadbeef);
return ... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/bmp_io.c | null | null | null | null | null | null | C | 2026-05-04T18:47:27.070837 | #include "bmp_io.h"
#include "os.h"
#include "endian.h"
#include <stdio.h> /* fopen() */
#include <string.h> /* memcpy() */
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#include "ms_stdint.h"
#else
#include <stdbool.h>
#include <stdint.h>
#endif
#pragma pack(push, 1) /* The following structs should be continguou... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/deadbeef_rand.h | null | null | null | null | null | null | C | 2026-05-04T18:47:27.071951 | #ifndef DEADBEEF_RAND_H
#define DEADBEEF_RAND_H
#include <stdint.h>
#define DEADBEEF_MAX UINT32_MAX
/* Dead Beef Random Number Generator
* From: http://inglorion.net/software/deadbeef_rand
* A fast, portable psuedo-random number generator by BJ Amsterdam Zuidoost.
* Stated in license terms: "Feel free to use the ... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/io.c | null | null | null | null | null | null | C | 2026-05-04T18:47:28.988602 | #include "io.h"
#include "os.h"
#include "bmp_io.h"
#include "png_io.h"
#include <stdio.h> /* For fputs() */
#include <string.h> /* For strcmp() */
#include <ctype.h> /* For tolower() */
const char *getExtension(const char *fname, size_t len)
{
if (fname == NULL || len <= 0) return NULL;
while (--len > 0 && fname[l... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/keypress.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.094737 | #pragma once
#ifndef KEYPRESS_H
#define KEYPRESS_H
#include "os.h"
#include "keycode.h"
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#else
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#if defined(IS_MACOSX)
typedef enum {
MOD_NONE = 0,
MOD_META = kCGEventFlagMaskCommand,
MOD_ALT = k... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/mouse.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.127080 | #pragma once
#ifndef MOUSE_H
#define MOUSE_H
#include "os.h"
#include "types.h"
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#else
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#if defined(IS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
typedef enum {
LEFT_BUTTON = kCGMo... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/keycode.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.207860 | #pragma once
#ifndef KEYCODE_H
#define KEYCODE_H
#include "os.h"
#ifdef __cplusplus
extern "C"
{
#endif
#if defined(IS_MACOSX)
#include <Carbon/Carbon.h> /* Really only need <HIToolbox/Events.h> */
#include <ApplicationServices/ApplicationServices.h>
#import <IOKit/hidsystem/ev_keymap.h>
enum _MMKeyCode {
K_NOT... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/keypress.c | null | null | null | null | null | null | C | 2026-05-04T18:47:29.226109 | #include "keypress.h"
#include "deadbeef_rand.h"
#include "microsleep.h"
#include <ctype.h> /* For isupper() */
#if defined(IS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#import <IOKit/hidsystem/IOHIDLib.h>
#import <IOKit/hidsystem/ev_keymap.h>
#elif defined(USE_X11)
#include <X11/extensions/XTe... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/microsleep.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.300040 | #pragma once
#ifndef MICROSLEEP_H
#define MICROSLEEP_H
#include "os.h"
#include "inline_keywords.h"
#if !defined(IS_WINDOWS)
/* Make sure nanosleep gets defined even when using C89. */
#if !defined(__USE_POSIX199309) || !__USE_POSIX199309
#define __USE_POSIX199309 1
#endif
#include <time.h> /* For nanosleep() ... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/mouse.c | null | null | null | null | null | null | C | 2026-05-04T18:47:29.301377 | #include "mouse.h"
#include "screen.h"
#include "deadbeef_rand.h"
#include "microsleep.h"
#include <math.h> /* For floor() */
#if defined(IS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#elif defined(USE_X11)
#include <X11/Xlib.h>
#include <X11/extensions/XTest.h>
#include <stdlib.h>
#include "xd... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/io.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.322132 | #pragma once
#ifndef IO_H
#define IO_H
#include "MMBitmap.h"
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
enum _MMImageType {
kInvalidImageType = 0,
kPNGImageType,
kBMPImageType /* Currently only PNG and BMP are supported. */
};
typedef uint16_t MMImageType;
enum _MMIOError {
... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/keycode.c | null | null | null | null | null | null | C | 2026-05-04T18:47:29.339055 | #include "keycode.h"
#if defined(IS_MACOSX)
#include <CoreFoundation/CoreFoundation.h>
#include <Carbon/Carbon.h> /* For kVK_ constants, and TIS functions. */
/* Returns string representation of key, if it is printable.
* Ownership follows the Create Rule; that is, it is the caller's
* responsibility to release th... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/ms_stdbool.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.881428 | #pragma once
#if !defined(MS_STDBOOL_H) && \
(!defined(__bool_true_false_are_defined) || __bool_true_false_are_defined)
#define MS_STDBOOL_H
#ifndef _MSC_VER
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif /* _MSC_VER */
#define __bool_true_false_are_defined 1
#ifndef __cplusplus
#if de... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/ms_stdint.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.882014 | /* ISO C9x compliant stdint.h for Microsoft Visual Studio
* Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
*
* Copyright (c) 2006-2008 Alexander Chemeris
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/os.h | null | null | null | null | null | null | C | 2026-05-04T18:47:29.977150 | #pragma once
#ifndef OS_H
#define OS_H
/* Python versions under 2.5 don't support this macro, but it's not
* terribly difficult to replicate: */
#ifndef PyModule_AddIntMacro
#define PyModule_AddIntMacro(module, macro) \
PyModule_AddIntConstant(module, #macro, macro)
#endif /* PyModule_AddIntMacro */
#if !defined(... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/pasteboard.h | null | null | null | null | null | null | C | 2026-05-04T18:47:30.178067 | #pragma once
#ifndef PASTEBOARD_H
#define PASTEBOARD_H
#include "MMBitmap.h"
#include "io.h"
enum _MMBitmapPasteError {
kMMPasteNoError = 0,
kMMPasteGenericError,
kMMPasteOpenError,
kMMPasteClearError,
kMMPasteDataError,
kMMPastePasteError,
kMMPasteUnsupportedError
};
typedef MMIOError MMPasteError;
/* Copie... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/pasteboard.c | null | null | null | null | null | null | C | 2026-05-04T18:47:30.178591 | #include "pasteboard.h"
#include "os.h"
#if defined(IS_MACOSX)
#include "png_io.h"
#include <ApplicationServices/ApplicationServices.h>
#elif defined(IS_WINDOWS)
#include "bmp_io.h"
#endif
MMPasteError copyMMBitmapToPasteboard(MMBitmapRef bitmap)
{
#if defined(IS_MACOSX)
PasteboardRef clipboard;
size_t len;
ui... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/png_io.c | null | null | null | null | null | null | C | 2026-05-04T18:47:30.208713 | #include "png_io.h"
#include "os.h"
#include <png.h>
#include <stdio.h> /* fopen() */
#include <stdlib.h> /* malloc/realloc */
#include <assert.h>
#if defined(_MSC_VER)
#include "ms_stdint.h"
#include "ms_stdbool.h"
#else
#include <stdint.h>
#include <stdbool.h>
#endif
const char *MMPNGReadErrorString(MMIOError e... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/screengrab.c | null | null | null | null | null | null | C | 2026-05-04T18:47:30.512467 | #include "screengrab.h"
#include "bmp_io.h"
#include "endian.h"
#include <stdlib.h> /* malloc() */
#if defined(IS_MACOSX)
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <ApplicationServices/ApplicationServices.h>
#elif defined(USE_X11)
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "xdisplay.h... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/screen.h | null | null | null | null | null | null | C | 2026-05-04T18:47:30.590258 | #pragma once
#ifndef SCREEN_H
#define SCREEN_H
#include "types.h"
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#else
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
/* Returns the size of the main display. */
MMSize getMainDisplaySize(void);
/* Convenience function that returns whether the g... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/screengrab.h | null | null | null | null | null | null | C | 2026-05-04T18:47:30.624903 | #pragma once
#ifndef SCREENGRAB_H
#define SCREENGRAB_H
#include "types.h"
#include "MMBitmap.h"
#ifdef __cplusplus
extern "C"
{
#endif
/* Returns a raw bitmap of screengrab of the display (to be destroyed()'d by
* caller), or NULL on error. */
MMBitmapRef copyMMBitmapFromDisplayInRect(MMRect rect);
#ifdef __cplus... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/bitmap_find.h | null | null | null | null | null | null | C | 2026-05-04T18:47:30.703150 | #pragma once
#ifndef BITMAP_H
#define BITMAP_H
#include "types.h"
#include "MMBitmap.h"
#include "MMPointArray.h"
/* Convenience wrapper around findBitmapInRect(), where |rect| is the bounds
* of |haystack|. */
#define findBitmapInBitmap(needle, haystack, pointPtr, tol) \
findBitmapInRect(needle, haystack, pointPtr... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/snprintf.h | null | null | null | null | null | null | C | 2026-05-04T18:47:30.778582 | #ifndef _PORTABLE_SNPRINTF_H_
#define _PORTABLE_SNPRINTF_H_
#define PORTABLE_SNPRINTF_VERSION_MAJOR 2
#define PORTABLE_SNPRINTF_VERSION_MINOR 2
#include "os.h"
#if defined(IS_MACOSX)
#define HAVE_SNPRINTF
#else
#define HAVE_SNPRINTF
#define PREFER_PORTABLE_SNPRINTF
#endif
#include <stddef.h>
#include <stdarg.h>
... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/snprintf.c | null | null | null | null | null | null | C | 2026-05-04T18:47:30.817135 | /*
* snprintf.c - a portable implementation of snprintf
*
* AUTHOR
* Mark Martinec <mark.martinec@ijs.si>, April 1999.
*
* Copyright 1999, Mark Martinec. All rights reserved.
*
* TERMS AND CONDITIONS
* This program is free software; you can redistribute it and/or modify
* it under the terms of the "Fr... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/str_io.c | null | null | null | null | null | null | C | 2026-05-04T18:47:30.869491 | #include "str_io.h"
#include "zlib_util.h"
#include "base64.h"
#include "snprintf.h" /* snprintf() */
#include <stdio.h> /* fputs() */
#include <ctype.h> /* isdigit() */
#include <stdlib.h> /* atoi() */
#include <string.h> /* strlen() */
#include <assert.h>
#if defined(_MSC_VER)
#include "ms_stdbool.h"
#else
#includ... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/png_io.h | null | null | null | null | null | null | C | 2026-05-04T18:47:30.997801 | #pragma once
#ifndef PNG_IO_H
#define PNG_IO_H
#include "MMBitmap.h"
#include "io.h"
enum _PNGReadError {
kPNGGenericError = 0,
kPNGReadError,
kPNGAccessError,
kPNGInvalidHeaderError
};
typedef MMIOError MMPNGReadError;
/* Returns description of given MMPNGReadError.
* Returned string is constant and hence sho... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/screen.c | null | null | null | null | null | null | C | 2026-05-04T18:47:31.042251 | #include "screen.h"
#include "os.h"
#if defined(IS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#elif defined(USE_X11)
#include <X11/Xlib.h>
#include "xdisplay.h"
#endif
MMSize getMainDisplaySize(void)
{
#if defined(IS_MACOSX)
CGDirectDisplayID displayID = CGMainDisplayID();
return MMSizeMake(CGD... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/rgb.h | null | null | null | null | null | null | C | 2026-05-04T18:47:31.080008 | #pragma once
#ifndef RGB_H
#define RGB_H
#include <stdlib.h> /* For abs() */
#include <math.h>
#include "inline_keywords.h" /* For H_INLINE */
#include <stdint.h>
/* RGB colors in MMBitmaps are stored as BGR for convenience in converting
* to/from certain formats (mainly OpenGL).
*
* It is best not to rely on the... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/str_io.h | null | null | null | null | null | null | C | 2026-05-04T18:47:31.128423 | #pragma once
#ifndef STR_IO_H
#define STR_IO_H
#include "MMBitmap.h"
#include "io.h"
#include <stdint.h>
enum _MMBMPStringError {
kMMBMPStringGenericError = 0,
kMMBMPStringInvalidHeaderError,
kMMBMPStringDecodeError,
kMMBMPStringDecompressError,
kMMBMPStringSizeError, /* Size does not match header. */
MMMBMPSt... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/types.h | null | null | null | null | null | null | C | 2026-05-04T18:47:31.228449 | #pragma once
#ifndef TYPES_H
#define TYPES_H
#include "os.h"
#include "inline_keywords.h" /* For H_INLINE */
#include <stddef.h>
#include <stdint.h>
/* Some generic, cross-platform types. */
struct _MMPoint {
size_t x;
size_t y;
};
typedef struct _MMPoint MMPoint;
struct _MMSignedPoint {
int32_t x;
int32_t y;... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/uthash.h | null | null | null | null | null | null | C | 2026-05-04T18:47:31.256982 | /*
* Copyright (c) 2003-2009, Troy D. Hanson http://uthash.sourceforge.net
* 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... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/xdisplay.c | null | null | null | null | null | null | C | 2026-05-04T18:47:31.341529 | #include "xdisplay.h"
#include <stdio.h> /* For fputs() */
#include <stdlib.h> /* For atexit() */
static Display *mainDisplay = NULL;
static int registered = 0;
static char *displayName = ":0.0";
static int hasDisplayNameChanged = 0;
Display *XGetMainDisplay(void)
{
/* Close the display if displayName has changed */... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/xdisplay.h | null | null | null | null | null | null | C | 2026-05-04T18:47:31.436027 | #pragma once
#ifndef XDISPLAY_H
#define XDISPLAY_H
#include <X11/Xlib.h>
/* Returns the main display, closed either on exit or when closeMainDisplay()
* is invoked. This removes a bit of the overhead of calling XOpenDisplay() &
* XCloseDisplay() everytime the main display needs to be used.
*
* Note that this is a... |
octalmage/robotjs | https://github.com/octalmage/robotjs | null | null | null | null | 12,727 | null | null | mit | null | null | null | null | null | null | null | src/zlib_util.c | null | null | null | null | null | null | C | 2026-05-04T18:47:31.476556 | #include "zlib_util.h"
#include <zlib.h>
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* malloc() */
#include <assert.h>
#define ZLIB_CHUNK (16 * 1024)
uint8_t *zlib_decompress(const uint8_t *buf, size_t *len)
{
size_t output_size = ZLIB_CHUNK;
uint8_t *output = malloc(output_size);
int err;
z_stream zs... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | cJSON.h | null | null | null | null | null | null | C | 2026-05-04T18:47:33.988895 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | fuzzing/fuzz_main.c | null | null | null | null | null | null | C | 2026-05-04T18:47:33.993690 | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); /* required by C89 */
/* fuzz target entry point, works without libFuzzer */
int main(int argc, char **argv)
{
FILE *f;
char *buf = NULL;
long siz_buf;
if(argc < 2)
{
... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | test.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.005558 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | cJSON_Utils.h | null | null | null | null | null | null | C | 2026-05-04T18:47:34.010486 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | cJSON_Utils.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.015188 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | fuzzing/afl.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.019687 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | fuzzing/cjson_read_fuzzer.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.021560 | #include <stdlib.h>
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "../cJSON.h"
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); /* required by C89 */
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
cJSON *json;
size_t offset = 4;
unsi... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | cJSON.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.022495 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/common.h | null | null | null | null | null | null | C | 2026-05-04T18:47:34.032807 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/cjson_add.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.065951 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/minify_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.834995 | /*
Copyright (c) 2009-2019 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/json_patch_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.836470 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/misc_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.837707 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_examples.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.920769 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/compare_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.923838 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_hex4.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.924405 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/misc_utils_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.926169 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_number.c | null | null | null | null | null | null | C | 2026-05-04T18:47:34.927534 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/old_utils_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:35.074088 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_array.c | null | null | null | null | null | null | C | 2026-05-04T18:47:35.074716 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_object.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.010830 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_string.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.013132 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/readme_examples.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.337176 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_with_opts.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.759406 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/print_array.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.760801 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/print_string.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.761943 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_1/src/ProductionCode.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.872440 |
#include "ProductionCode.h"
int Counter = 0;
int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; /* some obnoxious array to search that is 1-based indexing instead of 0. */
/* This function is supposed to search through NumbersToFind and find a particular number.
* If it finds it, the index is returned.... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/print_number.c | null | null | null | null | null | null | C | 2026-05-04T18:47:36.973318 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/parse_value.c | null | null | null | null | null | null | C | 2026-05-04T18:47:37.237293 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_1/test/TestProductionCode2.c | null | null | null | null | null | null | C | 2026-05-04T18:47:37.368517 |
#include "ProductionCode2.h"
#include "unity.h"
/* These should be ignored because they are commented out in various ways:
#include "whatever.h"
#include "somethingelse.h"
*/
void setUp(void)
{
}
void tearDown(void)
{
}
void test_IgnoredTest(void)
{
TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose");
}
... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_1/test/TestProductionCode.c | null | null | null | null | null | null | C | 2026-05-04T18:47:37.397498 |
#include "ProductionCode.h"
#include "unity.h"
/* sometimes you may want to get at local data in a module.
* for example: If you plan to pass by reference, this could be useful
* however, it should often be avoided */
extern int Counter;
void setUp(void)
{
/* This is run before EACH TEST */
Counter = 0x5a5a;
... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/src/ProductionCode.c | null | null | null | null | null | null | C | 2026-05-04T18:47:37.571239 |
#include "ProductionCode.h"
int Counter = 0;
int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0.
// This function is supposed to search through NumbersToFind and find a particular number.
// If it finds it, the index is returned. Ot... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/print_object.c | null | null | null | null | null | null | C | 2026-05-04T18:47:37.603713 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/src/ProductionCode2.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.178610 |
#include "ProductionCode2.h"
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
{
(void)Poor;
(void)LittleFunction;
//Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
// Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget
return (... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/test/TestProductionCode2.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.247040 | #include "ProductionCode2.h"
#include "unity.h"
#include "unity_fixture.h"
TEST_GROUP(ProductionCode2);
/* These should be ignored because they are commented out in various ways:
#include "whatever.h"
*/
//#include "somethingelse.h"
TEST_SETUP(ProductionCode2)
{
}
TEST_TEAR_DOWN(ProductionCode2)
{
}
TEST(Productio... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.357898 | #include "unity.h"
#include "unity_fixture.h"
TEST_GROUP_RUNNER(ProductionCode2)
{
RUN_TEST_CASE(ProductionCode2, IgnoredTest);
RUN_TEST_CASE(ProductionCode2, AnotherIgnoredTest);
RUN_TEST_CASE(ProductionCode2, ThisFunctionHasNotBeenTested_NeedsToBeImplemented);
} |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.358729 | #include "unity.h"
#include "unity_fixture.h"
TEST_GROUP_RUNNER(ProductionCode)
{
RUN_TEST_CASE(ProductionCode, FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode);
RUN_TEST_CASE(ProductionCode, FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecau... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/test/TestProductionCode.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.400812 | #include "ProductionCode.h"
#include "unity.h"
#include "unity_fixture.h"
TEST_GROUP(ProductionCode);
//sometimes you may want to get at local data in a module.
//for example: If you plan to pass by reference, this could be useful
//however, it should often be avoided
extern int Counter;
TEST_SETUP(ProductionCode)
{... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_3/helper/UnityHelper.h | null | null | null | null | null | null | C | 2026-05-04T18:47:38.809329 | #ifndef _TESTHELPER_H
#define _TESTHELPER_H
#include "Types.h"
void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line);
#define UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, line, message) AssertEqualExampleStruct(expected, actual, line);
... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_2/test/test_runners/all_tests.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.877591 | #include "unity_fixture.h"
static void RunAllTests(void)
{
RUN_TEST_GROUP(ProductionCode);
RUN_TEST_GROUP(ProductionCode2);
}
int main(int argc, const char * argv[])
{
return UnityMain(argc, argv, RunAllTests);
}
|
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_3/src/ProductionCode.c | null | null | null | null | null | null | C | 2026-05-04T18:47:38.879893 |
#include "ProductionCode.h"
int Counter = 0;
int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0.
// This function is supposed to search through NumbersToFind and find a particular number.
// If it finds it, the index is returned. Ot... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/print_value.c | null | null | null | null | null | null | C | 2026-05-04T18:47:41.170328 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... |
DaveGamble/cJSON | https://github.com/DaveGamble/cJSON | null | null | null | null | 12,671 | null | null | mit | null | null | null | null | null | null | null | tests/unity/examples/example_1/src/ProductionCode2.c | null | null | null | null | null | null | C | 2026-05-04T18:47:42.153080 |
#include "ProductionCode2.h"
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
{
(void)Poor;
(void)LittleFunction;
/* Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
* Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget */
retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.