Skip to content

Commit

Permalink
const qualify various cubestd command params
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Dec 25, 2024
1 parent 476cbd9 commit d552d67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/engine/interface/cubestd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ static void setiter(ident &id, int i, identstack &stack)
}
}

static void doloop(ident &id, int offset, int n, int step, uint *body)
static void doloop(ident &id, int offset, int n, int step, const uint *body)
{
if(n <= 0 || id.type != Id_Alias)
{
Expand All @@ -418,7 +418,7 @@ static void doloop(ident &id, int offset, int n, int step, uint *body)
poparg(id);
}

static void loopconc(ident &id, int offset, int n, uint *body, bool space)
static void loopconc(ident &id, int offset, int n, const uint *body, bool space)
{
if(n <= 0 || id.type != Id_Alias)
{
Expand Down Expand Up @@ -458,7 +458,7 @@ void concatword(tagval *v, int n)
commandret->setstr(conc(v, n, false));
}

void append(ident *id, tagval *v, bool space)
void append(ident *id, const tagval *v, bool space)
{
if(id->type != Id_Alias || v->type == Value_Null)
{
Expand Down Expand Up @@ -1096,7 +1096,7 @@ static void findfile_(char *name)
);
}

void sortlist(char *list, ident *x, ident *y, uint *body, uint *unique)
void sortlist(char *list, ident *x, ident *y, const uint *body, const uint *unique)
{
struct SortItem
{
Expand All @@ -1111,7 +1111,7 @@ void sortlist(char *list, ident *x, ident *y, uint *body, uint *unique)
struct SortFunction
{
ident *x, *y;
uint *body;
const uint *body;

bool operator()(const SortItem &xval, const SortItem &yval)
{
Expand Down

0 comments on commit d552d67

Please sign in to comment.