Re: new:mbrtoc32.3: convert from to c32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 7/5/21 10:31 PM, Radisson wrote:

I am no expert on the differences i will make contact with Bruno Haible,
i hope he can help (he wrote already).

Okay.

        void toc32( char *in,  int in_len, char32_t **outbuf, int *len)
Please, follow the style of other existing pages (it's similar to the
kernel coding style with some exceptions).
Especially, regarding spaces around parentheses and commas (and other
operators).
Also, please use a consistent indentation of 4 spaces.

https://www.kernel.org/doc/html/v4.10/process/coding-style.html#spaces
     can i use:    indent -i4 -linux ?

I don't know.  I guess that's an emacs thingy.  I use vim.
I don't have vim configured for that, but I'll do now (I use tabs for everything else, except YAML). I don even have vim configured for man, because in my manual pages (for my code), I also use tabs. But based on my vimrc, adapting it for 4-spaces in man, it could be something like:

set		nocindent
set		nosmartindent
set		noautoindent
set		indentexpr=
filetype	indent off
filetype	plugin indent off

" YAML only works with spaces :(
au filetype yaml	setlocal expandtab
au filetype yaml	setlocal shiftwidth=8
au filetype yaml	setlocal softtabstop=8
au filetype yaml	setlocal tabstop=8

au filetype man		setlocal expandtab
au filetype man		setlocal shiftwidth=4
au filetype man		setlocal softtabstop=4
au filetype man		setlocal tabstop=4


I hope it helps.

Regards,

Alex

--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux