From 7c3ef9105418cf58ff08c341181f22c8a2d8be01 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Mon, 25 Jul 2022 15:53:49 -0400 Subject: [PATCH] Update Code Style. --- site/index.html | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/site/index.html b/site/index.html index 2ad256b..ca8b198 100644 --- a/site/index.html +++ b/site/index.html @@ -350,8 +350,8 @@ on my list for that:
  • Update project code requirements (ANSI C, POSIX.1c)
  • Clean up dark mode colors (tables, background, code snippets)
  • Add logo (possibly center title?)
  • -
  • Update Code Style to not include indent or line rules, but to use -indent(1) instead.
  • +
  • Update Code Style to not include indent or line rules, but to use +indent(1) instead.
  • Fix typo "Subitting Patches" in Table of Contents
  • Make a note in Getting The Code that the password for the anoncvs account is just anoncvs.
  • @@ -487,8 +487,11 @@ the Code Style as you make your changes.

    Code Style

    -Telodendria's code style is very unique. In general, these are -the conventions used by the code base. +In general, these are the conventions used by the code base. This +guide may be slightly outdated or subject to change, however. The +source code itself is the absolute source of truth, so as long as +you make your code look like the code surrounding it, you should +be fine.

    -This guide may be subject to change. The source code is the absolute -source of truth, so as long as you make your code look like the -code surrounding it, you should be fine. +As far as actually formatting the code goes, such as where to put +brackets and whether you use tabs or spaces, use indent(1) +to take care of all of that. The root of the repository has a +.indent.pro file that should automatically be loaded by +indent(1) to set the correct rules. If you don't have +access to a working indent(1), just indicate in your patch +that I should run indent(1) on the code after applying it. +I'll likely run my indent(1) on the code anyway though, +just to make sure the spacing is consistent, if nothing else.

    Submitting Patches