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 hidden or 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__ < +202311L | |
| # error "This code is written in standard C23." | |
| #else | |
| static bool ψ = true; | |
| static bool non_independent( void ) { return ψ; } | |
| static void non_effectless( register const bool ζ ) { ψ = ζ; return; } | |
| static bool non_stateless( register const bool ζ ) { static bool φ = true; return φ = φ && ζ; } | |
| static void non_idempotent( register bool ξ[ const restrict static sizeof "" ] ) { *ξ = !*ξ; return; } |
This file contains hidden or 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 || !__STDC_HOSTED__ | |
| # error "This example requires a C99 compiler with a conforming hosted implementation." | |
| #else | |
| # include <stdio.h> /* puts */ | |
| # include <stdlib.h> /* EXIT_(FAILURE|SUCCESS) */ | |
| /// <summary>Every C program coded to run in a hosted execution environment contains the definition (not the prototype) of a function named <see cref="main"/>, which is the designated start of the program.</summary> | |
| /// <returns>If the return statement is used, the return value is used as the argument to the implicit call to <see cref="exit"/>() (see below for details). The values zero and <see cref="EXIT_SUCCESS"/> indicate successful termination, the value <see cref="EXIT_FAILURE"/> indicates unsuccessful termination.</returns> | |
| /// <param name="argc">Non-negative value representing the number of arguments passed to the program from the environment in which the program is run.</param> | |
| /// <param name="argv">Pointer to the first element of an array of <paramref name="argc"/ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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+ */ |
NewerOlder