I suggest tabifying the file -- there seem to be some whitespace problems like: + ctx = ib_ucm_ctx_get(cmd.id); + if (!ctx) (spaces on one line, tabs the next). More substantive comments later... - R.