~l3kn/quad

56d227dd965a9aaff5e31cf86036aa44a1eee82f — Leon Rische 6 months ago f07872a
Use [static 1] for pointers
1 files changed, 3 insertions(+), 3 deletions(-)

M quad.c
M quad.c => quad.c +3 -3
@@ 116,7 116,7 @@ void selectRule(size_t n) {
  }
}

void handleKey(SDL_Event* event) {
void handleKey(SDL_Event event[static 1]) {
  switch (event->key.keysym.sym) {
  case SDLK_q:
    quit = 1;


@@ 149,7 149,7 @@ void handleKey(SDL_Event* event) {
  }
}

void handleMouse(SDL_Event* event) {
void handleMouse(SDL_Event event[static 1]) {
  int x = event->motion.x;
  int y = event->motion.y;



@@ 198,7 198,7 @@ void handleMouse(SDL_Event* event) {
  }
}

void printNode(Node* node) {
void printNode(Node node[static 1]) {
  if (node->type == RULE) {
    printf("R%02d", node->index);
  } else {