mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
errors: add gen_ntstatus.py to build system
nterr_gen.c, ntstatus_gen.h and py_ntstatus.c are now generated files. Errors which are now generated have been removed from nterr.c and ntstatus.h. Errors which existed previously but are not in the table we generated from have been manually added. Some errors are incorrectly named; e.g. STATUS_MORE_ENTRIES should be NT_STATUS_MORE_ENTRIES. These are simply remapped to the correct names. Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
c465f5f3a1
commit
b7b289f372
3675
libcli/util/nterr.c
3675
libcli/util/nterr.c
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,8 @@
|
||||
|
||||
|
||||
bld.SAMBA_LIBRARY('samba-errors',
|
||||
public_headers='error.h ntstatus.h doserr.h werror.h hresult.h',
|
||||
public_headers='error.h ntstatus.h ntstatus_gen.h doserr.h werror.h hresult.h',
|
||||
private_headers='nterr_private.h',
|
||||
header_path='core',
|
||||
source='doserr.c errormap.c nterr.c errmap_unix.c hresult.c',
|
||||
public_deps='talloc samba-debug',
|
||||
@ -11,3 +12,10 @@ bld.SAMBA_LIBRARY('samba-errors',
|
||||
vnum='1',
|
||||
)
|
||||
|
||||
bld.SAMBA_GENERATOR('ntstatus_generated',
|
||||
source='../../source4/scripting/bin/gen_ntstatus.py ntstatus_err_table.txt',
|
||||
target='ntstatus_gen.h nterr_gen.c py_ntstatus.c',
|
||||
group='build_source',
|
||||
rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user