diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-11 00:52:54 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-12 01:47:51 +0100 |
commit | 56202222ed83ff030239bb23be8296574674c4f7 (patch) | |
tree | 952f2f85abdf674933f84c4e7c2bc5b1ed18ef8c /module_sigrokdecode.c | |
parent | d0e93c76e381eff58ca23949301f781b24ba4a8b (diff) | |
download | libsigrokdecode-56202222ed83ff030239bb23be8296574674c4f7.tar.gz libsigrokdecode-56202222ed83ff030239bb23be8296574674c4f7.zip |
srd: Drop duplicate SRD_ prefix from ANN/PROTO.
Using srd.SRD_OUTPUT_ANN is unneeded, srd.OUTPUT_ANN is better/shorter.
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r-- | module_sigrokdecode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index d2ffb07..426cf49 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -230,13 +230,13 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void) return NULL; /* expose output types as symbols in the sigrokdecode module */ - if(PyModule_AddObject(mod, "SRD_OUTPUT_ANN", + if(PyModule_AddObject(mod, "OUTPUT_ANN", PyLong_FromLong(SRD_OUTPUT_ANN)) == -1) return NULL; - if(PyModule_AddObject(mod, "SRD_OUTPUT_PROTO", + if(PyModule_AddObject(mod, "OUTPUT_PROTO", PyLong_FromLong(SRD_OUTPUT_PROTO)) == -1) return NULL; - if(PyModule_AddObject(mod, "SRD_OUTPUT_BINARY", + if(PyModule_AddObject(mod, "OUTPUT_BINARY", PyLong_FromLong(SRD_OUTPUT_BINARY)) == -1) return NULL; |