Browse Source

Various minor improvements generated while working on liblob

master
dirkson 3 years ago
parent
commit
aae1449223
  1. 2
      .lvimrc
  2. 2
      include/boksi.h

2
.lvimrc

@ -1,6 +1,6 @@
"Stuff you're more likely to edit goes near the top
let s:projstd = '-std=gnu89 -Wall -Wno-comment'
let s:projstd = '-std=gnu89 -Wall'
let s:projinc = '-Iinclude -Isrc -Imeson/debug -Isrc/methods -Isrc/example -Isrc/dynload -Isubprojects/dynload/include'
let s:projopt = ''

2
include/boksi.h

@ -45,11 +45,11 @@ typedef enum boksi_return
typedef struct boksi_info
{
//boksi_method *method;
//OH NO IS THIS SAFE?!
//Yup. "If the first enumerator has no =, the value of its enumeration constant is 0. Each subsequent enumerator with no = defines its enumeration constant as the value of the constant expression obtained by adding 1 to the value of the previous enumeration constant."
//So this should work in any standards-conforming C, so long as we don't use = in the enum
boksi_method method[BOKSI_METHOD_MAX];
int method_num;
} boksi_info;

Loading…
Cancel
Save