Rename pycoc to coc

This commit is contained in:
Stephan Hadinger 2022-07-01 22:39:23 +02:00
parent 3d4a5bb4b9
commit e551c8743b
11 changed files with 5 additions and 6 deletions

View File

@ -5,4 +5,4 @@
# Should be eventually included in the build process # Should be eventually included in the build process
# #
rm generate/be_*.h rm generate/be_*.h
python3 tools/pycoc/main.py -o generate src default ../berry_tasmota/src ../berry_mapping/src ../berry_int64/src ../../libesp32_lvgl/lv_binding_berry/src ../../libesp32_lvgl/lv_binding_berry/generate -c default/berry_conf.h python3 tools/coc/coc -o generate src default ../berry_tasmota/src ../berry_mapping/src ../berry_int64/src ../../libesp32_lvgl/lv_binding_berry/src ../../libesp32_lvgl/lv_binding_berry/generate -c default/berry_conf.h

View File

@ -45,7 +45,7 @@ extern "C" {
} }
/* try to use the predefined string in strtab, but don't create an instance if none is present */ /* try to use the predefined string in strtab, but don't create an instance if none is present */
/* the behavior is exactly the same as `be_const_key()` but it not detected by pycoc */ /* the behavior is exactly the same as `be_const_key()` but it not detected by coc */
#define be_const_key_weak(_str, _next) { \ #define be_const_key_weak(_str, _next) { \
.v.c = &be_const_str_##_str, \ .v.c = &be_const_str_##_str, \
.type = BE_STRING, \ .type = BE_STRING, \
@ -309,7 +309,7 @@ const bcstring be_const_str_##_name = { \
} }
/* try to use the predefined string in strtab, but don't create an instance if none is present */ /* try to use the predefined string in strtab, but don't create an instance if none is present */
/* the behavior is exactly the same as `be_const_key()` but it not detected by pycoc */ /* the behavior is exactly the same as `be_const_key()` but it not detected by coc */
#define be_const_key_weak(_str, _next) { \ #define be_const_key_weak(_str, _next) { \
bvaldata(&be_const_str_##_str), \ bvaldata(&be_const_str_##_str), \
BE_STRING, \ BE_STRING, \

View File

@ -1,5 +1,4 @@
# python3 main.py -o out in #! /usr/bin/env python3
# coc
import re import re
import os import os

View File

@ -224,7 +224,7 @@ This phase is specific to Berry pre-compiled modules and classes.
``` ```
(berry) (berry)
> python3 tools/pycoc/main.py -o generate src default ../berry_mapping/src ../lv_berry/src ../lv_berry/generate -c default/berry_conf.h > python3 tools/coc/coc -o generate src default ../berry_mapping/src ../lv_berry/src ../lv_berry/generate -c default/berry_conf.h
(no output) (no output)
``` ```