Skip to content

Commit

Permalink
sheet: Fix missing attrs type after file included in pivot.c
Browse files Browse the repository at this point in the history
  • Loading branch information
richiejp committed Dec 20, 2024
1 parent 5e60600 commit e4720fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/sheet/handlers_internal.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef ZSVSHEET_HANDLER_INTERNAL_H
#define ZSVSHEET_HANDLER_INTERNAL_H

#include <zsv/ext.h>

struct zsvsheet_context {
const char *subcommand_value; // e.g. "/path/to/myfile.csv"
int ch; // key press value from getch()
Expand Down
2 changes: 1 addition & 1 deletion app/sheet/pivot.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static struct pivot_row *get_pivot_row_data(struct pivot_data *pd, size_t row_ix
}

// TO DO: return zsvsheet_status
static enum zsv_ext_status get_cell_attrs(void *pdh, int *attrs, size_t start_row, size_t row_count, size_t cols) {
static enum zsv_ext_status get_cell_attrs(void *pdh, zsvsheet_cell_attr_t *attrs, size_t start_row, size_t row_count, size_t cols) {
struct pivot_data *pd = pdh;
size_t end_row = start_row + row_count;
int attr = 0;
Expand Down

0 comments on commit e4720fa

Please sign in to comment.