From owner-freebsd-stable@FreeBSD.ORG Mon May 21 16:41:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 244C31065677; Mon, 21 May 2012 16:41:57 +0000 (UTC) (envelope-from shen.elf@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E76418FC1F; Mon, 21 May 2012 16:41:56 +0000 (UTC) Received: by dadv36 with SMTP id v36so7585102dad.13 for ; Mon, 21 May 2012 09:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=xKtPay+agdjIV6e7j6OYFkg1svxCrHDSthDs08OIL4w=; b=WiKQ7H3rpN9vz3R+loIhXwkA6fhEhz0c/8to6wfNzauAOgR2wLsUtsVcAIPEy4YaAB Y+0ZjHx64ZQdPI/Uz5IsbYzLdWKuFf2AWdF8D3p6QCtIPbCM9Bi/DFg8MbPh8Z47vAA/ Hpt1sG/FlL9edEgQO6WNqdU1ZEchMYwQeluFUkT3rPkAUR+SdvbCh1wHKfLrZSYlq73C z6Tfsi2NmLCAPq98GmnunjzT+jUI0/ZufoK5wUXW1Wa8ZDkTAZ0ohw5yZPnd7XUgRv1R 2szEGdSmcnxB9xhuhF3FYdjIH+sTPSJQfQGxDNiDjrULRMKUUgwcfwVaBPmoObC6kBhz Js3A== MIME-Version: 1.0 Received: by 10.68.240.71 with SMTP id vy7mr12283326pbc.78.1337618516389; Mon, 21 May 2012 09:41:56 -0700 (PDT) Received: by 10.142.149.5 with HTTP; Mon, 21 May 2012 09:41:56 -0700 (PDT) Date: Tue, 22 May 2012 00:41:56 +0800 Message-ID: From: Yanhui Shen To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Something wrong with curs_threads(3X) ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2012 16:41:57 -0000 Hi, In curs_threads(3X), at the beginning of the manual: typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *); typedef int > (*NCURSES_SCREEN_CB)(SCREEN *, void *); > int set_escdelay(int size); > int set_tabsize(int size); > int use_screen(SCREEN *scr, NCURSES_WINDOW_CB func, void *data); > int use_window(WINDOW *win, NCURSES_SCREEN_CB func, void *data); use_screen => NCURSES_WINDOW_CB use_window = > NCURSES_SCREEN_CB Target is not matched, I'm really confused. So I open /usr/include/curses.h, and find these: extern NCURSES_EXPORT(int) use_screen (SCREEN *, NCURSES_SCREEN_CB, void *); > extern NCURSES_EXPORT(int) use_window (WINDOW *, NCURSES_WINDOW_CB, void > *); Seems much proper. So is this a bug? -- Best regards, Yanhui Shen