spelling: the

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 11:00:58 -05:00
parent 34b2a18fcc
commit d09aca0a02
14 changed files with 15 additions and 15 deletions

View file

@ -204,7 +204,7 @@ AppMessageResult app_message_open(const uint32_t size_inbound, const uint32_t si
void app_message_close(void) {
AppMessageCtx *app_message_ctx = app_state_get_app_message_ctx();
// TODO PBL-1634: handle the the return status when this function returns status.
// TODO PBL-1634: handle the return status when this function returns status.
// For now, continue to ignore failure.
app_message_outbox_close(&app_message_ctx->outbox);
app_message_inbox_close(&app_message_ctx->inbox);

View file

@ -58,7 +58,7 @@ static bool prv_is_headroom_allocated(const RockyMemoryAPIContext *ctx) {
}
static void prv_allocate_headroom_or_die(RockyMemoryAPIContext *ctx) {
// It's highly likely that while executing a the handler for the 'memorypressure' event,
// It's highly likely that while executing the handler for the 'memorypressure' event,
// new objects have been created on the heap. Therefore, it's unlikely we'll be able to reclaim
// the desired headroom immediately after returning from the handler. Try to grab as much as we
// can and resize it later on, see prv_resize_headroom_if_needed().

View file

@ -41,7 +41,7 @@ template to the app's ClickRecognizers.
<p/>
Whenever a the head of the window stack changes, the OS is responsible
Whenever the head of the window stack changes, the OS is responsible
for ensuring that all of its registered click recognizers are reset
and reconfigured using the new visible window's
ClickConfigProvider. This happens in the window_stack_private_push &

View file

@ -76,7 +76,7 @@ typedef struct ScrollLayerCallbacks {
//! scrolling behavior.
ClickConfigProvider click_config_provider;
//! Called every time the the content offset changes. During a scrolling
//! Called every time the content offset changes. During a scrolling
//! animation, it will be called for each intermediary offset as well
ScrollLayerCallback content_offset_changed_handler;

View file

@ -228,7 +228,7 @@ static void prv_draw_slider_slide(SelectionLayer *selection_layer, GContext *ctx
// It then morphs to the size of the next cell + padding causing the illusion that the selector
// overshoot it's mark (it will settle back to the correct size in a different animation).
// This means the the width change is the width difference between the two cells plus padding
// This means the width change is the width difference between the two cells plus padding
int total_cell_width_change = next_cell_width - cur_cell_width + selection_layer->cell_padding;
// The current width change depends on how far we are through the animation
@ -341,7 +341,7 @@ static void prv_draw_selection_layer(SelectionLayer *selection_layer, GContext *
///////////////////////////////////////////////////////////////////////////////////////////////////
//! Increment / Decrement Animation
//! This animation causes a the active cell to "bump" when the user presses the up button.
//! This animation causes the active cell to "bump" when the user presses the up button.
//! This animation has two parts:
//! 1) The "text to cell edge"
//! 2) The "background settle"

View file

@ -48,7 +48,7 @@ typedef struct SelectionLayer {
unsigned cell_padding;
unsigned selected_cell_idx;
// If is_active = false the the selected cell will become invalid, and any clicks will be ignored
// If is_active = false the selected cell will become invalid, and any clicks will be ignored
bool is_active;
GFont font;

View file

@ -51,7 +51,7 @@ typedef struct {
// There is a slight delay (lag) between the animation stopping and starting it again. To minimize
// this, make the animation contain multiple loops (360 degree rotations) instead of 1.
// This means that the the lag occurs once less frequently and is less noticable
// This means that the lag occurs once less frequently and is less noticable
#define LOOPS_PER_ANIMATION 10
#define LOOP_DURATION_MS 1500

View file

@ -17,7 +17,7 @@
#pragma once
//! @file This file contains adapter code between Bluetopia's GATT APIs and
//! Pebble's GATT/API code. The functions in this file take the the internal
//! Pebble's GATT/API code. The functions in this file take the internal
//! reference types BLECharacteristic and BLEDescriptor to perform operations
//! upon those remote resources. The implementation uses the functions
//! gatt_client_characteristic_get_handle_and_connection_id and

View file

@ -75,7 +75,7 @@ CommSessionCapability comm_session_get_capabilities(CommSession *session);
//! @note It is possible that the session becomes disconnected at any point in time.
CommSession *comm_session_get_system_session(void);
//! @return a reference to the the third party app communication session for the *currently running*
//! @return a reference to the third party app communication session for the *currently running*
//! watch app, or NULL if the session does not exist (is not connected).
//! @note It is possible that the session becomes disconnected at any point in time.
CommSession *comm_session_get_current_app_session(void);

View file

@ -192,7 +192,7 @@ cleanup:
// Conceptually, it makes sense that the farther points are from one another (>
// t), the less that errors due to noise, fixed point mathematics, & motion
// render bad solutions. (empirically, this seems to be the behavior as
// well). However, the greater the the threshold, the more orientations one
// well). However, the greater the threshold, the more orientations one
// must put their watch through in order to get solution sets
//
// For now, select a distance metric that should work out of the box for a

View file

@ -187,7 +187,7 @@ static uint16_t s_timeline_peek_before_time_m =
// If changing of the setting requires more than just setting a global, this handler is the
// place to perform those other actions.
//
// If the the handler gets passed a invalid new value, set its s_* global to a default value,
// If the handler gets passed a invalid new value, set its s_* global to a default value,
// and return false. This will trigger a rewrite of the s_* global to the backing file.
//
// Each of these functions MUST be named using the following pattern because they are called

View file

@ -51,7 +51,7 @@ bool circular_buffer_write(CircularBuffer* buffer, const void* data, uint16_t le
//! @note After the client is done writing data, it _must_ call circular_buffer_write_finish()
//! so that the CircularBuffer can update the length of the data it contains and update its internal
//! bookkeeping
//! @param[out] data_out Pointer to storage for the pointer that is set the the start of the
//! @param[out] data_out Pointer to storage for the pointer that is set the start of the
//! writable area when the function returns, or NULL if there is no space available.
//! @return The maximum number of bytes that can be written starting at the returned the pointer.
//! Zero is returned when there is no space available.

View file

@ -1566,7 +1566,7 @@ void test_activity__sleep_history(void) {
prv_feed_canned_accel_data(30 * SECONDS_PER_MINUTE, 20, ActivitySleepStateAwake);
// Another 2 hour sleep session starting at 9pm. This will leave us at 11pm. Since this
// session ends after the the cutoff, it should be registered for the next day
// session ends after the cutoff, it should be registered for the next day
prv_feed_canned_accel_data(120 * SECONDS_PER_MINUTE, 0, ActivitySleepStateLightSleep);
// Awake for 2 hours which puts us at 1am

View file

@ -75,6 +75,6 @@ Each exported symbol in the `exports` table is formatted as follows:
When adding new functions, make sure to bump up the `revision` field, and use that value as the new functions' `addedRevision` field. This guarantees that new versions of TintinOS are backwards compatible when compiled against older `libpebble.a`. Seriously, ***make sure to do this***!!.
## Bugs
+ The script doesn't check the the resulting `pebble.h` file will compile, that is left as an exercise to the reader.
+ The script doesn't check the resulting `pebble.h` file will compile, that is left as an exercise to the reader.
+ The script's error reporting is a little funky/unfriendly in places
+ The script does not do any checking of the function revision numbers, beyond a simple check that the file's revision is not lower than any function's.