Data types in samba4

Stefan (metze) Metzmacher metze at samba.org
Fri Jan 16 13:16:21 GMT 2004


Stefan (metze) Metzmacher wrote:

> Sorry, file is attached now
> 
> I call it with
> 
> sh convert.sh */*.h */*.c */*/*.h */*/*.c librpc/idl/*.idl build/pidl/*.*
> 

I add the
'long int'
'short int'
'unsigned long int'
'unsigned short int'

cases and move the 'int' case behind them

new script:-)

-- 
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-------------- next part --------------
#!/bin/sh
#

for file in $@;do
	cat $file | \
	sed -e 's/\bunsigned int\b/uint_t/g' |\
	sed -e 's/\bunsigned char\b/uint8_t/g' |\
	sed -e 's/\bunsigned short int\b/uint16_t/g' |\
	sed -e 's/\bunsigned short\b/uint16_t/g' |\
	sed -e 's/\bunsigned long long\b/uint64_t/g' |\
	sed -e 's/\bunsigned long int\b/uint32_t/g' |\
	sed -e 's/\bunsigned long\b/uint32_t/g' |\
	sed -e 's/\bunsigned\b/uint_t/g' |\
	sed -e 's/\buint8\b/uint8_t/g' |\
	sed -e 's/\buint16\b/uint16_t/g' |\
	sed -e 's/\buint32\b/uint32_t/g' |\
	sed -e 's/\bshort int\b/int16_t/g' |\
	sed -e 's/\bshort\b/int16_t/g' |\
	sed -e 's/\blong long\b/int64_t/g' |\
	sed -e 's/\blong int\b/int32_t/g' |\
	sed -e 's/\blong\b/int32_t/g' |\
	sed -e 's/\bint\b/int_t/g' |\
	sed -e 's/\bint8\b/int8_t/g' |\
	sed -e 's/\bint16\b/int16_t/g' |\
	sed -e 's/\bint32\b/int32_t/g' \
	> $file.cv
	diff -Npur $file $file.cv
	mv $file.cv $file
done


More information about the samba-technical mailing list