fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

libini: Support 'yes' and 'no' constants

+10 -2
+10 -2
src/libini/expr.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/libini/expr.c * 7 7 * Created: 2010-09-13 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2010-2020 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2010-2024 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 15 15 * * 16 16 * This program is distributed in the hope that it will be useful, but * 17 17 * WITHOUT ANY WARRANTY, without even the implied warranty of * 18 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 19 19 * Public License for more details. * 20 20 *****************************************************************************/ 21 21 ··· 630 630 return (0); 631 631 } 632 632 else if (strcmp (str, "false") == 0) { 633 + ini_val_set_uint32 (val, 0); 634 + return (0); 635 + } 636 + else if (strcmp (str, "yes") == 0) { 637 + ini_val_set_uint32 (val, 1); 638 + return (0); 639 + } 640 + else if (strcmp (str, "no") == 0) { 633 641 ini_val_set_uint32 (val, 0); 634 642 return (0); 635 643 }