contrib
debian
docs
i3-config-wizard
i3-dump-log
i3-input
i3-msg
i3-nagbar
i3bar
include
libi3
man
parser-specs
src
testcases
tests
queue.h
swap.c
test_table.c
yajl-fallback
.gitignore
DEPENDS
LICENSE
Makefile
PACKAGE-MAINTAINER
RELEASE-NOTES-4.2
RELEASE-NOTES-4.3
RELEASE-NOTES-4.4
RELEASE-NOTES-4.5
RELEASE-NOTES-4.5.1
common.mk
generate-command-parser.pl
i3-dmenu-desktop
i3-migrate-config-to-v4
i3-sensible-editor
i3-sensible-pager
i3-sensible-terminal
i3.applications.desktop
i3.config
i3.config.keycodes
i3.xsession.desktop
logo.svg
pseudo-doc.doxygen
31 lines
745 B
C
31 lines
745 B
C
#include <stdio.h>
|
|
#include "table.h"
|
|
|
|
void print_table() {
|
|
int r, c;
|
|
printf("printing table...\n");
|
|
for (c = 0; c < table_dims.x; c++)
|
|
for (r = 0; r < table_dims.y; r++)
|
|
printf("table[%d][%d] = %p\n", c, r, table[c][r]);
|
|
printf("done\n");
|
|
}
|
|
|
|
int main() {
|
|
printf("table.c tests\n");
|
|
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
|
init_table();
|
|
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
|
print_table();
|
|
|
|
printf("expand_table_cols()\n");
|
|
expand_table_cols();
|
|
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
|
print_table();
|
|
|
|
printf("expand_table_rows()\n");
|
|
expand_table_rows();
|
|
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
|
print_table();
|
|
|
|
}
|