In src/output/options.c we have: /* Creates and returns a new struct driver_option for output driver DRIVER (which is needed only to the extent that its name will be used in error messages). The option named NAME is extracted from OPTIONS. DEFAULT_VALUE is the default value of the option, used if the given option was not supplied or was invalid. */ struct driver_option * driver_option_get (struct output_driver *driver, struct string_map *options, const char *name, const char *default_value) { struct driver_option *option; char *value;
value = string_map_find_and_delete (options, name); option = driver_option_create (output_driver_get_name (driver), name, value, default_value); free (value); return option; } Why does it use string_map_find_and_delete ? Why not simply string_map_find? Why does it need to delete the item from the string map? J' -- PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://keys.gnupg.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature
_______________________________________________ pspp-dev mailing list pspp-dev@gnu.org https://lists.gnu.org/mailman/listinfo/pspp-dev