cheaders-1.0.0
توضیحات
C file header generator
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cheaders-1.0.0 |
| نام | cheaders |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Erik Nyquist |
| ایمیل نویسنده | eknyquist@gmail.com |
| آدرس صفحه اصلی | http://github.com/eriknyquist/cheaders |
| آدرس اینترنتی | https://pypi.org/project/cheaders/ |
| مجوز | Apache 2.0 |
C header file generator
#######################
This tool reads a C source file (.c) and generates the text for the corresponding
header file, with function declarations for any non-static function definitions
found in the provided C file.
Installation
============
::
pip install cheaders
Usage
=====
Execute cheaders through the python interpreter as a module:
::
python -m cheaders source_file.c
Example output
==============
The following example shows what is generated for a sample ``.c`` file. The
sample file is called ``ulist_.c``, and contains the following code:
Example C source file
---------------------
.. code:: c
int myfunction(int intvar, float floatvar)
{
// Do important stuff
return 0;
}
void myotherfunction(int intvar, float floatvar, char long_name_variable)
{
// Do other important stuff
}
The header file that will be generated, with doxygen comments enabled (the
default) looks like this:
Generated header file
---------------------
.. code:: c
/*
* myfile.h
*
* (Description here)
*
*/
#ifndef MYFILE_H
#define MYFILE_H
/**
* (Description)
*
* @param intvar (description)
* @param floatvar (description)
*
* @return (description)
*/
int myfunction(int intvar, float floatvar);
/**
* (Description)
*
* @param intvar (description)
* @param floatvar (description)
* @param long_name_variable (description)
*/
void myotherfunction(int intvar, float floatvar, char long_name_variable);
#endif /* MYFILE_H */
نحوه نصب
نصب پکیج whl cheaders-1.0.0:
pip install cheaders-1.0.0.whl
نصب پکیج tar.gz cheaders-1.0.0:
pip install cheaders-1.0.0.tar.gz