From e8382ba290025f941eff42d23b6d9237b3fb8c25 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 26 Jan 2001 15:52:51 +0000 Subject: [PATCH] moved the symbols talk to the library part, updated slightly to match --- docs/INTERNALS | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/INTERNALS b/docs/INTERNALS index b35298dea..172eb2cf9 100644 --- a/docs/INTERNALS +++ b/docs/INTERNALS @@ -1,3 +1,4 @@ + Updated for curl 7.6 on January 26, 2001 _ _ ____ _ ___| | | | _ \| | / __| | | | |_) | | @@ -12,13 +13,6 @@ INTERNALS Thus, the largest amount of code and complexity is in the library part. -SYMBOLS -======= - All symbols used internally must use a 'Curl_' prefix if they're used in more - than a single file. Single-file symbols must be made static. Public - (exported) symbols must use a 'curl_' prefix. (There are exceptions, but they - are destined to be changed to follow this pattern in the future.) - CVS === All changes to the sources are committed to the CVS repository as soon as @@ -35,10 +29,11 @@ Windows vs Unix There are a few differences in how to program curl the unix way compared to the Windows way. The four perhaps most notable details are: - 1. Different function names for close(), read(), write() + 1. Different function names for socket operations. In curl, this is solved with defines and macros, so that the source looks - the same at all places except for the header file that defines them. + the same at all places except for the header file that defines them. The + macros in use are sclose(), sread() and swrite(). 2. Windows requires a couple of init calls for the socket stuff @@ -187,6 +182,15 @@ Library exists in lib/getpass.c. libcurl offers a custom callback that can be used instead of this, but it doesn't change much to us. +Library Symbols +=============== + + All symbols used internally in libcurl must use a 'Curl_' prefix if they're + used in more than a single file. Single-file symbols must be made + static. Public (exported) symbols must use a 'curl_' prefix. (There are + exceptions, but they are destined to be changed to follow this pattern in the + future.) + Return Codes and Informationals ===============================