Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added drw.o
Binary file not shown.
Binary file added dwm
Binary file not shown.
Binary file added dwm.o
Binary file not shown.
Binary file added get_stext_tw
Binary file not shown.
19 changes: 19 additions & 0 deletions get_stext_tw.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <stdio.h>
#include <string.h>

int TEXTW(const char* s) {
return strlen(s) * 10;
}

int main() {
const char *stext = "hello world";
int tw, stextw = TEXTW(stext) + 2;
tw = stextw;

// In dwm.c:
// tw = stextw;
// drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);

printf("tw=%d\n", tw);
return 0;
}
3 changes: 3 additions & 0 deletions test_compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
make clean
make
6 changes: 6 additions & 0 deletions test_updateclientlist.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <stdio.h>

int main() {
printf("Test complete\n");
return 0;
}
Binary file added util.o
Binary file not shown.
Loading