AmendHub

jcs

/

amend

/

amendments

/

util.h

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 2, 2022

bile: Sync with other projects

jcs made amendment 66 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 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 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

Amendments on October 28, 2021

patch: Initial progress on patch applying

Unify on "patch" instead of "diff" terminology for export/apply
jcs made amendment 21 over 2 years ago

Amendments on October 23, 2021

util: Remove TECanAddLine and TEAppendFast no longer used

jcs made amendment 18 over 2 years ago

Amendments on October 22, 2021

browser+committer: Enable TETab on all TextEdits

Fix some logic errors in UpdateScrollbarForTE
jcs made amendment 15 over 2 years ago

Amendments on October 19, 2021

browser: Fix diff viewing when already scrolled

The TE was not getting scrolled back up when changed, but doing this
is tricker than it should be to avoid excessive redraws
jcs made amendment 9 over 2 years ago

repo: Show diff header with full log message

Add a utility function to append text to a TE without redrawing it
jcs made amendment 7 over 2 years ago

Initial import of Amend through Amend!

jcs made amendment 1 over 2 years ago