r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
authorJelmer Vernooij <jelmer@samba.org>
Tue, 13 Dec 2005 19:38:12 +0000 (19:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:19 +0000 (13:47 -0500)
in build/smb_build/, remove unused pstring macros
(This used to be commit 432296207400636dd81d0929ec7b1b4cebbcaa62)

18 files changed:
source4/build/smb_build/TODO
source4/build/smb_build/config_mk.pm
source4/build/smb_build/env.pm
source4/build/smb_build/input.pm
source4/build/smb_build/main.pl
source4/build/smb_build/makefile.pm
source4/build/smb_build/output.pm
source4/build/smb_build/smb_build_h.pm
source4/include/includes.h
source4/include/safe_string.h
source4/include/structs.h
source4/lib/com/dcom/dcom.h
source4/lib/com/tables.c
source4/lib/replace/README
source4/lib/replace/replace.h
source4/lib/util_str.c
source4/libcli/config.mk
source4/script/tests/test_rpc_quick.sh [changed mode: 0644->0755]

index d3fcbd1370bcd616224a531bc19ed1044f49667a..8fe11bfc855bb2a82c214b4dd4da1d63eba11523 100644 (file)
@@ -1,5 +1,8 @@
 - split up proto.h into headers with public or private prototypes. 
   Public prototypes can be marked with _PUBLIC_ in the source
+   - get rid of include/structs.h
+- install Samba-specific headers in $INCLUDEDIR/samba-4.0. talloc.h, tdb.h and 
+       ldb.h belong in $INCLUDEDIR
 - never install -rpath binaries / libraries, always relink before install
  - keep files without -rpath in bin/install
 - init functions may be called more then once as different libraries 
index d7408a5f8fad2cdd899a8ddc90b10dc3bac8a274..3d55718541357bbd52188e921b8a716d97288215 100644 (file)
@@ -1,10 +1,10 @@
-###########################################################
-### SMB Build System                                   ###
-### - config.mk parsing functions                      ###
-###                                                    ###
-###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
-###  Released under the GNU GPL                                ###
-###########################################################
+# Samba Build System
+# - config.mk parsing functions
+#
+#  Copyright (C) Stefan (metze) Metzmacher 2004
+#  Copyright (C) Jelmer Vernooij 2005
+#  Released under the GNU GPL
+#
 
 package smb_build::config_mk;
 use smb_build::input;
index 8acd7dd9322cd433ba82f46c37e14a21e38f15e5..1ad8e23d36c0b876625c0ce28f1556edc94e1cec 100644 (file)
@@ -1,4 +1,3 @@
-#
 # Environment class
 #
 # Samba Build Environment
index 5dcbb8c90476a560d4a4d57b892d23757bb81814..ebc91a9107cadf70881cb39a45bb38668e2fad47 100644 (file)
@@ -1,11 +1,9 @@
-###########################################################
-### SMB Build System                                   ###
-### - the input checking functions                     ###
-###                                                    ###
-###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
-###  Copyright (C) Jelmer Vernooij 2004        ###
-###  Released under the GNU GPL                                ###
-###########################################################
+# Samba Build System
+# - the input checking functions
+#
+#  Copyright (C) Stefan (metze) Metzmacher 2004
+#  Copyright (C) Jelmer Vernooij 2004
+#  Released under the GNU GPL
 
 use strict;
 package smb_build::input;
index 4c42c7a7c183446ab145a932c92f6af41c9f05f6..0c027facc303fc35f4d0fd82a9a2fed9f1adbe38 100644 (file)
@@ -1,11 +1,9 @@
-###########################################################
-### SMB Build System                                   ###
-### - the main program                                 ###
-###                                                    ###
-###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
-###  Copyright (C) Jelmer Vernooij 2005
-###  Released under the GNU GPL                                ###
-###########################################################
+# Samba Build System                                   
+# - the main program                                   
+#                                                      
+#  Copyright (C) Stefan (metze) Metzmacher 2004        
+#  Copyright (C) Jelmer Vernooij 2005
+#  Released under the GNU GPL                          
 
 use smb_build::makefile;
 use smb_build::smb_build_h;
index a84d336716ee4946ea1cfee3ff7cd95450b22a1f..0543037fef50d3bc18c0b3b39aff6e81a775ff4e 100644 (file)
@@ -1,11 +1,9 @@
-###########################################################
-### SMB Build System                                   ###
-### - create output for Makefile                       ###
-###                                                    ###
-###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
-###  Copyright (C) Jelmer Vernooij 2005                        ###
-###  Released under the GNU GPL                                ###
-###########################################################
+# Samba Build System
+# - create output for Makefile
+#
+#  Copyright (C) Stefan (metze) Metzmacher 2004
+#  Copyright (C) Jelmer Vernooij 2005
+#  Released under the GNU GPL
 
 package smb_build::makefile;
 use smb_build::env;
index d7618766f69031982fc985f9247d9af055de5297..92b2f05c62f0acd5cdea4a507291f4225a287910 100644 (file)
@@ -1,11 +1,9 @@
-###########################################################
-### SMB Build System                                   ###
-### - the output generating functions                  ###
-###                                                    ###
-###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
-###  Copyright (C) Jelmer Vernooij 2004        ###
-###  Released under the GNU GPL                                ###
-###########################################################
+# SMB Build System
+# - the output generating functions
+#
+#  Copyright (C) Stefan (metze) Metzmacher 2004
+#  Copyright (C) Jelmer Vernooij 2004
+#  Released under the GNU GPL
 
 package output;
 use strict;
index b31cf8b9d9aba69088afb470cb42825eb4deedbd..e06e965ac75a5a5aeb8ade2a9f1200faf88dd863 100644 (file)
@@ -1,10 +1,8 @@
-###########################################################
-### SMB Build System                                   ###
-### - create output for smb_build.h                    ###
-###                                                    ###
-###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
-###  Released under the GNU GPL                                ###
-###########################################################
+# SMB Build System
+# - create output for smb_build.h
+#
+#  Copyright (C) Stefan (metze) Metzmacher 2004
+#  Released under the GNU GPL
 
 package smb_build_h;
 use strict;
index f2da31eed673887359c480b8dc96bc0e364e95f6..18fc38031c5d61baef574933f75db5a6569488b1 100644 (file)
@@ -112,7 +112,6 @@ struct ipv4_addr {
 #include "smb_interfaces.h"
 #include "ntvfs/ntvfs.h"
 #include "cli_context.h"
-#include "lib/com/com.h"
 #include "auth/credentials/credentials.h"
 
 /***** automatically generated prototypes *****/
@@ -161,8 +160,4 @@ extern int DEBUGLEVEL;
 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
 #define discard_const_p(type, ptr) ((type *)discard_const(ptr))
 
-#ifndef UINT16_MAX
-#define UINT16_MAX 65535
-#endif
-
 #endif /* _INCLUDES_H */
index 7c2b93270cdcac7dc05a4a971558e3d12d33d5cc..57c5d21429b29842e521cd9712df85eadc9ea4a2 100644 (file)
 #define strlower(s) strlower_m(s)
 #define strupper(s) strupper_m(s)
 
-/* the addition of the DEVELOPER checks in safe_strcpy means we must
- * update a lot of code. To make this a little easier here are some
- * functions that provide the lengths with less pain */
-#define pstrcpy_base(dest, src, pstring_base) \
-    safe_strcpy(dest, src, sizeof(pstring)-PTR_DIFF(dest,pstring_base)-1)
-
-#define push_pstring_base(dest, src, pstring_base) \
-    push_ascii(dest, src, sizeof(pstring)-PTR_DIFF(dest,pstring_base)-1, STR_TERMINATE)
-
 #endif
index 89b8bf9dcf50886f48a55477345b928c3ff4d7d1..b6ccd0ce191862e36e21daf19ca0a52aca7e3026 100644 (file)
@@ -365,3 +365,7 @@ struct smb2_find;
 struct smb2_ioctl;
 struct smb2_flush;
 struct smb2_handle;
+
+struct com_context;
+struct IUnknown;
+struct IUnknown_vtable;
index 1e15daf83059d942dacc20435a1b61239ebee557..41b155248e8b559e61516fbf07e3d8dc8445338b 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef _DCOM_H /* _DCOM_H */
 #define _DCOM_H 
 
+#include "lib/com/com.h"
+
 struct dcom_client_context {
        struct cli_credentials *credentials;
        struct dcom_object_exporter {
index 39bd6a6bd76f45fc42452a90e11b0993e6296fdb..661f5d0b377480249741fbf4206173a161737778 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "dlinklist.h"
+#include "lib/com/com.h"
 
 /* Specific implementation of one or more interfaces */
 struct com_class
index 45c8bccf13ba70cdfbf78f0609a77b2c278bfebe..1e804d50e19dbe6c5d9004167c5e325f1970e7c4 100644 (file)
@@ -56,6 +56,10 @@ uint_t
 uint{8,16,32,64}_t
 int{8,16,32,64}_t
 
+Constants:
+PATH_NAME_MAX
+UINT16_MAX
+
 Prerequisites:
 memset (for bzero)
 syslog (for vsyslog)
index e3eef56eeb7a46b6679023a47c70882c77663b79..fda494a444df6c2dd94413450f57305afa9a60ae 100644 (file)
@@ -166,4 +166,8 @@ int rep_mkstemp(char *temp);
 #define HOST_NAME_MAX 64
 #endif
 
+#ifndef UINT16_MAX
+#define UINT16_MAX 65535
+#endif
+
 #endif
index e1fa19aa0b2e9b2a5be5147061b4b75d548cd25d..56a1345e38279d7c2028b1ff7920fa815d2ae29c 100644 (file)
@@ -1110,4 +1110,3 @@ char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
 
        return ret;
 }
-
index 47b07a353b4a4d74ef05f8ec1c7a003ea149b2db..cbbc2f423534ae86c1895797bdffde903d3a299a 100644 (file)
@@ -58,8 +58,8 @@ REQUIRED_SUBSYSTEMS = LIBCLI_NBT
 MAJOR_VERSION = 0
 MINOR_VERSION = 0
 RELEASE_VERSION = 1
-ADD_OBJ_FILES = \
-       cldap/cldap.o
+ADD_OBJ_FILES = cldap/cldap.o
+PUBLIC_HEADERS = cldap/cldap.h
 NOPROTO=YES
 REQUIRED_SUBSYSTEMS = LIBCLI_LDAP
 
old mode 100644 (file)
new mode 100755 (executable)