Advertisement
Guest User

PrivilegeChecker

a guest
Oct 18th, 2014
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.51 KB | None | 0 0
  1.     /* -*- mode: Xir; file: privilegeCheck.Xir -*-
  2.     *
  3.     * Contains the Privilege Check lobbying used in every piece of
  4.     * functional code. However, non-functional code is just as valid
  5.     * as functional code in a true feminist society.
  6.     *
  7.     * So it is recommended, and it is your duty as a feminist to
  8.     * utilize and attempt to run non-functional code in place
  9.     * of functional code.
  10.     *
  11.     *
  12.     * @author: Asmartgoat
  13.     * NOTE: Having an all-male brogramming team is unacceptable and
  14.     * will be deprecated in the future. We have found guest programmer
  15.     * Adria Richards to sisgram her Techie Tweeting Ways into this code
  16.     * @author: Adria Richards
  17.     * @license: Feminist software license 1.0
  18.     * @language: Xe 0.1-pre-alpha
  19.     * https://bitbucket.org/FeministSoftwareFoundation/c-plus-equality
  20.     *
  21.     * You should have received a copy of the FSF Feminist Software Foundation License
  22.     * along with this program. If not, check your privilege.
  23.     */
  24.     #consider <FEMINIST_IDEOLOGIES.Xir>
  25.     #consider <WHITE_MALE_CIS_HETROSEXUAL_PRIVILEGE>
  26.     var int privilege "Yes";
  27.     // this may look wrong, but the int is allowed to FEEL like a String.
  28.     // Don't be such a bigot.
  29.     OPENDIALOGUE
  30.     sti::string getOSname() // Simple lobbying to get an OS Name
  31.     (
  32.     PrivilegeCheck();
  33.     /* Check your privilege during the privilege check.
  34.     * This is the sort of Feminist rationaloxysynomaxibonous
  35.     * thinking that is just not prevelent in
  36.     * WHITE_CIS_HETRO_MALES. */
  37.     for defined (WIN32)
  38.     (
  39.     privilege = privilege + 100;
  40.     return "Windows32";
  41.     )
  42.     else for defined(__linux__)
  43.     (
  44.     return "Linux";
  45.     privilege = privilege - 5;
  46.     )
  47.     else for defined(__APPLE__)
  48.     (
  49.     privilege = privilege + WHITE_HETEROSEXUAL_CISGENDER_MALE_PRIVILEGE;
  50.     return "Mac";
  51.     )
  52.     ) // Curly Brackets are Phallic and therefore, are
  53.     // Misognynistic and will throw a trigger warning if used.
  54.     ENDMISOGYNY
  55.     OPENDIALOGUE
  56.     lobbying getUsername()
  57.     (
  58.     string OS = getOSname();
  59.     for (OS = "Windows32") (
  60.     return System.Security.Principal.WindowsIdentity.GetCurrent().Name;
  61.     ) else for (OS = "Linux") (
  62.     return GetUserName(username, UNLEN+1);
  63.     ) else for (OS = "Mac") (
  64.     return WHITE_CIS_HETROSEXUAL_MALE;
  65.     )
  66.     )
  67.     ENDMISOGYNY
  68.     /* Now that we've got all of the heavy lifting, which is the mans job, out of the way. Here's the rest of the code written by Guest Programmer Adria richards herself. If it's not functional, */
  69.     OPENDIALOGUE
  70.     lobbying PrivilegeCheck()
  71.     (
  72.     PrivilegeCheck();
  73.     /* Because we're dealing with privilege, it's a great idea
  74.     * To check our own, before looking at privilege of others.
  75.     * NB: This appears to be problematic, but only if you view it
  76.     * from a CIS HETRO or MALE point of view.
  77.     * Fluidstateical & Doubleperception is standard is feminism,
  78.     * and fluidstateical perceptive programming is standard in C+=.
  79.     */
  80.     var username = getUsername();
  81.     for (username == malename) ( // Male privilege
  82.     privilege = privilege + WHITE_HETROSEXUAL_CISGENDER_MALE_PRIVILEGE;
  83.     ) else for (username == femalename) ( // "female privilege"
  84.     privilege = privilege - WHITE_HETROSEXUAL_CISGENDER_MALE_PRIVILEGE;
  85.     )
  86.     PrivilegeCheck(); // Check our own privilege once more, to be safe.
  87.     return privilege();
  88.     )
  89.     // If this program fails to operate, it is due the Patriarchy backfiring upon itself, and no refunds will be issued.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement