flowchart TB
Old.Count("signed int") & Old.Array("char **") --> New.Class
subgraph Old.Main["main"]
New.Class("std::vector<std::string>") --> New.Main["Main"]
end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** This class provides a static property `void` which just __ignores__ any assigned value. */ | |
export default class extends null | |
{ | |
static get void( ) { return; } | |
static set void(_) { return; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if !__STDC__ | |
# error "This code is written in standard C90." | |
#else | |
# include <stdio.h> /* printf|size_t */ | |
# include <stdlib.h> /* EXIT_(FAILURE|SUCCESS)|free|realloc|size_t */ | |
static size_t xSize_( void ) | |
{ | |
auto struct { size_t Size; void *Void; } New, Old = { 0U, 0 }; | |
auto size_t Mask = ~Old.Size; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMake_Minimum_Required( VERSION 3.12 ) | |
Project( "MyColor" LANGUAGES "C" VERSION "0.0.0.0" DESCRIPTION "Changing the font color on a console." HOMEPAGE_URL "https://gist.github.com/dlOuOlb/6a491c71081bfa8189ed6553ac250bf4" ) | |
Set( CMAKE_C_STANDARD "90" ) | |
Set( CMAKE_SUPPRESS_REGENERATION "ON" ) | |
Set( CMAKE_BUILD_TYPE "Release" ) | |
Set( CMAKE_CONFIGURATION_TYPES "Release" ) | |
Add_Executable( "MyColor" "main.c;names.c;values.c;" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if __cplusplus < 202002L | |
# error "This code is written in C++20." | |
#else | |
export module dlOuOlb.numeric:checked_cast; | |
import <format>; /* std::format */ | |
import <limits>; /* std::numeric_limits */ | |
import <stdexcept>; /* std::(overflow|underflow)_error */ | |
import <string>; /* std::(to_)?string */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if !__STDC__ || __STDC_VERSION__ < 199901L | |
# error "This code is written in standard C99." | |
#else | |
# include <stdio.h> /* f(close|error|open|read)|size_t */ | |
static signed int xTest_( const size_t Charge, const size_t Budget, char Text[ const restrict static Budget ] ) { return Budget <= Charge || ( Charge[ Text ] = 0 ); } | |
extern _Bool uLoad_( const size_t Length, char Text[ const restrict static Length ], const char Path[ const restrict static 1U ] ) | |
{ | |
auto const char Mode[ ] = { "r" }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if __cplusplus < 202002L | |
# error "This code is written in C++20." | |
#else | |
export module dlOuOlb.containers:buffer; | |
import <concepts>; /* std::(regular|totally_ordered) */ | |
import <cstddef>; /* std::(ptrdiff|size)_t */ | |
import <iterator>; /* std::(\w+_)?iterator(_\w+)? */ | |
import <ranges>; /* std::ranges::\w+ */ |
2021-07-08 23:35
2022-02-13 09:50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "uSingleton.h" /* uSingleton */ | |
extern signed int main( void ) { return uSingleton.Method_( 0 ); } |
NewerOlder