AmendHub

jcs

/

amend

/

amendments

/

util.c

Amendments on February 6, 2023

*: Lots of little fixes and dead variable removal

Found by cppcheck and scan-build
jcs made amendment 110 about 1 year ago

Amendments on November 10, 2022

util: Tweak ask DITL layout

jcs made amendment 106 about 1 year ago

Amendments on September 12, 2022

util: SFGetFile and SFPutFile have different dialog dimensions

Why, Apple?
jcs made amendment 101 about 1 year ago

Amendments on September 6, 2022

util: Sync upstream, use new about box code

jcs made amendment 100 about 1 year ago

util: Sync with upstream

jcs made amendment 98 about 1 year ago

util: Add a mechanism for centering SF{Get,Put}File dialogs

jcs made amendment 97 about 1 year ago

util: In UpdateScrollbarForTE, update the control after adjusting

This requires passing in the window the control is on.
jcs made amendment 95 about 1 year ago

Amendments on August 31, 2022

util: Move strlcat, strlcpy, strndup, and snprintf here

This lets us build with the standard THINK C ANSI library.
Also make malloc map dynamic to avoid a huge data segment.
jcs made amendment 93 about 1 year ago

Amendments on August 18, 2022


Amendments on August 17, 2022


Amendments on June 15, 2022

util: xGetStringAsChar: Properly release resource after use

jcs made amendment 77 about 1 year ago

util: Fix possible corruption/crash in progress()

Don't reset the port back to what we thought it was at the beginning
since it may have changed between progress("") and progress(NULL), and
SetPort with a bogus window might be what's causing crashes later
Also constify DITL definitions while we're here
jcs made amendment 75 about 1 year ago

Amendments on February 3, 2022

util: Make getpath input const

jcs made amendment 58 over 2 years ago

util: Sync with upstream

jcs made amendment 56 over 2 years ago

Amendments on January 19, 2022


Amendments on January 18, 2022

bile+util: Sync from other projects

jcs made amendment 46 over 2 years ago

Amendments on January 11, 2022

util: Lots of changes from other projects

Make all filesystem functions work on Str255s for filenames, not
char *s
Make vwarn() (and new progress() function) use new hard-coded DITLs
to avoid needing to have these in every project's resource fork
Use panic() instead of err(1, ...)
jcs made amendment 41 over 2 years ago

Amendments on December 30, 2021

repo: Implement a backup mechanism, backup the repo before committing

Unfortunately some bug in Amend can cause a crash during/after a
commit which corrupts the resource file, making it unusable :(
jcs made amendment 39 over 2 years ago

Amendments on December 16, 2021


Amendments on November 22, 2021

Repo: Support file deletion, repo versioning and migration

I broke my own rule of always adding versions to things, so start
now and migrate all unversioned repos to version 2 which adds file
flags.
When a file is deleted, doing a diff of it will diff against a blank
file and then the file in the repo is marked as deleted. For now this
just draws the file with tildes in the file list, but a custom LDEF
will draw these as strucken through.
Also fix a few bugs along the way...
jcs made amendment 31 over 2 years ago