Skip to content

Commit

Permalink
sizeof_types.awk: Move the script to the appropriate directory 'scrip…
Browse files Browse the repository at this point in the history
…ts'.
  • Loading branch information
randruc committed Nov 6, 2020
1 parent 7925af1 commit 0f296a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/sizeof_types.awk → scripts/sizeof_types.awk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# This file is part of Lazuli.
# Copyright (c) 2020, Remi Andruccioli <remi.andruccioli@gmail.com>

#
# This script is used to output the final size (in bytes) of custom types.
#

$2 ~ /__sizeof/ { print $2; }
$4 ~ /word/ {
converted_size = strtonum($5);
Expand Down

0 comments on commit 0f296a3

Please sign in to comment.